Click here to Skip to main content
15,896,207 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: ASP.NET Editable Drop Down List Pin
J Liang15-May-08 22:10
J Liang15-May-08 22:10 
QuestionHelp me in choosing the VB.Net Software Pin
avin200315-May-08 8:05
avin200315-May-08 8:05 
AnswerRe: Help me in choosing the VB.Net Software Pin
Blue_Boy15-May-08 10:10
Blue_Boy15-May-08 10:10 
AnswerRe: Help me in choosing the VB.Net Software Pin
Christian Graus15-May-08 11:42
protectorChristian Graus15-May-08 11:42 
Questionasp.net page and sms api. i need help Pin
cmpemikail15-May-08 7:28
cmpemikail15-May-08 7:28 
AnswerRe: asp.net page and sms api. i need help Pin
Christian Graus15-May-08 11:42
protectorChristian Graus15-May-08 11:42 
QuestionAjax enable WCF service Pin
Saurabh15-May-08 5:50
Saurabh15-May-08 5:50 
Questionusing "GridView inline Master/Detail record display" project Pin
Ekjon15-May-08 5:48
Ekjon15-May-08 5:48 
I am trying to use the abovementioned codeproject Project by Gary Dryden.
My first GridView (master page) shows up fine, but when the (+) is clicked, it doesn't display the 2nd GridView in the detail page.
The relevant code is as follows: (master page)
<br />
protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)<br />
{<br />
        if (e.Row.RowType == DataControlRowType.Header)<br />
            AddGlyph(GridView1, e.Row);<br />
        if (e.Row.RowType == DataControlRowType.DataRow)<br />
        {<br />
            string KeyValue = GridView1.DataKeys[e.Row.RowIndex].Value.ToString();<br />
            if (KeyValue == "0" && EditIndex == -1)		// we are not editing<br />
                e.Row.Attributes.Add("isadd", "1");<br />
            string RowID = Convert.ToString(System.Web.UI.DataBinder.Eval(e.Row.DataItem, "site_id"));<br />
            string Url = "submitdetail.aspx?siteid=" + RowID;//create the Url to be executed when //the "+" is clicked <br />
            e.Row.Attributes.Add("href", Url);		// link to details<br />
            e.Row.Attributes.Add("open", "0");	  // used by the detail table expander/contracter<br />
            e.Row.Attributes.Add("hascontent", "0");// prevent excessive callbacks to server<br />
        }<br />
    }<br />

detail page:
<br />
string site = Request.QueryString["site_id"];<br />
         SqlDataSource1.SelectCommand = "select plot_id, plot_name, collection_month, submit_date, delayed_by" + " from submit_info where site_id ='" + site + "'" + " order by plot_name";<br />
        if (!Page.IsPostBack)<br />
        {<br />
            GridView1.DataBind();<br />
        }<br />


So, apparently, I am doing things right. The expanding, collapsing is performed by javascript and haven't modified anything there.

Anybody has any idea, where to focus?
Thanks.

Ekjon
AnswerRe: using "GridView inline Master/Detail record display" project Pin
led mike15-May-08 5:59
led mike15-May-08 5:59 
GeneralRe: using "GridView inline Master/Detail record display" project Pin
Ekjon15-May-08 6:24
Ekjon15-May-08 6:24 
QuestionPDF Pin
Imthu15-May-08 4:01
Imthu15-May-08 4:01 
AnswerRe: PDF Pin
Ernest Laurentin15-May-08 4:28
Ernest Laurentin15-May-08 4:28 
AnswerThird post Pin
leckey15-May-08 4:29
leckey15-May-08 4:29 
Questionhow to create a session for a loging user? Pin
sandy005315-May-08 2:48
sandy005315-May-08 2:48 
AnswerRe: how to create a session for a loging user? Pin
Sandeep Kumar15-May-08 3:05
Sandeep Kumar15-May-08 3:05 
AnswerRe: how to create a session for a loging user? Pin
eyeseetee15-May-08 3:16
eyeseetee15-May-08 3:16 
QuestionPDF component Pin
Imthu15-May-08 2:48
Imthu15-May-08 2:48 
AnswerRe: PDF component Pin
J a a n s15-May-08 4:53
professionalJ a a n s15-May-08 4:53 
QuestionHtmlInputHidden in a datagrid loses it's value after postback [modified] Pin
thomasa15-May-08 2:35
thomasa15-May-08 2:35 
AnswerRe: HtmlInputHidden in a datagrid loses it's value after postback Pin
TheWirelessGuy15-May-08 9:09
TheWirelessGuy15-May-08 9:09 
QuestionHow to fech records from Dataset Pin
sjs4u15-May-08 2:05
sjs4u15-May-08 2:05 
AnswerRe: How to fech records from Dataset Pin
eyeseetee15-May-08 3:12
eyeseetee15-May-08 3:12 
Questionmessage box problem in code behind Pin
Pankaj Garg15-May-08 1:33
Pankaj Garg15-May-08 1:33 
AnswerRe: message box problem in code behind Pin
SamRST15-May-08 1:58
SamRST15-May-08 1:58 
GeneralRe: message box problem in code behind Pin
Pankaj Garg15-May-08 2:05
Pankaj Garg15-May-08 2:05 

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.