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 > march 2005 > threads for march 15 - 21, 2005

Filter by week: 1 2 3 4 5

Hide DataDrig column at run time
Posted by ruca at 3/21/2005 5:45:02 PM
Hi, I want to set visible to false in my datagrid to all fields that are an ID. How can I do this? I'm using ItemDataBound event but it gives me an error: "Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index" I have this code: ...more >>


ASP.NET MS SQL cyrillic problem
Posted by Viktor Popov at 3/21/2005 12:24:10 PM
Hi, I have a ASP.NET application which is hosted on English - based server. This application works with MS SQL Server, also English-based. I have this in my Web.config: <globalization fileEncoding="windows-1251" requestEncoding="windows-1251" responseEncoding="windows-1251" culture="bg-BG" ui...more >>

Checkbox in a datagrid always returns false
Posted by Prescott at 3/21/2005 7:07:14 AM
Ok .. I've been beating my head against the wall for a week now, but no matter what I do the checkbox is always false. I create a datagrid, create a template column (all at design time) and add a checkbox column. The code is below: ******** Form Code ****** <%@ Page Language="vb" AutoEventW...more >>

Dynamic dropdown list - Please look
Posted by VK at 3/21/2005 4:42:17 AM
Hello All: I am having this issue of populating dropdownlist with values from database. We have interface to add some requests, now while trying to update these requests - HOW to populate the pre-selected value of dropdown along with all other values from database? It is a normalized da...more >>

Client Side - intercepting postback for form.
Posted by Steve Lutz at 3/20/2005 10:59:34 AM
Hello all, I am writing a webcontrol that is very client side Javacript intensive. I have successfully used RegisterClientScriptBlock to get the Javascript onto the page and the control works just wonderfully. However, I am having a problem with Postback's. My control needs to do some some ...more >>

Retrieving an item's index
Posted by Roshawn Dawson at 3/20/2005 10:05:05 AM
Hi, I have a Repeater control that contains a textbox in its ItemTemplate. The textbox will make use of a javascript function. However, this function needs the index of the textbox in order to work. Here's what I have: <asp:Repeater id="Repeater1" runat="server"><ItemTemplate> <asp:te...more >>

Mangled id attributes
Posted by Roshawn Dawson at 3/20/2005 2:49:55 AM
Hi, I've noticed that templated controls (DataList and Repeater in particular) mangle the id attributes of the server controls that are housed in the ItemTemplate & AtlernatingItemTemplates. I was wondering if there's a way to "demangle" the id attributes of the server controls contained...more >>

Please Tell Me How to specify the parameter.
Posted by Chuck Insight at 3/20/2005 12:00:00 AM
When I run the code below, I get Compiler Error Message: Argument not specified for parameter 'key' of = 'Public Shared Sub Add(key As Object, value As Object)'. Here's the code: <%@Page Explicit =3D "True" Language=3D"VB" Debug=3D"True" %> <HTML><HEAD> <Script runat=3D"server"> =20 Sub O...more >>



Source code?
Posted by Karl at 3/19/2005 8:16:42 PM
Does MS publish the source code for the standard ASP.NET Webcontrols? If so, where do I find it? If not, are there any opensource Webcontrols such as editboxes, pagecontrols, tabs or similar. I looked on Sourceforge and couldn't find any. ...more >>

"hash" doce
Posted by Thom Little at 3/19/2005 7:05:28 PM
JavaScript has a "document.location.hash" to access the section of a requesting URL to the right of the # sign. They refer to this as the "hash". I call an ASP.NET C# webform from an HTML page. The ASP.NET form then calls an HTML page. I want to preserve the "hash" in the URL if it is pr...more >>

How to install aspnet_regiis.exe on server
Posted by madmanpierre at 3/19/2005 3:31:02 PM
I have problems with validation which several messages here say "run aspnet_regiis" with -c or other options. The problem I'm having now is it won't run. When I try to install 1.1 the server tells me it won't because I already have it installed. When I try to copy aspnet*.* from one machin...more >>

