Groups | Blog | Home


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 > october 2004 > threads for thursday october 21

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

client side validation for custom composite control
Posted by Lisa Calla at 10/21/2004 10:37:19 PM
Hi, I've been struggling with this for a few days. I've seen bits and pieces (how to set up custom validation), but I can't seem to understand how to get client side validation for my custom composite control (the textbox part). I've done a ton of vbnet, am new to aspnet, but barely know how...more >>


ASP file manager
Posted by Lloyd Dupont at 10/21/2004 10:21:12 PM
is there any tutorial / sample showing how to have an "ASP file manager" to delete / remove / rename file on the web server in nice tree views (a bit like sharepoint) andd let you choose file to upload the same way... ...more >>

uploading file tutorial
Posted by Lloyd Dupont at 10/21/2004 10:19:41 PM
is there any tutorial which shows how to upload file on a server? I know the basics but I would appreciate finding a sample which show you your destination directory in a tree view and some other nice effects..... ...more >>

setting a variable in one UC for another UC to read
Posted by Darrel at 10/21/2004 9:49:02 PM
Is it possible to set a variable in one UserControl that another UserControl can read? For example: page.aspx navigationControl.ascx pageBanner.ascx the navigation control builds a menu by transforming some XML for me. Based on some data stored in the XML file, I'd like to set...more >>

How to validate non-required fields?
Posted by tiendq NO[at]SPAM gmail.com at 10/21/2004 9:03:37 PM
Hi, By default, all controls must have a RequiredField control in order to use more complex validation control e.g. RangeValidator, so how can I use validation controls with non-required fields? Thanks,...more >>

Interview question
Posted by geeksgk NO[at]SPAM yahoo.com at 10/21/2004 7:52:29 PM
I was asked this question in an interview. How can you display the contents of an ASP page (from another web server) in a aspx page, ie, first half of the screen will display contents from asp and the other half will be from the current aspx page. Using frames is not an option. Any thoughts...more >>

Keep it TOP.....
Posted by Wilson Smith at 10/21/2004 7:47:15 PM
I am launching 'frmMyWindow2.aspx' from the clicked event of a button from frmMyWindow1.aspx. Here is my code looks like. Dim strScript As String = "<script language=JavaScript>window.open('frmMyWindow2.aspx' "null,'height=600,width=600,left=0,top=0,location=no,scrollbars=yes');</sc...more >>

Client Side Submit NOT Postback
Posted by Jim Duncan at 10/21/2004 7:45:20 PM
How can I make a client-side javascript form.submit() look enough like a postback that the browser back button will not show the previous state of the form and instead go to the previous page? I have two forms on the page. The first is a server form (runat=server) and contains a Repeater co...more >>



IIS letting ASP.NET do the work
Posted by Brandon Potter at 10/21/2004 7:39:08 PM
I'm having a bit of trouble figuring out how to let IIS 6 pass on default document requests for documents that don't exist to ASP.NET. In a simplified version of my application, all of the "pages" are user controls (.ascx files), and I have one "master page" (no, this is not 2.0) that contains...more >>

Load balancing made simple?
Posted by geekboy0001 NO[at]SPAM yahoo.com at 10/21/2004 5:05:04 PM
Okay, I have two identical web servers running Windows 2003 web server. I have an ASP.NET application which runs great on one of them. Dedicated IP address, behind our firewall, etc. Everyone's happy. Now -- how do I take advantage of that second computer to "load-balance" the web site? Wil...more >>

Help in converting to VB.NET
Posted by Patrick.O.Ige at 10/21/2004 4:25:02 PM
Hi All, Can anybody help in converting the code below to VB.NEt thanks. I need the loop converted.. thanks Private Sub expandCollapseAllTreeviewNodes(ByVal nodes As TreeNodeCollection, ByVal expand As Boolean) Dim node As TreeNode 'Loop through each node of the collection and expand it. ...more >>

Create a network account from program?
Posted by Brent at 10/21/2004 4:07:51 PM
Hi, We're developing a new HR Recruitment program, and I'm wondering if it is possible to automatically create a new Windows Network profile for a new employee? (Active Directory I think). If not through C#, maybe some sort of batch program or even some sort of mouse recording and capture wit...more >>

.NET Runtime Error, Event ID: 1000
Posted by Aleks A. at 10/21/2004 3:49:21 PM
Greetings all, I'm getting the following 2 errors, back to back, ever couple of days. Anyone encountered anything of the sort? After these 2 errors occur, the asp.net application stops responding. I have to restart the service to get it up and running again. Any way to trace the problem...more >>

