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

ASP.NET

 
QuestionSQL 2000 backup Pin
Navneet Hegde10-May-07 20:58
Navneet Hegde10-May-07 20:58 
AnswerRe: SQL 2000 backup Pin
N a v a n e e t h10-May-07 21:16
N a v a n e e t h10-May-07 21:16 
GeneralRe: SQL 2000 backup Pin
Navneet Hegde10-May-07 21:32
Navneet Hegde10-May-07 21:32 
AnswerRe: SQL 2000 backup Pin
Sylvester george10-May-07 21:23
Sylvester george10-May-07 21:23 
QuestionHow to pass variables from a page to a web control? Pin
steffw10-May-07 20:56
steffw10-May-07 20:56 
AnswerRe: How to pass variables from a page to a web control? Pin
Sylvester george10-May-07 21:00
Sylvester george10-May-07 21:00 
GeneralRe: How to pass variables from a page to a web control? Pin
steffw10-May-07 21:24
steffw10-May-07 21:24 
GeneralRe: How to pass variables from a page to a web control? Pin
Sylvester george10-May-07 21:33
Sylvester george10-May-07 21:33 
[DefaultProperty("ImageUrl"),<br />
	ToolboxData("<{0}:ImageButton runat=server></{0}:ImageButton>")]<br />
	public class ImageButton : System.Web.UI.WebControls.LinkButton<br />
	{<br />
		[Bindable(true),<br />
		Category("Appearance"),<br />
		DefaultValue(""),<br />
		Description("Specifies the image url for the button when in its normal state.")]<br />
		public string ImageUrl<br />
		{<br />
			get<br />
			{<br />
				object o = ViewState["RollOverImageUrl"];<br />
				if (o != null)<br />
					return (string) o;<br />
				else<br />
					return String.Empty;<br />
			}<br />
<br />
			set<br />
			{<br />
				ViewState["RollOverImageUrl"] = value;<br />
			}<br />
		}<br />
<br />
		[Bindable(true),<br />
		Category("Appearance"),<br />
		DefaultValue(""),<br />
		Description("Specifies the image url for the button when the mouse is hovered above the button.")]<br />
		public string DownImageUrl<br />
		{<br />
			get<br />
			{<br />
				object o = ViewState["RollOverRollOverImageUrl"];<br />
				if (o != null)<br />
					return (string) o;<br />
				else<br />
					return String.Empty;<br />
			}<br />
<br />
			set<br />
			{<br />
				ViewState["RollOverRollOverImageUrl"] = value;<br />
			}<br />
		}<br />
<br />
<br />
		[Bindable(true),<br />
		Category("Appearance"),<br />
		DefaultValue(""),<br />
		Description("Specifies the image url for the button when the mouse is Rollovered above the button.")]<br />
		public string RollOverImageUrl<br />
		{<br />
			get<br />
			{<br />
				object o = ViewState["RollOverRollOverRollOverImageUrl"];<br />
				if (o != null)<br />
					return (string) o;<br />
				else<br />
					return String.Empty;<br />
			}<br />
<br />
			set<br />
			{<br />
				ViewState["RollOverRollOverRollOverImageUrl"] = value;<br />
			}<br />
		}<br />


This is my ImageButton derived from LinkButton And I have added some more properties for image urls

Regards,
Sylvester G
sylvester_g_m@yahoo.com

GeneralRe: How to pass variables from a page to a web control? Pin
steffw10-May-07 21:54
steffw10-May-07 21:54 
AnswerRe: How to pass variables from a page to a web control? Pin
Bijay Bhaskar Deo10-May-07 21:03
Bijay Bhaskar Deo10-May-07 21:03 
GeneralRe: How to pass variables from a page to a web control? [modified] Pin
steffw10-May-07 21:23
steffw10-May-07 21:23 
QuestionAsp.net 2.0 + c# +ActIve Directory Service Pin
ritu432110-May-07 20:55
ritu432110-May-07 20:55 
AnswerRe: Asp.net 2.0 + c# +ActIve Directory Service Pin
DanB198310-May-07 23:30
DanB198310-May-07 23:30 
GeneralRe: Asp.net 2.0 + c# +ActIve Directory Service Pin
ritu432111-May-07 0:05
ritu432111-May-07 0:05 
QuestionValidator to check 2 time fields Pin
samerh10-May-07 20:49
samerh10-May-07 20:49 
AnswerRe: Validator to check 2 time fields Pin
Bijay Bhaskar Deo10-May-07 20:58
Bijay Bhaskar Deo10-May-07 20:58 
GeneralRe: Validator to check 2 time fields Pin
samerh10-May-07 22:35
samerh10-May-07 22:35 
GeneralRe: Validator to check 2 time fields Pin
Sandeep Kumar10-May-07 22:59
Sandeep Kumar10-May-07 22:59 
QuestionStringBuilder and Placeholder Pin
kirthikirthi10-May-07 20:41
kirthikirthi10-May-07 20:41 
AnswerRe: StringBuilder and Placeholder Pin
Bijay Bhaskar Deo10-May-07 20:51
Bijay Bhaskar Deo10-May-07 20:51 
AnswerRe: StringBuilder and Placeholder Pin
SimulationofSai10-May-07 21:08
SimulationofSai10-May-07 21:08 
GeneralRe: StringBuilder and Placeholder Pin
kirthikirthi10-May-07 21:51
kirthikirthi10-May-07 21:51 
QuestionConvert to pdf using CR 9.2 engine error Pin
samerh10-May-07 20:36
samerh10-May-07 20:36 
AnswerRe: Convert to pdf using CR 9.2 engine error Pin
Sylvester george10-May-07 20:44
Sylvester george10-May-07 20:44 
GeneralRe: Convert to pdf using CR 9.2 engine error Pin
samerh10-May-07 20:54
samerh10-May-07 20:54 

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.