Posts Tagged ‘tutorial’

asp.net data

November 10th, 2009

asp.net data
How to transfer data between Web pages asp.net?

Hello, here is what I do: I made a list using treeview, nodes of these trees are supposed to be hyperlinks. When I click the node i want to send the ID of this node to another page. The page that others receive the ID and then use it to search or anything. my question is how to send the ID of the nodes? PS: I work with Visual Web Developer and I am using asp.net.

If this does not bother you, you can use session. For example, when Clicking on the hyperlink, you put a session in May because session as follows: ( "TreeView") = "firstlink" <- Any other value you use to recognize the hyperlink the user clicks Next, you Response.Redirect ( "anotherPage.aspx") to anotherPage.aspx, PageLoad in, you may get value Session ( "TreeView") simply by using Session ( "TreeView" directly. For example: if Session ( "TreeView") = "firstlink So how do the other thing End If Do not forget to disable the session if you do not use it by: Session ( "TreeView") = "" or Session.Abandon [This will erase ALL sessions] Hope this is what you are looking for. All the best!

Data Access in the ASP.NET 2.0 Framework