Click here to Skip to main content
15,912,977 members
Home / Discussions / C#
   

C#

 
AnswerRe: Selected value in DropDownList using EditItemTemplate [modified] Pin
leppie21-May-06 20:18
leppie21-May-06 20:18 
GeneralRe: Selected value in DropDownList using EditItemTemplate [modified] Pin
Ritaa21-May-06 21:15
Ritaa21-May-06 21:15 
GeneralRe: Selected value in DropDownList using EditItemTemplate [modified] Pin
leppie22-May-06 1:15
leppie22-May-06 1:15 
AnswerRe: Selected value in DropDownList using EditItemTemplate [modified] Pin
albCode21-May-06 23:30
albCode21-May-06 23:30 
GeneralRe: Selected value in DropDownList using EditItemTemplate [modified] Pin
Ritaa23-May-06 0:24
Ritaa23-May-06 0:24 
Questiontextbox-table Pin
locaas21-May-06 20:02
locaas21-May-06 20:02 
AnswerRe: textbox-table Pin
leppie21-May-06 20:15
leppie21-May-06 20:15 
AnswerRe: textbox-table [modified] Pin
turbochimp21-May-06 20:16
turbochimp21-May-06 20:16 
(1) Are you referring to WinForm or WebForm applications for item 1?

If you're using WinForms, then you should be able to do something like the following in the form's codebehind:

public AddTextBox(string id)<br />
{<br />
    TextBox box = new TextBox();<br />
    box.ID = id;<br />
    box.Top = 150;<br />
    box.Left = 20;<br />
    this.Controls.Add(box);<br />
}


You can do something very similar to the above WinForm example with WebForms, but positioning will take slightly more attention, as will the timing of your control's addition to the form's control hierarchy.

(2) Are you referring to a DataTable? If so, then:

object value = dataTable.Rows[int rowIndex][string columnName]

from your example:
object value = dataTable.Rows[3][4];

...should do it. If you're talking about HTML tables, then it would depend on how the table was created. If you're doing it in code, then you should be able to walk the page's control hierarchy to get at it. If it's static HTML, javascript can do it, but it's kind of a long-winded answer unless you need it, and the question belongs in a different forum.

Good luck.

The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’


-- modified at 2:19 Monday 22nd May, 2006
GeneralRe: textbox-table [modified] Pin
locaas22-May-06 0:38
locaas22-May-06 0:38 
GeneralRe: textbox-table [modified] Pin
leppie22-May-06 1:13
leppie22-May-06 1:13 
Questionlinking question -- is linking handled in a way by attaching jump destination? [modified] Pin
printscreen1234521-May-06 19:14
printscreen1234521-May-06 19:14 
QuestionTextBox Pin
kobi10i1021-May-06 18:28
kobi10i1021-May-06 18:28 
AnswerRe: TextBox Pin
leppie21-May-06 18:39
leppie21-May-06 18:39 
GeneralRe: TextBox Pin
kobi10i1022-May-06 7:07
kobi10i1022-May-06 7:07 
AnswerRe: TextBox Pin
Guffa21-May-06 18:48
Guffa21-May-06 18:48 
GeneralRe: TextBox Pin
kobi10i1022-May-06 7:09
kobi10i1022-May-06 7:09 
AnswerRe: TextBox Pin
Guffa22-May-06 11:14
Guffa22-May-06 11:14 
GeneralRe: TextBox Pin
kobi10i1022-May-06 16:38
kobi10i1022-May-06 16:38 
Questionhow run commend DOS in aps.net Pin
phucvinh21-May-06 18:14
phucvinh21-May-06 18:14 
AnswerRe: how run commend DOS in aps.net Pin
Saqib Mehmood21-May-06 18:25
Saqib Mehmood21-May-06 18:25 
Questionequivalen of Vb.net IsNumeric function in C# Pin
Nitin198121-May-06 16:12
Nitin198121-May-06 16:12 
AnswerRe: equivalen of Vb.net IsNumeric function in C# Pin
Joshua Quick21-May-06 16:38
Joshua Quick21-May-06 16:38 
AnswerRe: equivalen of Vb.net IsNumeric function in C# Pin
Dave Doknjas22-May-06 13:56
Dave Doknjas22-May-06 13:56 
QuestionHelp Me Please !!! Form problm Pin
kobi10i1021-May-06 10:16
kobi10i1021-May-06 10:16 
AnswerRe: Help Me Please !!! Form problm Pin
Seraphin21-May-06 10:19
Seraphin21-May-06 10:19 

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.