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 > february 2005 > threads for monday february 7

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

C# || operator to VB
Posted by hansiman at 2/7/2005 11:42:40 PM
on http://www.bsdg.org/2005/01/empty-dataset.shtml I came across this C# code: bool Result = ( aDataset == null ) || ( aDataset.Tables.Count == 0 ); I think I know what it is supposed to do! How is this coded in VB ...more >>


difference between persistet DLL(ASP.NET Temp Files) and Bin Folde
Posted by Satish at 2/7/2005 11:31:02 PM
what is the difference between persistet DLL(ASP.NET Temp Files) and one which is IIS/Webapplication/ BIN Folder. can anyone tell what exactly happens for the first request for the above senario. regards Satish...more >>

System.Data.SqlClient.SqlCommand.Parameters' denotes a 'property' where a 'method' was expected erro
Posted by Patrick Olurotimi Ige at 2/7/2005 11:22:42 PM
I converted the code below from VB.NET to C# cos i have to add it to a C# application!! But i'm getting the error:- System.Data.SqlClient.SqlCommand.Parameters' denotes a 'property' where a 'method' was expected At the lines:- myCommand.Parameters("@Username").Value = strLogonUsr; m...more >>

Parsing Xml
Posted by Jaison at 2/7/2005 10:35:06 PM
hi i would like to parse an xml file node by node and store these into multiple table in sql2000. I am also under the assumption that I donot have any idea about the Xml structure.The attributes are known to me. Could any1 help me crack this. Thanks in advance -- Cheers Jaison...more >>

Web Control TextBox Selection during PreRender
Posted by Paul C. at 2/7/2005 10:34:14 PM
Hi folks. I have a WebControl TextBox which I would like to force to select all it's text during PreRender. My problem is that I don't know how to do this. I already have a reference to the control by using FindControl(), but I don't see any method or property I can use to set the selection...more >>

Datagrid - Formatting based on values
Posted by Simon Harris at 2/7/2005 9:11:52 PM
Hi All, I wish to change the background colour and contents of a datagrid cell based on the value of one of the columns on a per row basis. So, for example, if column A's value is 1, column 2 should be red with 'No' written in it. If column A's value is 0, column 2 should be green with 'Yes...more >>

What is the difference detween SRC and CODEBEHIND Tags?
Posted by Jack at 2/7/2005 8:42:26 PM
Hello, What is the difference between SRC and CODEBEHIND Tags? Example <%@ Page Language="vb" ValidateRequest="false" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" %> or <%@ Page Language="vb" Src="WebForm1.aspx.vb" Inherits="WebForm1" %> Thanks, Jack ...more >>

Error opening connection to Access (Jet) DB
Posted by Burton Roberts at 2/7/2005 8:13:24 PM
When using ASP.NET and an OleDBConnection control I get this error on CNN.Open: "The Microsoft Jet database engine cannot open the file 'C:\A2K\Backups\EdsBe2K.mdb'. It is already opened exclusively by another user, or you need permission to view its data." I have tried using a connectio...more >>



App using old path
Posted by scottf35 NO[at]SPAM hotmail.com at 2/7/2005 7:32:44 PM
I have recently moved my web app from the developing environment on to the web server. However I noticed in an error message (I recieved when I first tried to run it on the web server) that in the stack trace the app is trying to reference the physical path from the computer in which it was d...more >>

How do I Getting the URL in the Address bar?
Posted by Jack at 2/7/2005 7:20:58 PM
Hello, I want to have a web site at say 192.168.0.1 and have DNS to take http://www.red.com or http://www.blue.com to 192.168.0.1 and be able to know witch one was typed in to get to 192.168.0.1. Thanks, Jack ...more >>

Newby Question Linking of data between HTML and ASP!
Posted by John Baker at 2/7/2005 6:26:54 PM
Hi: I am an utter virgin at ASP, but have experience in HTML! I have a very basic question. I have an ASP sheet, where I wish to permit the user to enter a code, and then return the results of a query against a table, using that code. My problem is that I don't quite know how to: A Pr...more >>

performance and code behind
Posted by Kurt Schroeder at 2/7/2005 5:49:04 PM
is there a performance benifit to using code behind? ...more >>

capturing variables
Posted by Carlos at 2/7/2005 5:17:24 PM
Hi all, this question is probably trivial, but I just need to know how to capture a variable name, and its value when it is being passed from a URL address...i.e. if I have http://www.mysite.com?myvar=itsvalue Then I would be able to process such variable in my code behind logic. is this ty...more >>

