__doPostBack not working in chrome and safari

Montoyafan

New Member
__doPostBack() function works in FF and IE,but not working in safari and chrome.I have following code in my asp.net c# applicationASPX Code\[code\]<a href="http://stackoverflow.com/questions/11099109/www.myAddress.com/abcdef.html" onclick="javascript:SetPosition(); ">Click here</a>\[/code\]JS Function\[code\]function SetPosition() { __doPostBack('ahref', 'link');}\[/code\]CS Code\[code\]protected void Page_Load(object sender, EventArgs e){ if (!IsPostBack) { // Other code is here } else if (Request.Params["__EVENTARGUMENT"] != null && Convert.ToString(Request.Params["__EVENTARGUMENT"]).Trim() == "link") { Session["TopPossition"] = "9999"; }}\[/code\]
 
Top