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
all groups > asp.net > january 2005

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 31

Calling a function from a button...easy, right?!
Posted by ScooterMX at 1/31/2005 11:30:46 PM
I just have a function that does some sql stuff. When I run this I get an object expected error on the <input type="button"... line Does anyone have a suggestion? This is written for IE only - it's an internal tool... Here is the code that fails. <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <htm...more >>


HttpResponse.Filter clearing and what is happening behind the scenes
Posted by Chris Simmons at 1/31/2005 11:30:29 PM
Hello: I am trying to better understand the HttpResponse.Filter property and, although I think I "get it," I am wondering what is going on behind the scenes. I was initially stumped with the thing because all the samples I came across kept using the property as an argument to the custom fil...more >>

ASP.NET versus ColdFusion MX
Posted by Peter Mount at 1/31/2005 11:18:30 PM
Hi I guess this has been asked before. How does ASP.NET compare to ColdFusion MX? I've been playing with ColdFusion MX for a while now but I've been told it's really hard to find work in ColdFusion here in Melbourne, Australia. I've studied Classic ASP so I thought it was natural to try ...more >>

RightFax 8.7 and Micosoft .NET
Posted by Baren at 1/31/2005 10:17:01 PM
Hi!, I have a query regarding Captaris RightFax 8.7 and Microsoft .NET. I am developing a application for one of my client where the client needs to send e-Fax from the website. He has asked us to integrate RightFax. He is having a RightFax ver 8.7 installed on his server. Now the question...more >>

get count fails
Posted by TJS at 1/31/2005 9:43:21 PM
trying to find count of existing email addresses to prevent duplicates but simple function fails - what am I missing ? Function DuplicateFound(byVal vEmail as String) As boolean Dim sqlQuery AS string Dim cmdSelect AS sqlcommand sqlQuery = "SELECT Count(*) FROM users WHERE lowe...more >>

