|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to gather the caller page information?How to gather the caller page information? I want to check the enter from
when entering the onload event of the page. Which properties or functions have that information? Are you asking how to retrieve values when the client posts back the
page, if so: 1) Server controls are accessed using the object properties, so if my page has a textbox control called txtCustomerName I can access it in code with : if (Page.IsPostBack) { string customerName = txtCustomerName.Text; Label1.Text = customerName; } 2) html controls you can use the Request object in code if (Page.IsPostBack) { string customerName = Request["txtCustomerName"].ToString(); Label1.Text = customerName; } HTH ----------------------------------------- David Gray ASP.NET/C# Developer/Architect (MCAD.NET) Show quoteHide quote On Fri, 13 Jan 2006 10:23:09 +0800, "ABC" <a**@abc.com> wrote: >How to gather the caller page information? I want to check the enter from >when entering the onload event of the page. Which properties or functions >have that information? >
Other interesting topics
Issue with ASP.NET 2.0 Global asax
Seeking examples of screen scraping.... Help: ASP.Net broken (tried usual suspects...) Can't open asp xml page Question about string Error: 'CreateUser' is not a member of 'Membership' FormsAuthentication.SignOut() and User.Identity vs2005: domain trust relationship problem What is the database "standard" in 2.0? XMLHTTP question |
|||||||||||||||||||||||