Click here to Skip to main content
16,007,504 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow design page Pin
jason_mf13-Jul-08 18:47
jason_mf13-Jul-08 18:47 
AnswerRe: how design page Pin
Anubhava Dimri13-Jul-08 19:41
Anubhava Dimri13-Jul-08 19:41 
Questionin windows any tool like fileupload Pin
S.Aijaz13-Jul-08 18:22
S.Aijaz13-Jul-08 18:22 
AnswerRe: in windows any tool like fileupload Pin
sumit703413-Jul-08 18:36
sumit703413-Jul-08 18:36 
GeneralRe: in windows any tool like fileupload Pin
S.Aijaz13-Jul-08 18:39
S.Aijaz13-Jul-08 18:39 
GeneralRe: in windows any tool like fileupload Pin
sumit703413-Jul-08 18:44
sumit703413-Jul-08 18:44 
GeneralRe: in windows any tool like fileupload Pin
S.Aijaz13-Jul-08 18:47
S.Aijaz13-Jul-08 18:47 
GeneralRe: in windows any tool like fileupload Pin
sumit703413-Jul-08 18:53
sumit703413-Jul-08 18:53 
QuestionEvent not Firing on first click, but fires on second click Pin
Simerjots13-Jul-08 13:51
Simerjots13-Jul-08 13:51 
AnswerRe: Event not Firing on first click, but fires on second click Pin
Paul Conrad13-Jul-08 17:57
professionalPaul Conrad13-Jul-08 17:57 
Questionjavascript in asp.net submit button ---- deadline hanging on head Pin
dream_liner_7e713-Jul-08 12:12
dream_liner_7e713-Jul-08 12:12 
AnswerRe: javascript in asp.net submit button ---- deadline hanging on head Pin
Abhijit Jana13-Jul-08 17:06
professionalAbhijit Jana13-Jul-08 17:06 
GeneralRe: javascript in asp.net submit button ---- deadline hanging on head Pin
dream_liner_7e714-Jul-08 4:19
dream_liner_7e714-Jul-08 4:19 
QuestionHow to pass Query Strings to other page ? Pin
AprNgp13-Jul-08 5:07
AprNgp13-Jul-08 5:07 
AnswerRe: How to pass Query Strings to other page ? Pin
MoustafaS13-Jul-08 12:03
MoustafaS13-Jul-08 12:03 
GeneralRe: How to pass Query Strings to other page ? Pin
AprNgp14-Jul-08 7:07
AprNgp14-Jul-08 7:07 
QuestionUnable to display datagrid during runtime Pin
twistz13-Jul-08 3:34
twistz13-Jul-08 3:34 
protected void Page_Load(object sender, EventArgs e)
{

if (!Page.IsPostBack)
{
//Get fresh data
DataGrid1.DataSource = Test();

//Bind to grid
DataGrid1.DataBind();

}
}

protected DataTable Test()
{
//Create new table object
DataTable dt = new DataTable();
dt.TableName = "Name";

//Create new column object
DataColumn dc = new DataColumn();

//Set the properties for the column
dc.ColumnName("Code");
dc.DataType = System.Type.GetType("System.Int32");
dc.DefaultValue = 0;

//Add new column
dc = new DataColumn("Name", System.Type.GetType("System.String"));
dc.DefaultValue = string.Empty;
dc.Caption = "Name";
dt.Columns.Add(dc);

//Create new row object
DataRow dr = new DataRow();
dr = dt.NewRow();
dr["Code"] = 001;
dr["Name"] = "Tan Teck Wah";

//Add new row
dr = new DataRow();
dr["Code"] = 002;
dr["Name"] = "Joseph Lin";
dt.Rows.Add(dr);

return dt;
}

//Display Data
private string GetTableData(DataTable dt)
{
StringBuilder TableData = new StringBuilder();
// retrieve header row column labels
TableData.AppendFormat("Row");
foreach (DataColumn dc in dt.Columns)
TableData.AppendFormat("\t{0}", dc.ColumnName);
TableData.AppendFormat("\n");

// retrieve rows
int j = -1;
foreach (DataRow dr in dt.Rows)
{
TableData.AppendFormat("[{0}]",++j);
foreach (DataColumn dc in dt.Columns)
{
TableData.AppendFormat("\t{0}", dr[dc] );
}
TableData.AppendFormat("\n");
}

return TableData.ToString();

}

}

there isnt any error when debug, however was unable to display the datagrid during runtime.
AnswerRe: Unable to display datagrid during runtime Pin
Venkatesh Mookkan13-Jul-08 17:28
Venkatesh Mookkan13-Jul-08 17:28 
QuestionDirectory Delete Pin
.NET- India 13-Jul-08 1:37
.NET- India 13-Jul-08 1:37 
AnswerRe: Directory Delete Pin
Anubhava Dimri13-Jul-08 20:15
Anubhava Dimri13-Jul-08 20:15 
Questionan script error [modified] Pin
ptvce13-Jul-08 0:14
ptvce13-Jul-08 0:14 
AnswerRe: an script error Pin
Guffa13-Jul-08 10:48
Guffa13-Jul-08 10:48 
QuestionDiscussion Board Pin
raushan_913-Jul-08 0:02
raushan_913-Jul-08 0:02 
AnswerRe: Discussion Board Pin
sumit703413-Jul-08 19:47
sumit703413-Jul-08 19:47 
GeneralRe: Discussion Board Pin
raushan_913-Jul-08 20:51
raushan_913-Jul-08 20:51 

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.