Click here to Skip to main content
15,921,660 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questioncan anybody tell me slow response time of asp.net Pin
ilaxi31-May-07 20:30
ilaxi31-May-07 20:30 
AnswerRe: can anybody tell me slow response time of asp.net Pin
Christian Graus31-May-07 20:32
protectorChristian Graus31-May-07 20:32 
Questiondrop down binding Pin
tauras8131-May-07 20:17
tauras8131-May-07 20:17 
AnswerRe: drop down binding Pin
Christian Graus31-May-07 20:29
protectorChristian Graus31-May-07 20:29 
GeneralRe: drop down binding Pin
tauras811-Jun-07 2:16
tauras811-Jun-07 2:16 
Questionwhile adding row to gridview dynamically, i am getting this error. Pin
mnarayana331-May-07 20:07
mnarayana331-May-07 20:07 
AnswerRe: while adding row to gridview dynamically, i am getting this error. Pin
Christian Graus31-May-07 20:12
protectorChristian Graus31-May-07 20:12 
GeneralRe: while adding row to gridview dynamically, i am getting this error. Pin
mnarayana331-May-07 20:22
mnarayana331-May-07 20:22 
thanks for your suggestion. here is the code and try to help me.

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.OleDb;
using System.Data.OracleClient;

public partial class Default13 : System.Web.UI.Page
{
private void Createrow(Table childtable,int index)
{
GridViewRow row = new GridViewRow(-1, -1, DataControlRowType.DataRow, DataControlRowState.Normal);
row.Cells.Add(createcolumn());
childtable.Rows.AddAt(index + 2, row);
}
private TableCell createcolumn()
{
TableCell tc = new TableCell();
tc.ColumnSpan = GridView1.Columns.Count;
tc.Width = Unit.Percentage(100);
DataSourceControl ds = createdatasource();
tc.Controls.Add(ds);
tc.Controls.Add(createdetailsview(ds));

return tc;
}
private DataSourceControl createdatasource()
{
SqlDataSource ds = new SqlDataSource();

ds.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString2"].ConnectionString ;
ds.SelectCommand = "SELECT DEPTNO, DNAME FROM DEPT1 where deptno=@deptno";
Parameter pc = new Parameter("deptno", TypeCode.String, GridView1.SelectedValue.ToString());
ds.SelectParameters.Add(pc);
ds.ID = "SqlDataSource2";
return ds;
}
private static DetailsView createdetailsview(DataSourceControl ds)
{
DetailsView dv = new DetailsView();
dv.AutoGenerateRows = true;
dv.DataSourceID = ds.ID;
return dv;
}
protected void Page_Load(object sender, EventArgs e)
{

}
protected void GridView1_PreRender(object sender, EventArgs e)
{
if (GridView1.SelectedRow!= null)
{
Table childtable = GridView1.SelectedRow.Parent as Table;
if (childtable != null)
Createrow(childtable, GridView1.SelectedIndex);
}
}
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{



}
}

GeneralRe: while adding row to gridview dynamically, i am getting this error. Pin
Christian Graus31-May-07 20:31
protectorChristian Graus31-May-07 20:31 
GeneralRe: while adding row to gridview dynamically, i am getting this error. Pin
mnarayana331-May-07 20:40
mnarayana331-May-07 20:40 
GeneralRe: while adding row to gridview dynamically, i am getting this error. Pin
Christian Graus31-May-07 21:01
protectorChristian Graus31-May-07 21:01 
GeneralRe: while adding row to gridview dynamically, i am getting this error. Pin
mnarayana331-May-07 22:24
mnarayana331-May-07 22:24 
QuestionGroup Header in GridView Pin
ha_haseebahmad31-May-07 19:40
ha_haseebahmad31-May-07 19:40 
AnswerRe: Group Header in GridView Pin
Sathesh Sakthivel31-May-07 19:59
Sathesh Sakthivel31-May-07 19:59 
AnswerRe: can anyone explain clearly whether ASP.net is platform independent or not? Pin
Expert Coming31-May-07 19:42
Expert Coming31-May-07 19:42 
GeneralRe: can anyone explain clearly whether ASP.net is platform independent or not? Pin
Christian Graus31-May-07 20:33
protectorChristian Graus31-May-07 20:33 
GeneralRe: can anyone explain clearly whether ASP.net is platform independent or not? Pin
Christian Graus31-May-07 20:11
protectorChristian Graus31-May-07 20:11 
QuestionMaster Page Pin
ha_haseebahmad31-May-07 19:19
ha_haseebahmad31-May-07 19:19 
AnswerRe: Master Page Pin
Christian Graus31-May-07 20:10
protectorChristian Graus31-May-07 20:10 
Questionimplement remember me next time feature for login control where user name and pwd stored in encrypted format for cookie. Pin
deepalititi31-May-07 19:16
deepalititi31-May-07 19:16 
QuestionCan somebody tell me what's wrong with my app code folder? Pin
eggie531-May-07 18:32
eggie531-May-07 18:32 
AnswerRe: Can somebody tell me what's wrong with my app code folder? Pin
Expert Coming31-May-07 18:46
Expert Coming31-May-07 18:46 
QuestionRe: Can somebody tell me what's wrong with my app code folder? Pin
eggie531-May-07 18:47
eggie531-May-07 18:47 
AnswerRe: Can somebody tell me what's wrong with my app code folder? Pin
Expert Coming31-May-07 18:50
Expert Coming31-May-07 18:50 
GeneralRe: Can somebody tell me what's wrong with my app code folder? Pin
eggie531-May-07 18:53
eggie531-May-07 18:53 

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.