transfer input value to another page
-
how can transfer inputed on another page
sanjeev
-
how can transfer inputed on another page
sanjeev
1. You can transfer by passing them as a parameters.. For example: http://yourdomain.com?input1=1&input2=2 2. You can store your data in Session object or Cache and retrieve them from other page.. 3. if your data is so small, you can store it in cookies. 3. If you are using the silverlight, you can use the managed stroage that has more capacities than cookies. (I think 1 M or something)
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
-
how can transfer inputed on another page
sanjeev
You can use cookies, session variables, form values, just to name a few...
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
-
how can transfer inputed on another page
sanjeev
Just to submit values from one page to another DON’T USE cookies, session, or cache, these items will occupy your server memory. Assume if 1000 users logged in to your application, then your IIS will be very slow. Use the EnableViewStateMac="false" page directive to the target page, which will allow you to get the values from the submitted page. Bellow is the sample code, I am send values from default2.aspx to default3.aspx Default2.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server" **onsubmit="this.action='default3.aspx'**"> <div> <input type="text" name="input1" /> <input type="submit" value="submit" /> </div> </form> </body> </html>
Default3.aspx<%@ Page Language="C#" **EnableViewStateMac="false"** AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <%Response.Write(Request["input1"]); %> </div> </form> </body> </html>
Manikandan.net [Coding is life]
-
how can transfer inputed on another page
sanjeev
use session
-
use session
how can store in sassion and call on next page to this session any detail thanks in advance
sanjeev