Click here to Skip to main content
16,005,038 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Columns Width Pin
Michael Sync3-Jan-08 19:54
Michael Sync3-Jan-08 19:54 
GeneralRe: Columns Width Pin
~V~3-Jan-08 19:58
~V~3-Jan-08 19:58 
GeneralRe: Columns Width Pin
Michael Sync3-Jan-08 20:02
Michael Sync3-Jan-08 20:02 
GeneralRe: Columns Width Pin
~V~3-Jan-08 20:09
~V~3-Jan-08 20:09 
GeneralRe: Columns Width Pin
Michael Sync3-Jan-08 20:59
Michael Sync3-Jan-08 20:59 
QuestionHow to Create Dynami Menu InC# Pin
mrgaddam3-Jan-08 19:20
mrgaddam3-Jan-08 19:20 
AnswerRe: How to Create Dynami Menu InC# Pin
Michael Sync3-Jan-08 19:50
Michael Sync3-Jan-08 19:50 
Generalnull reference exception in treeview navigation Pin
uglyeyes3-Jan-08 18:41
uglyeyes3-Jan-08 18:41 
Hi!

I am having problem navigating between child nodes of a parent nodes. I am also trying to maintain the state of a selected node using session. everything works fine if i just try to navigate between parent nodes(it also maintains the selected node state) but if i chose child node and try to navigate i get null reference exception in line

in below line

tn.Selected = True

codes with in the page.
-------------------------------------
Public Property LocationId() As String

Get
Return Session("locationid")
End Get
Set(ByVal value As String)
'lblLocid.Text = value
Session("locationid") = value
End Set
End Property

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Session("locationid") Is Nothing Then
Debug.WriteLine(Session("locationid"))
tn = Me.tvProperty.FindNode(Session("locationid"))
tn.Selected = True
End If
end sub

Protected Sub tvProperty_SelectedNodeChanged(ByVal sender As Object, ByVal e As EventArgs) Handles tvProperty.SelectedNodeChanged

Me.LocationId = tvProperty.SelectedNode.Value
End Sub

please help as i spend all day to debug but not sure whats wrong.

thanks in advance.
GeneralRe: null reference exception in treeview navigation Pin
TechnoSpike3-Jan-08 23:16
TechnoSpike3-Jan-08 23:16 
GeneralRe: null reference exception in treeview navigation Pin
uglyeyes6-Jan-08 11:23
uglyeyes6-Jan-08 11:23 
Questionhow i can change the froe color of the gridview textbox Pin
jagan1233-Jan-08 18:31
jagan1233-Jan-08 18:31 
AnswerRe: how i can change the froe color of the gridview textbox Pin
Michael Sync3-Jan-08 18:46
Michael Sync3-Jan-08 18:46 
QuestionWorking with Dropdown and text box Pin
this is pumpkin3-Jan-08 17:53
this is pumpkin3-Jan-08 17:53 
GeneralRe: Working with Dropdown and text box Pin
Christian Graus3-Jan-08 17:56
protectorChristian Graus3-Jan-08 17:56 
GeneralRe: Working with Dropdown and text box Pin
janet20083-Jan-08 18:55
janet20083-Jan-08 18:55 
Questionhow to reconise the cell of a grid view when there is a text box in that cell Pin
jagan1233-Jan-08 17:44
jagan1233-Jan-08 17:44 
Generaldatagrid with checkboxes Pin
rameshdontagani3-Jan-08 16:56
rameshdontagani3-Jan-08 16:56 
GeneralRe: datagrid with checkboxes Pin
Christian Graus3-Jan-08 17:13
protectorChristian Graus3-Jan-08 17:13 
GeneralRe: datagrid with checkboxes Pin
rameshdontagani3-Jan-08 17:58
rameshdontagani3-Jan-08 17:58 
QuestionHow to create a browse button to get a folder path Pin
bircut3-Jan-08 15:29
bircut3-Jan-08 15:29 
AnswerRe: How to create a browse button to get a folder path Pin
Christian Graus3-Jan-08 16:47
protectorChristian Graus3-Jan-08 16:47 
AnswerRe: How to create a browse button to get a folder path Pin
Michael Sync3-Jan-08 16:52
Michael Sync3-Jan-08 16:52 
AnswerRe: How to create a browse button to get a folder path [modified] Pin
bircut3-Jan-08 17:17
bircut3-Jan-08 17:17 
GeneralRe: How to create a browse button to get a folder path Pin
Christian Graus3-Jan-08 17:30
protectorChristian Graus3-Jan-08 17:30 
GeneralRe: How to create a browse button to get a folder path [modified] Pin
bircut3-Jan-08 17:37
bircut3-Jan-08 17:37 

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.