hie guys
in a windows applications we pass a value from form2 to form1 by using this form1.textbox1.text = "text" from form2.
What is the corresponding command on an asp page
Hie all
@Jmeckley: thank you very much
Look at what im doing
Session["LocName"] = tvwLocations.SelectedNode.Text;
//tboLocation.Text = (string)Session["LocName"]
Session["LocID"] = Convert.ToUInt64(tvwLocations.SelectedNode.Value);
Response.Redirect("frmsite.aspx");
but this Response.Redirect is refreshing every button on my page, it seems as if withh you methosd i still have to use it to open the pages, isnt there a way to do it without refreshing the whole page.
that is the nature of web development.
a user requests a uri
request is sent to server
server processes request
server sends response
client renders response
if you want to do this without a full page rewrite you will need to use an ajax request. the stack above is the same. the only difference is how the client sends and receives the response.
also you don't need session for this. just pass the parameter as a querystring. depending on session too much is like having lots of global variables. it's very easy to overwrite data, or get false positive values from session because a value wasn't removed after it's scope.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.