Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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
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 > november 2007

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

Error: "Column 'InvariantName' is constrained to be unique. Value 'MySql.Data.MySqlClient' is already present."
Posted by Carmine [www.thetotalsite.it] at 11/30/2007 11:49:46 PM
Hi, I am using ASP.Net 2.0 with the MySQL Connector .Net 5.1.2.2. I added these lines to the web.config to make the connector.net able to handle the SqlConnection object (and so to bind it to a grinview/formview etc.): <DbProviderFactories> <add name="MySQL Data Provider" invariant="...more >>


Caching Output HTML
Posted by Smithers at 11/30/2007 8:20:58 PM
Just wondering what it would take to cache a copy of the output HTML from a dynamically constructed aspx page before it is sent to the browser. Reason being: the page is constructed of a few user controls, each of which queries a SQL Server database for their content. The content is not likel...more >>

Connections strings being automatically created?
Posted by B. Chernick at 11/30/2007 6:25:01 PM
I'm getting a little confused here. I'm creating a demo in ASP.Net 2.0. I've had to shift databases a couple of times and apparently Visual Studio is automatically adding new connection strings. I'm a bit new to 2.0, so what's the best way to keep everything in the system on the same st...more >>

FormView and FindControl behaviour
Posted by J055 at 11/30/2007 6:17:08 PM
Hi I can't figure out what the difference is here. Sometimes I have a simple FormView control in a page and I can use the FormView.FindControl method to get a Label or TextBox with in it during the DataBound event. Then I can use a FormView somewhere else and the FindControl method can't fi...more >>

Creating SelectCommand at page load time
Posted by James R. Davis at 11/30/2007 6:03:54 PM
I have a need to change the select command based on user input (dropdown lists 1 and 2). I'm using a GridView command that is tied to a SqlDataSource command as follows: <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MTT.mdfConnectionString %>" S...more >>

