Click here to Skip to main content
15,918,668 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHelp Pin
pitchu mani20-Nov-06 19:18
pitchu mani20-Nov-06 19:18 
QuestionHide Table Pin
ayeleteric20-Nov-06 19:09
ayeleteric20-Nov-06 19:09 
AnswerRe: Hide Table Pin
_AK_20-Nov-06 19:24
_AK_20-Nov-06 19:24 
GeneralRe: Hide Table Pin
ayeleteric20-Nov-06 19:27
ayeleteric20-Nov-06 19:27 
GeneralRe: Hide Table Pin
_AK_20-Nov-06 19:29
_AK_20-Nov-06 19:29 
GeneralRe: Hide Table Pin
ayeleteric20-Nov-06 19:31
ayeleteric20-Nov-06 19:31 
GeneralRe: Hide Table Pin
_AK_20-Nov-06 19:38
_AK_20-Nov-06 19:38 
AnswerRe: Hide Table [modified] Pin
ayeleteric20-Nov-06 19:56
ayeleteric20-Nov-06 19:56 
GeneralRe: Hide Table Pin
_AK_20-Nov-06 20:14
_AK_20-Nov-06 20:14 
QuestionDynamic dropdown list Pin
isaii20-Nov-06 18:47
isaii20-Nov-06 18:47 
AnswerRe: Dynamic dropdown list Pin
_AK_20-Nov-06 19:21
_AK_20-Nov-06 19:21 
GeneralRe: Dynamic dropdown list Pin
isaii20-Nov-06 19:27
isaii20-Nov-06 19:27 
GeneralRe: Dynamic dropdown list Pin
_AK_20-Nov-06 19:34
_AK_20-Nov-06 19:34 
GeneralRe: Dynamic dropdown list Pin
Kamran_ku20-Nov-06 20:36
Kamran_ku20-Nov-06 20:36 
GeneralRe: Dynamic dropdown list Pin
_AK_20-Nov-06 21:35
_AK_20-Nov-06 21:35 
GeneralRe: Dynamic dropdown list [modified] Pin
isaii21-Nov-06 15:20
isaii21-Nov-06 15:20 
GeneralRe: Dynamic dropdown list Pin
_AK_21-Nov-06 18:08
_AK_21-Nov-06 18:08 
QuestionPlease Help in Date Functions[modified] Pin
JVVS20-Nov-06 17:55
JVVS20-Nov-06 17:55 
AnswerRe: Please Help in Date Functions[modified] Pin
Guffa20-Nov-06 18:41
Guffa20-Nov-06 18:41 
GeneralRe: Please Help in Date Functions[modified] Pin
JVVS20-Nov-06 18:55
JVVS20-Nov-06 18:55 
GeneralRe: Please Help in Date Functions[modified] Pin
Guffa20-Nov-06 21:40
Guffa20-Nov-06 21:40 
QuestionAccessing Html controls created in javascript Pin
Rajaraman Soundararajan20-Nov-06 17:32
Rajaraman Soundararajan20-Nov-06 17:32 
Hi,

Can we access html controls created through javascript in ASP.NET code behind ?


var arrInput = new Array(0);
var arrInputValue = new Array(0);

function addInput() {
//arrInput.push(createInput(arrInput.length));
arrInput.push(arrInput.length);
//arrInputValue.push(arrInputValue.length);
arrInputValue.push("");
display();
}

function display() {
document.getElementById('parah').innerHTML="";
for (intI=0;intI<arrInput.length;intI++) {
document.getElementById('parah').innerHTML+=createInput(arrInput[intI], arrInputValue[intI]);
}
}

function saveValue(intId,strValue) {
arrInputValue[intId]=strValue;
}

function createInput(id,value) {
//alert(id);
return "<input type='text' id='test "+ id +"' onChange='javascript:saveValue("+ id +",this.value)' value='"+ value +"'><br>";
//alert(test);
}

function deleteInput() {
if (arrInput.length > 0) {
arrInput.pop();
arrInputValue.pop();
}
display();
}




Dynamic creation of input boxes

Add more input field(s)

Remove field(s)
<asp:button id="MySubmit" runat="server" text="submit">



Can i access the controls data in codebehind ? i dont see it getting enumerated in the Controls collection ?
foreach (Control c in Controls)
Response.Write(c.ClientID.ToString() + c.GetType().ToString() + "
");
Confused | :confused: Confused | :confused:

Rajaraman Soundararajan
QuestionPlease Help! INCLUDE PAGE from Variable Pin
steeleimaging20-Nov-06 16:39
steeleimaging20-Nov-06 16:39 
QuestionHow to Create an Invoice-like Form in ASP NET 2.0 Pin
ezani20-Nov-06 16:24
ezani20-Nov-06 16:24 
QuestionDesigning an Email application Pin
hasanali0020-Nov-06 11:52
hasanali0020-Nov-06 11:52 

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.