Centering controls on a .aspx page
Posted by sagars76 at 3/19/2005 10:05:02 AM
I want to center a control at the middle of the page. When the window size is changed the control should get centered automatically. I have used flowlayout with the following code. But it doesn't work <asp:label id="lblProject" style="Z-INDEX: 105; POSITION: relative; TOP: 136px; ALIGN: MIDDL...more >>

Range Validation Problem
Posted by Wayne Wengert at 3/19/2005 6:14:46 AM
I have 3 different text boxes for which I apply range validation. On two of the text boxes, the complete range I specified is not allowed? For example, txtBox1 has range validation Min/Max set as 25/250. If I enter 150 in that text box I get a validation error but if I enter 26, it accepts it? I ...more >>

At which life cycle should EnsureChildControls() be called?
Posted by Henry at 3/18/2005 6:25:02 PM
I have a web custom control that contains a checkbox and a button. 1) The check box needs to be initialized to unchecked state during page postbacks. 2) The button has a click event handler. If I add "EnsureChildControls()" at OnLoad, checkbox is set to unchecked every time there is a post ...more >>

History Stack
Posted by Thom Little at 3/18/2005 4:27:07 PM
I have an ASP 3 application that must pass control using JavaScript ... window.location.replace( strURL + "?result=" + strResult ); This is done in order to maintain the History stack on the callers machine. My function is called the using window.location.replace( ) and my function uses wi...more >>

How do I fix "Argument not specified for parameter 'value' of 'Public Overridable Sub Add(key As Object, value As Object)"
Posted by Chuck Insight at 3/18/2005 1:18:46 PM
I am way over my head with this one - Here is the code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><script runat = 'server'> Public Overridable Sub Add(key As Object, value As Object) dim balls as hashtable = new hashtable randomize dim ball as integer = i...more >>

Inconsistent control rendering with different PCs
Posted by at 3/18/2005 8:57:36 AM
Hi everyone! We have a web site with Infragistics controls and we have several sites that access it. On some machines, the Infragistics WebCombo shows up ok initially, but during a postback, the dropdown button disappears and it does nothing if you click on the space where the button usual...more >>

BUG: German Umlauts in DropDownList not working correctly
Posted by Asus at 3/18/2005 2:55:03 AM
Hello, When I'm trying to select an Item in a DropDownList WebControl with an Umlaut (like ö) in it, then the SelectedValue property is not working correctly, this Value is not posted back, instead the Value before is taken. Even if I change every Locale setting to German (for instance al...more >>

Getting Desperate
Posted by Michel at 3/18/2005 2:45:03 AM
Anyone who has an idea what the problem could be? The base class includes the field 'UploadedDocuments', but its type (Microsoft.Web.UI.WebControls.TreeView) is not compatible with the type of control (Microsoft.Web.UI.WebControls.TreeView). Looks like a dll version problem, but the treevi...more >>

PlaceHolder ViewState
Posted by paps at 3/18/2005 12:41:03 AM
I need to programmatically change an ASCX control into a PlaceHolder during PostBack. When i change the PH control during PageLoad like : MyCtrl = LoadControl(path); PlaceHolder.Controls.Add(ctrl); the PlaceHolder load the old ViewState information and the loaded control isn't correct. ...more >>

Textbox OnEnter fires Button click
Posted by Rolly Ferolino at 3/18/2005 12:33:25 AM
When pressing the Enter key on a textbox, the button click event is firing. How can I prevent this from happening? ...more >>

Why HttpContext?
Posted by Jason Madison at 3/18/2005 12:02:28 AM
I have been reading some asp.net code and wondered why it uses HttpContext. On one page this is done: // ------------------------------------------------------------------------ HttpContext ctx = HttpContext.Current; string chartID = Guid.NewGuid ().ToString (); c...more >>

