Form Post Back in ASP.Net 1.1

Discussion in 'ASP .Net Web Controls' started by Sundararajan, Apr 25, 2005.

  1. Sundararajan

    Sundararajan Guest

    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
     
    Sundararajan, Apr 25, 2005
    #1
    1. Advertisements

  2. Sundararajan

    Galin Iliev Guest

    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" <> wrote in message
    news:...
    > 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
     
    Galin Iliev, Apr 25, 2005
    #2
    1. Advertisements

  3. 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

    "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" <> wrote in message
    > news:...
    > > 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

    >
    >
    >
     
    Kannan.V [MCSD.net], Apr 25, 2005
    #3
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joby
    Replies:
    0
    Views:
    1,817
  2. Hellp

    Post non-asp form to ASP.net Page

    Hellp, Sep 8, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    572
  3. Hellp

    Post non-asp form to asp.net page

    Hellp, Sep 9, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    453
    Curt_C [MVP]
    Sep 9, 2004
  4. Keshav Gadia
    Replies:
    2
    Views:
    751
    Keshav Gadia
    Sep 13, 2004
  5. Ghafran Abbas
    Replies:
    0
    Views:
    4,543
    Ghafran Abbas
    Oct 12, 2004
  6. =?Utf-8?B?U3VuZGFyYXJhamFu?=

    Form post back in ASP.Net 1.1

    =?Utf-8?B?U3VuZGFyYXJhamFu?=, Apr 25, 2005, in forum: ASP .Net
    Replies:
    6
    Views:
    5,165
    =?Utf-8?B?S2FubmFuLlYgW01DU0QubmV0XQ==?=
    Apr 25, 2005
  7. =?Utf-8?B?Z29yaWxsYQ==?=
    Replies:
    1
    Views:
    984
    Masudur
    May 25, 2007
  8. Don Glover the younger

    ASP, FORMS, POST METHOD And Post with out form(???)

    Don Glover the younger, Jul 13, 2003, in forum: ASP General
    Replies:
    0
    Views:
    649
    Don Glover the younger
    Jul 13, 2003
Loading...