Hiding values on page
-
I populate the aspx page from the database and gridview that is selected. Not all data is editable so some items are not used to populate the editable page. Alas, there in lies the crux of the problem. I need one of the values from the selected row in the grid to be held for later use in a client side javascript. My client does not want to see it on the aspx page. My programming partner initially put it in a textbox.visible = false. Appearently that 'invisible' field is also invisible to javascript. Other developers in the past have hinted at 'hiding' values on the aspx page. How do I do that? Thanks in advance.. chuck.
-
I populate the aspx page from the database and gridview that is selected. Not all data is editable so some items are not used to populate the editable page. Alas, there in lies the crux of the problem. I need one of the values from the selected row in the grid to be held for later use in a client side javascript. My client does not want to see it on the aspx page. My programming partner initially put it in a textbox.visible = false. Appearently that 'invisible' field is also invisible to javascript. Other developers in the past have hinted at 'hiding' values on the aspx page. How do I do that? Thanks in advance.. chuck.
-
MacIntyre wrote:
I need one of the values from the selected row in the grid to be held for later use in a client side javascript.
How about puttin' it in a cookie?
Bastard Programmer from Hell :suss:
-
I populate the aspx page from the database and gridview that is selected. Not all data is editable so some items are not used to populate the editable page. Alas, there in lies the crux of the problem. I need one of the values from the selected row in the grid to be held for later use in a client side javascript. My client does not want to see it on the aspx page. My programming partner initially put it in a textbox.visible = false. Appearently that 'invisible' field is also invisible to javascript. Other developers in the past have hinted at 'hiding' values on the aspx page. How do I do that? Thanks in advance.. chuck.
-
I populate the aspx page from the database and gridview that is selected. Not all data is editable so some items are not used to populate the editable page. Alas, there in lies the crux of the problem. I need one of the values from the selected row in the grid to be held for later use in a client side javascript. My client does not want to see it on the aspx page. My programming partner initially put it in a textbox.visible = false. Appearently that 'invisible' field is also invisible to javascript. Other developers in the past have hinted at 'hiding' values on the aspx page. How do I do that? Thanks in advance.. chuck.
Use Hiiden Variables for this sake.. Work on .Value Property of hiddenvariable
- Happy Coding - Vishal Vashishta