Click here to Skip to main content
15,906,645 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow to get the datakey value Pin
MalarGayu6-Dec-11 13:07
MalarGayu6-Dec-11 13:07 
AnswerRe: how to get the datakey value Pin
coded0076-Dec-11 15:22
professionalcoded0076-Dec-11 15:22 
GeneralRe: how to get the datakey value Pin
MalarGayu6-Dec-11 15:27
MalarGayu6-Dec-11 15:27 
Questionruntime generation of controls and their text Pin
MalarGayu6-Dec-11 10:35
MalarGayu6-Dec-11 10:35 
AnswerRe: runtime generation of controls and their text Pin
Not Active6-Dec-11 11:53
mentorNot Active6-Dec-11 11:53 
GeneralRe: runtime generation of controls and their text Pin
MalarGayu6-Dec-11 12:05
MalarGayu6-Dec-11 12:05 
GeneralRe: runtime generation of controls and their text Pin
Not Active7-Dec-11 4:39
mentorNot Active7-Dec-11 4:39 
GeneralRe: runtime generation of controls and their text Pin
MalarGayu7-Dec-11 11:18
MalarGayu7-Dec-11 11:18 
hi friends

i have created the controls

but dont know how to get the value from such controls can anyone help me plz...
//code to create the dynamic textboxes

protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Session["Count"] = "0";
}
}



protected void lnkAddGroup_Click(object sender, EventArgs e)
{

int i = Convert.ToInt32(Session["Count"].ToString());
int k = 0;
for (k = 0; k <= i; k++)
{
TextBox txt = new TextBox();
txt.ID = "DynamiceTextbox" + Convert.ToString(k);
//txt.Text = "" ;
ImageButton img = new ImageButton();
img.ID = "DynamicDeletebutton" + Convert.ToString(k);
img.ImageUrl = "~Images/delete_icon.jpg";
HtmlGenericControl lineBreak = new HtmlGenericControl("br");

PHGroupName.Controls.Add(txt);
PHGroupName.Controls.Add(img);
PHGroupName.Controls.Add(lineBreak);

Session["Count"] = Convert.ToString(Convert.ToInt32(k + 1));
}


}
PHGroupName is the placeholder name....

K.Gayathri
GeneralRe: runtime generation of controls and their text Pin
MalarGayu7-Dec-11 13:52
MalarGayu7-Dec-11 13:52 
QuestionLong Running Report MVC3 Pin
eddieangel6-Dec-11 8:14
eddieangel6-Dec-11 8:14 
AnswerRe: Long Running Report MVC3 Pin
Wonde Tadesse6-Dec-11 9:51
professionalWonde Tadesse6-Dec-11 9:51 
AnswerElectronic Health Record System Pin
fresh12076-Dec-11 4:03
fresh12076-Dec-11 4:03 
GeneralRe: Electronic Health Record System Pin
Dennis E White6-Dec-11 5:30
professionalDennis E White6-Dec-11 5:30 
GeneralRe: Electronic Health Record System Pin
Not Active6-Dec-11 6:53
mentorNot Active6-Dec-11 6:53 
GeneralRe: Electronic Health Record System Pin
emardini8-Dec-11 4:13
emardini8-Dec-11 4:13 
QuestionHelp needed Pin
07navneet5-Dec-11 23:31
07navneet5-Dec-11 23:31 
AnswerRe: Help needed Pin
Richard MacCutchan5-Dec-11 23:52
mveRichard MacCutchan5-Dec-11 23:52 
QuestionBlock Concurrent user Pin
yesu prakash5-Dec-11 21:40
yesu prakash5-Dec-11 21:40 
AnswerRe: Block Concurrent user Pin
R. Giskard Reventlov5-Dec-11 22:12
R. Giskard Reventlov5-Dec-11 22:12 
Questionhow to dynamically add textboxes Pin
MalarGayu5-Dec-11 17:23
MalarGayu5-Dec-11 17:23 
AnswerRe: how to dynamically add textboxes Pin
uspatel5-Dec-11 19:19
professionaluspatel5-Dec-11 19:19 
AnswerRe: how to dynamically add textboxes Pin
Morgs Morgan6-Dec-11 20:09
Morgs Morgan6-Dec-11 20:09 
Questiongenerating specific format Pin
sk_ko5-Dec-11 15:11
sk_ko5-Dec-11 15:11 
AnswerRe: generating specific format Pin
Andy_L_J5-Dec-11 21:56
Andy_L_J5-Dec-11 21:56 
QuestionUnzip, Zip file in asp.net Pin
Mugdha_Aditya5-Dec-11 3:02
Mugdha_Aditya5-Dec-11 3:02 

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.