Click here to Skip to main content
15,912,475 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questiondisplaying data in dashboard format Pin
ss_gujju26-Sep-08 0:45
ss_gujju26-Sep-08 0:45 
AnswerRe: displaying data in dashboard format Pin
Ashfield26-Sep-08 1:35
Ashfield26-Sep-08 1:35 
JokeRe: displaying data in dashboard format Pin
ednrg26-Sep-08 4:02
ednrg26-Sep-08 4:02 
GeneralRe: displaying data in dashboard format Pin
ToddHileHoffer26-Sep-08 5:18
ToddHileHoffer26-Sep-08 5:18 
GeneralRe: displaying data in dashboard format Pin
Ashfield26-Sep-08 8:11
Ashfield26-Sep-08 8:11 
QuestionInteresting problem - Interaction between controls on a page and controls embeded within a user control Pin
Tina P26-Sep-08 0:45
Tina P26-Sep-08 0:45 
AnswerRe: Interesting problem - Interaction between controls on a page and controls embeded within a user control Pin
droth1726-Sep-08 2:28
droth1726-Sep-08 2:28 
AnswerRe: Interesting problem - Interaction between controls on a page and controls embeded within a user control Pin
t7bros26-Sep-08 4:00
t7bros26-Sep-08 4:00 
Note: The following is using javascript. You didn't specify if you were using client side events or server side events. The code behind code is VB.NET

The easiest way to do it is to add the "onclick" attribute to the button during Page_Load in the code behind.

Button1.Attributes.Add("onclick", "MoveFocus('" & userControl1.Controls("textbox1").clientID & "');")

What is happening here is that you will be sending the name of the textbox in the user control to the javascript function "MoveFocus". "MoveFocus" will be performed on the client-side when the button is clicked. "MoveFocus" should look something like this:

function MoveFocus(TextName)
{
  var txt = document.getElementById(TextName);
  txt.focus();
}


Hope that helps point you in the right direction.

Obligatory Disclaimer: Any code that appears may be untested. It is merely meant as a guide. If it doesn't work, don't blame me. Some parts of the job require independence. Or Google.


Obligatory Disclaimer: Any code that appears may be untested. It is merely meant as a guide. If it doesn't work, don't blame me. Some parts of the job require independence. Or Google.
Have faith in yourself; amateurs built the Ark, professionals built the Titanic.

GeneralRe: Interesting problem - Interaction between controls on a page and controls embeded within a user control Pin
Tina P26-Sep-08 16:20
Tina P26-Sep-08 16:20 
GeneralRe: Interesting problem - Interaction between controls on a page and controls embeded within a user control Pin
AlexeiXX326-Sep-08 17:14
AlexeiXX326-Sep-08 17:14 
GeneralRe: Interesting problem - Interaction between controls on a page and controls embeded within a user control Pin
Tina P26-Sep-08 21:04
Tina P26-Sep-08 21:04 
GeneralRe: Interesting problem - Interaction between controls on a page and controls embeded within a user control Pin
AlexeiXX327-Sep-08 10:27
AlexeiXX327-Sep-08 10:27 
GeneralRe: Interesting problem - Interaction between controls on a page and controls embeded within a user control Pin
Tina P27-Sep-08 11:45
Tina P27-Sep-08 11:45 
GeneralRe: Interesting problem - Interaction between controls on a page and controls embeded within a user control Pin
AlexeiXX327-Sep-08 12:54
AlexeiXX327-Sep-08 12:54 
GeneralRe: Interesting problem - Interaction between controls on a page and controls embeded within a user control Pin
Tina P27-Sep-08 14:10
Tina P27-Sep-08 14:10 
GeneralRe: Interesting problem - Interaction between controls on a page and controls embeded within a user control [modified] Pin
AlexeiXX327-Sep-08 16:55
AlexeiXX327-Sep-08 16:55 
GeneralRe: Interesting problem - Interaction between controls on a page and controls embeded within a user control Pin
Tina P28-Sep-08 0:28
Tina P28-Sep-08 0:28 
GeneralRe: Interesting problem - Interaction between controls on a page and controls embeded within a user control Pin
AlexeiXX328-Sep-08 5:51
AlexeiXX328-Sep-08 5:51 
QuestionQuestion regarding formatting/ displaying data in a drop down list Pin
Tina P26-Sep-08 0:41
Tina P26-Sep-08 0:41 
AnswerRe: Question regarding formatting/ displaying data in a drop down list Pin
NeverHeardOfMe26-Sep-08 0:50
NeverHeardOfMe26-Sep-08 0:50 
GeneralRe: Question regarding formatting/ displaying data in a drop down list Pin
Tina P26-Sep-08 21:05
Tina P26-Sep-08 21:05 
Questionserver.tranfer path error Pin
imranafsari26-Sep-08 0:26
imranafsari26-Sep-08 0:26 
AnswerRe: server.tranfer path error Pin
droth1726-Sep-08 1:54
droth1726-Sep-08 1:54 
QuestionCheck checkbox values in checkboxlist from database help (c#) Pin
AdamskiR26-Sep-08 0:11
AdamskiR26-Sep-08 0:11 
QuestionGet file name out of path Pin
varsh1226-Sep-08 0:01
varsh1226-Sep-08 0:01 

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.