Click here to Skip to main content
15,892,161 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionReload Main Page [modified] Pin
omlac26-Aug-08 22:45
omlac26-Aug-08 22:45 
AnswerRe: Reload Main Page Pin
N a v a n e e t h26-Aug-08 23:34
N a v a n e e t h26-Aug-08 23:34 
GeneralRe: Reload Main Page Pin
omlac26-Aug-08 23:47
omlac26-Aug-08 23:47 
Questionmulti-lingual site Pin
kadkir26-Aug-08 22:22
kadkir26-Aug-08 22:22 
AnswerRe: multi-lingual site Pin
Manas Bhardwaj26-Aug-08 22:29
professionalManas Bhardwaj26-Aug-08 22:29 
QuestionLong Running Processes & IIS Pin
moon_stick26-Aug-08 22:13
moon_stick26-Aug-08 22:13 
QuestionNot able to read the dynamic controls Pin
rajasreepradeep26-Aug-08 21:53
rajasreepradeep26-Aug-08 21:53 
AnswerRe: Not able to read the dynamic controls Pin
Gayani Devapriya26-Aug-08 22:41
Gayani Devapriya26-Aug-08 22:41 
Hi,

One important thing i noticed was you need to traverse through rows and then cells in tblTimeZon table. And then try to find the control in a particular cell.

Here is a small example, i will be using a TextBox.

.aspx code

<asp:Table ID="Table1" runat="server" Height="160px" Width="176px">
<asp:TableRow runat="server" ID="ROW1">
<asp:TableCell runat="server" ID="CELL1">
aaa
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</asp:TableCell>
<asp:TableCell runat="server">bbb</asp:TableCell>
<asp:TableCell runat="server">ccc</asp:TableCell>
</asp:TableRow>
</asp:Table>
<asp:Button ID="Button1" runat="server" Text="Get Content in Text" OnClick="Button1_Click" />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>

.cs code


protected void Button1_Click(object sender, EventArgs e)
{
foreach (TableRow tr in Table1.Rows)
{
foreach (TableCell tc in tr.Cells)
{
TextBox tb = (TextBox)tc.FindControl("TextBox1");
if(tb != null)
{
Label1.Text = tb.Text;
}
}
}
}

Hope it helped.
Thx,
Gayani
GeneralRe: Not able to read the dynamic controls Pin
rajasreepradeep26-Aug-08 23:39
rajasreepradeep26-Aug-08 23:39 
Questionajax toolkit Pin
arkiboys26-Aug-08 21:39
arkiboys26-Aug-08 21:39 
AnswerRe: ajax toolkit Pin
eyeseetee26-Aug-08 22:01
eyeseetee26-Aug-08 22:01 
QuestionIrrespective of the file type(Audio or video) it shud play when user cliks on filename Pin
reogeo200826-Aug-08 21:35
reogeo200826-Aug-08 21:35 
QuestionChange Web Application folder Pin
peter_790126-Aug-08 20:45
peter_790126-Aug-08 20:45 
AnswerRe: Change Web Application folder Pin
eyeseetee26-Aug-08 21:51
eyeseetee26-Aug-08 21:51 
GeneralRe: Change Web Application folder Pin
peter_790127-Aug-08 13:16
peter_790127-Aug-08 13:16 
Questionhow to restrict image folder from direct access Pin
Neeraj Arora26-Aug-08 20:34
Neeraj Arora26-Aug-08 20:34 
AnswerRe: how to restrict image folder from direct access Pin
Abhishek Sur26-Aug-08 21:00
professionalAbhishek Sur26-Aug-08 21:00 
GeneralRe: how to restrict image folder from direct access Pin
Neeraj Arora26-Aug-08 21:10
Neeraj Arora26-Aug-08 21:10 
AnswerRe: how to restrict image folder from direct access Pin
N a v a n e e t h26-Aug-08 21:05
N a v a n e e t h26-Aug-08 21:05 
GeneralRe: how to restrict image folder from direct access Pin
Neeraj Arora26-Aug-08 21:08
Neeraj Arora26-Aug-08 21:08 
GeneralRe: how to restrict image folder from direct access Pin
N a v a n e e t h26-Aug-08 23:30
N a v a n e e t h26-Aug-08 23:30 
GeneralRe: how to restrict image folder from direct access Pin
Neeraj Arora27-Aug-08 1:02
Neeraj Arora27-Aug-08 1:02 
AnswerRe: how to restrict image folder from direct access Pin
NeverHeardOfMe26-Aug-08 22:46
NeverHeardOfMe26-Aug-08 22:46 
QuestionSuggestion for continous printing Pin
Jagwinder Walia26-Aug-08 20:29
Jagwinder Walia26-Aug-08 20:29 
AnswerRe: Suggestion for continous printing Pin
N a v a n e e t h26-Aug-08 21:07
N a v a n e e t h26-Aug-08 21:07 

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.