Questions tagged [servercontrol]
29 questions
0
votes
1 answer
Server Control Create Children Elements
I want to know how do you create child elements for a server control and is there any documentation or tutorials on this e.g
// <--
// ^-- Theis…

ONYX
- 5,679
- 15
- 83
- 146
0
votes
1 answer
How to retrieve the url address of a page hosting composite control?
I have a composite control, I need to get the address of page hosting it.

jullin
- 633
- 2
- 12
- 21
0
votes
1 answer
Asp.net: create a new server control. Where to start?
I would like to create a Server control that get some parameters and render a form or a gridview.
My goal is to create a library for standard CRUD operations .
A server control like this:

stighy
- 7,260
- 25
- 97
- 157
0
votes
1 answer
Getting generated xml from server control
I don't have much experience in server controls and xslt. I think I'm missing something fundamental and it seems that I can't find the right keywords to find what I need...
This works fine, it was not written by me. I'm just trying to understand…

user3760332
- 1
- 3
0
votes
1 answer
ASP.NET Server Control - Thousands of Embedded Files?
I have created an ASP.NET Server Control and have it working just fine. However, I have decided that I now need to embed many, many images into the DLL rather than having them be required in local paths wherever the DLL is used.
To my horror I just…

RandyWhirl
- 103
- 9
0
votes
0 answers
changing calendar server control month and year
I am trying to set a calendar server control (in visual studio) to a custom month and year that is selected by a user using a drop down list for months and one for years. I have it so that the calendar does not appear until both month and year are…

Stc5097
- 291
- 1
- 11
- 25
0
votes
1 answer
What is the syntax to embed a server control in an ASP text box? I can't find a working example anywhere
I'm new to ASP MVC and I'm completely stuck.
All I want to do is have a control like this:
But have it populated by a value from a controller.
This syntax is what I…

user3170393
- 43
- 3
0
votes
1 answer
How to access Dynamically loaded server control of Master Page in content page?
I have created Master page and from content page, loaded some server controls to Master Page.
Control ctrl = Page.ParseControl(result);
ContentPlaceHolder cph = (ContentPlaceHolder)this.Page.Master.FindControl("ContentPlaceHolder1");
…

Tom Cruise
- 1,395
- 11
- 30
- 58
0
votes
2 answers
How to handle a click event for Button that placed inside a Control Object?
I have a control Object . In control object I have added a Button . I want to handle click event for Button object.
mapcomponent.MapObjectClick += new MapComponent.MapComponent.MapObjectEventHandler(mapcomponent_MapObjectClick);
Public…

Anupam
- 1
0
votes
2 answers
Create server control like panel and linklabel using javascript
I want to add panel control using javascript inside the TD element.
Is it possible to create these control using Document.createElement and appendChild
methods?
I also want to show and hide this panel control onmouseover and onmouseout event.
Nitin Jain
0
votes
1 answer
what's the ASP.NET method to load a server control by parsing from a string
I believe I have seen a method for doing this, but I do not remember.
I am trying to load a control using something like:
string str = " ";
Control ctrl =…

Dan Rivera
- 1
- 1
0
votes
2 answers
ScriptManager.RegisterClientScriptBlock registering scripts twice
On the OnPreRender of my custom server control, I am registering an alert to popup everytime the page is loaded after a partial postback (add_pageLoaded(function() { alert('Hi')})). I only want this to be called once, but its gets called as many…

BlueChameleon
- 924
- 1
- 10
- 36
-1
votes
1 answer
asp net looping through server control in jquery
I am developing a web page using asp net web forms.
In javascript I can loop through my components;
for (var i = 2; i <= 10; i++) {
$("#textbox" + i).get(0).style.display = 'none';
}
However when I set runat="server" for components, I need to…

EMre
- 53
- 7
-1
votes
1 answer
Any alternate way to avoid null value return in asp.net server control
I created a server control and test.aspx Code is shown below .
When dll is loaded , RenderContents() function gets called.
Control transfer to DataSource property ,
but ViewState["DataSource"] returns null .
To avoid it , I initialized…

Bhushan Mahajan
- 71
- 1
- 9