Serializable ?
Posted by WJ at 10/21/2004 3:30:21 PM
I have this class: ****************************************** using System; namespace myNameSpace.DBRec { [Serializable] public class myRec { private string _Field1; private string _Field2; public myRec() { } public myRec ( ...more >>

Scale out
Posted by Shabam at 10/21/2004 3:15:57 PM
I have a dotnet application that allows users to upload images. These images are stored in separate folders like this: E:\images\{first 2 letters of user ID}\{3rd and 4th letter of user ID}\{user ID}\user-image.gif This is to prevent overloading of too many files in one particular director...more >>

If Then statement inside of repeater control
Posted by sck10 at 10/21/2004 3:15:04 PM
Hello, I am trying to use an If Then statement inside of a repeater control. However, I am getting the following error: Expression expected. Any help would be appreciated. Thanks in advance, sck10 <asp:Repeater id="rptWebDocList" runat="server"> <HeaderTemplate> <table border...more >>

ASPNET_regiis step through
Posted by Richard Myers at 10/21/2004 3:04:41 PM
Hello Can anyone point me to a url that provides a step by step description of what aspnet_regiis does. I understand that bascially it is registering ASP.net with IIS but i want to know more. Thanks Richard ...more >>

ASP Error on INSERT INTO Statement
Posted by Off_Route at 10/21/2004 2:39:01 PM
Hi I'm getting the following error: Microsoft OLE DB Provider for ODBC Drivers error '80040e14' [Microsoft][ODBC Microsoft Access Driver] The INSERT INTO statement contains the following unknown field name: 'ClientName'. Make sure you have typed the name correctly, and try the operation...more >>

Putting Dynamic Text Where I Want It
Posted by Rehor at 10/21/2004 2:31:23 PM
I'm just starting with ASP.NET and C#. On one of my web forms I created has a dropdown list of choices. Once a choice is made, the postbacked page displays a list of links to documents in an unordered list using Response.Write in the codebehind page. It works very well except ... the unordere...more >>

Free TextBox Editor
Posted by Manny Chohan at 10/21/2004 1:47:06 PM
Hi All, I am using Free TextBox Editor to write email etc. But when i send it, the email comes with HTML tags to the user: <pre>test<font size="5">test</font></pre> Etc. is there any fix for this? Thanks in advance Manny...more >>

Deleting binary data (image column) from sql server with ADO.NET
Posted by Ryan Taylor at 10/21/2004 1:43:09 PM
Hello. I have an ASP.NET application where I allow the user to upload attachments. I upload the attachments as binary data to an image column in sql server. I have managed to upload the data correctly. However, I need to be able to set binary field back to NULL if the user wants to delete an a...more >>

page property
Posted by Manny Chohan at 10/21/2004 1:35:03 PM
how can i set the page property validaterequest="false"? Where in code does this go and what is the syntax? Thanks Manny...more >>

Popup window will not close on IE6 XP_SP2 after postback
Posted by Drew Berkemeyer at 10/21/2004 1:12:39 PM
Hello, We have an application that we have written using ASP.NET. On one of our pages we open a popup window using javascript. The popup window has a save and a cancel button. Both of them are server-side controls and do a postback. While processing on the server we add javascript to the page ...more >>

What is a 'friend' class?
Posted by darrel at 10/21/2004 12:57:06 PM
In the context of VB.net, when/why would one use a 'friend class'. I'm finding lots of references to friend classes on google, but not a simle definition of what they actually are. Actually, if there is a nice overview of the different types of classes (public, private, shared, friend, etc.) a...more >>

Limit size of datagrid
Posted by Paul at 10/21/2004 12:49:08 PM
not sure if I should post this in the web controls newsgroup but just wondering if there is a way to limit the size of a datagrid and instead of cutting dat off the user will have a scroll down bar as is done in some windows applications. thanks. -- Paul G Software engineer....more >>

multithreading ASP.NET
Posted by thomas.hauser NO[at]SPAM hannover-leasing.de at 10/21/2004 12:29:41 PM
hi, i have found a example for multithreading and asp.net http://www.fawcette.com/vsm/2002_11/magazine/features/chester/ i want to speed up my website ... if my website is starting, they should build a database-connection and send a few sqls the code works fine without multithreadin...more >>

textbox inside calendar?
Posted by rc at 10/21/2004 11:56:06 AM
Hello, Trying to place a textbox for each day inside a calendar control using code triggered from the RenderDay method to fill each cell. The following code, using a standard HTML input box, works fine: // Sub Cal_RenderDay(s as object, e as DayRenderEventArgs) e.cell...more >>

Addressing Table Cell Contents in DOM using .all[nn] or ???
Posted by Earl Teigrob at 10/21/2004 11:49:15 AM
(OK, this is not really asp.net, but who else is going to help me?) I just started doing relative DOM addressing to address contents of my JS objects. Most of it is very simple but I was wondering of the .all[] syntax is the most compatible and best was of addressing the objects withing a table ...more >>

Drag and Drop on table cell
Posted by Cheryl at 10/21/2004 11:36:54 AM
Hi, Currently I am working on the drag and drop features onto my webpage........ just like www.msn.com.. where u can drag the table cell to drop it into other table cell... Is there anyone know who to do it in DHTML... or ASP, I need try on the example from the following links http://...more >>

Asp.net page request has not referrer?
Posted by Stephane at 10/21/2004 11:33:02 AM
Hi, I have installed an image on some html page. This image is sent from an asp.net page like this: <img src="image.aspx"> I have a problem with few computers. In my application, I check for the referrer which is, in this case, the html page containing the image. My code goes like thi...more >>

User Has Access To File/Folder
Posted by Davie at 10/21/2004 11:09:18 AM
I am new to .Net, so apologies if this is a simple question. I need a way of display folders and files to my users. However, it must show whether they have NTFS access to the file/folder. For example, if they have access the folder or file is displayed as a link, if they dont it is displa...more >>

Division Error
Posted by Chris Fink at 10/21/2004 10:59:03 AM
Why does this return 0? decimal pct2=(500/2000)*100; Thanks ...more >>

Server.Transfer produces '404-not found' error only on one computer
Posted by Stan at 10/21/2004 10:53:38 AM
There are over 200 people using the intranent web site and only one computer has a very strange problem. The web page has a button. When the button is clicked, the form is posted back and Server.Transfer command redirects to another page. On only one computer out of 200 the same exactly page...more >>

How to Implement Client Behavior
Posted by Demetri at 10/21/2004 10:35:04 AM
I am familiar with DHTML and the use of HTC files providing a behavior for a given element within HTML code. However, I am writing a web server control and would like to implement a custom datagrid that will allow a user to drag it around the web page. The problem with using an HTC file is...more >>

Impersonation on Windows 2003 Server
Posted by Craig Neuwirt at 10/21/2004 10:28:01 AM
Does a user being impersonated within and ASP.NET application (using programatic impersonation) on a Windows 2003 Server machine need any different privileges or policies than the same ASP.NET user and application running under Windows XP. I am using a set of classes that expose the COM Windows...more >>

IIS
Posted by Maniac at 10/21/2004 10:15:03 AM
Is there a way in ASP.net/ADSI that would automate the creation of sites and virtual directries through scripts. For example: I would want user to register into the site provide his site name a site is created on our IIS server and virtual directory is created by the system. As of now I have t...more >>

Looking for ASP.NET Calendar control
Posted by Miguel Dias Moura at 10/21/2004 9:37:03 AM
Hello, Can someone sugest me a good ASP.NET calendar control which gets events from an SQL database? Can be comercial or non comercial. Thanks, Miguel ...more >>

cursor to hourglass
Posted by Andy G at 10/21/2004 9:30:55 AM
This should be very simple but I can't figure it out or find ANYTHING posted about how to change your cursor to an hourglass. I have a ASP.NET web form using VB.NET code behind. When I click on a button I want the cursor to change to an hourglass and then change back to the normal cursor afterw...more >>

Dynamically create imagebutton
Posted by sck10 at 10/21/2004 9:25:13 AM
Hello, When a person subits my web page, I do a simple check (validation) and if there are any errors, I create a variable (strValidateText) and set that value to a label on the form. What I am trying to do create an image button along with the html. I am getting the error: Operator '&'...more >>

CS0016: Could not write to output file - The directory name is inv
Posted by Vikram at 10/21/2004 9:24:43 AM
I have suddenly started getting this errorin all my ASP.NET applications when I try to open any aspx page. Compiler Error Message: CS0016: Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\home\0f303405\7e879dff\ohtbfczl.dll' -- 'The direct...more >>

Hyperlink Control
Posted by sck10 at 10/21/2004 9:24:41 AM
Hello, Can you control the window attributes (toolbar, scrollbars, left and right exc.) when using the hyperlink control as you would when using javascript? For examle, I am using the following javascript to open another window and would like to control these attributes with the hyperlink ...more >>

server rebooting/offline?
Posted by Lerp at 10/21/2004 9:05:49 AM
Hi all, I have several servers sitting in another province other than the one I currently live in. My problem is that every morning at least one of the servers (if not all) is offline when I start my work. It is different everyday. One day it will be one machine, the next day it will be all....more >>

problems with indexOf
Posted by gh0st54 NO[at]SPAM hotmail.com at 10/21/2004 9:03:10 AM
hi im'trying to validate that someone registering a new user does not name im 'admin' or something like that i'm using bool bInvalidUsername = false; bInvalidUsername = this.txtUserName.Text.ToLower().IndexOf("admin")> -1 ?true:false; but i always get error: 'this.txtUserNam...more >>

server controls with dynamic data
Posted by Markus Rathmayr at 10/21/2004 8:40:33 AM
Hi! Is it possible to use data generated dynamically (from DB) as properties in server controls? example: <TEST:someControl runat="server" property=someProperty /> someProperty is generated from a database. the syntax <%=someProperty%> does not work... Thanx for your help! Mar...more >>

Passing parameters to a .htm page - not working
Posted by John at 10/21/2004 8:19:51 AM
Hi all, I had an .aspx page which would be opened modally from a previous page and just prior to the parent opening the aspx page, a javascript would run and pass parameters like mypage.aspx?parm1=a&parm2=b. I would then access the parameters in my code-behind as simple request variables and e...more >>

<system.web>
Posted by I am Sam at 10/21/2004 7:15:03 AM
Can someone tell me what is wrong with this web.config file? Whenever I try to open a file in the protected directory "Administration" I get an error message indicating that the <system.web> Element is not recognized or something to that effect. Any suggestions or help would be greatly app...more >>

Requested registry access is not allowed.
Posted by Josh Flanagan at 10/21/2004 6:43:03 AM
I am trying to write to the event log from ASP.NET, on Windows XP SP1. As soon as I try to write an event (or even query the source with EventLog.SourceExists() or EventLog.LogNameFromSourceName()) I get a SecurityException "Requested registry access is not allowed.". I have read the KB arti...more >>

Operation must use an updateable query error
Posted by John at 10/21/2004 6:37:07 AM
Hi I have a web database app which works fine on the local server but when run on a remote shared host, it throws the below error. What am I doing wrong? Thanks Regards [OleDbException (0x80004005): Operation must use an updateable query.] System.Data.OleDb.OleDbCommand.ExecuteCom...more >>

What is the best way to Invoke a java application from ASP.NET
Posted by lybbert NO[at]SPAM adelphia.net at 10/21/2004 6:20:54 AM
I have created an ASP.NET (VB) website and need to invoke a command line application (a Java app) when the user submits a form. What is the best method for approaching this? I've read about using the Diagnostics.Process class. One user raised a concern about the security hole this approach c...more >>

Stored Procedure Best Practice
Posted by Leon at 10/21/2004 6:09:56 AM
I have a situation in which I need two stored procedures that do basically the same thing, but takes in a different parameter value and return less of the same data. I wonder is it best to do two different stored procedures or just one to accomplish my goal? The first sp take in the @email...more >>

Page Design - Beginner help
Posted by Wayne P. at 10/21/2004 5:43:40 AM
Is there a good reference online to good page design in VS.Net? I am used to tools like DreamWeaver and GoLive that make CSS or table bases layouts a breeze. However, it appears that VS.Net lacks any GUI support for such ease (unless I just can't find it). I've even tried creating an aspx page...more >>

Programmatic CheckBox Event Not Firing
Posted by DotNetJunkies User at 10/21/2004 5:07:37 AM
Hi, I have a checkbox control programmatically created for each row in the datagrid but CheckedChanged event not firing when state of the checkbox changes. I use the following code to instantiate ItemTemplate with checkbox contructor: public class TemplateObject : ITemplate { public void...more >>

I need to call .net component from ASP (not ASP.NET)
Posted by Larry Woods at 10/21/2004 5:03:45 AM
I am working on a site that is ASP (VBScript) and won't be converted for some time. BUT, I need to create a Web Service written in VB.NET (or C#). Anyone know of any source for info on how to communicate between ASP and ..NET? TIA, Larry Woods ...more >>

help with setting up aspnet account for msde
Posted by Dan Nash at 10/21/2004 3:47:02 AM
Hi guys I'm trying to get a database connection to MSDE working. The books say I have to use oSql to setup the ASPNET account to work with databases. However, oSql is telling me I've got no ASPNET account!! I have Win2k Server, IIS, with the Prerequisites disc of Visual C# installed (F...more >>

can not get parameter output
Posted by DotNetJunkies User at 10/21/2004 3:42:18 AM
I run the following code in an aspx page. The problem is, I can not get the output parameter. I use Data Access Application Block 2. The same works fine in Windows Form. Somebody plz help. SqlParameter [] arParms1 = new SqlParameter[8]; arParms1[0] = new SqlParameter("@MRID", SqlDbType.Int); ...more >>

Urgent : Problem with ShowModalDialog
Posted by John at 10/21/2004 1:19:23 AM
Hi all, I'm experiencing a problem with the ShowModalDialog window. What I do is to show the window modally then upon a user filling in a couple of fields, the page posts back to itself and I do a few things then either send back a javascript alert or a javascript window.close(). Initially, I ...more >>


DevelopmentNow Blog