GridViews and Properties...
-
Hi! I have a Gridview that contains a TextBox that displays a Date and a Button. How can I get the Date from the TextBox and Assign it to a DateTime Property so that I can pass that to another function?
Illegal Operation
-
Hi! I have a Gridview that contains a TextBox that displays a Date and a Button. How can I get the Date from the TextBox and Assign it to a DateTime Property so that I can pass that to another function?
Illegal Operation
You need to use Casting. Get that textbox by FindControl() method of GridView, cast it, you'll get its text property. :)
-
You need to use Casting. Get that textbox by FindControl() method of GridView, cast it, you'll get its text property. :)
I have fixed the issue. Basically I changed the DateTime Property to static. Thanks for the reply's...
Illegal Operation
-
I have fixed the issue. Basically I changed the DateTime Property to static. Thanks for the reply's...
Illegal Operation
Its good that you fixed the issue. But IMO, static variables are not too good in web applications. If possible, try to use something else, maybe a Session Variable. :)
-
Its good that you fixed the issue. But IMO, static variables are not too good in web applications. If possible, try to use something else, maybe a Session Variable. :)
Thanks for that tip. I will look into using session variables in the future. I did add this variable to my Data Access Layer so its not in my web application at the moment.
Illegal Operation