J
jobs
asp.net 2.0.
I've got a web form when focused on a certain textboxes and i hit
enter, I want the page to postback to a particular event where I can
test textbox values.
I've tried a hidden default button with an event tied to it.. did not
work.
I've tried setting useSubmitBehavior on the button.
<form defaultfocus="TextBox_Search1" defaultbutton="Submit"
id="form1" runat="server">
<asp:TextBox ID="TextBox_Search1" runat="server" Width="214px"></
asp:TextBox>
<asp:Button ID="Submit" UseSubmitBehavior="True" Visible="False"
runat="server" Text="Button" />
Protected Sub Submit_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Submit.Click
If TextBox_Search1.Text <> "" Then
TitleSearch()
End If
End Sub
I've tried settign autopostpack on the textboxes, but then it post
when any change is made to the textbox and I tab around.
Thanks for any help or information.
I've got a web form when focused on a certain textboxes and i hit
enter, I want the page to postback to a particular event where I can
test textbox values.
I've tried a hidden default button with an event tied to it.. did not
work.
I've tried setting useSubmitBehavior on the button.
<form defaultfocus="TextBox_Search1" defaultbutton="Submit"
id="form1" runat="server">
<asp:TextBox ID="TextBox_Search1" runat="server" Width="214px"></
asp:TextBox>
<asp:Button ID="Submit" UseSubmitBehavior="True" Visible="False"
runat="server" Text="Button" />
Protected Sub Submit_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Submit.Click
If TextBox_Search1.Text <> "" Then
TitleSearch()
End If
End Sub
I've tried settign autopostpack on the textboxes, but then it post
when any change is made to the textbox and I tab around.
Thanks for any help or information.