Click here to Skip to main content
15,908,834 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Include image in hyperlink [modified] Pin
thomasa11-Apr-07 2:06
thomasa11-Apr-07 2:06 
GeneralRe: Include image in hyperlink Pin
netDeveloper11-Apr-07 3:05
netDeveloper11-Apr-07 3:05 
GeneralRe: Include image in hyperlink Pin
thomasa11-Apr-07 3:40
thomasa11-Apr-07 3:40 
If you want to this at the code behind:
<br />
LinkButton lbtn = new LinkButton();<br />
lbtn.Click += new System.EventHandler(this.lbtn_Click);<br />
<br />
lbtn.Text = "The text to display " + "<img border=\"0\" src=\"http://www.zzz.com/295384c2bbdd7a96e5432be08b42036e.gif\" alt=\"ZZZ\">";<br />
// the last bit is the image<br />
<br />
this.Controls.Add(lbtn);<br />
<br />
<br />
private void lbtn_Click(object sender, System.EventArgs e)<br />
{<br />
// At the moment I don't remember the syntax, but it's something like this<br />
Page.Redirct("http://www.zzz.com/"); <br />
}<br />


It's not easy to make the text and the image align the way one wants, so
often I splitt it in to 2 linkbuttons. One for the name and one for the image.
Questiononly one line in datagrid cell Pin
haytham_mohammad10-Apr-07 23:47
haytham_mohammad10-Apr-07 23:47 
AnswerRe: only one line in datagrid cell Pin
thomasa11-Apr-07 4:07
thomasa11-Apr-07 4:07 
GeneralRe: only one line in datagrid cell Pin
haytham_mohammad11-Apr-07 4:16
haytham_mohammad11-Apr-07 4:16 
Questionpopulate dropdownlist box Pin
monuSaini10-Apr-07 23:40
monuSaini10-Apr-07 23:40 
AnswerRe: populate dropdownlist box Pin
enjoycrack10-Apr-07 23:43
enjoycrack10-Apr-07 23:43 
GeneralRe: populate dropdownlist box Pin
monuSaini11-Apr-07 0:45
monuSaini11-Apr-07 0:45 
GeneralRe: populate dropdownlist box Pin
enjoycrack11-Apr-07 0:49
enjoycrack11-Apr-07 0:49 
GeneralRe: populate dropdownlist box Pin
monuSaini11-Apr-07 0:59
monuSaini11-Apr-07 0:59 
GeneralRe: populate dropdownlist box Pin
enjoycrack11-Apr-07 1:07
enjoycrack11-Apr-07 1:07 
GeneralRe: populate dropdownlist box Pin
monuSaini11-Apr-07 1:12
monuSaini11-Apr-07 1:12 
GeneralRe: populate dropdownlist box Pin
enjoycrack11-Apr-07 1:19
enjoycrack11-Apr-07 1:19 
GeneralRe: populate dropdownlist box Pin
monuSaini11-Apr-07 3:12
monuSaini11-Apr-07 3:12 
GeneralRe: populate dropdownlist box Pin
enjoycrack11-Apr-07 4:39
enjoycrack11-Apr-07 4:39 
GeneralRe: populate dropdownlist box Pin
monuSaini11-Apr-07 4:45
monuSaini11-Apr-07 4:45 
GeneralRe: populate dropdownlist box Pin
enjoycrack11-Apr-07 4:51
enjoycrack11-Apr-07 4:51 
QuestionSet Password Default Value in LoginView Pin
Abubakarsb10-Apr-07 23:28
Abubakarsb10-Apr-07 23:28 
AnswerRe: Set Password Default Value in LoginView Pin
enjoycrack10-Apr-07 23:42
enjoycrack10-Apr-07 23:42 
GeneralRe: Set Password Default Value in LoginView Pin
Abubakarsb11-Apr-07 0:11
Abubakarsb11-Apr-07 0:11 
QuestionAdult website with ASP.NET Pin
Bulky Fellow10-Apr-07 23:15
Bulky Fellow10-Apr-07 23:15 
AnswerRe: Adult website with ASP.NET Pin
_mubashir11-Apr-07 0:17
_mubashir11-Apr-07 0:17 
AnswerRe: Adult website with ASP.NET Pin
N a v a n e e t h11-Apr-07 0:24
N a v a n e e t h11-Apr-07 0:24 
AnswerRe: Adult website with ASP.NET Pin
Amr M. K.12-Apr-07 4:03
Amr M. K.12-Apr-07 4:03 

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.