Click here to Skip to main content
15,909,539 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAdding Dynamic Radio buttons in panel control Pin
chakran4-May-08 21:33
chakran4-May-08 21:33 
QuestionDiv Show Pin
raushan_94-May-08 21:32
raushan_94-May-08 21:32 
AnswerRe: Div Show Pin
Christian Graus4-May-08 23:00
protectorChristian Graus4-May-08 23:00 
GeneralRe: Div Show Pin
raushan_94-May-08 23:22
raushan_94-May-08 23:22 
GeneralRe: Div Show Pin
Christian Graus4-May-08 23:27
protectorChristian Graus4-May-08 23:27 
GeneralRe: Div Show Pin
raushan_94-May-08 23:39
raushan_94-May-08 23:39 
GeneralRe: Div Show Pin
Christian Graus4-May-08 23:57
protectorChristian Graus4-May-08 23:57 
GeneralRe: Div Show Pin
raushan_95-May-08 0:53
raushan_95-May-08 0:53 
Yes i've tried panel and placeholder instead of div..
i am sending complete code to u.....
JS code......

var openDiv='';

function divShowHide(myDiv,myTD)
{
if(openDiv=='')
{
document.getElementById(myDiv).style.display='block';
openDiv=myDiv;
}
else
{
document.getElementById(openDiv).style.display='none';
document.getElementById(myDiv).style.display='block';
openDiv=myDiv;
}
}

Html Code here..............I am calling on Span..
<table id="tableSearch1" cellpadding="0" cellspacing="0" style="width:100%">
<tr class="trClass" >
<td class="tdClass" align="center">
<span class="spanA" onclick="divShowHide('divIP1','TD1');">
Pending Record
</span>
...Div Html Code here...
<div id="divIP1" style="display:none;text-align:left;padding-left:0px;" runat=server >
<table class="tableSearch2" style="width:100%;" cellpadding="2" runat="server">
<tr>
<td align="center">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="ElearningDataGridBody"
DataKeyNames="ID" GridLines="Horizontal" OnRowDeleting="GridView1_RowDeleting"
OnRowEditing="GridView1_RowEditing" Width="1000px" OnRowDataBound="GridView1_RowDataBound">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox ID="CheckBox1" runat="server" />
</ItemTemplate>
<HeaderTemplate>
<asp:CheckBox ID="chkSelectAll" runat="server" />
</HeaderTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Name" HeaderText="Name" />
<asp:BoundField DataField="Email" HeaderText="Email" />
<asp:BoundField DataField="Date" HeaderText="Date" />
<asp:BoundField DataField="Comment" HeaderText="Comment" />
<asp:BoundField DataField="Status" HeaderText="Status" />
<asp:TemplateField HeaderText="Show Comment">
<ItemTemplate>
<asp:LinkButton ID="linkShow" runat="server" CommandName="Edit" OnClientClick="return confirm('Do You Really Want To Show This Record');">Show</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Delete">
<ItemTemplate>
<asp:LinkButton ID="linkDelete" runat="server" CommandName="Delete" OnClientClick="return confirm('Do You Really Want To Delete This Record');">Delete</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<HeaderStyle CssClass="ElearningDataGridHeaderFont" />
</asp:GridView>

</td></tr>
<tr>
<td height="5px"></td></tr>
<tr>
<td align="center">

<asp:Button ID="cmdShow" runat="server" TabIndex="9" Text="Show" OnClick="cmdShow_Click" />&nbsp;&nbsp;<asp:Button
ID="cmdDelete" runat="server" TabIndex="8" Text="Delete" OnClick="cmdDelete_Click" />

</td>
</tr>
</table>
</div>

.cs code here
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
string id = GridView1.DataKeys[e.RowIndex].Value.ToString();
DataUtility dUT = new DataUtility();
string strsql = "Delete FeedBack Where Active=1 and ID='" + id.ToString() + "'";
int result = dUT.ExecuteSql(strsql);
bindDataGrid();
bindDataGrid1();
divIP1.Style["Display"] = "Visible";

}


Actually i want to do..when we dell the record hen show div..Because i have used 2Div in form..
and i want to show record on click event of button..
GeneralRe: Div Show Pin
Christian Graus5-May-08 11:13
protectorChristian Graus5-May-08 11:13 
Questiontool tip Pin
Pankaj Garg4-May-08 21:20
Pankaj Garg4-May-08 21:20 
AnswerRe: tool tip Pin
samMaster4-May-08 22:19
samMaster4-May-08 22:19 
AnswerRe: tool tip Pin
Vasudevan Deepak Kumar4-May-08 22:27
Vasudevan Deepak Kumar4-May-08 22:27 
QuestionPage Appear In Center but scrollbar can be dragged to a larger distance Pin
Krazy Programmer4-May-08 20:50
Krazy Programmer4-May-08 20:50 
AnswerRe: Page Appear In Center but scrollbar can be dragged to a larger distance Pin
J a a n s4-May-08 21:04
professionalJ a a n s4-May-08 21:04 
Questiondatabase name extracting and table retrievel Pin
accessred4-May-08 20:45
accessred4-May-08 20:45 
QuestionRenaming in DataColumnCollection??? Pin
Karan_TN4-May-08 20:22
Karan_TN4-May-08 20:22 
QuestionContact page help? Pin
asif_34-May-08 19:49
asif_34-May-08 19:49 
AnswerRe: Contact page help? Pin
Christian Graus4-May-08 19:58
protectorChristian Graus4-May-08 19:58 
General[Message Deleted] Pin
asif_34-May-08 20:03
asif_34-May-08 20:03 
AnswerRe: Contact page help? Pin
Abhijit Jana4-May-08 20:10
professionalAbhijit Jana4-May-08 20:10 
GeneralRe: [Message Deleted] Pin
Christian Graus4-May-08 21:07
protectorChristian Graus4-May-08 21:07 
QuestionGridview Pin
asif_34-May-08 19:46
asif_34-May-08 19:46 
AnswerRe: Gridview Pin
Christian Graus4-May-08 19:57
protectorChristian Graus4-May-08 19:57 
GeneralRe: Gridview Pin
asif_34-May-08 20:39
asif_34-May-08 20:39 
GeneralRe: Gridview Pin
Christian Graus4-May-08 21:14
protectorChristian Graus4-May-08 21:14 

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.