Newbie to ASP.Net

  • Thread starter Thread starter Xarky
  • Start date Start date
X

Xarky

Hi,
I am using ASP.Net for the first time.

How foward user to another web page on a certain event?

Thanks in Advance
 
hi

Server.Transfer

or

Response.Redirect


cheers,
 
Server.Transfer
or

Response.Redirect
One will send request back to the client and instruct the browser to request
the new page (another round trip) and the other will just do it from the
server (no round trip back to the client). Pros/cons? The transfer won't
show you the new URL you/the user is being redirected to. The redirect will
mean another round trip to/from the client. Depends on your circumstance
which one is appropriate for you. Good luck.

Here's an article to read.
http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=15
 
Hi,

I have a simple login form with two html textboxes, for username and
password and a submit button.

Now in the html code, in the form tag I am including an action, the URL
where I want to submit my data.
<form id="Form1" method="post" runat="server" action="new url">

When I run and press the submit button, I am still remaining in the same
page. The only effect I am viewing is that the data being typed is
being cleared.

Can someone help me out. Sorry if this is a stupid question, but this
is my first application in ASP.

Thanks in Advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top