Questions tagged [servercontrol]

29 questions
5
votes
2 answers

Allowing any property/attribute on a server/usercontrol

I've noticed that on most, if not all, standard web controls in the System.Web.UI.WebControls namespace, you can add any properties you want to them without crashing the page. Take the asp:Button control for an example. This code is perfectly…
HaukurHaf
  • 13,522
  • 5
  • 44
  • 59
3
votes
1 answer

How do I convert an ASP.NET page using Ajax webmethods to an Ajax-enabled servercontrol?

In this tutorial I am reading, Dave Ward creates a page that shows the server date in a label without using the update panel. I am trying to learn how to create servercontrols that use ajax for partial postbacks where methods within the control are…
NetHawk
  • 1,392
  • 1
  • 15
  • 33
3
votes
1 answer

ASP.NET server control: how to convert design-time string into object type (TypeConverter?)

So hopefully this is a silly question (that would make it easily answered). I'm trying to make a composite server control that encapsulates a TextBox, some validators and other stuff, depending on the type of field required. My control has a…
aforty
2
votes
2 answers

Add generated rows and columns to table in aspx file

I want to add my table to the page, and the Table control is put in the aspx file and the columns and rows is generated in the aspx.cs file: if (Page.IsValid) { var start = Int32.Parse(TextBox1.Text); var slut =…
Filip Nilsson
  • 407
  • 7
  • 20
1
vote
1 answer

Access Server side methods/controls from static method

I have the below static method... i want to change the server side label's value from this method.. Public Static void CallFromJquery() { Default1 page = (Default1)HttpContext.Current.CurrentHandler; page.Label1.Text = "Hello"; } Please let me know…
1
vote
5 answers

ASP.NET: How do I create a widget/user control that can be used with other solutions?

I am looking to create a widget that can be used with other solutions. The widget is a competition widget that can be placed in different parts of the site. What is the best way to do this? Should I create a new solution to hold this in?
Funky
  • 12,890
  • 35
  • 106
  • 161
1
vote
2 answers

Javascript won't work on Html server control?

I am writing a website with ASP.Net. I will have lots of html generic controls like
and so on.. I have some onclick javascript functions, onmouseover javascript functions.. They are working fine.. Then I need to control them on the…
william
  • 7,284
  • 19
  • 66
  • 106
1
vote
2 answers

How do I make an attribute on a custom user/server control be mandatory?

If certain attributes on built-in ASP.NET controls aren't specified, then an exception will be thrown. How do I do this on my custom user/server control?
crdx
  • 1,412
  • 13
  • 26
1
vote
2 answers

How could I download and view images in imageview in Android?

I'm trying to display two images from my server. How could I achieve this? Any options available in Android to change the image dynamically from the server for every instance? I'm using permission as,.
1
vote
2 answers

why does the multiple "find" doesn't work in SC query

I wrote a command line sc query PlugPlay | FIND "SERVICE_NAME" | FIND "STATE" to list only the service name and its status but it's not giving any output. Please correct me how to list the service name and its STATE (running or stopped) only.
0
votes
1 answer

user control inside server control

I working on an asp.net app. I'm have a user control inside a server control, say: But it seems that when I use the user control inside the server…
DJPB
  • 5,429
  • 8
  • 30
  • 44
0
votes
1 answer

How to invoke a wcf service in a custom server control class?

I am developing an Custom Server Control (Ex: a TextBox) which would help a deveoper to bind a control directly to the service layer. My Requirement. The text box will have the Attributes like (Service URL, Method, Parameter under my new category…
Shankar
  • 155
  • 1
  • 7
0
votes
1 answer

How to allow HTML/Javascript intellisense in self-developed .Net Server Control inner text?

We've developed our custom .Net Server Control for our ASP.Net project use. It allows users to put HTML/Javascript code into its inner text node. The problem is, when the user is inputting the HTML/Javascript inside the server control, they can't…
William X
  • 6,751
  • 6
  • 31
  • 50
0
votes
1 answer

How to Serialize httpcontext Object and passing through webservice from an asp.net server control?

I want to pass httpcontext object through webservice by serializing it from an asp.net server control . but it is not working with server control. It is working with webapplication. Please help me in finding the solutions.
Krishna Yadav
  • 33
  • 1
  • 3
  • 8
1
2