Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > PLEASE -- I'm in asp:button hell...tried everything I've read...why does it DO this?

Thread Tools

PLEASE -- I'm in asp:button hell...tried everything I've read...why does it DO this?

Posts: n/a
Further to my earlier message tonight, here is more info on my button

I have two controls: a button and a textbox.

This code for the button is in the page load (if not postback):

btnList.Attributes.Add("onclick", "pop_window();return false;")

it runs a simple script in <script> tags within the <head> of the

The textbox has a textchanged event, and IS set for AutoPostBack.

If I try to use an html button vs an asp:button, it disables my
textchanged event even though it is set to autopostback.

As is, when I enter something in the textbox and hit enter, it does
operate correctly, but at the same time, it runs the script for the

PLEASE someone tell me how to fix it so the textbox works but the
button only runs IF a press it.

I've spent days on this...and have tried to read everything and tried
examples, examples, examples, nothing is working right.

Thanks, Kathy
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Not Quite Everything for a Theory of Everything fitz VOIP 0 02-28-2010 04:42 PM
Browser won't work - everything else does - help please! Edward Bird Computer Support 15 07-29-2006 02:53 PM
Does photoshop Elements 3 do everything that Photoshop does? Brian Digital Photography 5 08-29-2005 08:34 PM
Does NetFlix get everything? Bob D. DVD Video 5 12-21-2004 04:25 AM
set focus to textbox after click event- tried everything please please help! JC ASP .Net 4 07-07-2004 11:18 PM