Click here to Skip to main content
15,911,039 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to avoid server side validation on client side click event? Pin
N a v a n e e t h16-Jan-08 3:12
N a v a n e e t h16-Jan-08 3:12 
QuestionPrinting values in subreport [modified] Pin
tonymathewt16-Jan-08 2:14
professionaltonymathewt16-Jan-08 2:14 
QuestionASP.NET performance problem Pin
Paul Horstink16-Jan-08 1:48
Paul Horstink16-Jan-08 1:48 
GeneralRe: ASP.NET performance problem Pin
N a v a n e e t h16-Jan-08 2:22
N a v a n e e t h16-Jan-08 2:22 
QuestionFileUpload Pin
yazali16-Jan-08 1:25
yazali16-Jan-08 1:25 
GeneralRe: FileUpload Pin
Vasudevan Deepak Kumar16-Jan-08 3:04
Vasudevan Deepak Kumar16-Jan-08 3:04 
GeneralRe: FileUpload Pin
Declan Bright16-Jan-08 3:49
Declan Bright16-Jan-08 3:49 
Questionasp.net application C# with asp.net C# web application Pin
aminowest16-Jan-08 1:18
aminowest16-Jan-08 1:18 
I have a an asp.net web application with C# page that sends username and password to an asp.net web application with C# but different application. I need to pass these data to the asp.net we bapplication but without using the Response.Redirect method. I tried to use the HttpWepRequest and HttpWebResponse ways.I use the following code in the source page:
string strId = "1";
string strName = "amino";
//string result ="";
ASCIIEncoding encoding = new ASCIIEncoding();
string postData = "userid=" + strId;
postData += ("&username=" + strName);
byte[] data = encoding.GetBytes(postData);

// Prepare web request...
HttpWebRequest myRequest =
(HttpWebRequest)WebRequest.Create("http://localhost:1644/TragetApp/Default.aspx");
myRequest.Method = "POST";
myRequest.ContentType = "application/x-www-form-urlencoded";
myRequest.ContentLength = data.Length;
myRequest.AllowAutoRedirect = false;

Stream newStream = myRequest.GetRequestStream();
// Send the data.
newStream.Write(data, 0, data.Length);
newStream.Close();
//Response.End();

//prepare response
Stream receiveStream;
HttpWebResponse myWebResp = (HttpWebResponse)(myRequest.GetResponse());
receiveStream = myWebResp.GetResponseStream();
//result = sr.ReadToEnd();
receiveStream.Close();

in the page_load of the target page i do the following to c the username:
protected void Page_Load(object sender, EventArgs e)
{
Label1.Text = Request["username"].ToString();//.QueryString["name"].ToString();
Response.Output.WriteLine(Request["username"].ToString());
}

I put a break poit in the page_load of the target page. The username is sent correctly to the target page but after i continue running i found that the displayed page is the source page.
I need to stop at the target page after receiving the username.
What can i do?
Questiondatagrid in asp.net Pin
Harikrk16-Jan-08 0:19
Harikrk16-Jan-08 0:19 
GeneralRe: datagrid in asp.net Pin
Abhijit Jana16-Jan-08 1:20
professionalAbhijit Jana16-Jan-08 1:20 
GeneralRe: datagrid in asp.net Pin
kiran.puchakayala16-Jan-08 1:36
kiran.puchakayala16-Jan-08 1:36 
GeneralRe: datagrid in asp.net Pin
N a v a n e e t h16-Jan-08 2:25
N a v a n e e t h16-Jan-08 2:25 
GeneralRe: datagrid in asp.net Pin
Harikrk16-Jan-08 3:20
Harikrk16-Jan-08 3:20 
Generalgrid view checkbox Pin
kiran.puchakayala16-Jan-08 0:12
kiran.puchakayala16-Jan-08 0:12 
GeneralRe: grid view checkbox Pin
Not Active16-Jan-08 1:26
mentorNot Active16-Jan-08 1:26 
GeneralCurrency display in report field Pin
macca2415-Jan-08 23:12
macca2415-Jan-08 23:12 
GeneralRe: Currency display in report field Pin
Shajeel16-Jan-08 0:43
Shajeel16-Jan-08 0:43 
Generalonmouseover imagebutton Pin
eyeseetee15-Jan-08 22:46
eyeseetee15-Jan-08 22:46 
GeneralRe: onmouseover imagebutton [modified] Pin
Declan Bright16-Jan-08 0:10
Declan Bright16-Jan-08 0:10 
QuestionE-Mail Creation Pin
georgegarvasis15-Jan-08 22:42
georgegarvasis15-Jan-08 22:42 
GeneralRe: E-Mail Creation Pin
N a v a n e e t h15-Jan-08 23:13
N a v a n e e t h15-Jan-08 23:13 
GeneralRe: E-Mail Creation Pin
Vasudevan Deepak Kumar16-Jan-08 0:13
Vasudevan Deepak Kumar16-Jan-08 0:13 
GeneralSaving the word document at the server Pin
honeyss15-Jan-08 22:33
honeyss15-Jan-08 22:33 
GeneralGridview advice Pin
Mycroft Holmes15-Jan-08 21:58
professionalMycroft Holmes15-Jan-08 21:58 
GeneralRe: Gridview advice - Response to question 1 Pin
Declan Bright15-Jan-08 22:25
Declan Bright15-Jan-08 22:25 

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.