Regular Expression for Validating Textbox with Textmode=multiline
Posted by PK9 at 3/17/2005 6:35:03 PM
I have a comments textbox with a textmode=multiline. The database field to store this input is a varchar(1000). I'm trying to figure out if there is a good regularexpression validationExpression to use for this. Can someone please provide some ideas for this. I tried using ".{0,1000} but ...more >>

Fire server side event before client side event
Posted by at 3/17/2005 4:17:46 PM
Hi everyone. I have a button to pop up a report in a different window. Since it is a popup, I needed to have it run in the client script. However, I need to postback to the server before the popup window comes up to save the record. What is happening now is that I'm doing the _doPostBack ...more >>

Datagrid tutorial if any...?? [ new bie]
Posted by ~Maheshkumar.r at 3/17/2005 10:13:57 AM
I'm new bie to data grid. Can anyone suggest me good site to start datagrid controls desription, tutorials etc.. -- Mahesh kumar.R ...more >>

FindControl Question
Posted by Roshawn Dawson at 3/17/2005 9:08:45 AM
Hi, Does the FindControl method of the Repeater class only work on "server" controls? Thx, Roshawn...more >>

OWC Example that uses the ActiveX control on the client
Posted by Jason Madison at 3/17/2005 9:06:25 AM
I've found plenty of examples of how to use the Office Web Components with asp.net to generate an image of the chart to send through to the client, but what I would also like to be able to do is work with the activex controls on the web page sent to the client. I've tried just dropping the ...more >>

Losing SelectedIndex on Custom Listbox postback
Posted by lisa NO[at]SPAM starways.net at 3/17/2005 7:31:01 AM
This is a strange problem. I have built a custom ListBox control that inherits from the regular WebControls.ListBox. It has two modifications: it overrides RenderContents to force rendering of any attributes added to Items in the ListBox (fixing a bug that Microsoft says is "by design"), and i...more >>

