As Kannan has rightly mentioned, if u want navigate to the second page, you
can use server.transfer or Response.Redirect. But, if you want to persist and
use the values of the controls that are on the first Web page, you can use
Server.Transfer. In the Server.Transfer method, you have the PreserveForm
parameter. If you set this parameter to true, you can save the values of the
controls on the first Web page as name value pairs in a collection.
[quoted text, click to view] "Kannan.V [MCSD.net]" wrote:
> hi sundar,
>
> Are you trying to navigate to the second page on click of the hyperlink
> button?
> if yes just use the server.transfer or the response.redirect on the click
> event of the hyperlink button.
>
> regds
> Kannan.V
>
> "Sundararajan" wrote:
>
> > 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
> > --
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
[quoted text, click to view] "Sundararajan" wrote:
> 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
> --
Remember to use a Link Button instead of a regular HTML <a href.. The link
button default behavior is a postback and you can capture the click event
and then do your server re-direction in there.
--
TDAVISJR
aka - Tampa.NET Koder
[quoted text, click to view] "Sundararajan" <sundararajan@discussions.microsoft.com> wrote in message
news:95A097EA-CBE9-4366-B69D-0998217A114B@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
Don't see what you're looking for? Try a search.