Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > asp.net building controls > september 2005

ASP.NET 2.0 Control Tasks
Posted by Eric Marthinsen at 9/30/2005 1:39:01 PM
Hello- Does anyone have any examples or resources that discuss adding tasks to the designer in ASP.NET 2.0 controls? Regards- Eric...more >>


Value of variable in my user control keeps getting reset
Posted by Nathan Sokalski at 9/29/2005 11:19:43 PM
I have a user control that contains three variables which are accessed = through public properties. They are declared immediately below the "Web = Form Designer Generated Code" section. Every time an event is fired by = one of the controls contained in the User Control, these variable are = rese...more >>

SelectedIndex is not submitted with post
Posted by Nathan Sokalski at 9/29/2005 6:07:52 PM
I am working on a simple user control composed of 3 DropDownLists that = will be used to select Dates. The purpose of the control is to all the = user to choose a date using dropdown lists but not need to worry about = choosing a non-existing date (due to different months having different = numb...more >>

how to make imagebutton respond to click but not return key
Posted by mhylden at 9/28/2005 9:41:52 AM
I need to make an imagebutton that is contained in a datagrid respond only to a mouse click, and not a return key press. I have a user control on the same page that contains text boxes (HTML controls) and link buttons (.NET web controls) to handle the return key press as a search. That part wo...more >>

how to access user web control from parent page?
Posted by Chris at 9/28/2005 8:04:03 AM
Hi, I've created a user web control with 4 drop down list boxes in it. I've added this user control to my main web form page. I created the references to it in the class constructor: protected System.Web.UI.UserControl ReportLocationSelector; in the code behind page for the main we...more >>

Request: What property will be unique with every post?
Posted by Nathan Sokalski at 9/26/2005 11:28:48 PM
I am looking for a property of the System.Web.HttpRequest class that will always be different. Is there a property that uniquely identifies each Request (at least within the specific Session)? Thanks. -- Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/ ...more >>

custom control (with collection) do not render at Design time
Posted by rleblond NO[at]SPAM jeancoutu.com at 9/26/2005 6:59:11 AM
Hello, I built a custom control... Everithing is working fine... EXCEPT... ;-) When I first place the control on the webform at design time it showed as an empty control (it's ok), then I add my first collection item and it also showed correctly. BUT when I close or run the application whe...more >>

How to implement "PostRender" event for Controls
Posted by DC at 9/26/2005 1:26:37 AM
Hi, we need to dynamically load WebControls and WebUserControls and manipulate the rendered output (before output fragment caching). Actually, merely some static replacing of strings is required. And yes, this requirement should not exist but it does. We cannot overwrite the Render Method s...more >>



Why LoadPostData() is not called?
Posted by senglory at 9/26/2005 12:43:55 AM
After pressing button its text becomes clear and no matter what text has been entered in textbox near it. Whats wrong to my project? +----------------------------------------------------------------+ | Attachment filename: webapptest.zip | |Download atta...more >>

Postback data problem
Posted by jjrdk at 9/25/2005 7:28:43 PM
I am trying to constuct a custom control in ASP.NET 2.0. I want it to collect the information in the control through postbacks, but I can't seem to make the postback event fire. After many attempts at finding out why the information wasn't caught I tried putting in a trace message to check tha...more >>

DHTML and RegisterStartupScript
Posted by Kent Ogletree at 9/22/2005 4:31:54 PM
I have some DHTML actions which work very well at a page level. However when I take everything and make a control it just falls apart. Everything comes down to my Init() function for the DHTML. When using the code within a page I call the Init() in the body tag onload. When I converted ever...more >>

Response.Redirect from within a user control affects browser histo
Posted by DCarroll at 9/22/2005 3:31:02 PM
I have an ASP .NET user control containing a data grid. The data grid has a column containing hyperlinks that redirect the user to the view page associated with their selection in the grid. This user control is hosted in another page and displayed to the user. When the user follows a ...more >>

About the "Page.RegisterRequiresRaiseEvent and Page.RequiresPostBa
Posted by han zhiyang at 9/22/2005 6:36:10 AM
I wonder if the Page.RegisterRequiresRaiseEvent and Page.RequiresPostBack are asp.net bugs,for they are somewhat "ugly" and difficult to use.At the same time, I wonder if there is other alternatives I can choose.I've read the book "Developing Microsoft ASP.NET Server Controls and Components" b...more >>

Help needed for "generic" System.Object Converter
Posted by microsoft.newsgroups.com at 9/21/2005 7:02:17 PM
Hi, I have custom web server control with one property being of type System.Object. At design time, only string values are allowed to be entered in the property window. If "StringConverter" is used for the TypeConverter attribute, a user can enter string values for this property and those valu...more >>

Nested controls in User Control via ParseChildren(false) not worki
Posted by Karen in England at 9/21/2005 8:00:02 AM
Hello, Using ASP.NET 2.0/Visual Studio 2005 Beta 2 and programming in C#, I'm trying to create a user control that allows nested content between its start and end tags. From googling around I got the impression that the ParseChildren(false) attribute was what I needed, so my code looks lik...more >>

Is this newsgroup active?
Posted by intrader at 9/18/2005 12:00:00 AM
I have noticed no answers for several days, just a few posts, and of course the spam, Thanks...more >>

Deploying user control from c# to vb
Posted by R Dorris at 9/16/2005 10:47:01 PM
I'm sure this has been answered many times, but can someone point me to some documentation? I've created a user control in C# and would now like to hand it to someone for deployment in an asp.net vb project. I have compiled the control and given the other developer the .ascx file and the .dll....more >>

Visio vs DotNet
Posted by Srikanth Yellapragada at 9/16/2005 12:00:00 AM
Hi all, Is there any way to get class structures defined in Visio into the dotnet through some option of import?? thanks Sri ...more >>

GetDesignTimeHtml() is never called in ReadWriteControlDesigner
Posted by Luciano Bargmann at 9/14/2005 9:17:14 AM
Hi folks, Is there any possible workaround for this? Is this by design? I'm seeking an answer for this question for more than a month now. Finally found a nice spot to put the blame on. it is related to a question in this newsgroup (still unanswered) with this subject: How to cre...more >>

Linking to a stylesheet multiple times
Posted by Nathan Sokalski at 9/13/2005 9:05:33 PM
I have user controls that contain a link to a stylesheet. Several of my pages also have a link to this same stylesheet. Because of this, the resulting output contains multiple links to the same stylesheet. Although this does not cause any harm as far as how the page looks, it is unnecessary ...more >>

Get Top and Left?
Posted by xenophon at 9/12/2005 12:00:00 AM
I have added a control to my form in the codebehind (eg TextBox tb1 = new TextBox();). I now need to determine the width, CSS left, CSS top properties for that control so I can add label in front of it. I am not sure where to start. Can anyone post any helper code on how to do this? If this wa...more >>

Question about duplicate ViewState keys.
Posted by Ken Varn at 9/9/2005 9:48:18 AM
If two web server controls use ViewState and both controls inadvertently use the same key name for an item, will a collision occur between the two keys? -- ----------------------------------- Ken Varn Senior Software Engineer Diebold Inc. EmailID = varnk Domain = Diebold.com ----------...more >>

Controls inside EditTemplate cause editing to end
Posted by Nathan Sokalski at 9/7/2005 2:05:48 PM
I have a DataList control with an EditTemplate. Three of the controls in this template include a Calendar, a Button with CommandName="update", and a Button with CommandName="cancel". Whenever I click one of these controls, the DataList replaces the EditTemplate with the ItemTemplate. I think t...more >>

.Net control in IE
Posted by Shahzad Godil at 9/7/2005 12:00:00 AM
I am successfully able to run one my basic .Net windows control from IE. It work perfect when I keep it simple. But when I added reference of my other dlls and then use that external dlls routine, it is not displaying in IE. Seems like it is not downloading all dependents dlls. I already t...more >>

ToolboxData Issue
Posted by Neo at 9/6/2005 5:02:57 PM
Hi guys, I have problem about the ToolboxData attribute. I created a custom web control and attached this attribute to a class, however, it did not appear on the web form when I dragged it from tool box onto web form. The string "<cc1:mycontrol runat=server></cc1:mycontrol>" did not show up...more >>

UserControl event & method call sequence
Posted by James Identity at 9/6/2005 9:59:30 AM
I have an aspx page that loads an ascx user control. This is what happens: 1. As the aspx page loads it then loads the ascx usercontrol. 2. After loading the user control the aspx page calls a method in the user control Control c1 = LoadControl("UserControl1.ascx"); PlaceHolderControl.Con...more >>

DropDownList is always returning the value from index 0
Posted by Nathan Sokalski at 9/4/2005 7:07:25 PM
I have a DropDownList that is returning the value from index 0 regardless of which item is selected. The code that I am using to test which index it is returning is: Label1.Text = ddlDeleteEvents.SelectedIndex This is the first line of code in a Button's Click event handler, so I know ...more >>

Remove an inherited property?
Posted by Curt_C [MVP] at 9/2/2005 7:45:10 AM
I'm inheriting from the generic WebControl when designing my own. This inheritance has a "Text" property... I'm not going to be using this and was wondering if there is a way to remove this from the designer, so that people are less confused. Thanks in advance. -- Curt Christianson si...more >>

culture specific textbox
Posted by Guhanath at 9/2/2005 4:51:11 AM
Hi all, We are developing a multilingual web application,so we plan to develop our own custom control specific to culture. I need to develop a textbox where developer has to choose the required culture(eg:en-US,ar-BH) etc and it should only allow english/arabic text in it.Is it possible...more >>

Creating Templated Control
Posted by softsara at 9/1/2005 1:01:02 AM
I am attempting to create a Templated Control (ASP.NET server control that inherits from System.Web.UI.Control). I have two classes PageContainer and PageTemplateContainer. PageContainer has a property like this, [TemplateContainer(typeof(PageTemplateContainer))] public ITemplate...more >>

Intellisense not working
Posted by Andre at 9/1/2005 12:00:00 AM
Hi, I have made a webcontrol which derives from the datagrid control. This works fine however I would like to get intellisense support in the HTML designer. Basically I need the same intellisense which is already provided for the DataGrid control along with a few extra properties which have...more >>


DevelopmentNow Blog