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.

Member Avatar for LastMitch

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.