Click here to Skip to main content
15,890,438 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Problem in Gmap control --- Please anyone help me.. Pin
AhsanS30-Oct-08 20:14
AhsanS30-Oct-08 20:14 
AnswerRe: Problem in Gmap control --- Please anyone help me.. Pin
Amit Agarrwal31-Oct-08 0:51
Amit Agarrwal31-Oct-08 0:51 
QuestionAccess text file on server...really need help Pin
Member 174736330-Oct-08 18:38
Member 174736330-Oct-08 18:38 
AnswerRe: Access text file on server...really need help Pin
AhsanS30-Oct-08 20:15
AhsanS30-Oct-08 20:15 
QuestionHow to install an app inside the subdirectory of another app Pin
jumbojs30-Oct-08 17:30
jumbojs30-Oct-08 17:30 
AnswerRe: How to install an app inside the subdirectory of another app Pin
AhsanS30-Oct-08 20:17
AhsanS30-Oct-08 20:17 
QuestionCannot update controls from DLL events Pin
Sreenath Varma30-Oct-08 15:49
Sreenath Varma30-Oct-08 15:49 
QuestionHow to create a new GridView column that contains a dynamic URL? Pin
pzn3xq30-Oct-08 10:02
pzn3xq30-Oct-08 10:02 
Hi

I have a gridview displaying the northwind Orders table. I'd like to add a new column called "Order Details" which is a hyperlink to the order details of the order record. I created the column and added the following code...but I don't know how to create my NavigateURL dynamically based on the primary key of the order selected.


"GridView1" runat="server" AllowPaging="True"
AutoGenerateColumns="False" DataKeyNames="OrderID" DataSourceID="dsOrders">

"True">
"OrderID" HeaderText="OrderID" InsertVisible="False"
ReadOnly="True" SortExpression="OrderID">
"OrderDate" HeaderText="OrderDate"
SortExpression="OrderDate">
"RequiredDate" HeaderText="RequiredDate"
SortExpression="RequiredDate">
"ShippedDate" HeaderText="ShippedDate"
SortExpression="ShippedDate">
"Order Details">


"dsOrders" runat="server"
ContextTypeName="NorthwindDataContext" TableName="Orders">

The problem with the code below is I don't know how to identify the order id, and how to convert the text into an actual hyperlink value instead of static text.

protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
{

if (e.Row.RowType == DataControlRowType.DataRow)
{

e.Row.Cells[5].text = "http://mysite/orderdetail.aspx?OrderId=?";
}

}
AnswerRe: How to create a new GridView column that contains a dynamic URL? Pin
_AK_30-Oct-08 20:17
_AK_30-Oct-08 20:17 
AnswerRe: How to create a new GridView column that contains a dynamic URL? Pin
meeram39530-Oct-08 20:32
meeram39530-Oct-08 20:32 
GeneralRe: How to create a new GridView column that contains a dynamic URL? Pin
pzn3xq3-Nov-08 9:12
pzn3xq3-Nov-08 9:12 
QuestionDataGrid click event Pin
RohiniTalks30-Oct-08 9:29
RohiniTalks30-Oct-08 9:29 
AnswerRe: DataGrid click event Pin
_AK_30-Oct-08 20:13
_AK_30-Oct-08 20:13 
AnswerRe: DataGrid click event Pin
meeram39530-Oct-08 20:14
meeram39530-Oct-08 20:14 
Questioncannot bind gridview to a second sqldatasource programatically Pin
hassanmohamed30-Oct-08 8:16
hassanmohamed30-Oct-08 8:16 
AnswerRe: cannot bind gridview to a second sqldatasource programatically Pin
Anand Desai30-Oct-08 8:24
Anand Desai30-Oct-08 8:24 
GeneralRe: cannot bind gridview to a second sqldatasource programatically Pin
hassanmohamed30-Oct-08 8:35
hassanmohamed30-Oct-08 8:35 
GeneralRe: cannot bind gridview to a second sqldatasource programatically Pin
vaseeem30-Oct-08 9:17
vaseeem30-Oct-08 9:17 
GeneralRe: cannot bind gridview to a second sqldatasource programatically Pin
hassanmohamed2-Nov-08 14:26
hassanmohamed2-Nov-08 14:26 
NewsHeads Up - IE8 Comaptibility Mode Pin
jeffwask30-Oct-08 6:34
jeffwask30-Oct-08 6:34 
QuestionUpload voice through webpage Pin
Gamzun30-Oct-08 6:18
Gamzun30-Oct-08 6:18 
Questionhtml div Pin
eyeseetee30-Oct-08 4:14
eyeseetee30-Oct-08 4:14 
AnswerRe: html div Pin
m-khansari30-Oct-08 4:23
m-khansari30-Oct-08 4:23 
Questionneed to Develope web app..? Pin
BuzzMan8730-Oct-08 3:43
BuzzMan8730-Oct-08 3:43 
AnswerRe: need to Develope web app..? Pin
John Gathogo30-Oct-08 3:58
John Gathogo30-Oct-08 3:58 

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.