Click here to Skip to main content
15,917,634 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionA Problem with TextBox control in ASP.NET [modified] Pin
Seal200224-Apr-07 14:43
professionalSeal200224-Apr-07 14:43 
AnswerRe: A Problem with TextBox control in ASP.NET Pin
enjoycrack24-Apr-07 18:02
enjoycrack24-Apr-07 18:02 
AnswerRe: A Problem with TextBox control in ASP.NET Pin
Sandeep Akhare24-Apr-07 20:00
Sandeep Akhare24-Apr-07 20:00 
QuestionDeclare Variables globally Pin
BINOVAR24-Apr-07 14:24
BINOVAR24-Apr-07 14:24 
AnswerRe: Declare Variables globally Pin
Arun.Immanuel24-Apr-07 16:25
Arun.Immanuel24-Apr-07 16:25 
AnswerRe: Declare Variables globally Pin
Tirthadip24-Apr-07 18:38
Tirthadip24-Apr-07 18:38 
Questionhyperlinks Pin
hahii24-Apr-07 12:22
hahii24-Apr-07 12:22 
AnswerRe: hyperlinks Pin
Quinten.Miller24-Apr-07 13:08
Quinten.Miller24-Apr-07 13:08 
Howdy,

Not quite sure what yo are trying to do but I gather it has something to do with a data coming from a database? If you are using a data control in ASP.NET (such as a repeater, datalist) then the first code snippet should do what you want. If you are using a gridview then the second snippet is probably more likely to solve your problem.

<asp:HyperLink ID="hlChildCategory" runat="server" NavigateUrl='<%# "ICT/ProductsByCategory.aspx?CategoryID=" + Eval("CategoryID") %>'
Text='<%# Eval("Category") %>'></asp:HyperLink>


<asp:HyperLinkField DataTextField="ItemDescription" DataNavigateUrlFields="ItemID" DataNavigateUrlFormatString="~/ICT/ProductDetails.aspx?ItemID={0}" SortExpression="ItemDescription">
...
</asp:HyperLinkField>

I seriously suggest having a look at the tutorials on
http://www.asp.net/learn/dataaccess/default.aspx
QuestionHttpWebRequest Hanging on Post GetResponse() Pin
Tristan Rhodes24-Apr-07 12:02
Tristan Rhodes24-Apr-07 12:02 
QuestionCustomising the asp:CreateUserWizard Control Pin
Brendan Vogt24-Apr-07 9:46
Brendan Vogt24-Apr-07 9:46 
QuestionBack & Forward Button in browser Pin
aransiola24-Apr-07 7:48
aransiola24-Apr-07 7:48 
AnswerRe: Back & Forward Button in browser Pin
Quinten.Miller24-Apr-07 13:12
Quinten.Miller24-Apr-07 13:12 
QuestionDisplaying table contents Pin
krk101124-Apr-07 7:40
krk101124-Apr-07 7:40 
QuestionDisplay a .snp file on a ASP.NET page Pin
Ibuprofen24-Apr-07 7:40
Ibuprofen24-Apr-07 7:40 
QuestionGrab value of input control via Page.FindControls - issue Pin
DeepToot24-Apr-07 5:09
DeepToot24-Apr-07 5:09 
AnswerRe: Grab value of input control via Page.FindControls - issue Pin
badgrs24-Apr-07 5:57
badgrs24-Apr-07 5:57 
GeneralRe: Grab value of input control via Page.FindControls - issue Pin
DeepToot24-Apr-07 6:59
DeepToot24-Apr-07 6:59 
Questionwindow.confirm Pin
Imran Khan Pathan24-Apr-07 4:05
Imran Khan Pathan24-Apr-07 4:05 
AnswerRe: window.confirm Pin
Arun.Immanuel24-Apr-07 4:15
Arun.Immanuel24-Apr-07 4:15 
GeneralRe: window.confirm Pin
Sujit Gupta24-Apr-07 7:51
Sujit Gupta24-Apr-07 7:51 
AnswerRe: window.confirm Pin
badgrs24-Apr-07 5:51
badgrs24-Apr-07 5:51 
QuestionPlz find out error in my code. Pin
Care Career24-Apr-07 2:27
Care Career24-Apr-07 2:27 
AnswerRe: Plz find out error in my code. Pin
Colin Angus Mackay24-Apr-07 2:32
Colin Angus Mackay24-Apr-07 2:32 
AnswerRe: Plz find out error in my code. Pin
Russell Jones24-Apr-07 2:42
Russell Jones24-Apr-07 2:42 
AnswerRe: Plz find out error in my code. Pin
Md. Ismail24-Apr-07 2:50
Md. Ismail24-Apr-07 2:50 

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.