Populate values into html form
-
Hi, I have designed a user registrtion from using HTML tags.Now I have to populate the form with the values from the database.The code goes like this Male Female January February March and soon till december Now my problem is I have a month field in database which stores 01,02,03,... for months of the year. I should make the selected property true for that month which is in the database means if the value in the column is 01 then January should be seleted ,if the value in the column is 02 then February should be seleted... this is very imp for my project.So kinldy some one help me at the earliest. For textboxes I used the <%%> tags to populate.But for list boxes I am not getting.I am checking for database valued for 01,02,03,... and trying to make the selected value true.But it is not working. Regards, Uma
-
Hi, I have designed a user registrtion from using HTML tags.Now I have to populate the form with the values from the database.The code goes like this Male Female January February March and soon till december Now my problem is I have a month field in database which stores 01,02,03,... for months of the year. I should make the selected property true for that month which is in the database means if the value in the column is 01 then January should be seleted ,if the value in the column is 02 then February should be seleted... this is very imp for my project.So kinldy some one help me at the earliest. For textboxes I used the <%%> tags to populate.But for list boxes I am not getting.I am checking for database valued for 01,02,03,... and trying to make the selected value true.But it is not working. Regards, Uma
why didn't you use server controls instead of html controls?
-
Hi, I have designed a user registrtion from using HTML tags.Now I have to populate the form with the values from the database.The code goes like this Male Female January February March and soon till december Now my problem is I have a month field in database which stores 01,02,03,... for months of the year. I should make the selected property true for that month which is in the database means if the value in the column is 01 then January should be seleted ,if the value in the column is 02 then February should be seleted... this is very imp for my project.So kinldy some one help me at the earliest. For textboxes I used the <%%> tags to populate.But for list boxes I am not getting.I am checking for database valued for 01,02,03,... and trying to make the selected value true.But it is not working. Regards, Uma
-
why didn't you use server controls instead of html controls?
-
Hi there, How do you use the inline code
<% ... %>
with the select element? You might want to post relevant code, also like some one said why don't just use the DropDownList server control instead.No I have to use the same design and continue wiht the work.already lot of javascript is written for that. So I have to use it.That is my task.But the inline code is working for radio buttons and why not for list boxes?Kindly help me out. Regards, Uma
-
So you mean You are not supposed to make the html control RunAt=server. can you try something like this >2
-
So you mean You are not supposed to make the html control RunAt=server. can you try something like this >2
can u pls brief me abt Databinder.Eval(Container,"")... where can v use this