Ask a Question related to ASP.NET General, Design and Development.
-
Bob Erwin #1
Check for button click in page load...
Hey,
I have an interesting problem that I need some assistance for...
It is my understanding that when you click a button on an ASP.NET page, it
will actually run the page load first and then run my button procedure. Is
there a way, that I can check to see if the button was clicked in the *page
load* before the code ever gets to my button procedure?
Mainly, I have some dynamic textboxes that I need to reset if a person
selects a radiolist, however, if they select the submit button, I don't want
to reset the textboxes.
Thanks for your help,
Bob
Bob Erwin Guest
-
Would like to load a datagrid already in edit mode instead of having the user click the edit button
Now my asp.net datagrid shows an edit button and clicking it puts the datagrid in edit mode. I would like to: 1) possilby load the page already... -
WWW::Mechanize click($button) not finding right button to click
Based on wise advice from participants of this forum, I rewrote my web automation script using WWW::Mechanize. The script now successfully logs... -
PHP check click
I have a page and a sponsor. Every time a user click on a banner from our sponsor their webpage is opened. I'd like to reward these users, but how... -
Button.Init? how Do I know if click event has been fired? TextBox.TextChanged event before Button.Click in a CompositeCustomControl.
Hello I have the following situation: (everything is dynamic (controls.add)) 1. Button.Init { WasButtonClickFired = true } 2.... -
after logout, how to retrieve an expired page if user click 'back' button?
hi everyone, i've made a login and logout page, after user have logout, i want to retrieve an expired page if user click the 'back' button to... -
Natty Gur #2
Re: Check for button click in page load...
Hi,
1) If you look at the Form.Keys collection you will found only the
Button ID
that cause the postback.
2) RaisePostBackEvent is a method that you need to overload :
override protected void RaisePostBackEvent ( IPostBackEventHandler
sourceControl,
string eventArgument)
{
string s ((WebControl)sourceControl).ID ;
}
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377
Know the overall picture
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Natty Gur Guest



Reply With Quote

