www.evidhyashala.com provides free free mock test , free online exam , online exam free test series , online exam free , Online Test Exam Series , free exam papers past papers , online exam form ,Online Test Series for Exam Prep. Free Mock Tests - for All govt jobs. Bank PO, Clerk, SSC CGL, CHSL, JE, GATE, Insurance, Railways, IBPS RRB, SBI, RBI, IPPB, BSNL TTA

Sponser Link

know more info pls click here

What is the use of Server.Execute method?-tech13032012

Server.Execute method is used to process a second Web form without leaving the first Web form. This technique lets you direct the results from a Web form to a region on the current page. Is it possible to send a webform's QueryString, ViewState, and event procedure information to another webform? Yes, we can use Server.Transfer or Server.Execute to send a webform's QueryString, ViewState, and event procedure information to another webform. For this to work you have to set the preserveForm argument to True.To be able to read one Web form’s ViewState from another, you must first set the EnableViewStateMac attribute in the Web form’s Page directive to False. By default, ASP.NET hashes ViewState information, and setting this attribute to False disables that hashing so that the information can be read on the subsequent Web form. Give an example of using querystrings to send data from one page to another? Query strings are a very simple and popular technique to pass data from one Web page to the next. You send data as part of the URL. In the below example FName and LName are sent as part of the URL. In the page load of QueryStrings2.aspx we use Request.QueryString to read the values. As we are sending more than one query string we use the & symbol to seperate query strings. //Code to send query strings FName and LName as part of the URL QueryStrings2.aspx?FName=David&LName=Boon protected void Page_Load(object sender, EventArgs e) { //Code to read Query String values string FirstName = Request.QueryString["FName"]; string LastName = Request.QueryString["LName"]; Response.Write("Data from QueryStrings1.aspx : " + FirstName + ", " + LastName); }

0 comments:

Popular Posts