Newbie to ASP.NET
Posted by Peter Mount at 1/31/2005 9:20:06 PM
Hi I've studied Classic ASP in my studies but I haven't covered ASP.NET. Is there a lot of difference between the two? Is Web Matrix good to use for that (I can't afford to pay for software right now)? I read it has it's own web server for testing without needing IIS. Is that a good ...more >>

Conditionally display excluding / including tax?
Posted by Olav Tollefsen at 1/31/2005 8:33:19 PM
I'm creating an ASP.NET e-commerce web site and I have to conditionally (depending on site / user settings) display prices either excluding or including tax. Prices are typically read from a database (where also the tax rates are stored) various places in the code and typically (but now always...more >>

how to make a button static?
Posted by Asha at 1/31/2005 7:43:02 PM
hello i'm doing this protected static System.Web.UI.WebControls.Button btnExcel; hoping that it would remain shared but when i run the application i get this error Compiler Error Message: CS0176: Static member 'NPI.Search.btnExcel' cannot be accessed with an instance reference; qualify...more >>



Can you convert PagedDataSource to a dataset?
Posted by darrel at 1/31/2005 7:00:13 PM
Or, rather, fill a dataset with a PagedDataSource object? I am using PagedData right now in this manner: Dim pagedData As New PagedDataSource() Sub doPaging() 'query the DB and return a copy of the Dataset as pagedData pagedData.DataSource = getTheData().DefaultView pag...more >>

grant ASPNET modify access when deploying using Installer in VS
Posted by harry at 1/31/2005 6:52:55 PM
Hi all I am using VS.NET 2003 installer to deploy my ASP.NET application. I want to allow ASPNET write access to some files in subfolders of the inetpub/wwwroot/myApp/mySubfolder using VS.NET 2003 deploy project. Is there a script or conditions that I have to set in the deployment project's ...more >>

Regex again
Posted by Toska at 1/31/2005 6:48:19 PM
Hi again Follow up on my previous thread where I got help to enclose specific words in markup code. After some modifications it looks like this: Code: -------------------- void SomeMethod() { string words1 = "dog|cat|pig|horse|hippo"; string text1 = "hadsf das adh f dog adhsf ya...more >>

Can I have GET and POST forms on the same page?
Posted by Alan Silver at 1/31/2005 6:40:32 PM
Hello, From my limited experience with ASP.NET (couple of weeks so far, much time wasted with stupid book), you can only have one form per page. If so, how do you handle the scenario where you want two forms (from the user's point of view) on a page, one form that uses POST and one that ...more >>

DataColumnCollection Inherit !!
Posted by daniel at 1/31/2005 6:34:04 PM
i wirte a "class b" to inherit DataColumnCollection, but it show a error message that is 'method of DataColumnCollection is not anyone overloadding to use zero of argument' The following it is written by me : public class b : System.Data.DataColumnCollection { } ...more >>

Conditional attribute question
Posted by Nicole Schenk at 1/31/2005 5:16:25 PM
I am placing this code in an aspx or ascx, If I write (in C#), [Conditional("DEBUGGING")] SomeMethod(){} Where do I set "DEBUGGING". When I try a #define, the compiler complains if I place de define: 1. If after the first line, 2. If I put it as the first line, the line gets parsed a...more >>

Efficient site maintenance with VS.NET
Posted by Beren at 1/31/2005 5:14:10 PM
Hello, Can anyone give some tips to efficiently update a remote project ? I prefer to keep my projects locally, compile as release and then copy everything it to the remote server. What is bugging me is that when I have to change one line of code (locally, to have an identical copy), I ha...more >>

Opening a Asp.net web application...
Posted by srik at 1/31/2005 5:06:23 PM
Dear All, I created a simple ASP.net web application on my desktop system, which has Windows XP as the Operating system. I then moved the ASP.net application to my server which has Windows Server 2003 as the Operating system. Now when I try to open the same application it gives and error ...more >>

Using SOAP with .NET
Posted by Simon Kennedy at 1/31/2005 4:38:42 PM
Hi All, Is it possible to support SOAP methods determined at runtime? I thought that by implementing a class derived from 'SoapReceiver' and registering the class within the web.config file of our ASP.NET project might do the job but this seems to only support one way communication. I can rec...more >>

default home pages
Posted by Carlos at 1/31/2005 4:29:44 PM
Hi all, can I have more than one default page to be considered as a home page?. I need to redirect to either one depending of a condition (that is the URL address should just display the web home address) Thanks, Carlos. ...more >>

Windows Authentication Problem
Posted by chuckdfoster at 1/31/2005 4:10:01 PM
I am having a problem with my ASP.NET application and using Windows Authentication. It works until I take the "Everyone" group away from the permissions. Then it won't let anyone in, including the domain admins or local admins. Has anyone else ever seen this problem or know away around it? ...more >>

Help: RangeValidator Not Working!
Posted by Lucas Tam at 1/31/2005 4:00:24 PM
Hi all, I have a RangeValidator that is not working correctly - it is always returning a isValid = False. The Javascript is returning this as well as on the server side. My RangeValidator validators a control called CampaignID. In the debugger I've verified there is a control called Cam...more >>

How do I do these dynamic links in ASP.NET ?
Posted by Alan Silver at 1/31/2005 3:57:49 PM
Hello, I Classic ASP, I used to have a standard way of making the top-level site navigation links. I had an include file which included a Sub like this ... Sub MakeLink(TocURL, TocText) If TocURL = ThisURL Then Response.Write("<br>" & TocText) Else Response.Write("<br><a href...more >>

IE FTP client does not retain dates
Posted by Bill Borg at 1/31/2005 3:47:04 PM
Hello all, When I use IE to FTP to my web host, the file dates/times are updated to become the upload date/time, not my last local save (which is what I want). I've googled and looked out here, but with no luck. Any idea if/how to change this setting? Or, do I have to switch ftp clients? ...more >>

One web.config, for multiple domains
Posted by Ludvig at 1/31/2005 3:12:42 PM
I have various domains using the same application/assembly They differ in contents and design, based on a "site id", and get its information from an SQL server. Now I have to deploy the different "sites" to individual folders on the server, and set up the domains on IIS to point to these fol...more >>

Forms Authentication going back to previous page
Posted by tshad at 1/31/2005 3:05:06 PM
I have a logon page that is getting the previous page in its return URL ("logon.aspx?returnURL=A.aspx") where A.aspx is the page that called B.aspx. It should have B.aspx. I am calling B.aspx using server.transfer. Could this be causing a problem? Thanks, Tom ...more >>

Design Mode
Posted by Simon at 1/31/2005 2:21:31 PM
Hi, How do I to check if the WebControl is in DesignMode or not ? Thanks. Simon. ...more >>

Code being Debugged is not most recent
Posted by Alex S. at 1/31/2005 2:19:02 PM
It seems as if my program compiles fine, but then the debugger is clearly not on the right line (not debugging what I am seeing). Anyone know why this could happen ?...more >>

Cache with multiple webservers.
Posted by MattC at 1/31/2005 2:17:18 PM
Does the Cache object reside within the W3WP? If so how does this work if you have multiple webservers. I assume the cache is not shared as it does not reside in a service lie the Session State server. TIA MattC ...more >>

limiting string size in data grid format specifier for column
Posted by Paul at 1/31/2005 1:55:04 PM
Hi just wondering how to limit the string size for a data grid column, can this be done from the properties box, data formatting expression? If so what would be the expression to limit it to 20 characters? thanks. -- Paul G Software engineer....more >>

Messagebox linked to link button
Posted by tshad at 1/31/2005 1:47:05 PM
I was looking at Scott Mitchells article: http://aspnet.4guysfromrolla.com/articles/090402-1.2.aspx the tells how to call a messagebox from a button and can almost get it to work but ran into 2 problems. You have to press the button twice to get it to work and I can't figure out how to get ...more >>

Need a pros help
Posted by Chris at 1/31/2005 1:39:04 PM
I have a datagrid with 3 columns Name quantity status This grid is populated from a sqldatareader. grid.datasource = datareader grid.databind() I now want to set the quantity column to a template column with a dropdownlist. How can I get the dropdownlist to be populated from the sam...more >>

function to build sql update string based upon data type
Posted by TJS at 1/31/2005 1:37:50 PM
looking for generic function to build sql update string for values coming from a form. I've seen these for classic asp but I'm not finding equivalent in asp.net Googleing did not help so far ...more >>

Datagrid design
Posted by Leszek at 1/31/2005 1:24:05 PM
Hello! I'm creating a web page with datagrid. It will contains 6 columns and about 70 rows. My page must give a possibility to change records in database. What's the best solution for this? I'm new in Webapplications. Can someone give me few steps (good link etc)? In database modyfied can b...more >>

Receiving values from ASP page to ASP.NET page in URL
Posted by Chris at 1/31/2005 1:15:02 PM
Ok Guys, I am hoping someone can give me a little are code to start me down the right path. Someone is going to write a ASP / VB script page that calls my ASP.NET page. The ASP / VB page wants to pass some values to my ASP.NET page in the URL. What would be the code in my PageLoad to read...more >>

Query date/time field access
Posted by Rolf at 1/31/2005 12:33:57 PM
Hi all, I Have a web page wich displays some data from an access DB using the Datalist control. I have 1 problem with a field of the type Data/Time. When I display the field using <%# Container.dataitem("Date")%> I'll see this as a result "01/07/2005 0:00:00".. So it add's 0:00:00 is ...more >>

DataGrid and rtf code
Posted by rkbnair at 1/31/2005 11:43:04 AM
I have an SQL table with the data type as text (which contains the rtf code along with the data). How can I display the data in the grid a) by removing the format, b) with formatted text? and c) can I include any kind of statements in the select statement itself? ...more >>

Is this Possible?
Posted by Joel Cade at 1/31/2005 11:07:02 AM
Thank you in advance for you assistance. I was wondering if its possible to render an ASPX page and save the output HTML as a seperate file. For instance, if I hit a database and do some processing, I'd like to be able to save the file as an HTML file on the file system. Is this possible?...more >>

Connection Pool problem
Posted by MrDotNet at 1/31/2005 11:03:04 AM
Hi I need help.... I am get that error The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. but in My code I am close the connection but still I am get that error. HE...more >>

response javascript
Posted by Ariel Erlijman at 1/31/2005 11:00:33 AM
I have a .htm with this script in the body <SCRIPT src="\TestScriptNET\test.aspx" LANGUAGE="JavaScript" TYPE="text/javascript"></SCRIPT> And in my test.aspx Page_Load the following code: Response.write("document.write('<b>hola');") I'm getting a Syntax Error. Is it possible to do this...more >>

VeriSign Seal not Displaying in Production - 2nd post
Posted by Richard at 1/31/2005 10:57:02 AM
I've read the posts here and VeriSign's KB articles, which pertain to the seal not displaying in development mode. However, the seal still won't show up on the .aspx production page, but it does work fine on our other .htm pages! Talk about frustrating. Here is the script (I put it in a tab...more >>

Sections visible and not visible
Posted by tshad at 1/31/2005 10:23:22 AM
I have a page with many input variables and some are blank. I want to make the row "not visible" if the field is blank. For example: <tr> <td width="120" align="right" nowrap> <asp:Label id="contactAddressHead" Text="Address:" runat="server"/> </td> <td> ...more >>

Datagrid control to change the row color on Mouse click event
Posted by karunakar at 1/31/2005 10:20:12 AM
Hi All, I want to deselect the row in DATAGRID. in ASP.NET application. I was alredy selected in datagrid row .I want to change another row in same datgrid . Here in my datagrid was selected in Multiple rows. when ever i select the particular row that time it can be selected .Next time i wa...more >>

Empty dataset with multiple requests
Posted by ghause at 1/31/2005 10:17:03 AM
When I have two users click a button with 1 sec of each other, one of the users is returned an empty dataset, resulting in a 'no row at position 0 error'. Here is an obfuscated snippet: Dim objCustomerFacade As New CustomerFacade() Dim Customer As New TypedDataset Customer = objCusto...more >>

Forcing Compression
Posted by MattC at 1/31/2005 9:56:16 AM
Hi, If I add the following line to Application_BeginRequest Request.Headers.Add("Accept-Encoding", "gzip"); Will this cause the server to utilise IIS6.0 Compression even if the client is not set to use HTTP 1.1. Does the browser need to know that it sent the request in HTTP 1.1 in orde...more >>

how to create a drop down menu using vb.net
Posted by Logan at 1/31/2005 8:32:21 AM
I'd like to create a dropdown menu (with submenus) using vb.net. Does anyone have any idea how i could go abouts achieving this? tks in advance. ...more >>

public vars losing values
Posted by cFleury at 1/31/2005 8:11:04 AM
Hi, I have a public structure which is initialized only at startup time but at least one of the elements of this structure is losing its value, this particular element is ONLY initialized at the same time the structure is also initialized and nowhere else in the code. Worth mentioning here ...more >>

Could not copy temporary files to the output directory
Posted by verane.chanson NO[at]SPAM varianinc.com at 1/31/2005 7:54:16 AM
Hi, I have read the thread named "Could not copy temporary files to the output directory" on this newsgroup. And I have the same symptoms on my machine. But I didn't find any solution suitable for me. (I don't use ASP.NET or any web service at all, only windows forms). Here is how I work : I...more >>

DataGrid footer to span columns?
Posted by Olav Tollefsen at 1/31/2005 7:52:22 AM
Is it possible to create a DataGrid footer to span multiple columns? Olav ...more >>

Trapping an Exception ocurring in a Webcontrol at the Page or parent WebControl level.
Posted by johndoe NO[at]SPAM driver.net at 1/31/2005 7:45:39 AM
I am looking for a easy way to trap an Exception that may occurr in any one of 30 child web controls to be trapped at the topmost parent WebUser control or Page Level. I have tried variations of setting the Error event handler for the topmost parent WebUser control that I want to handle the er...more >>

Opening a new page (i.e., spawning new IE window) via JavaScript kills the Session variable?
Posted by POL8985 at 1/31/2005 7:33:26 AM
When I deploy an ASP.Net onto a customer's IIS 6.0 server, the Session variable is nuked for any new page opened by JavaScript. However, this works fine when I am running the ASP.Net in debug mode on my machine. Any suggestions? The JavaScript is: <script>window.open('../ReportForms/frmR...more >>

dropdown - javascript - to server - postback
Posted by Boonaap at 1/31/2005 7:25:04 AM
I created two dropdownlists, one of them is filled up through javascript because i did not want to create to much datatransfer since the content of that list depends on what is selected in the first dropdown... By javascript I can retrieve the selected value and put it in a hidden field, so...more >>


DevelopmentNow Blog