all groups > asp.net building controls > september 2004 > threads for september 22 - 28, 2004
Filter by week: 1 2 3 4 5
custom validator and ControlToValidate in a composite control...
Posted by Donal McWeeney at 9/28/2004 5:14:10 PM
The ControlToValidate property is wrecking my head.
I have a custom composite server control defined as follows:
internal abstract class MyControlBase : Control, INamingContainer
{...}
[ValidationProperty("ValidationValue")]
internal class MyControl : MyControlBase
{...}
MyControl in ... more >>
Embeded Server Controls in a Custom Templated Control
Posted by James Hawes at 9/28/2004 5:06:11 PM
I have created a templated control. As far as the control is concerned I am
able to put any HTML inside each template. However, I can't seem to figure
out how to embed a server control to it. When I compile and run it shows
up, but I can't wire up any kind of event to it. I have searched a... more >>
adding a design time designerto a specific property
Posted by Angel at 9/28/2004 1:41:01 PM
I added an image property to my custom control. the property type i set at as
string because I want the url that is to be used for the control. How do I
set for this image property when the developer is in the properties window
and clicks to enter this value for the property, the ability to vi... more >>
How can I persist the state of a DropDownList control
Posted by nail at 9/27/2004 9:58:17 PM
Greetings,
I"m develop a custom control (render). It inherits a ListControl.
In the Render method, I apply an ArrayList to the DataSource property and
call the DataBind method.
So, how can I get the SelectIndexChanged event?
In other words, how can I know when the user change the dropdownlist... more >>
Getting variables from other controls & forms
Posted by Rock at 9/27/2004 12:04:46 PM
How do I get a value of a textbox control from a form?
On form1, I have a textbox with the value "CountyID" with a submit button;
when the user clicks on Submit, it goes to Form2.
How do I get the value of "countyID" (or whatever the user enters into the
textbox) to display on form2?
Some... more >>
Using .resx resources
Posted by cpnet at 9/26/2004 2:31:22 PM
I've built a ASP.NET control that stores some info (an XSLT transform) in a
..resx file in the assembly that also has the control. However, I've read
the following in MSDN documentation a few times, "Only .resources files
should be embedded in common language runtime assemblies and satellite
as... more >>
How to use "~" for approot
Posted by A Traveler at 9/25/2004 10:23:27 AM
Hello, i have a control i wrote which inherits from the ImageButton control.
On the ImageButton.ImageUrl property, you can use "~" to represent the root
of your application (vs. the domain root), so if my app resides @
www.myserver.com/myapp/ and i put in an image i can set its imageurl to
... more >>
Placement of Controls
Posted by et at 9/25/2004 9:32:15 AM
I have placed 3 web user controls on a page, a header, a navigation and a
products control. Each control is contained in a row and cell in a table.
The header and navigation controls work fine, but the products control is
displayed at the top of the page instead of inside the table. I have so... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How do I keep a control from initializing every time?
Posted by Carter at 9/24/2004 10:27:54 AM
I have a header control at the top of my default page. On this control
there are 4 buttons, each one displays a corresponding panel.
There also is a drop down list with a list of counties. The list of
counties is filled from a dataset when the page loads. The user selects a
county, and then... more >>
Datasets & Controls
Posted by Carter at 9/23/2004 11:42:36 AM
I have 5 controls on a page, each having it's own connection to a database
and different queries per control. Each control is displayed by the user
clicking on a menu. Simple enough.
However, because they are all on one page, each connection and dataset is
created when the first page is load... more >>
Repeater paging problem
Posted by Viktor Popov at 9/22/2004 11:28:34 AM
Hi,
I'm trying to do the following but I can't understand what's wrong. Could
you help me here!
I do paging with a Repeater like this:
DataSet ds = new DataSet();
dad.Fill(ds, "MyOffers");
if(ds.Tables[0].Rows.Count==0)
Delete.Enabled=false;
PagedDataSource objPds = new PagedDataS... more >>
Why can't I override RenderBeginTag?
Posted by lisa NO[at]SPAM starways.net at 9/22/2004 11:04:14 AM
I'm trying to make a custom control. I started off basing it on a
ListBox, but because of the bug in that control that prevents it from
rendering name/value pairs, I decided to use an HTMLSelect instead.
But when I changed it, I started getting an error:
Public Overrides Sub RenderBeginTag(... more >>
|