Click here to Skip to main content
15,889,116 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to send the ID field of a datalist to another page? Pin
Yusuf11-Mar-09 9:50
Yusuf11-Mar-09 9:50 
GeneralRe: How to send the ID field of a datalist to another page? Pin
Christian Graus11-Mar-09 9:54
protectorChristian Graus11-Mar-09 9:54 
AnswerRe: How to send the ID field of a datalist to another page? Pin
Arroci11-Mar-09 11:18
Arroci11-Mar-09 11:18 
GeneralRe: How to send the ID field of a datalist to another page? Pin
Christian Graus11-Mar-09 12:25
protectorChristian Graus11-Mar-09 12:25 
GeneralRe: How to send the ID field of a datalist to another page? Pin
Yusuf11-Mar-09 12:58
Yusuf11-Mar-09 12:58 
GeneralRe: How to send the ID field of a datalist to another page? Pin
Arroci11-Mar-09 13:19
Arroci11-Mar-09 13:19 
GeneralRe: How to send the ID field of a datalist to another page? Pin
Yusuf11-Mar-09 13:48
Yusuf11-Mar-09 13:48 
GeneralRe: How to send the ID field of a datalist to another page? Pin
Arroci11-Mar-09 14:15
Arroci11-Mar-09 14:15 
something like this seems to be working now BUT it doesn't seem to pick up the Eval. I think Christian meant something like this:

<asp:linkbutton id="GoToArticle" onclick="Go_To_Article" runat="server" xmlns:asp="#unknown"><![CDATA[<%# Eval("ID") %>]]></asp:linkbutton>


Note: [xmlns:asp="#unknown">] is supposed to be [><%# Eval("ID") %>]. Don't know why it comes out messed up but there you go Confused | :confused:

Now this button works because it goes to the next page but it doesn't submit the query string however I know why and that's because I don't know how to extract the Eval("ID") from the button hehe. So the part i'm stuck on is this:

Response.Redirect("~/NewsArticle.aspx?ID=" + this.GoToArticle)


I know (well, I get the feeling) that the this.GoToArticle is supposed to be expanded more but the intellisense is confusing me haha. I have placed the Eval in between the opening tag of the link button and the closing tag of the link button. If I could extract this value (maybe as a string?) it might fix it. I have a hunch I should be able to, because you can extract values from text boxes as strings. ]]>
GeneralRe: How to send the ID field of a datalist to another page? Pin
Yusuf11-Mar-09 15:12
Yusuf11-Mar-09 15:12 
GeneralRe: How to send the ID field of a datalist to another page? Pin
Christian Graus11-Mar-09 15:46
protectorChristian Graus11-Mar-09 15:46 
GeneralRe: How to send the ID field of a datalist to another page? [modified] Pin
Arroci11-Mar-09 18:19
Arroci11-Mar-09 18:19 
GeneralRe: How to send the ID field of a datalist to another page? Pin
Arroci12-Mar-09 10:26
Arroci12-Mar-09 10:26 
QuestionHow to display a jpg on a web page Pin
scjsb11-Mar-09 4:57
scjsb11-Mar-09 4:57 
AnswerRe: How to display a jpg on a web page Pin
Yusuf11-Mar-09 5:20
Yusuf11-Mar-09 5:20 
AnswerRe: How to display a jpg on a web page Pin
Rutvik Dave11-Mar-09 6:08
professionalRutvik Dave11-Mar-09 6:08 
AnswerRe: How to display a jpg on a web page Pin
Cybernate11-Mar-09 6:25
Cybernate11-Mar-09 6:25 
QuestionI need some direction on a web page Pin
Tom Wright11-Mar-09 4:36
Tom Wright11-Mar-09 4:36 
AnswerRe: I need some direction on a web page Pin
Yusuf11-Mar-09 5:22
Yusuf11-Mar-09 5:22 
GeneralRe: I need some direction on a web page Pin
Tom Wright11-Mar-09 6:04
Tom Wright11-Mar-09 6:04 
GeneralRe: I need some direction on a web page Pin
Cybernate11-Mar-09 6:26
Cybernate11-Mar-09 6:26 
GeneralRe: I need some direction on a web page Pin
Tom Wright11-Mar-09 11:16
Tom Wright11-Mar-09 11:16 
Questionsession state issues Pin
nerzhul8611-Mar-09 0:59
nerzhul8611-Mar-09 0:59 
AnswerRe: session state issues [modified] Pin
Rajeesh MP11-Mar-09 1:03
Rajeesh MP11-Mar-09 1:03 
GeneralRe: session state issues Pin
Cybernate11-Mar-09 6:32
Cybernate11-Mar-09 6:32 
QuestionRe: session state issues Pin
nerzhul8611-Mar-09 22:10
nerzhul8611-Mar-09 22:10 

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.