please reply me
-
I used the following code to redirect from current page is this correct? I don't want to write a javascript function for this one line, instead of i wish to redirect using this method.can i do? imgbtnUserIcon.Attributes.Add("onclick", "javascript:window.location.href('memberactiveprofile.aspx')");
-
I used the following code to redirect from current page is this correct? I don't want to write a javascript function for this one line, instead of i wish to redirect using this method.can i do? imgbtnUserIcon.Attributes.Add("onclick", "javascript:window.location.href('memberactiveprofile.aspx')");
-
I used the following code to redirect from current page is this correct? I don't want to write a javascript function for this one line, instead of i wish to redirect using this method.can i do? imgbtnUserIcon.Attributes.Add("onclick", "javascript:window.location.href('memberactiveprofile.aspx')");
amarnath n.n wrote:
Subject:Please reply me
This should not be the subject. It should be your query.
amarnath n.n wrote:
I don't want to write a javascript function for this one line, instead of i wish to redirect using this method.can i do?
Is it server side control ? if yes, then OnClick Event use
Response.Redirect()
; to navigate .Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article
-
I used the following code to redirect from current page is this correct? I don't want to write a javascript function for this one line, instead of i wish to redirect using this method.can i do? imgbtnUserIcon.Attributes.Add("onclick", "javascript:window.location.href('memberactiveprofile.aspx')");
First, before posting again please read How to get an answer to your question at the top of this forum. If you want to do it client-side then
mgbtnUserIcon.Attributes.Add("onclick", "javascript:window.location.href='memberactiveprofile.aspx'");
window.location.href is a property, not a method;
only two letters away from being an asset