Ask a Question related to ASP.NET General, Design and Development.
-
Lupin3d #1
Events problem...
Hi...
i have an aspx page(home.aspx) that contains an ascx usercontrol
(chrt.ascx).
In home.aspx there is a button with his event...
In the ascx page i want to create an event for that button.... i do in
this way...
(home.aspx)
private void InitializeComponent()
{
this.button1.click += new System.EventHandler(this.button1_Click);
}
public static event EventHandler butt_click;
private void button1_Click(object sender, System.EventArgs e)
{
butt_click(this,e);
}
(chrt.ascx)
private void InitializeComponent()
{
home.butt_click += new System.EventHandler(this.butt1_click);
}
private void butt1_click(object sender, System.EventArgs e)
{
...... // code that calls a stored procedure
}
But....if i open Sql Profiler i see that when i click this button once
the stored procedure is called once...if i click another time the
stored procedure is called twice...and so on...after an intense use of
the site (the button was clicked ten times) the site become very slow
due the many calling to the stored procedure...
can u help in my trouble?
10nx a lot.
Lupin3d Guest
-
Problem with onMouseOver, onMouseOuot events attached toa DIV with Mozilla
HI, I am building a simple drop down menu. When hovering a link on the side of the page a DIV is displayed with sublinks option, this works fine,... -
binding and onChange events problem (lazy update)
Try and run this code, note that the text field at the bottom of the tree doesn't update until a node is clicked a second time... ... -
problem with event log missing events
how come some of my event logs are all empty? for instance, when i go to application event log, or system event log or directory service event... -
problem getting button events in window component
I can't figure out why this is not working. I basically need to hook up a function to a button that I have in a MovieClip attached to a Window... -
Problem With System Events Scripting--Can't "click at"
I'm trying to write a script for iTunes that skips a song to the end, thus allowing its play count to increment when it ends. I'm trying the...



Reply With Quote

