Click here to Skip to main content
15,907,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone,

I Have a web page.I use some graphs from a site the code is

C#
<form  onsubmit="document.getElementById('infominegraph').src='http://www.abc.com/ChartsAndData/GraphEngine.ashx?gf='+this.c.value+'.'+this.x.value.toUpperCase()+'.'+this.u.value+'&z=f&dr='+this.r.value; return false;">


but when i click the button page is refersh before page load ..if i use <form></form>
before this Code it works in all browser but with IE creat some problem how i resolve this? i use this with master page.....

c,u,x,r all the drop down list....

Thanks
Posted
Updated 6-Jun-13 20:23pm
v4
Comments
Thanks7872 7-Jun-13 2:23am    
page refersh before page load?
Prasad Khandekar 7-Jun-13 2:49am    
What problem are you getting with IE?
ErBhati 7-Jun-13 5:37am    
khandekar sir,
IE open two form in content place holder

On page load event handle IsPostBack
i.e
C#
protected void Page_Load(object sender, EventArgs e)
       {
           if (!IsPostBack)
           {
//Do your initial page load stuff
}
else
{
//Do stuff that involves a post back
// That is what happens when you click the button
}
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900