| | |
Create control at runtime
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Mar 2007
Posts: 34
Reputation:
Solved Threads: 0
i've got this code to create control at runtime..
the problem is that i've forgotten the link and i can't refer to its documentation....
the problem is...i don't understand this line:
Dim parent As String = CStr(ds.Tables(1).Rows(0)("Parent"))
what does this parent refer to?
~i wanted to learn more~
the problem is that i've forgotten the link and i can't refer to its documentation....
the problem is...i don't understand this line:
Dim parent As String = CStr(ds.Tables(1).Rows(0)("Parent"))
what does this parent refer to?
ASP.NET Syntax (Toggle Plain Text)
Dim options As New RadioButtonList For Each row As DataRow In ds.Tables(0).Rows Dim item As New ListItem item.Text = CStr(row("Name")) item.Value = CStr(row("Id")) options.Items.Add(item) Next Dim parent As String = CStr(ds.Tables(1).Rows(0)("Parent")) Select Case parent Case "sideNav" columnSidenav.Controls.Add(options) Case "footer" footerCoontainer.Controls.add(options) Case Else paceholderDefault.Controls.add(options) End Select
~i wanted to learn more~
•
•
Join Date: Oct 2006
Posts: 11
Reputation:
Solved Threads: 1
•
•
•
•
i've got this code to create control at runtime..
the problem is that i've forgotten the link and i can't refer to its documentation....
the problem is...i don't understand this line:
Dim parent As String = CStr(ds.Tables(1).Rows(0)("Parent"))
what does this parent refer to?
ASP.NET Syntax (Toggle Plain Text)
Dim options As New RadioButtonList For Each row As DataRow In ds.Tables(0).Rows Dim item As New ListItem item.Text = CStr(row("Name")) item.Value = CStr(row("Id")) options.Items.Add(item) Next Dim parent As String = CStr(ds.Tables(1).Rows(0)("Parent")) Select Case parent Case "sideNav" columnSidenav.Controls.Add(options) Case "footer" footerCoontainer.Controls.add(options) Case Else paceholderDefault.Controls.add(options) End Select
~i wanted to learn more~
![]() |
Similar Threads
- Create buttons at runtime (C#)
- create aspx page in runtime (C#)
- Custom Control Button with different regions (C#)
- How can I fill the webpage (ASP.NET)
- access 2003 control button (Computer Science)
- Subclassed Editbox Control: Do I need to create 2 subclasses for two edit controls? (C++)
- how to create new table in MS Access2003 using VB6 (Community Introductions)
Other Threads in the ASP.NET Forum
- Previous Thread: database string in web.config not working
- Next Thread: need help here
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax appliances asp asp.net beginner bottomasp.net box browser businesslogiclayer button c# c#gridviewcolumn cac checkbox child class click compatible confirmationcodegeneration content contenttype control countryselector courier css database datagrid datagridview datalist deadlock deployment development dgv dialog dropdownmenu dynamic edit embeddingactivexcontrol feedback fileuploader fill findcontrol flash flv form forms gridview gudi homeedition hosting iframe iis javascript jquery list menu mono mssql multistepregistration nameisnotdeclared novell objects order problem ratings redirect registration relationaldatabases rotatepage search security select serializesmo.table sessionvariables silverlight smartcard sql ssl tracking treeview typeof validatedate validation vb.net virtualdirectory vista visual-studio visualstudio vs2008 web webarchitecture webdevelopment wizard xml xsl





