|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Form Post Back in ASP.Net 1.1I have a hyperlink in my page - webform1.aspx on click of this i want it to post back to the second page -webform2.aspx. is this possible in ASP.Net 1.1. if so how can i go about it. I tried to use a javascript function for this function dopostback() { document.Form1.hdnpostback.value="hhhhh"; document.Form1.method = "Post"; document.Form1.action="webform2.aspx"; document.Form1.submit(); } but it was not working. thanx in advance -- S.Sundararajan Why don't you use just
response.redirect("webform2.aspx"); ? This makes more sense when you want to move to second page or even better place <a href="webform2.aspx">Link Name</a> where you want the link in HTML code Regards Galin Iliev Show quoteHide quote "Sundararajan" <sundarara***@discussions.microsoft.com> wrote in message news:C4DBB23A-5B47-4A9B-8B61-5F0F21E0CE53@microsoft.com... > Dear Folks, > > I have a hyperlink in my page - webform1.aspx > on click of this i want it to post back to the second page -webform2.aspx. > is this possible in ASP.Net 1.1. if so how can i go about it. > I tried to use a javascript function for this > > function dopostback() > { > > document.Form1.hdnpostback.value="hhhhh"; > document.Form1.method = "Post"; > document.Form1.action="webform2.aspx"; > document.Form1.submit(); > } > > but it was not working. > > thanx in advance > -- > S.Sundararajan hi sundar,
please do not post the same question in multiple forums, if u want to post pls cross post you queries, just a request, so that its easy for people to track the responses. It happened to me that i was searching for the reply i wrote, and finally found it in another group. regds Kannan.V Show quoteHide quote "Galin Iliev" wrote: > Why don't you use just > response.redirect("webform2.aspx"); > > ? > > This makes more sense when you want to move to second page > or even better > place <a href="webform2.aspx">Link Name</a> where you want the link in HTML > code > > Regards > Galin Iliev > > > "Sundararajan" <sundarara***@discussions.microsoft.com> wrote in message > news:C4DBB23A-5B47-4A9B-8B61-5F0F21E0CE53@microsoft.com... > > Dear Folks, > > > > I have a hyperlink in my page - webform1.aspx > > on click of this i want it to post back to the second page -webform2.aspx. > > is this possible in ASP.Net 1.1. if so how can i go about it. > > I tried to use a javascript function for this > > > > function dopostback() > > { > > > > document.Form1.hdnpostback.value="hhhhh"; > > document.Form1.method = "Post"; > > document.Form1.action="webform2.aspx"; > > document.Form1.submit(); > > } > > > > but it was not working. > > > > thanx in advance > > -- > > S.Sundararajan > > >
Datalist and LoadTemplate
Weird "defined in multiple places" error DropDownList with default values Referencing to .ascx Gridview OnPageIndexChanging not firing in beta 2 How do I set the value of a checkbox on my repeater control? ASP.NET project and Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Losing selectedIndex on Control inherted from ListBox during postback Enabled / Disabled my control textbox onfocus event |
|||||||||||||||||||||||