Click here to Skip to main content
15,893,814 members
Home / Discussions / Web Development
   

Web Development

 
QuestionGetting an Array from a Web Server? Pin
gunner_uk200022-Dec-07 6:59
gunner_uk200022-Dec-07 6:59 
AnswerRe: Getting an Array from a Web Server? Pin
Paul Conrad23-Dec-07 14:42
professionalPaul Conrad23-Dec-07 14:42 
QuestionSetting the Date/Time on the server hosting my web service Pin
Skippums21-Dec-07 5:09
Skippums21-Dec-07 5:09 
GeneralRe: Setting the Date/Time on the server hosting my web service Pin
Dave Kreskowiak21-Dec-07 8:34
mveDave Kreskowiak21-Dec-07 8:34 
Questiontransfer input value to another page Pin
idsanjeevjha20-Dec-07 22:09
idsanjeevjha20-Dec-07 22:09 
GeneralRe: transfer input value to another page Pin
Michael Sync21-Dec-07 21:03
Michael Sync21-Dec-07 21:03 
GeneralRe: transfer input value to another page Pin
Paul Conrad23-Dec-07 14:43
professionalPaul Conrad23-Dec-07 14:43 
GeneralRe: transfer input value to another page Pin
Manikandan.net25-Dec-07 19:38
Manikandan.net25-Dec-07 19:38 
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
<br />
<%@ Page Language="C#"  AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %><br />
<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<br />
<html xmlns="http://www.w3.org/1999/xhtml" ><br />
<head runat="server"><br />
    <title>Untitled Page</title><br />
</head><br />
<body><br />
    <form id="form1" runat="server" onsubmit="this.action='default3.aspx'"><br />
    <div><br />
    <input type="text" name="input1" /><br />
    <input type="submit" value="submit" /><br />
    </div><br />
    </form><br />
</body><br />
</html><br />

Default3.aspx
<%@ Page Language="C#"  EnableViewStateMac="false"   AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %><br />
<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<br />
<html xmlns="http://www.w3.org/1999/xhtml" ><br />
<head runat="server"><br />
    <title>Untitled Page</title><br />
</head><br />
<body><br />
    <form id="form1" runat="server"><br />
    <div><br />
    <%Response.Write(Request["input1"]); %><br />
    </div><br />
    </form><br />
</body><br />
</html><br />


Manikandan.net
[Coding is life]

GeneralRe: transfer input value to another page Pin
arunkumarv28-Dec-07 23:29
arunkumarv28-Dec-07 23:29 
GeneralRe: transfer input value to another page Pin
idsanjeevjha28-Dec-07 23:59
idsanjeevjha28-Dec-07 23:59 
GeneralSides not loading in IE7 Pin
Brendan Vogt20-Dec-07 4:47
Brendan Vogt20-Dec-07 4:47 
GeneralRe: Sides not loading in IE7 Pin
Guffa23-Dec-07 4:26
Guffa23-Dec-07 4:26 
Questionstore value from table [modified] Pin
idsanjeevjha20-Dec-07 0:22
idsanjeevjha20-Dec-07 0:22 
GeneralRe: store value from table Pin
Dave Sexton20-Dec-07 10:06
Dave Sexton20-Dec-07 10:06 
GeneralRe: store value from table Pin
idsanjeevjha20-Dec-07 21:43
idsanjeevjha20-Dec-07 21:43 
GeneralUsing different fonts for Firefox Pin
Christian Graus20-Dec-07 0:20
protectorChristian Graus20-Dec-07 0:20 
AnswerRe: Using different fonts for Firefox Pin
Ujjaval Modi20-Dec-07 1:20
Ujjaval Modi20-Dec-07 1:20 
GeneralRe: Using different fonts for Firefox Pin
Paddy Boyd20-Dec-07 2:51
Paddy Boyd20-Dec-07 2:51 
GeneralRe: Using different fonts for Firefox Pin
Christian Graus20-Dec-07 9:57
protectorChristian Graus20-Dec-07 9:57 
QuestionCentering a <ul></ul> not working Pin
Brendan Vogt19-Dec-07 23:46
Brendan Vogt19-Dec-07 23:46 
GeneralTextboxes not having Autocomplete feature Pin
mgr_2k719-Dec-07 18:47
mgr_2k719-Dec-07 18:47 
GeneralRe: Textboxes not having Autocomplete feature Pin
Hesbon Ongira21-Dec-07 7:30
Hesbon Ongira21-Dec-07 7:30 
GeneralRe: Textboxes not having Autocomplete feature Pin
mgr_2k723-Dec-07 17:04
mgr_2k723-Dec-07 17:04 
GeneralRedirect to a page then close window Pin
Armando Ramirez19-Dec-07 8:58
Armando Ramirez19-Dec-07 8:58 
GeneralRe: Redirect to a page then close window Pin
Christian Graus19-Dec-07 12:51
protectorChristian Graus19-Dec-07 12:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.