Click here to Skip to main content
15,906,947 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Adding Textbox dynamically when the value of Drop down list changes Pin
N a v a n e e t h1-Feb-09 14:26
N a v a n e e t h1-Feb-09 14:26 
QuestionHow do you pass values to a datasource Pin
AndyASPVB1-Feb-09 10:39
AndyASPVB1-Feb-09 10:39 
AnswerRe: How do you pass values to a datasource Pin
sana171-Feb-09 22:20
sana171-Feb-09 22:20 
GeneralRe: How do you pass values to a datasource Pin
AndyASPVB2-Feb-09 7:55
AndyASPVB2-Feb-09 7:55 
GeneralRe: How do you pass values to a datasource Pin
sana173-Feb-09 1:06
sana173-Feb-09 1:06 
GeneralRe: How do you pass values to a datasource Pin
AndyASPVB3-Feb-09 8:51
AndyASPVB3-Feb-09 8:51 
GeneralRe: How do you pass values to a datasource Pin
sana174-Feb-09 1:34
sana174-Feb-09 1:34 
QuestionHow do you add childnodes to a treeview? Pin
AndyASPVB1-Feb-09 10:35
AndyASPVB1-Feb-09 10:35 
Hi
I am trying to add a childnode to a treeview in visual basic, but I am able to do so. Can someone give me an example how to do this, please? Below is my method in which I add my parent nodes:

Private Sub PopulateNodes(ByVal dt As DataTable, ByVal nodes As TreeNodeCollection)
Dim var As String

For Each r As DataRow In dt.Rows
Dim tn As New TreeNode()

If r("Active").ToString = "YES" Then

tn.Text = r("LastName").ToString()
tn.Value = r("EmployeeID").ToString()

tn.ImageUrl = ("~/word.png")
ElseIf r("Active").ToString Is Nothing Then

THIS IS WHERE I NEED TO ADD A CHILD NODE

Else

tn.Text = r("LastName").ToString()
tn.Value = r("EmployeeID").ToString()

tn.ImageUrl = ("~/has_store_basic.png")
var = Server.UrlEncode(r("LastName").ToString())

tn.NavigateUrl = ("Results.aspx?Value=" & var)
End If

nodes.Add(tn)

End Sub
QuestionImage not been displayed from SQL Pin
Anita_Kamat_inds1-Feb-09 4:38
Anita_Kamat_inds1-Feb-09 4:38 
AnswerRe: Image not been displayed from SQL Pin
Colin Angus Mackay1-Feb-09 12:43
Colin Angus Mackay1-Feb-09 12:43 
GeneralRe: Image not been displayed from SQL Pin
vaghelabhavesh1-Feb-09 13:02
vaghelabhavesh1-Feb-09 13:02 
GeneralRe: Image not been displayed from SQL Pin
Colin Angus Mackay1-Feb-09 13:04
Colin Angus Mackay1-Feb-09 13:04 
GeneralRe: Image not been displayed from SQL Pin
Anita_Kamat_inds1-Feb-09 16:19
Anita_Kamat_inds1-Feb-09 16:19 
GeneralRe: Image not been displayed from SQL Pin
Colin Angus Mackay2-Feb-09 8:43
Colin Angus Mackay2-Feb-09 8:43 
GeneralRe: Image not been displayed from SQL Pin
Anita_Kamat_inds2-Feb-09 9:02
Anita_Kamat_inds2-Feb-09 9:02 
GeneralRe: Image not been displayed from SQL Pin
Colin Angus Mackay2-Feb-09 9:53
Colin Angus Mackay2-Feb-09 9:53 
GeneralRe: Image not been displayed from SQL Pin
Anita_Kamat_inds2-Feb-09 10:01
Anita_Kamat_inds2-Feb-09 10:01 
GeneralRe: Image not been displayed from SQL Pin
Anita_Kamat_inds1-Feb-09 16:06
Anita_Kamat_inds1-Feb-09 16:06 
GeneralRe: Image not been displayed from SQL Pin
Anita_Kamat_inds1-Feb-09 16:08
Anita_Kamat_inds1-Feb-09 16:08 
QuestionGridview binding to both base n derived classes Pin
dotnet.coder1-Feb-09 2:59
dotnet.coder1-Feb-09 2:59 
AnswerRe: Gridview binding to both base n derived classes Pin
Manas Bhardwaj1-Feb-09 4:01
professionalManas Bhardwaj1-Feb-09 4:01 
QuestionLabel and Absolute Positioning Pin
swjam1-Feb-09 1:15
swjam1-Feb-09 1:15 
QuestionAutocomplete AJAX Pin
CrimeanTurtle20081-Feb-09 0:23
CrimeanTurtle20081-Feb-09 0:23 
Questionjavascript Pin
kushalrshah1-Feb-09 0:06
kushalrshah1-Feb-09 0:06 
AnswerRe: javascript Pin
mr_muskurahat1-Feb-09 3:17
mr_muskurahat1-Feb-09 3:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.