not with a webform. as you found out, setting the postbackurl, just adds
javascript to the button. you have two options
1) the approach you found, do not put a runat=server on the form.
2) switch to the new MVC handler instead of using webforms. this gets around
all the limitations of web forms and is probably better suited to someone who
knows web technologies. if you want to go in an ajax direction, then I'd
really recommend the switch. the main downside is that MVC is still in beta.
-- bruce (sqlwork.com)
"musosdev" wrote:
Hi peeps
I'm trying to change the default postback of my webpage. I'm trying to
create a searchbox where you can just press enter and it goes to the search
results (ala apple.com *ahem* :o)
However, the page just postsback to itself when I hit enter.
Is there any way to change the default postback behaviour for a page?! I'm
using .net 3.5
Thanks,
Dan