Click here to Skip to main content
15,906,558 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionMy Site gives "Server Error in / Application" when default.aspx page is requested Pin
Omage femi15-Sep-08 16:15
Omage femi15-Sep-08 16:15 
AnswerRe: My Site gives "Server Error in / Application" when default.aspx page is requested Pin
N a v a n e e t h15-Sep-08 16:34
N a v a n e e t h15-Sep-08 16:34 
GeneralRe: My Site gives "Server Error in / Application" when default.aspx page is requested Pin
Omage femi15-Sep-08 17:16
Omage femi15-Sep-08 17:16 
GeneralRe: My Site gives "Server Error in / Application" when default.aspx page is requested Pin
N a v a n e e t h15-Sep-08 17:55
N a v a n e e t h15-Sep-08 17:55 
QuestionQuerystring in Gridview HyperLinkField Pin
Humayun Shabbir15-Sep-08 14:52
Humayun Shabbir15-Sep-08 14:52 
AnswerRe: Querystring in Gridview HyperLinkField Pin
SunithaNallana15-Sep-08 22:20
SunithaNallana15-Sep-08 22:20 
GeneralRe: Querystring in Gridview HyperLinkField Pin
Humayun Shabbir16-Sep-08 7:01
Humayun Shabbir16-Sep-08 7:01 
AnswerRe: Querystring in Gridview HyperLinkField Pin
Linda1st16-Sep-08 9:06
Linda1st16-Sep-08 9:06 
It work out best for me by set the gridView at runtime...
protected void Page_Load(object sender, EventArgs e)
{
grid1.Visible = true;
setGridValues();
}


private void setGridValues()
{

grid1.Visible = true;

grid1.AutoGenerateColumns = true;

DataTable dt = new DataTable(); // dataTable
// column names ...
dt.Columns.Add("ID");
dt.Columns.Add("DateRequested");
dt.Columns.Add("ServicePartNo");
dt.Columns.Add("qty.");
dt.Columns.Add("VIN");
dt.Columns.Add("RoNo");
dt.Columns.Add("GCQIS");
dt.Columns.Add("Status");


// add hyper link to add to grid1........................
HyperLinkField linkX = new HyperLinkField();
string[] fldS = { "ID","Status" };
linkX.HeaderText = "ReqID";
linkX.DataTextField = "ID";
linkX.DataNavigateUrlFields = fldS;
linkX.DataNavigateUrlFormatString = "summaryReqNo.aspx?reqNo={0}&status={1}";
linkX.Target = "_self"; // = "_blank"

grid1.Attributes.Add("BackColor", "#CCCCCC"); // add attributes to grid
grid1.Attributes.Add( "BorderColor", "#000099");
grid1.Attributes.Add("BorderWidth", "3px");
grid1.Attributes.Add("ForeColor","#333399");
grid1.Attributes.Add("Width", "7in");

grid1.Columns.Add(linkX); // adding hyper link devined above to grid

cRequests reqS = new cRequests(userX); // values from classto loade into grid


// adding rows to grid1 ......................................
foreach (cRequest item in reqS)
{
object[] aryX = new object[8];

aryX[0] = (item.reqID);
aryX[1] = (item.reqDate).Value.ToShortDateString();
aryX[2] = (svcPN.prefix) + "-" + (svcPN.basePart) + "-" + (svcPN.suffix);
aryX[3] = (svcPN.svcQty);
aryX[4] = (item.reqVIN);
aryX[5] = (item.reqOrdNo);
aryX[6] = (item.reqGCQISNo);
aryX[7] = item.status;
dt.Rows.Add(aryX);

}
grid1.DataSource = dt;
grid1.DataBind(); // gridX.DataSource = arryLstX;

}
I hopes this helps. Thanks, Signed Lindall

xxx

QuestionAdding a text box or a control on a webform. Pin
udaykatakam15-Sep-08 13:05
udaykatakam15-Sep-08 13:05 
AnswerRe: Adding a text box or a control on a webform. Pin
N a v a n e e t h15-Sep-08 16:13
N a v a n e e t h15-Sep-08 16:13 
AnswerRe: Adding a text box or a control on a webform. Pin
Gamzun15-Sep-08 16:27
Gamzun15-Sep-08 16:27 
GeneralRe: Adding a text box or a control on a webform. Pin
N a v a n e e t h15-Sep-08 16:32
N a v a n e e t h15-Sep-08 16:32 
GeneralRe: Adding a text box or a control on a webform. Pin
Gamzun15-Sep-08 16:41
Gamzun15-Sep-08 16:41 
AnswerRe: Adding a text box or a control on a webform. Pin
Linda1st16-Sep-08 9:52
Linda1st16-Sep-08 9:52 
QuestionSite Search Pin
amit201115-Sep-08 9:08
amit201115-Sep-08 9:08 
AnswerRe: Site Search Pin
Paul Conrad15-Sep-08 12:11
professionalPaul Conrad15-Sep-08 12:11 
QuestionAccess Request/Response XML -ASP.NET Web Services Pin
geekfromindia15-Sep-08 8:21
geekfromindia15-Sep-08 8:21 
QuestionDeveloping on Vista (IIS7) and deploying on Server 2003 (IIS6) Pin
Todd Smith15-Sep-08 7:27
Todd Smith15-Sep-08 7:27 
AnswerRe: Developing on Vista (IIS7) and deploying on Server 2003 (IIS6) Pin
NeverHeardOfMe15-Sep-08 7:44
NeverHeardOfMe15-Sep-08 7:44 
QuestionPrinting in Asp.net 2.0 Pin
IamAmit15-Sep-08 6:01
IamAmit15-Sep-08 6:01 
QuestionGridview / datasource interaction Pin
DanB198315-Sep-08 5:59
DanB198315-Sep-08 5:59 
AnswerRe: Gridview / datasource interaction Pin
N a v a n e e t h15-Sep-08 16:31
N a v a n e e t h15-Sep-08 16:31 
GeneralRe: Gridview / datasource interaction Pin
DanB198315-Sep-08 22:48
DanB198315-Sep-08 22:48 
QuestionPublishing compiled website fails for some folders Pin
Colin Angus Mackay15-Sep-08 5:52
Colin Angus Mackay15-Sep-08 5:52 
QuestionForm Authentication problems Pin
omlac15-Sep-08 4:25
omlac15-Sep-08 4:25 

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.