read html controls in code behind file
-
i have html textbox control. i want to read it in my code behind file i.e. .cs file. but i will not able to get that control's name in list. please tell me how to read html contols at code behind file.
-
i have html textbox control. i want to read it in my code behind file i.e. .cs file. but i will not able to get that control's name in list. please tell me how to read html contols at code behind file.
You need to add runat="server" in order to see a control on the server side.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
i have html textbox control. i want to read it in my code behind file i.e. .cs file. but i will not able to get that control's name in list. please tell me how to read html contols at code behind file.
U can only use that control in code behind which has ranAt="Server" So take id of textbox and runAt="Server" in html code Best regard Pathan
---------------------------------------------------
-
U can only use that control in code behind which has ranAt="Server" So take id of textbox and runAt="Server" in html code Best regard Pathan
---------------------------------------------------
U can also set the same by right clicking the control and select "Run as Server control"
VanithaVasu