Click here to Skip to main content
15,893,814 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionnavigater url problem Pin
Sonia Gupta8-Aug-07 23:07
Sonia Gupta8-Aug-07 23:07 
AnswerRe: navigater url problem Pin
Imran Khan Pathan8-Aug-07 23:34
Imran Khan Pathan8-Aug-07 23:34 
GeneralRe: navigater url problem Pin
Sonia Gupta8-Aug-07 23:43
Sonia Gupta8-Aug-07 23:43 
AnswerRe: navigater url problem Pin
N a v a n e e t h9-Aug-07 0:40
N a v a n e e t h9-Aug-07 0:40 
QuestionGrid View Paging ? Pin
sanjay_tutu8-Aug-07 22:53
sanjay_tutu8-Aug-07 22:53 
AnswerRe: Grid View Paging ? Pin
VanithaVasu9-Aug-07 22:59
VanithaVasu9-Aug-07 22:59 
Questionproblem with Gridview header checkbox and checkbox column Pin
indiaone8-Aug-07 22:52
indiaone8-Aug-07 22:52 
AnswerRe: problem with Gridview header checkbox and checkbox column Pin
VanithaVasu9-Aug-07 23:44
VanithaVasu9-Aug-07 23:44 
public void Checkbox_CheckedChanged(object sender,System.EventArgs e)
{
CheckBox chkbx=new CheckBox();
chkbx=(CheckBox)sender;
if(chkbx.Checked==true)
{
foreach(DataGridItem dgi in DataGrid1.Items)
{
((CheckBox)dgi.FindControl("check")).Checked=true;
}
}
else if(chkbx.Checked==false)
{
foreach(DataGridItem dgi in DataGrid1.Items)
{ ((CheckBox)dgi.FindControl("check")).Checked=false;
}
}
}

And The Html Code Should Be

<asp:DataGrid id="DataGrid1" style="Z-INDEX: 101; LEFT: 352px; POSITION: absolute; TOP: 136px" runat="server">
<Columns>
<asp:TemplateColumn>
<HeaderTemplate>
<asp:CheckBox Runat="server" AutoPostBack=True Checked="False"
OnCheckedChanged="Checkbox_CheckedChanged"></asp:CheckBox>
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox ID=check Runat="server"></asp:CheckBox> </ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>


I think this code helps you.

VanithaVasu
QuestionVisual Studio 2008 Beta 2 Pin
Brendan Vogt8-Aug-07 22:35
Brendan Vogt8-Aug-07 22:35 
AnswerRe: Visual Studio 2008 Beta 2 Pin
Sherin Iranimose8-Aug-07 23:58
Sherin Iranimose8-Aug-07 23:58 
QuestionFocus on desired button..? Pin
fmlove8-Aug-07 22:14
fmlove8-Aug-07 22:14 
AnswerRe: Focus on desired button..? Pin
N a v a n e e t h8-Aug-07 22:49
N a v a n e e t h8-Aug-07 22:49 
Questionasp.net and vista home basic Pin
S A R I T H8-Aug-07 22:13
S A R I T H8-Aug-07 22:13 
Questionconvert HTML content of .aspx page to PDF file Pin
Imran Khan Pathan8-Aug-07 21:57
Imran Khan Pathan8-Aug-07 21:57 
AnswerRe: convert HTML content of .aspx page to PDF file Pin
N a v a n e e t h8-Aug-07 22:50
N a v a n e e t h8-Aug-07 22:50 
GeneralRe: convert HTML content of .aspx page to PDF file Pin
Imran Khan Pathan8-Aug-07 23:17
Imran Khan Pathan8-Aug-07 23:17 
QuestionError:Value cannot be null. Parameter name: dataSet.., Pin
Member 38798818-Aug-07 21:53
Member 38798818-Aug-07 21:53 
AnswerRe: Error:Value cannot be null. Parameter name: dataSet.., Pin
S A R I T H8-Aug-07 22:29
S A R I T H8-Aug-07 22:29 
GeneralRe: Error:Value cannot be null. Parameter name: dataSet.., Pin
Member 38798818-Aug-07 22:33
Member 38798818-Aug-07 22:33 
Questionhow t ochange the postions of sever controls . Pin
santoshkumarB8-Aug-07 21:41
santoshkumarB8-Aug-07 21:41 
AnswerRe: how t ochange the postions of sever controls . Pin
Sandeep Akhare8-Aug-07 22:29
Sandeep Akhare8-Aug-07 22:29 
QuestionProblem in Including Files Pin
cometburn0078-Aug-07 21:41
cometburn0078-Aug-07 21:41 
AnswerRe: Problem in Including Files Pin
Sandeep Akhare8-Aug-07 22:26
Sandeep Akhare8-Aug-07 22:26 
Questionevent validation error after creating datagrid bound columns programmatically Pin
Anees Mitha8-Aug-07 21:29
Anees Mitha8-Aug-07 21:29 
QuestionProblem with datagrid link Pin
S A R I T H8-Aug-07 21:19
S A R I T H8-Aug-07 21: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.