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 webcontrols > november 2004 > threads for november 22 - 28, 2004

Filter by week: 1 2 3 4 5

Calendar Control
Posted by saintthomson NO[at]SPAM yahoo.com at 11/28/2004 8:32:04 PM
Hi all, How will i able to know which week does the day falls.Is there any method, which allows you to get For eg: Mon Tue Wed Thu Fri Sat Sun 1 2 3 4 5 6 7 8 9 10 11 If i give 3 it ...more >>


'Microsoft.Web.UI.WebControls' does not match the assembly referen
Posted by Patrick.O.Ige at 11/28/2004 8:25:01 PM
I have a control that i want to use and when dragged to a web form and complile it i gives me error:- "The located assembly's manifest definition with name 'Microsoft.Web.UI.WebControls' does not match the assembly reference." (I'm using it together with the 'Microsoft.Web.UI.WebControls' ...more >>

Urgent: How can I get the enter key to behave like a tab key?
Posted by Karen Grube at 11/28/2004 2:43:03 PM
Hi! I have a web form completely filled with about 80 server-side controls (text boxes - single line and multiline - and drop downs). The enter key is firing the submit button rather than taking the user to the next tabindexed field. Users should be able to use the tab key or th...more >>

databound autocomplete ComboBox
Posted by rasta at 11/28/2004 3:24:07 AM
i've a an order entry page where one of the controls a ComboBox is populated with approx 700kb of txt. the txt is customer names. i am looking for ways to improve the perfomrance, the bottleneck seems to be the rendering of the page. the ComboBox looks up the cust name only. when there a...more >>

how to conditionaly add a usercontrol? (ASCX)
Posted by KK at 11/27/2004 8:40:24 PM
Hi guys I have two user controls (ascx) I want to place them conditionaly in my aspx page. How to do that? For exmple, If Request["variable"] = "1" then DisplayASCXcontrol(1) Else DisplayASCXcontrol(2) End If So, according to the users choice when the page loads, it will contai...more >>

Custom Validator needs to reset focus on validated control
Posted by Karen Grube at 11/27/2004 5:15:01 PM
Hi! I have a control on a web page and a custom validator associated with that control, along with a client side javascript validaton function. The validation is working well with one exception. I'm trying to keep focus on that control until the user enters something valid, but I'm havi...more >>

INamingContainer problem...can I work around this?
Posted by R. Myers at 11/27/2004 10:01:59 AM
I have implemented INamingContainer in a custom WebControl. It provides unique ID's for controls without ID's. However, if my control already has an ID set in its property panel, or in code, The HTML that is rendered always shows the unique ID in front of it. If the ID is "Table1", it render...more >>

History.Back not working from web
Posted by MuhammadTariq at 11/26/2004 10:21:11 PM
hi All In my appliction history.Back is working at my local host and woring properly but when i upload the apllication and run my appliction from web the history.back is not working please help me as soon as possible -- THANKS. Regards TARIQ. ...more >>



Asp.Net C# Whidbey WebUserControl
Posted by Johnny E Jensen at 11/26/2004 9:29:16 PM
Hello I'm trying to implement a WebUserControl ( MyCtrl.ascx ) to a WebForm ( MyWebForm.aspx ) The MyCtrl.ascx has some properties ( Public String FormTitle ) - and some others. In VS.2003 I load the WebUserControl like this: MyCtrl _Ctrl = (MyCtrl)Page.LoadControl("MyCtrl.ascx"); .... ...more >>

Attribute is not setting
Posted by Thiruppathi S at 11/26/2004 6:27:49 PM
Hi All, I had created a server control inheriting RequiredFiledValidator Class to add my custom attributes.But the controltovalidate attribute is not rendering. Plz help me. Regards, S.Thiruppathi ...more >>

THEAD in asp:table control
Posted by Harald Fichtner at 11/26/2004 12:09:37 PM
Hello, is it possible to use the THEAD and the TBODY tag in a table webcontrol (not a datagrid) Harald ...more >>

How can I get CheckBox value?
Posted by Stephane at 11/26/2004 8:53:02 AM
Hi, I have created dynamically some check box using CheckBoxList. I' trying to retreive those check boxes values with Request.From but I only get "on" for checked boxes. I did the same for radio button using RadioButtonList and droplist and it works great. How can I retrieve those val...more >>

How to programatically set focus onto a web control ?
Posted by news.iq.ca at 11/26/2004 2:44:28 AM
Hi, I have a form containing a number of panels, simulating a wizard (simulating, actually, a multi-page form). After pressing a button called "Next", I am showing a new panel on this form, loaded with some controls. I need to set the focus onto a textbox in the newly shown panel right away...more >>

Problem with web user control
Posted by oterox at 11/25/2004 9:14:24 PM
Hi! I have a user control WebUserControl1.ascx with a textbox.I want to change the text of the textbox from another page but i get the error "object reference not set to an instance of the object".The code is: protected System.Web.UI.WebControls.TextBox txtUC; public string ucTexto { set...more >>

DropDownList moves to top of page on PostBack
Posted by Roger Helliwell at 11/25/2004 7:47:12 PM
Probably an easy fix I'm overlooking, but when I select an item from a DropDownList (AutoPostBack="true"), the dropbox jumps to the top of the page. Any idea how to stop this behaviour? Roger ...more >>

disabled dynamically added controls and postback
Posted by djk at 11/25/2004 5:25:16 PM
Hi all! Please help me with the following real-trouble: - I have dynamically created controls on page - Everything works unless I set for some controls .Enabled = false In such a case stored value for the disabled control is lost (not sent by MSIE back to server). But it works for st...more >>

cant see the HTML added to Templated Control in design mode
Posted by Peter Vasko at 11/25/2004 5:03:02 PM
Hi everybody, I have a web control that has its own designer implemented....everything works fine, I get the proper values that are stored in the container but I would like to go even further and its where the problem appears. Why do I get a grey box when I open my page containing the contro...more >>

Viewstate access
Posted by amr.aljarhi NO[at]SPAM gmail.com at 11/25/2004 6:19:10 AM
I have a webform, with a statically declared usercontrol in it... the usercontrol is actually a webcontrol ( inherits from class WebControl) this control has some child controls created dynamically at the event: CreateChildControls obviously this event is fired before the viewstate is loaded, s...more >>

free combobox control
Posted by Dufus at 11/24/2004 10:02:59 PM
Hi, Does anyone know of a good (free) combobox control? I have already tried http://www.lostinet.com/en/LWSampleCS/ (problems with style rendering) Thanks in advance. ...more >>

Composite Control: LoadPostData() -> postCollection doesn't contain postDataKey
Posted by Ralf Müller at 11/24/2004 4:18:55 PM
Hi all, I'm trying to implement the interface IPostBackDataHandler in a composite control in order to raise events depending on changes to the postback data. The examples on how to implement "LoadPostData" given by the msdn or different books all the same. They are all based on a custom TextB...more >>

Securing/encrypting sensitive data with clear display in DataGrid
Posted by marc.gibian NO[at]SPAM acm.org at 11/24/2004 3:33:44 PM
I have an application that contains some sensitive data. I am displaying the table containing this data via a DataGrid, using an ADO.NET DataSet for the database access. I need to make sure the sensitive data is not stored in the database in clear-text, yet I need to provide clear-text display t...more >>

How Do I set enabled to false on all but one web control on a page
Posted by Karen Grube at 11/24/2004 12:35:09 PM
Hi! What I need to do is loop through all the web controls on a page where the tabindex is > 6 and set enabled to false. I've got about 60 controls on a page and would rather not have to set each one individually. Any suggestions? Here's a snippet of code I found and tried to mod...more >>

wrap text within cell-not working with data grid
Posted by Paul at 11/24/2004 12:25:04 PM
Hi I have a datagrid and have set a column format as follows Column 7 header-have the checkbox unchecked for (wrap text within cell) items-have the checkbox checked for (wrap text with cell) but when I load the grid with the dataset it is not wrapping the text in the cell, so the grid is growi...more >>

How to Add CommandEventHandler Dynamically AND CONDITIONALLY!
Posted by haile at 11/24/2004 5:45:04 AM
Hello all. The body of literature in MS-Press and in this Newsgroup provides numerous examples as to how to add event handlers dynamically by means of delegates, namely: private void Page_Load (o,e) { ... btn1.Command += new System.EventHandler(btn1_Command); ... } However, t...more >>

java script error on postback
Posted by Cosimo Galasso at 11/24/2004 1:07:02 AM
I get a java script error on Internet Explorer when changing the index of a drop down list control inside a form. The error is: __EVENTTARGET is null or is not an object. The java script code is auto generated by the framework library, and the error is in the following function: <script...more >>

Upload control
Posted by Peter Afonin at 11/23/2004 10:01:02 PM
Hello, I'm looking for a very simple upload control for my ASP.Net application to let my clients upload the small images to the server. So far I could find on the web only the sophisticated ones with the progress bars and other things that I don't need. Could you please recommend me one? I ...more >>

Sorting a datalist
Posted by Dufus at 11/23/2004 9:36:56 PM
Hi, I am working with a DataList and am binding objects to it. I normally use IList or other collections that implement the IEnumerable interface. I have a datalist that I need to be able to sort on every column. Does anyone have any ideas on the best way to sort a DataList? Thanks in...more >>

prevent Upload Large Files .Net
Posted by Kilic Beg at 11/23/2004 9:02:51 PM
Hi, I want to prevent user to upload files larger than 2MB. If they try to upload I want to redirect them to a error page (ex: File size larger than 2 MB ).. right now I get a page break "The page cannot be displayed" I tried to update the Global.asax.cs file this is the code protected v...more >>

Datalist: limit the iterations
Posted by SparvHok at 11/23/2004 5:20:32 PM
Hi there. Just wondering if there is some way to make the Datalist webcontrol, only iterate a prespecified number of times? Like setting a property (MaxRows perhaps!?). -- +======================================================================+ | SparrowHawk The Magician ...more >>

TextBox Can Grow/Shrink?
Posted by Alan Z. Scharf at 11/23/2004 3:59:42 PM
Is there any way to make webform TextBox control have Can Grow/Shrink behavior like report textbox controls? Thanks. Alan ...more >>

How would one make programmatically defined web controls persistant?
Posted by Hal Meyer at 11/23/2004 3:44:30 PM
Greetings. I have created a good number of controls programmatically, but when I try to retrieve the values of these controls after filling them, and clicking the "process" button, the controls do no exist. How would I make the controls (and their values) persist? TIA. -- Hal Meyer ...more >>

Image on a button
Posted by james.d NO[at]SPAM softworksgroup.com at 11/23/2004 2:13:56 PM
In html I can create a button control that shows an image rather than text through the use of button tags: <button><img src="image.jpg"></button> I want to create the same type of control in ASP.NET. I don't want to have to specify four different images (onmouseover, onmouseout, onmousedow...more >>

HtmlInputHidden value set on client not getting to server postback
Posted by Scott at 11/23/2004 10:43:09 AM
I'm having a problem with maintaining a form dirty flag that is shared between the client and server. I'm trying to use an HtmlInputHidden control (that is set to "true" on the client when changes are made) to control the processing on the server when the form is posted back. The trouble is, o...more >>

Multiline TextBox Scroll Bars
Posted by Paul J. Lay at 11/23/2004 10:01:32 AM
Is there any way to get rid of the scroll bars on a multiline TextBox. I don't see an attribute for that in the Web Form textbox properties. Please advise. Thanks for your help. Best Regards, Paul J. Lay ...more >>

Free after new ? Garbage collector ?
Posted by Pierre Marie at 11/23/2004 5:35:06 AM
Hi, I can see in many books that we not often use the .Free method after creating an object For example: Dim cmdListe as new SqlCOmmand and so on.... Why Don't we see anyu free command if we do not use it any more ? Is there any garbage collector ? Thanks...more >>

Anchor / align
Posted by Pierre Marie at 11/23/2004 2:47:04 AM
Hi, Firstable, i am newbie to asp.net. I often use Borland D7 / Intraweb for WebForms. is it the good forums for WebForms developped with VB Dot Net ? Is there a way to move a component at runtime ? For example, i want to move a btn withj the page is resized. something like MyBtn.left & My...more >>

Populate Data Grid at Client side
Posted by vijay_kerji NO[at]SPAM yahoo.com at 11/23/2004 2:36:29 AM
Hi All, I have a parent page. It will pop up a modal dialog (by calling show modal dialog) window. Dialog window will return a long string which will be parsed at the client side(say as first and last names). Now I need to populate the datagrid with these string data. Is it possible and if it...more >>

proper way to encode URL for image control
Posted by JerryK at 11/22/2004 10:22:12 PM
HI, I have a page with an image control and I am trying to set the source to the image file name "/images/products/image #45-7 picture.jpg" I have tried setting the name directly and with URLEncode. In both cases, the image cannot be found. What am I doing wrong? Thanks, jerry ...more >>

Detect IE update version or service pack number
Posted by henry at 11/22/2004 5:32:20 PM
Hi all, I'm building a website which provides contents that only work for some browser types and versions. I know I can get most of the client browser information using HttpBrowserCapabilities class, but I can't find a way to determine IE update version or service pack number. Any ideas? ...more >>

Using tabstrip in a user control
Posted by Adwait Ullal at 11/22/2004 11:42:29 AM
Hello: Does anyone have a sample of using the Microsoft TabStrip control in a custom user control (ascx) ? Please share code and/or URLs. Thanks in adance - Adwait -- Adwait Ullal w: http://www.adwait.com j: http://finance.groups.yahoo.com/group/AdwaitsDotNetJobs...more >>

Multiple forms on a page???
Posted by ucgworkrelated NO[at]SPAM yahoo.com at 11/22/2004 11:01:47 AM
Here's my delimma: I am required to have a login area on each screen of my web site if the user is not logged in. It has userid and password fields and an image button that acts as a submit button. I created this login function as a user-control so it could be placed on various pages. The pr...more >>

Freeze Header in Datagrid
Posted by Henry at 11/22/2004 8:39:03 AM
I have a question regarding freeze header on datagrid when scrolling. I've found this site http://datawebcontrols.com/demos/ScrollableDataGridFixedHeader.aspx that shows how to scroll and keep the header from moving. However, my question is what if I have 15 columns which I now need to sc...more >>

Server Control ID at Client Side
Posted by vijay_kerji NO[at]SPAM yahoo.com at 11/22/2004 4:01:42 AM
Hi, Is it possible to access the server control from Client side JavaScript function? For Ex: I have a text box server control with ID TextBox1. Can I access it at client side? Thanks in Advance Vijay K Kerji...more >>

"master" attribute not recognized
Posted by nidii NO[at]SPAM hotmail.com at 11/22/2004 2:17:29 AM
Hello, I'm trying to define a default master page in web.config for my web application lihe this: <appSettings/> <system.web> <!-- Set the default master page --> <pages master="Templates/MasterAdvertising.master"/> <!-...more >>

ASP with Mozilla
Posted by news.iq.ca at 11/22/2004 1:36:42 AM
Hello, I am learning ASP.net (for the moment, I'm still writing the code by hand, in Notepad - VS.NET can wait for now). The original text code is this: -------------------------------------------------------------------------------------------------- <p> <asp:label id="lbl1" text="Unbo...more >>


DevelopmentNow Blog