RegisterStartupScript problem
Posted by kaanacar NO[at]SPAM gmail.com at 3/17/2005 4:47:18 AM
Hi , i am using vbscript to open word document in my web page.(web page is written in c# ) The code snippet in below. This code is doing what i want. however when i try to go back opener page with internet explorer "Back" button this function is working again and word document is openin...more >>

Custom Control Problem :: Object reference not set to an instance of an object
Posted by David Bowey at 3/16/2005 8:05:05 PM
Hi All! I have the following Custom Control file... '########### WebUserControl1.ascx ############# <%@ Control Language="vb" AutoEventWireup="false" Codebehind="WebUserControl1.ascx.vb" Inherits="nmasoft.vevo.web.controls.WebUserControl1" TargetSchema="http://schemas.microsoft.com/in...more >>

event handlers for dynamically-added controls?
Posted by Dave R at 3/16/2005 5:16:39 PM
Anyone know how to wire up an event handler for controls added to an ASP.NET page at run-time? Of course, at design-time this is easy: just enter the method's name in the event tab of the control's properties. But what if I do... LinkButton lb = new LinkButton(); lb.Text = "Click me now...more >>

Adding column into datagrid by code
Posted by simon at 3/16/2005 5:07:02 PM
Hi, I tried to insert a column into datagrid by back-end code, and I have implemented a event handler for sorting. When I try to sort the column in browser, it does not fired the sorting event handlers. Do anyone know how to solve it?? Thx....more >>

Someone please answer for me
Posted by jbow0527 at 3/16/2005 1:56:32 PM
I have a table on my webform. Inside the table I have a textbox and a button control. If I place the <form runat=server> tag outside of the table in my html, the button won't fire. If place the form tag directly in front of the controls inside the table, the button fires. Why does it ma...more >>

Best Practices: Porting ASCX control to compiled Custom Control?
Posted by David Bowey at 3/16/2005 1:31:24 PM
Hi There! What is the best way to port the ASCX control to complied Custom Control (i.e. DLL)? Please share some pointers. Also, can many ASCX controls be ported into one complied Custom Control? Thank you all!! Dave ...more >>

Timeout? in asp script upload
Posted by Scott Baxter at 3/16/2005 1:03:58 PM
Hello, I got the following scripts to upload files to my directories I call insert.htm Browse for a file, then click 'submit' It works for small files, and for a small .mdb (access file) But for any larger file, it quits and give me 'page not found' Is there some kind of timeout I ...more >>

how to streaming video play in asp.net
Posted by haiwen at 3/16/2005 9:17:02 AM
Hello, everyone: In order to display a video, I have done like follow. The browser starts to play the video after it download the 1.avi file, this is inconvenient when the 1.avi is big or the speed is slow. Could anyone help to how to set the player to support streaming video, that is ...more >>

Edit Command doesn't work
Posted by Rudy at 3/16/2005 8:01:05 AM
Hello all, I have a edit button on my data grid. My code for the edit comnd is .... Private Sub grdUinv_EditCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles grdUinv.EditCommand grdUinv.EditItemIndex = e.Item.ItemIndex ...more >>

Table.Width question
Posted by Mark A. Deal at 3/15/2005 11:13:22 PM
I am reviewing some code in C# and converting it to ASP.NET and have come across the following code in C# that does not seem to convert to .NET and I cannot figure out why. In C# Table table = new Table(); table.Width = 300; In ASP.NET Dim table as Table table.width = 300 "Value o...more >>

Serialize Style to save ViewState
Posted by Alex at 3/15/2005 10:36:08 PM
Hi, I've the follow error: "The type 'ViewStateControl.MyCollection' must be marked as Serializable or have a TypeConverter other than ReferenceConverter to be put in viewstate." MyCollection has the attributte Serializable(). MyCollection is a collection of MyItem (Serializable()). If i remov...more >>

How to replace [...] in DataGrid when doing custom paging?
Posted by Daniel Walzenbach at 3/15/2005 10:31:10 PM
Hi, I want to change paging of the DataGrid in that way that instead of [...] the number will be shown. Does anybody know how this can be done? Thank you! Daniel ...more >>

add hyber link to table or table cell web control
Posted by Symphony at 3/15/2005 3:49:02 PM
Hi, all: In our web application(vb.net), we are using Table, Table Row, Table Cell web controls dymanically load data, we define two columns, left column likes header, list data titles(eg. first name, last name), right column show the data respectively. We would like to add a hyber link to...more >>

Textbox Control Not Posting Value
Posted by Da Rabit at 3/15/2005 3:16:51 PM
I have a text box control in an ASP.NET user control and it does not post its value when the base form posts. The value comes through as a null lenght string. Any ideas ? ...more >>

Consume ASCX Controls Remotely
Posted by David Bowey at 3/15/2005 11:52:56 AM
Hi There! I have som reusable ASCX controls that I also want to let my clients use in their websites. However, I don't want them to "have" the ASCX controls on their web servers. Instead I would like them to consume the ASCX controls remotely from their web servers. How is this possible?...more >>

Convert bool to SqlBoolean
Posted by Julius Fenata at 3/15/2005 8:55:23 AM
Dear all, How to convert bool to SqlBoolean? I need to parse CheckBox.Checked value to SQL Server table... My code is.., string myString = "INSERT INTO tblCoba(Coba) VALUES('" + SqlBoolean.Parse(CheckBox1.Checked) + "')"; But it isn't working, how to do that? Thanks, Julius F ...more >>

Validation Control text on load?
Posted by Nathan Truhan at 3/15/2005 7:09:09 AM
Hello, I know on the validation controls, you specify an Error message and Text, where when incorrectly validated the Text will appear and the Error message appear in a validation summary. However, is there a way to make the validation control show the Text at all times, such as on load and ...more >>

Display Parent/Child Data with Checkboxlist
Posted by jmhmaine at 3/15/2005 6:53:05 AM
Overview: I have a page that displays 24 email newsletters that a user can subscribe to by clicking checking the a check for each one. These fall into different categories, currently 5, but this can change. The data is stored in two tables, one called Family which contains the categories, the...more >>


DevelopmentNow Blog