I want to use an image inside a Custom Web server control !
Do I need to use Web.resources ? if so , how to do ?
View Complete Post
Can someone explain how to add a default image from resources to imagebutton in custom server control?
Asume i'm dumb as a rock and can't count to 2 as i read
and many more....
about that and i'm trying to do this past 5 hours with no luck.
I'm using VB. I've create Resource wit
i am new to technology so go easy on this post
according to what i read from web there are 3 type of custom server controls
i found video tutorial for superclass custom server control but couldnt find video tutials for other 2.
please forward me link for composite and rendered custom server controls video tutorial
I have created a server control consisting of a TextArea and a div under it. My goal is to create my own asp:TextArea type control. the div is for a Character count of the text area and seems to work ok but i added a CharacterCountVisible property to the control that is always returning true. See Proptery definition below
<Bindable(False), Category("Appearance"), DefaultValue("True"), Localizable(True)> Property CharacterCountVisible() As Boolean Get Return _CountBoxVisible End Get Set(ByVal value As Boolean) _CountBoxVisible = value End SetEnd Property
Note the _CountBoxVisible variable is define inside the class as :
Dim _CountBoxVisible as Boolean = True
What I am trying to do is give the user/coder the option to show/utilize the char count feature. Can make it disappear with textarea1.CharacterCountVisible = False but setting it to true will not make it display.
What am i missing
Hi all, I am new to custom server control. I want to create my own grid like custom server control for my project. Please suggest me some good books and urls. Thanks
i registered an image in AssemblyInfo.cs like this:
[assembly: WebResource("MyControl.Icons.bold.png", "image/png")]
protected override void RenderContents(HtmlTextWriter output)
output.Write("<p class='BoldButtons' onclick='event4()'>event4 </p>");
now i want to initialize that image in css file for background-image but it dose'nt work.
my css file is:
i also try with this :
but it dose'nt work.
please help me?
I have added an image(bold.png) and an html file(test.html) into server Control project and set those Bulid Action property to Embeded Resourse.
i registered html and image file in AssemblyInfo.cs :
[assembly: WebResource("ServerControl2.test.htm", "text/html", PerformSubstitution = true)]
[assembly: WebResource("ServerControl2.bold.png", "image/png")]
now i want show that registered image(bold.png) into the html file(test.html).
i try it like this :
<img src="<%= WebResource('ServerControl2.bold.png') %>" />
I am trying to use a collapsible panel extender within a custom server control. I've used the extender elsewhere with no issues but when I try to add the control to my panels collection of controls in my custom control, my page crashes. Take it out and no error. I'm adding other controls to the panel...literals, labels, etc. This, however is the only ajax control I am using. Is there something I need to do as far as registering the extender with the script manager (on the master page)? Thanks....Brad
is it posible to add client side functionality to a custom server control in vb.net?
i am looking at msdn library and there is no code for vb :/ http://msdn.microsoft.com/en-us/library/aa719700%28v=VS.71%29.aspx
I fount this on MSDN Library Adding Client Capabilities to a Web Server Control
What i'm trying to do is to add some client functionality to my control, so that you can get or set some properties/values on client side. From the above link i see that this is doable with Ajax Server Control, but i don't have it, i have Custom Server Control. Can i do this with Custom Server Control and how?
How to set default Image to RichFieldImage control in custom Publishing Page layout in Site definition?
are creating a composite server control. It will have few other
controls. I am confused where exactly to write the code ie in which
event. Is page life cycle and control life cycle follow the same event order?Could any one please suggest or post articles on this. Thank You
Some information on what my control looks like
In my AssemblyInfo I have the following:
i can add buttons in my custom server control but i can't handle button click event. how can i do this