ASP.net pop.ups
Posted by Kieran Breen at 2/7/2005 5:07:15 PM
Hiya, does anyone know the best way to dispose of a popup form after the user is finished using it? Thus far i have only been using the X in the corner but when i go to open the popup again, say straight away after, the page load event isnt firing, which is tellin me that perhaps im not get...more >>

Folder Permission
Posted by A P at 2/7/2005 5:05:52 PM
Do I need to give a read permission for "Everyone" on the WWWroot in order for me to use ASP.NET Code? I notice this when I only add the IUSR account of my machine to have change permission on the said folder, and it already give me an error: Server Error in '/' Application. So I try adding the ...more >>

Auto detect content-type
Posted by Grzegorz Kaczor at 2/7/2005 4:44:20 PM
Hello, I wanted to use Response.TransmitFile to return an image instead of a HTML page. Under IE everything works well, but under Mozilla/Firefox the image is treated as it were text/html. When I set up content-type in response to image/jpeg everything works well. But I would like to s...more >>

Directory.Move ---> Losing Session...
Posted by jojobar at 2/7/2005 4:35:05 PM
I have noticed that the Directory.Move removes the session as soon as the next Response.Redirect is done. It also appears that .Net framework constantly monitors all the directories below the root and invalidates the inproc session. Can this be caught as an exception and ignored. In the mea...more >>

System requirements for the ASP.NET version?
Posted by Carl at 2/7/2005 4:12:59 PM
What are the system requirements for the ASP.NET version? - Web Server - Database thanks, Carl ...more >>

Source code in the runtime error page
Posted by Pavils Jurjans at 2/7/2005 3:24:56 PM
Hello, I have to debug an ASP.NET project which is hosted on the remote server, and it is not possible to achieve the same environment on localhost. So, I need to debug on the remote site. Problem with the remote is, that when runtime error occours, I nicely get the error description, stack...more >>

What is the problem? JavaScript - ListBox
Posted by smoncayo NO[at]SPAM gmail.com at 2/7/2005 3:24:51 PM
Hello!!! I dont know what is the problem!!! I am desperate!!! I want to put enabled = false a button when in ListBox has selected more than a item. this is the javascript. it dosen't Work!!!! <script language =javascript> function JavaListBox() { var Contador = 0; ...more >>

Copying bind Dropdownlist
Posted by Carlos at 2/7/2005 3:22:40 PM
I have a dropdown list that binds data from a data reader bo I have a second dropdown list in my wen form which I want to have same data, how can I copy the one is bind to a secopnd one.. see my code below it dos not work.. Thanks try { SqlConnection MyConnection = new Sq...more >>

DataGrid TemplateColumns-- how-to use with CheckBoxes?
Posted by Jim Bancroft at 2/7/2005 3:19:38 PM
Hi everyone, I'd like to use ItemTemplates in my DataGrid to display one checkbox per row. The idea being, if field XYZ of a given DataItem is 1 (it's a binary field) then mark the checkbox. Otherwise, don't. Does this look like a good approach to the problem, or are there better way...more >>

dynamic drop down list problem
Posted by pmud at 2/7/2005 3:17:04 PM
Hi, I have 2 drop down lists on an asp.Net page. The 1st contains alphabets. When the user selects an alphabet frm the first list, the second drop down list should be populated with names from the sql database, which begin with that alphabet. For this I used an sql data Adapter & created...more >>

changing cursor
Posted by Craig G at 2/7/2005 3:16:49 PM
how do you change the cursor in Asp.Net? in windows app's i just used me.Cursor =3D Cursors.WaitCursor but it = aint available in ASP.net...more >>

cannot attach to aspnet_wp.exe
Posted by donall at 2/7/2005 3:11:02 PM
i have a DLL which implements a HTTP handler, written in C#, and have deployed it on IIS 5.0, on XP service pack 2. six months ago, i was able to debug it by attaching CLR to the process (aspnet_wp.exe). now i can't attach to the process any more. when i select the process from the list, and...more >>

Error: SQL Server does not exist or access denied in ASP Application
Posted by Simone at 2/7/2005 2:39:17 PM
Hi! I'm an Italian Boy, Excuse Me for my incorrect language. I have a Server with Windows Server 2003 Enterprise Architect and SQL Server 2000 Enterprise. I'm developing an ASP Web Application, but when i try to connect to my SQL Server Database by this connectionstring "data source=MYSER...more >>