PageHandler and events order
Posted by Michal Valent at 11/30/2007 4:50:47 PM
this is ProcessRequestMain from System.Web.UI.Page Assembly: System.Web, Version=2.0.0.0 the question is how can one custom server control make its events fired earlier than Page_Load event ? private void ProcessRequestMain(bool includeStagesBeforeAsyncPoint, bool includeStagesAfter...more >>

.NET Runtime 2.0 Error - ID Event 5000
Posted by Bernard Borsu at 11/30/2007 4:39:46 PM
Hi ! I have a big problem with a asp.net 2.0 website. I've just upgrade it from asp.net 1.1. In this previous version, no problem at all. Now, i've a recursive error .NET Runtime 2.0 Error - ID Event 5000. Here ise the description in the Application log : EventType clr20r3, P1 w3wp.exe...more >>

Checkbox and Checkboxlist Question
Posted by KA Kueh at 11/30/2007 3:35:24 PM
Dear all, Does any one know why on earth does MS leave out validator for checkbox and checkboxlist? Even the newest VS 2008 is left without one. Thanks. Regards, Kueh. ...more >>



viewsource not showing html sometimes
Posted by rodchar at 11/30/2007 1:19:00 PM
hey all, i have a user control on my web page. the user control dynamically builds some controls. when i browse to this page and right-click and do a view source, the html for the controls don't always show up and i can see the controls on the page all the time. can someone please this ...more >>

Attributes.Add by id
Posted by Tom at 11/30/2007 12:31:47 PM
I have to change a value in an input tag for a PayPal form. The name of the input is "return" and I can't change it. I can't use return.Attributes.Add Is there a way to use Attributes.Add by the element id rather than name? Thanks... ...more >>

web.config error
Posted by jack at 11/30/2007 11:48:41 AM
Hi all every time i run and aspx page i get the bellow error <compilation debug="true"> Line 31: <assemblies> Line 32: <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/ > Line 33: <add assembly="System.Design, Version=2....more >>

web applications do not work after installing .NETFramework2.0
Posted by david at 11/30/2007 11:19:01 AM
my server os: windows server 2000 Error message: failed to access IIS metabase Exception details: system.web.hostingEbvironmentException: failed to access to the IIS metabase Thanks for any help David...more >>

25 MOST FREQUENTLY ASKED QUESTIONS ABOUT ISLAM
Posted by aassime abdellatif at 11/30/2007 11:09:18 AM
1. What is Islam? The word "Islam" means peace and submission. Peace means to be at peace with yourself and your surroundings and submission means submission to the will of God. A broader meaning of the word "Islam" is to achieve peace by submitting to the will of God. This is a unique religi...more >>

div woes
Posted by rodchar at 11/30/2007 11:06:01 AM
hey all, i have 4 divs on my page and i'm trying to use css to lay them out. i'd like to have div1 and div2 side-by-side and div3 and div4 side-by-side. is there a way to do this thru css? thanks, rodchar...more >>

Timeouts (testing) for AJAX Web service calls
Posted by Lloyd Sheen at 11/30/2007 10:43:58 AM
It seems that debugging AJAX Web services is about impossible. I have googled and found the Sys.Net.WebRequestManager.set_defaultTimeout call. I set the value to 15000 which is supposed to be 15 seconds but I cannot perform anything in my webservice without timing out. I have a logging we...more >>

Intelissense when debugging
Posted by SimonZ at 11/30/2007 10:37:06 AM
I have Visual Studio 2005. When I debug my web page, in my command window intelissense doesn't work. Any idea what could be wrong? In any other window intellisense works. Thanks, Simon ...more >>

Session State
Posted by Rob Thomson at 11/30/2007 10:36:00 AM
Hi I have a web site, with 2 virtual directories under it. All share the same app pool, and have session set to StateServer via the machine config level. I want to manage state timeouts and do this via an HTTPModule which registers an event handler for the session start. My problem is I get a...more >>

VS 2005 - why cant i debug when using a querystring param?
Posted by SpaceMarine at 11/30/2007 10:14:02 AM
hello, i am attempting to attach a debugger to the "aspnet_wp,.exe" process. this is how i normally debug my ASP.NET apps, and i dont have a problem debugging at any other time. however, when i am hitting a page in IE that has a querystring parameter attached to it, such as: http://lo...more >>

Text prefilled but cleared as soon as somebody enters it.
Posted by Mufasa at 11/30/2007 9:54:19 AM
I want to have a box filled in with text that when the person clicks in to it for the first time it will clear. I'd also like to have it ( like to google search box ) so that it's greyed text when they first see it but as soon as they go in to it it's normal text. I assume that what I need ...more >>

Can't set value to the property "Width" of my custom webcontrol
Posted by Brook at 11/30/2007 9:33:14 AM
=20 In webform.aspx: <cc:ctlB ID=3D"ctl1" runat=3D"server" Width=3D"200px" = /> If set value to width property, I will get a error that say ctlB.Page is = null. This control will be fine with no width property, why? Could anybody help me ? thanks ctlA.cs ---------------------------...more >>

How Much Data to Provide?
Posted by Kevin Frey at 11/30/2007 9:29:52 AM
At our work a bit of a "philosophical" debate is underway as to how much data (in terms of number of rows of data) should be considered "enough" data for presenting to a user, via web application. This is not a web-based report (an entirely different issue) but a UI that allows a user to pi...more >>

NT AUTHORITY/NETWORK SERVICE
Posted by GaryDean at 11/30/2007 8:54:37 AM
We typically access sqlserver 2005 databases from our asp.net applications by usine the NT AUTHORITY/NETWORK SERVICE user account on Server2003. It works fine and keeps us from having to put a UID and PWD in a connectionstring. I'm working on a client's server2003 system now that is ru...more >>

Repeater control
Posted by SAL at 11/30/2007 7:40:00 AM
I have a web form that use the Repeater control on it. Here is what the code snippet looks like: <table class="collector" style="width: 870px"> <asp:repeater id="repeaterItems" runat="server"> <itemtemplate> <tr> <td class="l...more >>

DOwnloadFilesFromSiteToLocalPC\ASp.net
Posted by gh at 11/30/2007 7:38:00 AM
I am looking for a control that will allow the user to click a link, that will open up and display files and subfolders, from a predeifined rppt folder. I don' t want the user to be able to navigate outside of the root folder and only be able to download files to their PC. Does anyone know...more >>

Using IsPostBack in Page_Load of dynamically added control
Posted by DC at 11/30/2007 7:00:19 AM
Hi, I am dynamically adding a usercontrol that uses "this.IsPostBack" in Page_Load to decide whether it must populate some of it's inner controls or not. Since I am adding the usercontrol to the page at runtime (on response to a click event), IsPostBack is always false and the inner controls ...more >>

aspx page cannot found
Posted by Claudia Fong at 11/30/2007 6:26:59 AM
I got this error after creating the virtual directory The page cannot be found The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. ------------------------------------------------------------------------ -------- Please try the follow...more >>

Server Side Notifications and a Javascript Application...
Posted by Spam Catcher at 11/30/2007 5:17:43 AM
Hello Everyone, I'm building an application which requires server side events to be pushed to clients. Typically I build these applications with a think client, but the machines I'm deploying this particular application have a very slim image - no .NET, Java, or any other runtimes. I ...more >>

textbox not recognized in client side
Posted by Claudia Fong at 11/30/2007 4:43:11 AM
I have a textbox name txtBC but I was trying to check if this textbox is empty or not.. Jscript gave me this error: txtBC.value is null or not an object what should I do? Cheers! Claudi *** Sent via Developersdex http://www.developersdex.com ***...more >>

position a cursor in a textbox using code in client side
Posted by Claudia Fong at 11/30/2007 1:29:02 AM
How can I position a cursor in a textbox on page load? I need this code in client side... Cheers! Claudi *** Sent via Developersdex http://www.developersdex.com ***...more >>

Is any way to palce a control(button/label) at a location on webPage in runtime??
Posted by chandan at 11/29/2007 10:51:53 PM
Hi, Is any way to palce a control(button/label) at a location on webPage in runtime?? In page_load envet I am adding a button on the page in the contol collection of a panel but not able to specify the location of the button since button controls did not have location property in web. I am...more >>

Getting the id generated by SQL Server for a new record
Posted by Nathan Sokalski at 11/29/2007 10:42:18 PM
I am using ASP.NET 2.0 to add records to a database table in an SQL Server database. The id field is automatically created when a record is added, and I would like to be able to know what value was assigned to the id field for use in my ASP.NET application. Is there a way to find out what valu...more >>

Attributes.Add querystring
Posted by Tom at 11/29/2007 9:08:51 PM
Trying to build a querystring using Attributes.Add: return_ok.Attributes.Add("value", "http://mydomain.com/finish.aspx?finish=324234" + @"&email=raerwe@fred.com" + @"&verify=32423dasdf3"); Renders this: <input name="return_ok" type="hidden" id="return_ok" value="http://mydomain.com/fini...more >>

AutoCompleteExtender won't work when receiving list from DB
Posted by rote at 11/29/2007 6:19:14 PM
When i type in a word the webservice doesn't retrieve anyhthing its just blank any ideas what 'm doing wrong? My Snippet code below. In my store proc i have like below : select firstname from Employee where firstname like @term+'%' and when i do sp_GetEmployeeByName 'somefirstname ' I r...more >>

Help for a special editor
Posted by Fransis il Mulo at 11/29/2007 6:03:00 PM
I need a textbox where I can insert special text that we can call TAG. For example <<CustomerID>>. Something like Word's PrintMerge fields. I think I need to use javascript to obtain similar behavior, for example I can insert or delete entire TAG but not a part of the tag... Any hints? Thank...more >>

AJAX Toolkit (Tab Panel Height)
Posted by NvrBst at 11/29/2007 4:38:25 PM
Anyone know how to force the Tab Panel to the remaining height of the page? "<cc1:TabPanel ...>" has a height option but only accepts pixels. My page goes <body><form ...><div><cc1:TabContainer ...><cc1:TabPanel ...> I tried playing with the div / TabContainer / TabPanel (height="100%" a...more >>

Simplistic URL Rewriting
Posted by Smithers at 11/29/2007 4:37:31 PM
Is there some way to implement a simplistic version of URL rewriting so that I don't have to do it for an entire Web site? I currently maintain a site with URL to a page that looks like this: http://www.MySite.com/udx/UX01.aspx?pageid=199 I would like to be able to tell people over the phon...more >>

Error downloading?
Posted by Paulo at 11/29/2007 3:39:23 PM
Hi, after generating a text file on server and showing the path on a hyperlink component to user download the file, shows me the error below: "There is no build provider registered for the extension '.rem'. You can register one in the <compilation><buildProviders> section in machine.config ...more >>

Subclassing Page
Posted by Rotsey at 11/29/2007 2:55:44 PM
Hi, I have created class that subclass the Page class. The problem is that it calls my OnInit methd ok and creates the HTML but the Page_load of my webpage that inherits the base class never gets called. I have put a breakpoint on the OnInit for subclass and at the Page_Load. The breakp...more >>

ASP.NET Account and ASP.NET Membership
Posted by Paul at 11/29/2007 1:53:03 PM
Hello All, I am having trouble with ASP,NET Membership. The membership account is not being created in the App_Code folder as it should. It has been suggested to me that perhaps this is because the ASP.NET account does not have create permission. What is the ASP.NET account? How do I find o...more >>

Visual Studio
Posted by shapper at 11/29/2007 1:52:26 PM
Hello, Does anyone knows what is the difference between Microsoft Visual Studio 2008 Team Foundation Server and Microsoft Visual Studio 2008 Professional? Thanks, Miguel...more >>

Setting up multiple IPs
Posted by Tina at 11/29/2007 1:51:39 PM
I know how to specify a separate IP in IIS but how to I specify it at the server2003 level? Although I added another web site in IIS with an (internal) IP of 192.168.22.23, it doesn't work. And when I do an IPConfig at the command prompt it doesnt show. Thanks, T ...more >>

returning x chars of Eval("..")
Posted by Kevin Blount at 11/29/2007 1:50:33 PM
I'm putting a radG:GridTemplateColumn together (which is probably irelevant), and within it I'm using a Label, as so: <asp:Label ID="defaultDescription" runat="server" Text='<%# Eval("description") %>'></asp:Label> Fo this Label, I'd like to only show the first 50 chars of the "description"...more >>

descript string using classic asp ?
Posted by bitshift at 11/29/2007 1:36:10 PM
Im about to write some asp.net code that needs to communicate with a classic (old) asp page on a remote server. I have two choices, either do a https post with form data, or encrypt a querystring before letting the user click on it. For the encrypted querystring, the classic asp page would ...more >>

Error BC30506 trying to add even for a button
Posted by Dennis at 11/29/2007 1:23:35 PM
I have a page in ASP.NET 2.0. I add a button in design view and the page runs fine. I then double-click the button to create the click method in the code. Then when I run the page I get the error "error BC30506: Handles clause requires a WithEvents variable defined in the containing type or o...more >>

Wierd paging issues with Gridview
Posted by Cirene at 11/29/2007 12:59:40 PM
I'm having some wierd paging issues with a gridview. Here it is: http://www.gulfstreamonline.com/NonAuctions.aspx Page 2 is empty Page 3-5 have 1 item each Any ideas why? ...more >>

Is this possible in DetailsView?
Posted by B. Chernick at 11/29/2007 12:35:01 PM
Ok. Webforms project/VB/ASP.net 2.0 I'm trying to whip up a quickie demo and my basic programming model is to display multiple records in a gridview and use that to select individual records for editing in a DetailsView. I'm trying to keep this as simple as possible. So I had this 'brigh...more >>

asp.net or ajax based rech editor for websites.
Posted by Andy B at 11/29/2007 12:11:30 PM
Is there anywhere I can get a free and good reliable rich edit control for websites? ...more >>

Maintaining Control Size on Different Resolutions
Posted by Smithers at 11/29/2007 11:59:20 AM
I would like to have a Web page that displays its control sizes consistently regardless of the screen resolution. Specifically, I don't want for the controls to appear tiny on screen when I open the page on a high res monitor. How can I accomplish this? Thanks! ...more >>

Visual Studio 2003 - Developing on Remote Machine
Posted by Chris Marsh at 11/29/2007 11:47:28 AM
All I've been asked run a VM on my development machine, with Windows Server 2003 installed. I've also been asked to then develop against this environment from the host machine, using Visual Studio 2003. Questions: 1. Is it even possible to use VS 2003 to develop when all files and IIS a...more >>

Programatically altering text before rendering
Posted by James R. Davis at 11/29/2007 11:24:42 AM
A complete newbie here (to ASP.NET) though lots of years of ASP programming. Still, some things are not yet very obvious to me. I have a SQL table that includes a TEXT field that often exceeds 20,000 bytes in size. Each such field contains an HTML page that I want to render for my users via a...more >>


DevelopmentNow Blog