Click here to Skip to main content
15,919,341 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: YDreams ImageMapDemo 2.0 Code Behind Issue Pin
Christian Graus31-Jul-09 20:55
protectorChristian Graus31-Jul-09 20:55 
Questionweb services .net 2.0 + php Pin
raquidd2231-Jul-09 10:10
raquidd2231-Jul-09 10:10 
AnswerRe: web services .net 2.0 + php Pin
Christian Graus31-Jul-09 10:13
protectorChristian Graus31-Jul-09 10:13 
GeneralRe: web services .net 2.0 + php Pin
raquidd222-Aug-09 10:32
raquidd222-Aug-09 10:32 
QuestionConfused of dynamically added controls on AJAX page Pin
Spoks_ST31-Jul-09 6:42
Spoks_ST31-Jul-09 6:42 
AnswerRe: Confused of dynamically added controls on AJAX page Pin
Abhijit Jana31-Jul-09 7:47
professionalAbhijit Jana31-Jul-09 7:47 
GeneralRe: Confused of dynamically added controls on AJAX page [modified] Pin
Spoks_ST31-Jul-09 9:09
Spoks_ST31-Jul-09 9:09 
QuestionChange Windows Submit button to asp:ImageButton Pin
cmfuchs31-Jul-09 4:15
cmfuchs31-Jul-09 4:15 
I am attempting to change the standard windows button style to an image. Below is the code with the Submit button and working .cs file. Below that is my failed attempt at using asp:ImageButton. Any suggestions/help would be appreciated.

Working Windows Button

.aspx file:

<br />
<input type="submit" Value="Submit" runat="server" ID="cmdSignUp"><br />


.aspx.cs file:
<br />
<br />
public partial class _Default : System.Web.UI.Page<br />
{<br />
	protected void Page_Load(object sender, EventArgs e)<br />
	{<br />
		this.cmdSignUp.ServerClick += new System.EventHandler(this.cmdSignUp_ServerClick);<br />
    }<br />
<br />
	private void cmdSignUp_ServerClick(object sender, System.EventArgs e)<br />
	{<br />
<br />


Failed attempt with using a custom image for button

.aspx file:

<br />
<asp:ImageButton ID="cmdSignUp" runat="server" ImageUrl="../../images/submit.gif"  OnClick="Page_Load></asp:ImageButton><br />
<br />

.aspx.cs file:

<br />
public partial class _Default : System.Web.UI.Page<br />
{<br />
	protected void Page_Load(object sender, ImageClickEventArgs e)<br />
	{<br />
		this.cmdSignUp.ServerClick += new System.EventHandler(this.cmdSignUp_ServerClick);<br />
    }<br />
<br />
	private void cmdSignUp_ServerClick(object sender, System.EventArgs e)<br />
	{<br />



Thanks again for the time and help.
AnswerRe: Change Windows Submit button to asp:ImageButton Pin
DoctorMick31-Jul-09 4:36
DoctorMick31-Jul-09 4:36 
QuestionHow to get value of HTML Editor in javascript Pin
Milind R Chavan31-Jul-09 3:45
Milind R Chavan31-Jul-09 3:45 
QuestionChinese Language input in .net Pin
Member 437757331-Jul-09 3:22
Member 437757331-Jul-09 3:22 
QuestionDynamic Menu Pin
blainzaw31-Jul-09 3:13
blainzaw31-Jul-09 3:13 
AnswerRe: Dynamic Menu Pin
Blue_Boy31-Jul-09 3:44
Blue_Boy31-Jul-09 3:44 
AnswerRe: Dynamic Menu Pin
r a m e s h31-Jul-09 5:46
r a m e s h31-Jul-09 5:46 
QuestionLong time to get DataSet While Stored Procedure takes 1 second. Pin
Member 263487631-Jul-09 3:00
Member 263487631-Jul-09 3:00 
QuestionProblem to Shutdown Remote PC from asp.net application running under iis 6.0 Pin
nani666631-Jul-09 2:12
nani666631-Jul-09 2:12 
AnswerRe: Problem to Shutdown Remote PC from asp.net application running under iis 6.0 Pin
Vimalsoft(Pty) Ltd31-Jul-09 2:18
professionalVimalsoft(Pty) Ltd31-Jul-09 2:18 
AnswerRe: Problem to Shutdown Remote PC from asp.net application running under iis 6.0 Pin
r a m e s h31-Jul-09 5:37
r a m e s h31-Jul-09 5:37 
Questionmake use of system32 dll in .net Pin
i_m_hashmat31-Jul-09 1:50
i_m_hashmat31-Jul-09 1:50 
AnswerRe: make use of system32 dll in .net Pin
Blikkies31-Jul-09 1:56
professionalBlikkies31-Jul-09 1:56 
AnswerRe: make use of system32 dll in .net Pin
Blikkies31-Jul-09 2:04
professionalBlikkies31-Jul-09 2:04 
QuestionDesigning a webpage Pin
srikantha_nagaraj31-Jul-09 0:45
srikantha_nagaraj31-Jul-09 0:45 
AnswerRe: Designing a webpage Pin
Abhishek Sur31-Jul-09 1:04
professionalAbhishek Sur31-Jul-09 1:04 
AnswerRe: Designing a webpage Pin
Blikkies31-Jul-09 1:04
professionalBlikkies31-Jul-09 1:04 
AnswerRe: Designing a webpage Pin
Anurag Gandhi31-Jul-09 1:08
professionalAnurag Gandhi31-Jul-09 1:08 

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.