httpwebrequest and client certificates
Posted by Deepak at 2/7/2005 2:39:08 PM
We retrieve data from a company called XYZ through httpwebrequest. The program is coded using VB.NET They have given a certificate to install. This certificate is included with the request object.I use httpwebrequest to retrieve data. The certificate is added to the client certificates collecti...more >>

Need help ProcessModelInfo.GetCurrentProcessInfo()
Posted by seba at 2/7/2005 2:10:11 PM
I try to get some info about webserver - ProcessModelInfo.GetCurrentProcessInfo() On Windows 2000, IIS 5 everything works fine. On Windows 2003 IIS6 i am getting error: "Process information is available only when the ASP.NET process model is enabled". I checked my machine.config and <processMod...more >>

Error Spawning Process from ASP.NET
Posted by hoochiegooch NO[at]SPAM hotmail.com at 2/7/2005 2:02:26 PM
All, I posted a message here recently regarding the difficulty I'm having with CreateProcessWithLogonW() in an ASP.NET application. I get the following Win32 error: Error 183: Cannot create a file when that file already exists. I thought it was Win2K3 or IIS6 giving me grief, but it ap...more >>

iis sometimes stops responding
Posted by Andy Fish at 2/7/2005 2:00:43 PM
Hi, I am developing an asp.net app in C# on winxp pro. During a heavy development/debugging session, very occasionally IIS will seem to stop responding to asp.net requests. Other non-asp.net stuff works but asp.net requests (even for other web apps than the one I'm debugging) dont't even...more >>

Differences in aspx page rendering between environments
Posted by Ryan Anderson at 2/7/2005 1:43:08 PM
I have a sneaky problem with a web application that is acting differently between two different environments. Now, I know this is sticky because we are talking two different environments here, but maybe someone will have an idea... I have validated that the two web.config files are identical, ...more >>

When to use a class
Posted by David Lozzi at 2/7/2005 12:59:44 PM
Howdy, I've discovered how to create and use a class in ASP.NET. However, when = is the best time to use a class? For example, I am currently using = session variables to store user information (user id, user name, full = name, security level, department, etc.). Would I do better to create a =...more >>

Session counter
Posted by Armen Kirakosyan at 2/7/2005 12:40:26 PM
Hi I have web site developed and now wanna to check how many people is connected In all MS articles written to use Application_start Session_start Session_end functions in Global.asa BUT!!!!!!!!!!!!!!!!!!!!! after many tries I see that Session_end almost never fires after checking many ar...more >>

wshshell.run
Posted by Paul Bergson at 2/7/2005 12:03:29 PM
I'm trying to start up a command from inside my asp code to modify permissions on folders. When I do I get the error Microsoft VBScript runtime error '800a01a8' Object required: '' /newuser.asp, line 120 Line 120 is the WshShell.Run strWShell This works fine in vb script. ...more >>

Getting List of Files in a Folder
Posted by chuckdfoster at 2/7/2005 12:01:29 PM
I am not sure if this is even possible, but I figured I'd ask some experts. How would I use an ASP.NET page to get a listing of all of the files that are in a folder. I am working on a page that can show a group of users if their reports are in a folder (kind of like a report distribution page)....more >>

maintaining session state of class objects in asp.net
Posted by Chris at 2/7/2005 11:43:03 AM
Hi, I am building a single webform/webpage asp.net application using VB.NET. I have created lots of classes for this web application. On page load I use a facade controller pattern class to perform all my initial class object instaniations using sub new() procedures I'm using this project...more >>

Help with Code to Execute a Stored Procedure
Posted by Jeff Thur at 2/7/2005 10:54:16 AM
I am trying to Execute a simple Stored Procedure using ASP/VB. I have spent numerous hours with this, researching books and looking on the internet. I can't get a direct answer. THis is my program, followed by the errors, Can anyone Please Help, Please, Please, Please. Sub cmdGO_Click(s...more >>

are frames good or bad?
Posted by Melinda at 2/7/2005 10:28:18 AM
Do i go ahead using frames? I've heard in the past that frames were not supported in some browsers & its not a good idea to use them. I suppose there are two sides to this & this would be a top with certain disputes. But in ASP.NET & teh new trends, should i use Frames? Also, can a frame...more >>

