|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Custom ButtonsI would really appreciate some help with two questions
1) I have some buttons that i created with dreamweaver and i want to use these as asp.net buttons. Can anyone tell me how to do this a ) outside and b) inside the datagrid 2) I want to click on an image in the datagrid and have the details displayed as text under a photograph. If the details are coming from a database what is the best thing to use here a) datagrid b) datalist c) image and string builder many thanks martin -- Message posted via DotNetMonster.com http://www.dotnetmonster.com/Uwe/Forums.aspx/asp-net-web-controls/200512/1 For question #1, the answer is simply to use the
System.Web.UI.WebControls.ImageButton control. It is basically the same as a regular button, except you use an image rather than text. You can do all the same stuff and any code in the eventhandler should be the same. As for question #2, any of those would work. If you are already using a datagrid, I would just keep using that. I would like to point out, although I am sure you would discover it very quickly from what I said in your first question, even though the name "ImageButton" sounds like it has the button-like border, it is actually just a clickable image, so you probably want to use that in #2 rather than just an image if it will be causing text to appear. Good Luck! "martinharvey via DotNetMonster.com" <u14945@uwe> wrote in message news:586ff5d5b66b7@uwe...Show quoteHide quote >I would really appreciate some help with two questions > > 1) I have some buttons that i created with dreamweaver and i want to use > these as asp.net buttons. Can anyone tell me how to do this > a ) outside and b) inside the datagrid > > 2) I want to click on an image in the datagrid and have the details > displayed > as text under a photograph. If the details are coming from a database what > is > the best thing to use here a) datagrid b) datalist c) image and string > builder > > many thanks > > martin > > -- > Message posted via DotNetMonster.com > http://www.dotnetmonster.com/Uwe/Forums.aspx/asp-net-web-controls/200512/1 |
|||||||||||||||||||||||