asp:buttion , history.back

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default asp:buttion , history.back

    Hello,

    how do I do history back when asp:button is clicked? I
    can't use <input button> - I have to use asp:button.


    Thanks!
    szabelin Guest

  2. Similar Questions and Discussions

    1. history.back not working
      hi All In my appliction history.Back is working at my local host and woring properly but when i upload the apllication and run my appliction from...
    2. History.Back not working from web
      hi All In my appliction history.Back is working at my local host and woring properly but when i upload the apllication and run my appliction from...
    3. History.back...problem
      default.php has some links. One points to login.php login.php is a form. Pushing OK will redirect to ManageProfile.php. I've this code in...
    4. history.back in lingo??
      Hey guys im new to director, Becus i need to create a simple button who functions like a button in html wif a history.back method ot going back to...
    5. Help - history.back in php?
      Hi, Is there anything like javascipts history.back() function in php? So that I could return the visitor to the last page they visited. Thanks,...
  3. #2

    Default Re: asp:buttion , history.back

    Hi

    myButton.Attributes.Add("onclick","history.back()" );

    --
    Best Regards
    Vidar Petursson
    ==============================
    Microsoft Internet Client & Controls MVP
    ==============================
    "szabelin" <sergey_zabelin@countrywide.com> wrote in message
    news:046b01c344ba$b6012500$a101280a@phx.gbl...
    > Hello,
    >
    > how do I do history back when asp:button is clicked? I
    > can't use <input button> - I have to use asp:button.
    >
    >
    > Thanks!

    Vidar Petursson Guest

  4. #3

    Default Re: asp:buttion , history.back



    I tried this already - it doesn't work for me. A button
    click causes postback to server. Is there a way to cancel
    postback? Here is my script code:

    <asp:Button CssClass="AllButtons" CausesValidation="False"
    Width="100px" Height="28px" Runat="server" Text="Back"
    ID="NavBack" Enabled="True"></asp:Button>


    and I added:
    NavBack.Attributes.Add("onclick","history.back()") ;
    in the Page_Load.....


    thanks
    Sergey



    >-----Original Message-----
    >Hi
    >
    >myButton.Attributes.Add("onclick","history.back() ");
    >
    >--
    >Best Regards
    > Vidar Petursson
    > ==============================
    >Microsoft Internet Client & Controls MVP
    > ==============================
    >"szabelin" <sergey_zabelin@countrywide.com> wrote in
    message
    >news:046b01c344ba$b6012500$a101280a@phx.gbl...
    >> Hello,
    >>
    >> how do I do history back when asp:button is clicked? I
    >> can't use <input button> - I have to use asp:button.
    >>
    >>
    >> Thanks!
    >
    >
    >.
    >
    szabelin Guest

  5. #4

    Default Re: asp:buttion , history.back


    NavBack.Attributes.Add("onclick","history.back(); return false");

    --
    Best Regards
    Vidar Petursson
    ==============================
    Microsoft Internet Client & Controls MVP
    ==============================
    "szabelin" <sergey_zabelin@countrywide.com> wrote in message
    news:02a201c344c5$19815be0$a501280a@phx.gbl...
    >
    >
    > I tried this already - it doesn't work for me. A button
    > click causes postback to server. Is there a way to cancel
    > postback? Here is my script code:
    >
    > <asp:Button CssClass="AllButtons" CausesValidation="False"
    > Width="100px" Height="28px" Runat="server" Text="Back"
    > ID="NavBack" Enabled="True"></asp:Button>
    >
    >
    > and I added:
    > NavBack.Attributes.Add("onclick","history.back()") ;
    > in the Page_Load.....
    >
    >
    > thanks
    > Sergey
    >
    >
    >
    >
    > >-----Original Message-----
    > >Hi
    > >
    > >myButton.Attributes.Add("onclick","history.back() ");
    > >
    > >--
    > >Best Regards
    > > Vidar Petursson
    > > ==============================
    > >Microsoft Internet Client & Controls MVP
    > > ==============================
    > >"szabelin" <sergey_zabelin@countrywide.com> wrote in
    > message
    > >news:046b01c344ba$b6012500$a101280a@phx.gbl...
    > >> Hello,
    > >>
    > >> how do I do history back when asp:button is clicked? I
    > >> can't use <input button> - I have to use asp:button.
    > >>
    > >>
    > >> Thanks!
    > >
    > >
    > >.
    > >

    Vidar Petursson Guest

  6. #5

    Default Re: asp:buttion , history.back


    Thank you Vidar.

    Sergey

    >-----Original Message-----
    >
    >NavBack.Attributes.Add("onclick","history.back( ); return
    false");
    >
    >--
    >Best Regards
    > Vidar Petursson
    > ==============================
    >Microsoft Internet Client & Controls MVP
    > ==============================
    >"szabelin" <sergey_zabelin@countrywide.com> wrote in
    message
    >news:02a201c344c5$19815be0$a501280a@phx.gbl...
    >>
    >>
    >> I tried this already - it doesn't work for me. A button
    >> click causes postback to server. Is there a way to
    cancel
    >> postback? Here is my script code:
    >>
    >> <asp:Button CssClass="AllButtons"
    CausesValidation="False"
    >> Width="100px" Height="28px" Runat="server" Text="Back"
    >> ID="NavBack" Enabled="True"></asp:Button>
    >>
    >>
    >> and I added:
    >> NavBack.Attributes.Add("onclick","history.back()") ;
    >> in the Page_Load.....
    >>
    >>
    >> thanks
    >> Sergey
    >>
    >>
    >>
    >>
    >> >-----Original Message-----
    >> >Hi
    >> >
    >> >myButton.Attributes.Add("onclick","history.back() ");
    >> >
    >> >--
    >> >Best Regards
    >> > Vidar Petursson
    >> > ==============================
    >> >Microsoft Internet Client & Controls MVP
    >> > ==============================
    >> >"szabelin" <sergey_zabelin@countrywide.com> wrote in
    >> message
    >> >news:046b01c344ba$b6012500$a101280a@phx.gbl...
    >> >> Hello,
    >> >>
    >> >> how do I do history back when asp:button is clicked?
    I
    >> >> can't use <input button> - I have to use asp:button.
    >> >>
    >> >>
    >> >> Thanks!
    >> >
    >> >
    >> >.
    >> >
    >
    >
    >.
    >
    szabelin Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139