a new worker process(aspnet_wp.exe) for each web service request ...
Posted by CG at 2/7/2005 10:25:50 AM
I have a VS .NET 2003 web service project which references a Managed C++ assembly. The managed C++ assembly in turn uses some unmanaged code. Because of some restriction in the unmanaged (legacy) code, I can only have a aspnet_wp.exe worker process service only one web service request. In o...more >>

a Return(1) in a stored proc
Posted by David Lozzi at 2/7/2005 10:19:32 AM
How is a Return(1) handled in asp.net? Do I need to specify an output? = What do I call the output? --=20 David Lozzi Web Applications/Network Specialist Delphi Technology Solutions, Inc. dlozzi(remove-this)@delphi-ts.com...more >>

Range Validation in an EditItemTemplate
Posted by tshad at 2/7/2005 10:08:11 AM
Can you do Range Validation inside of an EditItemTemplate of the DataGrid? I have one set up as: ****************************************** <td> <asp:TextBox Columns="3" id="Weight" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Weight") %>' /> <asp:RangeValidator ...more >>

Web Services /ASP.NET
Posted by Mr Newbie at 2/7/2005 9:44:22 AM
What do I need to run a web service on my PC ? I know I need the .NET Framework, but do I need IIS Running ? ...more >>

Trace inside button click event?
Posted by Dabbler at 2/7/2005 9:27:03 AM
Is there a way to use Trace.Write inside a button click event which moves on to another page? Thanks...more >>

Security problem/issue ASP.Net Session
Posted by Gilles at 2/7/2005 9:25:10 AM
Hello, I'm facing a big problem in an Asp.Net application, when users connect the application, I store their user informations into the session object (session_start). But when 2 users click (nearly) at the same time on the page myprofile, the first user sees his profile (the correct one) ...more >>

pass data to a text file! What this error means?
Posted by sympatico at 2/7/2005 9:16:26 AM
hi, pls help me slove this problem. i am a newbie in using asp.net and SQL server 2000 and my problem for now is to pass data to a textfile and i have fail to do so. the way i did it was i used a datagrid to display certain data for the user to choose, as they check the checkbox beside the d...more >>

Datagrid - Does not fire itemcommand
Posted by sri_san NO[at]SPAM mailcity.com at 2/7/2005 9:15:58 AM
Hello Group, I use a datagrid with a linkbutton to delete the selected row. Added javascript confirm dialogue box in itembound event. The itemCommand event does not seem to fire when I debug the application. Any ideas? Code outline below: <asp:datagrid id="dbgrdCandidate_List" ...more >>

ASP.NET and checkbox help
Posted by Dave at 2/7/2005 9:15:11 AM
Hi all, I'm new to ASP.NET and am working through a few exercises in a book to get up to speed. First, some background: I'm running SQL Server 2000 and have one field as a bit data type (0=false or 1=true). On a form I have a check box that a user can check for whatever reason. This fiel...more >>

ad managment
Posted by Eirik Eldorsen at 2/7/2005 9:14:36 AM
I'm starting a project where I willl need an Ad Managment solution. Could someone recommend me a product? -- Eirik ...more >>

Post Back Problem
Posted by Sunil Sabir at 2/7/2005 9:09:03 AM
Dear All, I have a search form which has 3 drop down boxes dropID ,dropPostCode, dropName. when I select some thing in the dropID name lets say 0001 I press go button.It displays a Record of the employes personal details like name,age adress etc.Now the problem is when I edit the name of th...more >>

Code called twice
Posted by anonymous at 2/7/2005 8:49:19 AM
Hello, I have a listbox control, which has multiple selection enabled. Now, I need to retrieve all selected items when the submit button is clicked. It works very well, but the only problem is that it returns the data 2 times. I mean it returns duplicated data. Lets say I selected one i...more >>

clear history
Posted by julio at 2/7/2005 8:43:08 AM
I need to clear the history via javascript or other via, but inside from an aspx page. Any help would be appreciated. Thanks! Julio ...more >>

Email not working
Posted by tshad at 2/7/2005 8:41:29 AM
I have a W2003 server running my website and I am trying to set up my pages to send email using System.Web.Mail. I have pages running on this machine using CDONTS that work fine. I am using our exchange server to send the mail but am getting an "Unable to relay" message. But the "From" na...more >>

Website Dropdown Menu - ASP.NET
Posted by ACaunter at 2/7/2005 8:35:06 AM
Hi there, can someone please tell me what the easiest way to have a dropdown menu bar positioned on the screen (eg. Home, company, ... , contact us) then when the mouse goes over then, the sub menu options are displayed thanks a lot -- AdamPC@hotmail.com...more >>

