Question : Textboxes in other Tabs in asp.net

hey all i am retreiving the values typed into my textboxes in ASP.net

but i can only find only retreive the value when i am looking at the tab where the textbox is set up

so if i click  a button which retreives the textbox in TAB 1 while i am highlighting tab 2 the values returned are null

why is this happenening
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
Font Size :



Contents of second tab Contents of third tab

string font_size = Request.Form["fontsize"]; string maxcopies = Request.Form["maxcopies"]; string logo_text = Request.Form["logo_text1"]; Response.Write("
" + font_size); Response.Write("
" + maxcopies); Response.Write("
" + logo_text);

Answer : Textboxes in other Tabs in asp.net

Okay, I've just created a simple little tab demo for you and it should do what you want:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
ASPX:
Tab 1: Tab 2: Code behind: protected void Button1_Click(object sender, EventArgs e) { Response.Write("Tab 1: " + TextBox1.Text); Response.Write("
"); Response.Write("Tab 2: " + TextBox2.Text); }
Random Solutions  
 
programming4us programming4us