Ask a Question related to ASP.NET General, Design and Development.
-
Kathy Burke #1
MVP is this a BUG? Adding button element corrupts textbox event!!!
Hi, I posted earlier about my textbox textchanged event no longer
firing. I've found the cause but NOT the reason.
On a fairly simple aspx form, I added an html button to fire a
client-side script of open.window. As soon as this was added, the
textchanged of my textbox no longer fires. I checked that the Handles
part of the sub statement is still there.
EVEN WHEN I DELETE THE NEW BUTTON, the problem remains. I see no code
changes but must revert to a backup to restore the event.
PLEASE HELP...this is serious problem for me.
Thanks.
Kathy
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Kathy Burke Guest
-
adding click event to dynamically created button
Hi i have created a button using createObject and want to add click event and on click event want to call a function but its not working. The... -
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.... -
Access the FooterTemplates TextBox control on the Button Click Event
Hello, I have the following code in the .aspx file <asp:TemplateColumn HeaderText=" FG Name"> <HeaderStyle ForeColor="White"></HeaderStyle>... -
Adding attributes to xml root element.
Namaskara! Can anybody suggest a simple way to add or remove an attribute to the root element in an xml file ? -
VERY STRANGE BUG? Adding a textbox control causes other textbox control to fail???
I've had this happen a few times too. I'm still not positive of what exactly causes it but all that's happening is the control that no longer... -
Ravikanth[MVP] #2
MVP is this a BUG? Adding button element corrupts textbox event!!!
Hi
Use the AutoPostBack property to specify whether an
automatic postback to the server will occur whenever the
user modifies the text in the TextBox control and then
tabs out of the control.
Note:Postback only occurs when the text box loses focus
after the contents are changed.
HTH
Ravikanth
no longer>-----Original Message-----
>Hi, I posted earlier about my textbox textchanged eventfire a>firing. I've found the cause but NOT the reason.
>
>On a fairly simple aspx form, I added an html button toadded, the>client-side script of open.window. As soon as this wasthat the Handles>textchanged of my textbox no longer fires. I checkedI see no code>part of the sub statement is still there.
>
>EVEN WHEN I DELETE THE NEW BUTTON, the problem remains.***>changes but must revert to a backup to restore the event.
>
>PLEASE HELP...this is serious problem for me.
>
>Thanks.
>
>Kathy
>
>*** Sent via Developersdex [url]http://www.developersdex.com[/url]>Don't just participate in USENET...get rewarded for it!
>.
>Ravikanth[MVP] Guest
-
Kathy Burke #3
Re: MVP is this a BUG? Adding button element corrupts textbox event!!!
Thanks for responding...but the autopostback isn't the problem. The
textbox event worked FINE (fired on user hitting <Enter>) until I added
a button control and set the onclick to be an open.window script. I
still need an answer...help!
Kathy
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Kathy Burke Guest
-
Kathy Burke #4
Re: MVP is this a BUG? Adding button element corrupts textbox event!!!
After several hours of hair pulling, finally got it working. It was a
combination of things. It would only work if I did NOT use an inline
script in the html button. In the end, for those new users who may have
a similar problem, I did the following:
(1) Added the onclick script in the <head> of the html.
(2) Used an asp:button (vs. html) and put the following code in the page
load sub (if not postback):
buttonname.attributes.add("onclick", "name_of_script();return false;")
the return false will remove/disable the "submit" function that asp.net
adds in runtime.
Kathy
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Kathy Burke Guest



Reply With Quote

