Dynamic create Textbox as per database
-
Hi i have one urgent problem i want to generate the textbox from the code section and after that i want to read the values of those textboxes but i cant get the solution right Please help me its urgent for me
Ravi_21 wrote:
i have one urgent problem
Ravi_21 wrote:
Please help me its urgent for me
Not for All. So dont ask like that.
Ravi_21 wrote:
i want to generate the textbox from the code section and after that i want to read the values
This can be done very easily. Did you try it your self ? or want some else do for you. Read the value from datbase. Create Object of TextBox Class. Add value to the Text property of TextBox. So first try it , if you stuck anywhere in this steps then ask.
cheers, Abhijit My Recent Article : Beginner's Guide to ASP.NET Application Folder
-
Ravi_21 wrote:
i have one urgent problem
Ravi_21 wrote:
Please help me its urgent for me
Not for All. So dont ask like that.
Ravi_21 wrote:
i want to generate the textbox from the code section and after that i want to read the values
This can be done very easily. Did you try it your self ? or want some else do for you. Read the value from datbase. Create Object of TextBox Class. Add value to the Text property of TextBox. So first try it , if you stuck anywhere in this steps then ask.
cheers, Abhijit My Recent Article : Beginner's Guide to ASP.NET Application Folder
-
i have created the textbox from the database but now i want to read the text which is in textboxes and save to another table
When you have creared those Textbox, you have already given a ID.So read those id and store it in a database table.
cheers, Abhijit My Recent Article : Beginner's Guide to ASP.NET Application Folder
-
When you have creared those Textbox, you have already given a ID.So read those id and store it in a database table.
cheers, Abhijit My Recent Article : Beginner's Guide to ASP.NET Application Folder
-
Hi i have one urgent problem i want to generate the textbox from the code section and after that i want to read the values of those textboxes but i cant get the solution right Please help me its urgent for me
-
Hi i have one urgent problem i want to generate the textbox from the code section and after that i want to read the values of those textboxes but i cant get the solution right Please help me its urgent for me
Dynamically created textboxes always have issues with viewstate. The best bet, is to just create them statically and instead, show or hide them in code.
Christian Graus Driven to the arms of OSX by Vista.
-
Hi i have one urgent problem i want to generate the textbox from the code section and after that i want to read the values of those textboxes but i cant get the solution right Please help me its urgent for me
Ravi_21 wrote:
i want to generate the textbox from the code section and after that i want to read the values of those textboxes but i cant get the solution right
When you generate textbox from page load event, ASP.NET won't maintain viewstate for it. You need to create it before viewstate is loaded. I'd suggest to use a GridView with template columns and put your textbox inside the template column. You don't need to worry about the viewstate issues then. To get the textbox values back, loop through all rows and use
FindControl()
to find the text box from grid.Navaneeth How to use google | Ask smart questions