Debugging Javascript file
Posted by Angel at 2/7/2005 8:31:04 AM
Is there any way to debug a javascript file that I included in my ASP.net project. or some reason when I call a javascript function in the file from my ASP.NET code I get an error message. now if i strip the entire code or the file and put just an alert the code obviously works. So there is an...more >>

Free ASP.Net samples!!!
Posted by mf_sina at 2/7/2005 8:24:15 AM
Hi! is there any website or resource in the internet to download some free asp.net applications from like what we see in WebWiz products? I appreciate if introduce me some thanks in advance ...more >>

Adding a function to the String class?
Posted by Rob Meade at 2/7/2005 8:24:06 AM
Hi all, I have written a small ProperCase function which I would like to make available to our team at work through our common class library. A colleague mentioned that I could write a new class which derived from the String class, add the function there and then we would all use the new c...more >>

Security problem/issue ASP.Net
Posted by Gilles at 2/7/2005 8:03:59 AM
Hello, I'm facing a big problem in an Asp.Net application, when users connect the application, I store their user informations into the session object (session_start). But when 2 users click (nearly) at the same time on the page myprofile, the first user sees his profile (the correct one) ...more >>

Allow users to do minimal text formatting
Posted by Rolf at 2/7/2005 6:49:54 AM
Hi all, I have a site working where a user can add some text, wich will be display on a news page. I would like to give the user the ability to change some settings of the text he enters (color, size, alignement,... ) i'm not really sure on how to start on this... How do I have to save ta...more >>

Page and User Control Communication?
Posted by Raed Sawalha at 2/7/2005 5:25:01 AM
I have a aspx page with one user control , in the user control i have hidden field (name hdnSaved) runat server wrapped in property like following :- in documentview.ascx public string SaveClicked { get { return (hdnSaved == null) ? "" : hdnSaved.Text; } set { hdn...more >>

send ascx file's html code as email
Posted by Sabri AKIN at 2/7/2005 4:50:51 AM
Hi, I want to send ascx file's html code as email.this ascx file is summary of customer sale.and at last iwant to send email to customer.how can i get and past ascx file's html code to mail body....more >>

A clearly instansiated object (a WebForm control) isn't instansiat
Posted by Kristian at 2/7/2005 4:23:04 AM
Hello, When clicking on a button the selected item from the 1st listbox is supposed to be added to the 2nd listbox: The code: Private Sub btnInfo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnInfo.Click Dim sVal As String Me.lstKatInfo.Sele...more >>

Wrong currency symbol in .asp app
Posted by Stuart at 2/7/2005 3:17:04 AM
Hi There Probably missing something drastically obvious here.... I have just moved an .asp application from a test IIS server to a running IIS server and have become confused... I am using format(blah blah, "c").ToString From what I can see both servers are configured exactly the same a...more >>

Application level trace stops tracing
Posted by Dabbler at 2/7/2005 2:39:02 AM
When I first start up an ASP.NET application with tracing enabled in web.config the first few pages show trace at bottom of the page but then at some point the pages return to normal with no trace information displayed. Can anyone tell me what might be causing the Trace to turn off? Thanks...more >>

ASP.NET Architecture
Posted by Satish at 2/7/2005 1:41:02 AM
HI I want to know the ASP.NET Architechture. Can anyone help me in getting that. Regards Satish...more >>

DTS Transformation Error: "Transaction context in use by another session."
Posted by Axel Dahmen at 2/7/2005 1:29:30 AM
Hi, today I've had a strange DTS error: In one of my transformations I'd been using several Copy Column transformations + one ActiveX transformation using a lookup function. This lookup function uses a second connection to the same SQL server but to a different database. I'm using this functio...more >>

How to use .Net Assembly file(dll) in SQL Server Extended procedur
Posted by Sivaraman.S at 2/7/2005 12:25:02 AM
Hi, Can anyone tell how to use .Net Assembly file(DLL) in SQL Server Extended Procedure. regards, Sivaraman.S...more >>

Active Directory Problems...
Posted by Tim::.. at 2/7/2005 12:15:01 AM
Can someone please tell me why the following doesn't return any results! I don't get an error but at the same time I don't recieve any results from the AD???? Would be really grateful for any advice! Thanks ...code.. Sub SetupSession() Dim strUserName As String Dim...more >>


DevelopmentNow Blog