Click here to Skip to main content
15,891,423 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralDetecting ActiveX Control Pin
Dannyrod6-Dec-07 8:09
Dannyrod6-Dec-07 8:09 
GeneralRe: Detecting ActiveX Control Pin
Dannyrod10-Dec-07 2:47
Dannyrod10-Dec-07 2:47 
GeneralWeb site/service deployment Pin
goldoche6-Dec-07 7:58
goldoche6-Dec-07 7:58 
GeneralRe: Web site/service deployment Pin
pmarfleet6-Dec-07 11:01
pmarfleet6-Dec-07 11:01 
GeneralFluid tab control using MultiView Pin
gibby104726-Dec-07 5:16
gibby104726-Dec-07 5:16 
GeneralVirtual Directory Pin
Civic066-Dec-07 4:46
Civic066-Dec-07 4:46 
GeneralRe: Virtual Directory Pin
Fred_Smith6-Dec-07 4:53
Fred_Smith6-Dec-07 4:53 
GeneralSetting Focus on a TextBox and sellecting the text in a DataGrid with TextChanged Pin
thomasa6-Dec-07 4:39
thomasa6-Dec-07 4:39 
I have a datagrid containing 2 coulmns with 1 TextBox in each.

On the first TextBox I have a TextChanged event.
After the event is fired I want to set Focus on the next textBox, and sellect the text on it.
<br />
private void OnSubscriptionToValueChanged(object sender, System.EventArgs e)<br />
        {<br />
            TextBox tb = (TextBox)sender;<br />
            if (tb.Text.Trim() != "VAT")<br />
            {<br />
tb.CssClass = "tbStyle0";<br />
                    DataGridItem dgi = (DataGridItem)tb.Parent.Parent;<br />
TextBox tbToFocus = (TextBox)dgi.FindControl("tbNextValue");<br />
tbToFocus.Focus(); // Here it sets focus but it don't select the test<br />
}<br />
else<br />
            {<br />
                tb.Focus(); // Here it sets focus but it don't select the test<br />
                tb.CssClass = "tbStyleError";<br />
}<br />
}


The code over sets Focus on the control I want, but it don't select the text (as it would if the TextChanged event
wasen't there when you tab from one TextBox too another).

Has anyone an idèe how to do that?
Thanks
Thomas
GeneralThe solution Pin
thomasa6-Dec-07 5:25
thomasa6-Dec-07 5:25 
GeneralRe: The solution for IIS 2.0 Pin
thomasa6-Dec-07 5:53
thomasa6-Dec-07 5:53 
GeneralRe: The solution for IIS 2.0 Pin
Kelly Herald6-Dec-07 9:03
Kelly Herald6-Dec-07 9:03 
Questionhow to detect whether the requesting machine is a mobile? Pin
Rocky#6-Dec-07 4:37
Rocky#6-Dec-07 4:37 
AnswerRe: how to detect whether the requesting machine is a mobile? Pin
Fred_Smith6-Dec-07 5:43
Fred_Smith6-Dec-07 5:43 
Generalfileupload problem Pin
accessred6-Dec-07 3:55
accessred6-Dec-07 3:55 
GeneralRe: fileupload problem Pin
Fred_Smith6-Dec-07 4:00
Fred_Smith6-Dec-07 4:00 
GeneralRe: fileupload problem Pin
Michael Sync6-Dec-07 4:03
Michael Sync6-Dec-07 4:03 
GeneralRe: fileupload problem Pin
Michael Sync6-Dec-07 4:11
Michael Sync6-Dec-07 4:11 
QuestionOutlook Integration in Web Application? Pin
madhan singh raja6-Dec-07 3:27
madhan singh raja6-Dec-07 3:27 
GeneralExcel object is not coming in Intellisense Pin
meeram3956-Dec-07 2:57
meeram3956-Dec-07 2:57 
GeneralRe: Excel object is not coming in Intellisense Pin
Michael Sync6-Dec-07 4:06
Michael Sync6-Dec-07 4:06 
GeneralSession problem Pin
kinnuP6-Dec-07 2:50
kinnuP6-Dec-07 2:50 
GeneralRe: Session problem Pin
Fred_Smith6-Dec-07 4:04
Fred_Smith6-Dec-07 4:04 
GeneralRe: Session problem Pin
kinnuP6-Dec-07 18:51
kinnuP6-Dec-07 18:51 
GeneralProblem with AjaxControlToolkit CalendarExtender with TextChanged in a datagrid. Pin
thomasa6-Dec-07 2:20
thomasa6-Dec-07 2:20 
GeneralRe: The Solution Pin
thomasa6-Dec-07 3:34
thomasa6-Dec-07 3:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.