all groups > asp.net building controls > september 2007
Retrieving contained Controls during postback using LoadPostData
Posted by Nathan Sokalski at 9/26/2007 10:57:38 PM
I am writing a Control that inherits from
System.Web.UI.WebControls.CompositeControl. Like many Controls, my Control
renders more than just one inner Control. When a postback occurs, I need to
get the data posted by these inner Controls (by using the postCollection
argument). However, the po... more >>
mvwres in custom control
Posted by Chuck P at 9/26/2007 3:37:02 PM
I have a couple controls that inherits from webcontrol.
When I drop one of the controls on a new webpage
I get
<link href="mvwres:2-Util.Ctrl.MyEmbeddedFile.css,Util, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null" rel="stylesheet" type="text/css" />
in the head.
I am not sur... more >>
composite control embedded resource at designtime
Posted by Chuck P at 9/24/2007 3:18:03 PM
In my protected override void CreateChildControls()
I am trying to create an image control where the image is an embedded
resource.
Image img = new Image();
Page page = System.Web.HttpContext.Current.Handler as Page;
img.ImageUrl =
page.ClientScri... more >>
CompositeControls and RecreateChildControls()
Posted by jeljeljel at 9/20/2007 10:19:49 AM
I have a CompositeControl (called SimplePager) that creates an
UpdatePanel in its CreateChildControls override. The CompositeControl
uses two LinkButtons to control the forward/backward state. W/out the
use of the UpdatePanel it works just great. However, as a learning
exercise I want to AJAX... more >>
Proper way to reload CompositeControl when its state must change after Postback
Posted by jeljeljel at 9/19/2007 3:40:34 PM
I am creating a CompositeControl that contains a Table. The rows in
the Table are controlled by an internal pager. The control renders
the pager and the table. When the user clicks the pager, the control
shows the next set of records in the table.
Assume after the OnLoad method the control ... more >>
GridView & CauseValidation
Posted by WhiskeyRomeo at 9/19/2007 2:14:03 PM
I working through a book on ASP.Net, I added a GridView and SQLDataSource.
Everything worked as expected upon debugging. The rows were displayed with
the Update and Delete buttons on each row. Upon pressing update button on a
row the row did go into edit mode. Changine a few fields and pre... more >>
Can I embed an IE control in a webpage?
Posted by jim at 9/14/2007 9:24:15 AM
OK...Don't ask why - it'll just make ya mad. It makes me mad just thinking
about it. I swear....if I didn't need this job, I'd tell 'em where to embed
their webbrowser control. But, since I do need it, here are my questions...
Can I embed an IE activex control in a webpage? I basically wo... more >>
Retrieving the DataItem property in DataList's ItemCommand or SelectedIndexChanged event
Posted by Nathan Sokalski at 9/13/2007 12:31:26 PM
I have a custom Control that I have made that contains a DataList. In either
the ItemCommand or SelectedIndexChanged event I need to retrieve a value
from the DataItem of the SelectedItem. I have tried the following two
techniques:
Private Sub datProductList_ItemCommand(ByVal source As Obje... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
CheckBoxList with Multiple selection set Declaratively
Posted by Simon at 9/12/2007 3:00:21 PM
Hi,
I'd like to extend the CheckBoxList control so that I can set multiple
selection declaratively. Right now, I'm thinking of simply giving it a
string containing all the selected values, each values separated by a
comma. So, baiscally I have this :
public class TSGControlCheckBoxList :
S... more >>
How to make Editor for ListItemCollection visible in VS2005 properties page?
Posted by cpnet at 9/10/2007 8:47:29 AM
I'm trying to build a User Control in C# for ASP.NET 2.0. My user control
contains two ListBoxes. I am exposing the Items property of each ListBox as
public properties of my User Control. That part works ok. But, I can't get
a collection editor to show for the items properties of my User C... more >>
Retrieving values from dynamically added controls
Posted by Nathan Sokalski at 9/8/2007 11:23:05 PM
I have a custom control that I wrote (I inherit from
System.Web.UI.WebControls.CompositeControl). I dynamically add this control
to my Page, but I was told that dynamically added controls do not survive
postback. This seems to be true. However, this seems to make dynamically
adding controls ... more >>
Localization ASP.NET WebControl question
Posted by PJ at 9/8/2007 1:02:51 PM
Greetings
I'm developing a WebControl and I need to check the Page.Culture
property in DESIGN time, in order to display the proper contents on
the WebControl.
I have run out of ideas of how to do it.
I've even checked the Page.Culture in the Reflector and it show in
plain english that th... more >>
Confused about Assembly naming with Namespace
Posted by Elmo Watson at 9/7/2007 3:22:31 PM
OK - here's the situation - I want my namespace to be:
MyCompanyName.Controls
I want my custom web control to be called:
MyControl (myControl.dll, or MyCompanyName.Controls.MyControl.dll - whatever
is expected)
Then, when I declare it in the project, it will be like this:
Dim ctl as new My... more >>
Controls still Nothing when UserControl's New() method is called
Posted by Nathan Sokalski at 9/4/2007 10:47:01 PM
I have a UserControl (*.ascx) that has the following design:
<div id="divFileDir" runat="server">
<asp:Image ID="imgIcon" runat="server" CssClass="icon" Height="16px"
Width="16px"/>
<asp:LinkButton ID="lnkName" runat="server" CssClass="filedir"
CausesValidation="false"/>
<asp:Label ID="... more >>
TypeConverter Enum / CheckBox List
Posted by Chuck P at 9/4/2007 12:22:00 PM
Is their an easy way to create a TypeConverter for enums you want displayed
as a CheckBox List.
For example
enum AllowTheseCars
Ford
Chevy
Toyota
Porsche
In the Control
the user would see a Property called
"Allowed Cars"
with all of the enums and a checkbox... more >>
|