Hassan_Ghanem
asked on
submit a form to another web page using ASP.NET
Hello every body..
I am learning ASP.NET these days..
when I was reading ASP.NET I noted that all examples submit a postback form.. I want to know how can I submit a form to another web page?
and Thanks in advance...
(Hassan Ghanem)
I am learning ASP.NET these days..
when I was reading ASP.NET I noted that all examples submit a postback form.. I want to know how can I submit a form to another web page?
and Thanks in advance...
(Hassan Ghanem)
Theoretically, yes. Though ASP.NET is really designed to post back. When you post to another page you lose a lot of the power of the ASP.NET development model including the ability to easily refer to controls on the page as objects.
This is definitely a change from the classic ASP model, but you'll probably find development in ASP.NET easier if you follow the post back model. If you need to move to another page on a submit, you can use Server.Transfer or Response.Redirect to move to the proper page.
This is definitely a change from the classic ASP model, but you'll probably find development in ASP.NET easier if you follow the post back model. If you need to move to another page on a submit, you can use Server.Transfer or Response.Redirect to move to the proper page.
If you use Server.Transfer you "redirect" the Request Collection to the new page and ends the execution of current page
The Response.Redirect works like in the pure ASP so it just redirect you nothing else
B..M
The Response.Redirect works like in the pure ASP so it just redirect you nothing else
B..M
Check out:
http://www.codeproject.com/aspnet/CHtmlForm.asp
Very cool method of providing an action attribute that posts to another site.
Good Luck,
Steve
http://www.codeproject.com/aspnet/CHtmlForm.asp
Very cool method of providing an action attribute that posts to another site.
Good Luck,
Steve
try here..
http://www.stardeveloper.com/articles/display.html?article=2003061901&page=1
http://www.codeproject.com/aspnet/jsnopostback.asp?df=100&forumid=15850&exp=0&select=587336
http://www.quepublishing.com/articles/article.asp?p=28493
More details at http://www.texaswebdevelopers.com/examples/index.asp
R.K
http://www.stardeveloper.com/articles/display.html?article=2003061901&page=1
http://www.codeproject.com/aspnet/jsnopostback.asp?df=100&forumid=15850&exp=0&select=587336
http://www.quepublishing.com/articles/article.asp?p=28493
More details at http://www.texaswebdevelopers.com/examples/index.asp
R.K
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I have moved this to the ASP.NET topic area where I think you will have a better chance of getting a solution.
COBOLdinosaur
Page Editor, Web Development