0

In a table,in first row consist of static html control (1 select control and 5 textboxes).From second row onwards i created the rows dynamically(consist of 1 select control and 5 textboxes) on click of html button.Creation is successfull.But problem arised when i wanted to attach dataset table data to html select control at runtime.
I also tried to use runat="server" in jscript code to refer them in code behind.
How to attach dataset table data(only one column) to dynamically created html select control.with static control , i able to do it,but not with dynamic control.

2
Contributors
1
Reply
6
Views
4 Years
Discussion Span
Last Post by LastMitch
0

How to attach dataset table data(only one column) to dynamically created html select control.with static control , i able to do it,but not with dynamic control.

I assume you don't have a code for that.

You can take a look at these:

http://msdn.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlselect.datasource%28v=vs.90%29.aspx

http://msdn.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlselect.name.aspx

Here is a tutorial regarding about how to using HtmlSelect.DataSource Property:

http://www.aspnettutorials.com/tutorials/controls/HTMLSelect-control-vb.aspx

or this:

http://www.aspnettutorials.com/tutorials/controls/HTMLSelect-control-csharp.aspx

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.