back button + asp.net 2.0
-
i have a button for going back on page. it is not working . this.btnBack.Attributes.Add("OnClick","javascript:history.back();"); or with this.btnBack.Attributes.Add("OnClick","javascript:history.go(-1);"); help me . thanks in advance
In what way is it not working?
-
In what way is it not working?
-
i have a button for going back on page. it is not working . this.btnBack.Attributes.Add("OnClick","javascript:history.back();"); or with this.btnBack.Attributes.Add("OnClick","javascript:history.go(-1);"); help me . thanks in advance
hi, You can write the code like this Button1.Attributes("onclick") = "javascript:history.go(-1);" or you can use this in HTML or you can use link like set href="javascript:history.go(-1);" [Back](javascript:history.go(-1);) -- modified at 8:22 Thursday 5th April, 2007