szabelin
re: asp:buttion , history.back
Thank you Vidar.
Sergey
[color=blue]
>-----Original Message-----
>
>NavBack.Attributes.Add("onclick","history.back( ); return[/color]
false");[color=blue]
>
>--
>Best Regards
> Vidar Petursson
> ==============================
>Microsoft Internet Client & Controls MVP
> ==============================
>"szabelin" <sergey_zabelin@countrywide.com> wrote in[/color]
message[color=blue]
>news:02a201c344c5$19815be0$a501280a@phx.gbl...[color=green]
>>
>>
>> I tried this already - it doesn't work for me. A button
>> click causes postback to server. Is there a way to[/color][/color]
cancel[color=blue][color=green]
>> postback? Here is my script code:
>>
>> <asp:Button CssClass="AllButtons"[/color][/color]
CausesValidation="False"[color=blue][color=green]
>> 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
>>
>>
>>
>>[color=darkred]
>> >-----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[/color]
>> message[color=darkred]
>> >news:046b01c344ba$b6012500$a101280a@phx.gbl...
>> >> Hello,
>> >>
>> >> how do I do history back when asp:button is clicked?[/color][/color][/color]
I[color=blue][color=green][color=darkred]
>> >> can't use <input button> - I have to use asp:button.
>> >>
>> >>
>> >> Thanks!
>> >
>> >
>> >.
>> >[/color][/color]
>
>
>.
>[/color] |