0

I have these two text boxes on the same row, "txtbroker" and "txtacct1". I'm trying to make it so that if text is entered into the 1st text box, the 2nd one is REQUIRED.

<td><tnc:TextBox  id="txtbroker" savestatecontroltotarget="SSMainBusinessSave" columns="50" runat="server" /></td>

<td><tnc:TextBox id="txtacct1" savestatecontroltotarget="SSMainBusinessSave"  columns="25" runat="server" /></td>

Can anyone help please?

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by reach_yousuf
0

Hi there,

do the following
1) set the property of txtbroker : autopostback = true
2)in code behind, on the txtbroker_Textchanged Event add the code below

if txtacct1.text.length = 0 then
'show message: enter some data in txtacct1...
end if

Mark as solved if it helps !!!

I have these two text boxes on the same row, "txtbroker" and "txtacct1". I'm trying to make it so that if text is entered into the 1st text box, the 2nd one is REQUIRED.

<td><tnc:TextBox  id="txtbroker" savestatecontroltotarget="SSMainBusinessSave" columns="50" runat="server" /></td>

<td><tnc:TextBox id="txtacct1" savestatecontroltotarget="SSMainBusinessSave"  columns="25" runat="server" /></td>

Can anyone help please?

Edited by reach_yousuf: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.