Click here to Skip to main content
15,891,184 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Custom Sorting for GridView Pin
Herman<T>.Instance20-Jan-09 20:20
Herman<T>.Instance20-Jan-09 20:20 
Questionplz give me the code for login page in asp.net or solve the my error plz i neeeded urgently i m a student & i have to submit ther project plz help me my code given below plz post me Pin
ashafi45518-Jan-09 23:48
ashafi45518-Jan-09 23:48 
AnswerRe: plz give me the code for login page in asp.net or solve the my error plz i neeeded urgently i m a student & i have to submit ther project plz help me my code given below plz post me Pin
Paddy Boyd19-Jan-09 0:08
Paddy Boyd19-Jan-09 0:08 
AnswerRe: plz give me the code for login page in asp.net or solve the my error plz i neeeded urgently i m a student & i have to submit ther project plz help me my code given below plz post me Pin
Abhijit Jana19-Jan-09 0:09
professionalAbhijit Jana19-Jan-09 0:09 
AnswerRe: plz give me the code for login page in asp.net or solve the my error plz i neeeded urgently i m a student & i have to submit ther project plz help me my code given below plz post me Pin
J4amieC19-Jan-09 1:03
J4amieC19-Jan-09 1:03 
AnswerRe: plz give me the code for login page in asp.net or solve the my error plz i neeeded urgently i m a student & i have to submit ther project plz help me my code given below plz post me Pin
Christian Graus19-Jan-09 2:07
protectorChristian Graus19-Jan-09 2:07 
AnswerWow. Just...wow. Pin
leckey19-Jan-09 10:19
leckey19-Jan-09 10:19 
Questionnested datagrid problem Pin
jhyn18-Jan-09 23:28
jhyn18-Jan-09 23:28 
i have parent datagrid and a child datagrid nxt row of everydataitem. when i click the expand button in parent dg the child dg will be shown.

my problem is when i clicked edit button or any button in child datagrid my parent datagrid collapse. how can i maintain the expanded child datagrid?

this is my code snippet
<code><script type="text/javascript">
function expandcollapse(obj){
var div = document.getElementById(obj);
var img = document.getElementById('img' + obj);
if (div.style.display == "none"){
div.style.display = "block";
img.src = "images/collapse.gif";
img.alt = "Close to view sub menus";
}else{
div.style.display = "none";
img.src = "images/expand_blue.gif";
img.alt = "Expand to show sub menus";
}
}
</script>

<asp:datagrid id="grdMenu" runat="server" width="830px" autogeneratecolumns="False">
<columns>
<asp:templatecolumn headertext="Menu Title" sortexpression="mainmenuid">
<itemtemplate>
<asp:label id="lblmenutitle" runat="server" />
</itemtemplate>
</asp:templatecolumn>
<asp:templatecolumn>
<itemtemplate>
<a href="javascript:expandcollapse('div&lt;%# Eval(" mainmenuid=") %&gt;');">
<img id="imgdiv&lt;%# Eval(" mainmenuid=") %&gt;" src="images/expand_blue.gif" /></a>
<tr><td colspan="100%">
<div id="div&lt;%# Eval(" mainmenuid=") %&gt;">
style="display:none;position:relative;left:25px;OVERFLOW: auto;WIDTH:98%;" &gt;
<asp:datagrid id="grdSub" runat="server" autogeneratecolumns="False" cssclass="InputText" datakeyfield="mainmenuid" onpageindexchanged="ChangeIndex2" ondeletecommand="grdSub_DeleteCommand" onupdatecommand="grdSub_UpdateCommand" oneditcommand="grdSub_EditCommand" onsortcommand="grdSub_SortCommand" onitemdatabound="grdSub_ItemDataBound">
<columns>
<asp:templatecolumn headertext="SubmenuTitle">
<itemtemplate>
<asp:label id="lblparentid" runat="server" />
</itemtemplate>
</asp:templatecolumn> <asp:templatecolumn> <itemtemplate><asp:imagebutton id="ImageButton6" runat="server" imageurl="~/images/edit.gif" commandname="Edit" causesvalidation="false"></asp:imagebutton>
</itemtemplate></asp:templatecolumn>
</columns></asp:datagrid>
</div></td></tr></itemtemplate>
</asp:templatecolumn>
</columns></asp:datagrid></code>

thanks in advance.
QuestionInfragistics Calendar view (Day view) Pin
priya_velan18-Jan-09 23:19
priya_velan18-Jan-09 23:19 
QuestionRe: Infragistics Calendar view (Day view) Pin
priya_velan19-Jan-09 14:13
priya_velan19-Jan-09 14:13 
QuestionIterate through DataGrid Pin
PritiP18-Jan-09 23:09
PritiP18-Jan-09 23:09 
AnswerRe: Iterate through DataGrid Pin
Herman<T>.Instance19-Jan-09 3:18
Herman<T>.Instance19-Jan-09 3:18 
QuestionHow to save datagrid values in the database. Pin
jaraldumary18-Jan-09 23:01
jaraldumary18-Jan-09 23:01 
AnswerRe: How to save datagrid values in the database. Pin
SeMartens19-Jan-09 0:08
SeMartens19-Jan-09 0:08 
AnswerRe: How to save datagrid values in the database. Pin
Reza Raad19-Jan-09 0:30
Reza Raad19-Jan-09 0:30 
GeneralRe: How to save datagrid values in the database. Pin
jaraldumary19-Jan-09 0:49
jaraldumary19-Jan-09 0:49 
AnswerRe: How to save datagrid values in the database. Pin
Reza Raad19-Jan-09 9:14
Reza Raad19-Jan-09 9:14 
Questiondiff. betn selection methods for XML [modified] Pin
Member 398136618-Jan-09 20:25
Member 398136618-Jan-09 20:25 
AnswerRe: diff. betn selection methods for XML Pin
N a v a n e e t h18-Jan-09 21:09
N a v a n e e t h18-Jan-09 21:09 
Questiondatagrid problem! Pin
RajpootRohan18-Jan-09 20:09
professionalRajpootRohan18-Jan-09 20:09 
AnswerRe: datagrid problem! Pin
Aman Bhullar18-Jan-09 20:38
Aman Bhullar18-Jan-09 20:38 
AnswerRe: datagrid problem! Pin
_AK_18-Jan-09 21:53
_AK_18-Jan-09 21:53 
AnswerRe: datagrid problem! Pin
N a v a n e e t h18-Jan-09 22:16
N a v a n e e t h18-Jan-09 22:16 
GeneralRe: datagrid problem! Pin
RajpootRohan18-Jan-09 22:53
professionalRajpootRohan18-Jan-09 22:53 
Questionindicator to show online or offline Pin
meghamaharshi18-Jan-09 19:45
meghamaharshi18-Jan-09 19:45 

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.