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

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

input id attribute
Posted by nzanella NO[at]SPAM cs.mun.ca at 1/3/2005 11:51:55 PM
Hello, The book "Programming ASP.NET" by O'Reilly, an excellent source of ASP.NET information indeed, specifies that along with the runat="server" attribute an id attribute should also be specified in order to make use of variable names. However, the XHTML specification found at the following...more >>

Value property for password HTML server control
Posted by nzanella NO[at]SPAM cs.mun.ca at 1/3/2005 11:34:30 PM
Hello, Normally default values for passwords are left unspecified. However, the XHTML standard allows them for all I know, so I decided to try coding the following ASP.NET HTML server control on the page I am writing for testing: <input id="password" type="password" value="foo" runat="server...more >>

which cotrols can be affected by viewstate
Posted by aua_usama NO[at]SPAM yahoo.com at 1/3/2005 11:30:46 PM
Hi all: can anyone tell me if the viewstate save a data for a specifiec controls or for all, i asked this Q becuase i disabled the viewstate propert in my page , also in my text control and it still kepp the data of the text control , anything missing i didnt do to disable viewstate ???...more >>

ASP.NET validation
Posted by nzanella NO[at]SPAM cs.mun.ca at 1/3/2005 11:30:15 PM
Hello, I would like to know whether there is a way to validate an ASP.NET page prior to it being processed by the server. Basically, I am assuming that there is an ASP.NET standard (possibly an open one) somewhere out there which specifies ASP.NET as an XML application. So I thought there woul...more >>

code behind in a web user control
Posted by hansiman at 1/3/2005 10:41:20 PM
I'm puzzled! In a web user control (ascx) I embed some server controls. I drop the web user control onto an aspx page. In the web user control's code behind I would like to manipulate the user control's properties every time the page is loaded. All this is fine. The ascx code behind runs ev...more >>

Search Engine friendly urls using IIS and ASP.NET
Posted by jamal NO[at]SPAM docUSA.com at 1/3/2005 10:29:13 PM
Apache has a look-back feature that lets it scan back down the URL if it doesn't find what it is looking for. For example: http://www.domain.com/article.php/999/12 In this above case there is no directory or file called 12, so it looks at 999. There is no directory or file called 999 so Apache l...more >>

smtp????
Posted by Niraj Ranka at 1/3/2005 10:24:52 PM
Hi, I am using a simple Mail application. I am using a smtp server to mail the mails. But the problem here is the hackers are sending spam mails from the same smtp server as this is the live open smtp. Is their any option to secure your smtp server. I mean can we give any username / passwo...more >>

child controls in a user control in a datalist
Posted by Roman at 1/3/2005 10:19:51 PM
I have built a simple user control that contains 2 buttons, a text box and a dropdownlist. When a button is clicked it sets the visible property of the textbox/dropdownlist and the button. ie the buttons allow me to toggle between the textbox and the dropdownlist. This works fine when the ...more >>



Replacement for resx xml editor in VS.NET?
Posted by Mike Bridge at 1/3/2005 10:18:17 PM
Hi- I'm editing text resources (for multilingual support) in resx files, and I find I waste a lot of time using the editor in vs.net---the editing functions are either buggy or else very poorly thought out: - can't copy-and-paste a line from one set of resources to another - hitting "shif...more >>

Locking down a directory
Posted by Matt at 1/3/2005 10:09:47 PM
I'm currently using my own login/session style access restriction system for my application. What I'd like to do is restrict access for a certain directory to registered users only. Is there is a quick-and-easy way to lock this directory down without having to go to each page in the director...more >>

Properties accessible from different parts of the page
Posted by BenB at 1/3/2005 10:03:45 PM
Hi I have nested masterpages. On each master page there are some user web controls (ascx). I want to have common variables (strings, ints etc) that I can access throughout all parts of the page - the master page, user web controls and page itself. I just want to set them once on each page f...more >>

Here's stupid HTML question!
Posted by Lars Netzel at 1/3/2005 9:47:41 PM
Can't I have TABLE insida an <a> element? I need a clickable Table.. my webcustomcontrol is a table and I need to be able to click the whole thing... /Lars ...more >>

Is this possible?
Posted by thomson at 1/3/2005 9:33:49 PM
Hi all, In my login page after the validations are over, i need to call a java script, Only after the validations are over in the server side, i need to call this javascript Thanks in Advance Thomson ...more >>

Question: max # char in TextBox
Posted by VB Programmer at 1/3/2005 9:26:49 PM
What is the max # of char a textbox can handle? Thanks! ...more >>

Un caching .net assemblies
Posted by garry NO[at]SPAM garryjlindsay.com at 1/3/2005 8:58:09 PM
I a new to .net dev, and everytime I build a class library into a .dll assembly and shove it in the GAC I have to restart IIS to test a new compile, which is really annoying as I compile about every minute right now!!! Why are my dll .net aseemblies getting cached??? and why do I need to rest...more >>

Add Click Event to my WebCustomControl?
Posted by Lars Netzel at 1/3/2005 8:54:14 PM
I have made a pretty small and simple webCustomerControl that basically just renders some HTML tables... I want parts of this to be clickable to fire off a "Click Event" that you can use as a developer, how do I do this? best regards/ Lars Netzel ...more >>

DOCTYPE declarations not generated by ASP.NET
Posted by nzanella NO[at]SPAM cs.mun.ca at 1/3/2005 8:40:42 PM
Hello, I would like to know how come ASP.NET is not generating any DOCTYPE declarations for the documents I am creating. After all, if the HTTP user agent requesting the document identifies itself as supporting modern XHTML standards then I thought the IIS or Web Matrix or any other web serve...more >>

Record a video file from remote client machine's webcam(from brows
Posted by Suramya at 1/3/2005 8:21:02 PM
Hi Friends, I like to record a video file from remote client machine's webcam(from browser) to the server machine (where IIS is running). I could see an example of video recording for windows application in www.codeproject.com using the directX. Is it possible to develop the same in asp...more >>

How to set a default value?
Posted by Miguel Dias Moura at 1/3/2005 6:53:26 PM
Hi, I am working on na ASP.NET / VB page. When page loads I want: City = <%#Request.QueryString("city")%> Or if City is Empty in the URL then: City = "London" How can I do this? Thanks, Miguel ...more >>

multiple inheritance
Posted by Emmanuel at 1/3/2005 6:16:49 PM
Hi, I'm working on a c# web app and require having some code which runs in the page Load event of each page and to be reusable in other web apps. So i decided to use a Class Library which contains a class that inherits from the System.Web.UI.Page. the class contains an override of the ...more >>

Mysterious Error: Object reference not set to an instance of an object
Posted by Max at 1/3/2005 5:49:46 PM
Hi There! I'm having a mysterious error right after I login using Forms Authentication in my ASP.NET app. Below is the error... Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. The exception throws at the code that tries to set a pr...more >>

Timeline for ASP.NET 2.0
Posted by dw at 1/3/2005 4:28:31 PM
Hello, all. I know that companies usually don't give out info about when they will release their next version of a technology, but do we know roughly when ASP.NET 2.0/Visual Studio 2005 are coming out as commercial products (not beta)? Thanks. ...more >>

How to append the String with quotes like"
Posted by karunakar at 1/3/2005 3:56:18 PM
Hi All How to append the string with Quotes I want to show Output like this = "test" I want to show the word like this "test" Help me out Thank you Venu ...more >>

xp sp2
Posted by wylde13 at 1/3/2005 3:30:27 PM
I'm kind of an amateur with computer tech stuff but I've had a lot of problems with my p2p programs on windows XP and everyone tells me it's because of the xp sp2. Is there software out there that can fix this problem? I hear people talk about the problem being because of the limited number of so...more >>

Nested controls in custom tab control
Posted by Marius Trælnes at 1/3/2005 3:04:09 PM
Hello! I am about to make a class/control that creates tabbing functionality. The result is in HTML/CSS/JavaScript output. My question is: Within the tabs I want to simply add user controls and without loosing viewstate etc etc. How can this be done? What is best practice? I guess the an...more >>

Q: open excel in asp.net
Posted by JIM.H. at 1/3/2005 2:01:02 PM
Hello, How can I open an excel file in asp.net. I have a dropdown list that keeps excel file names and when user click view button I need to open file selected with excel. How should I do this? Thanks, Jim. ...more >>

SSI vs. reading in a file vs. caching a DB entry?
Posted by darrel at 1/3/2005 1:48:49 PM
I have bits of content on a site that's running of a basic CMS system I've built. The main content on each page is pulled in from the DB, so there's at least one call to the DB on each page load. But then there's content like the page footer, which is rarely updated, and is the same on ever...more >>

User control's Response
Posted by mtv at 1/3/2005 1:29:06 PM
Hi all, I have a page default.aspx and lots of user controls (Top.ascx, LeftNav.ascx, Page1Content.ascx, Page2Content.ascx...). The default.aspx contains Top.ascx, LeftNav.ascx at design time, and dynamically loads PageNContent.ascx based on user's selection. That is if user select Page1-...more >>

Refresh Page
Posted by David at 1/3/2005 1:23:56 PM
Hello. I have such problem: I have ImageButton on my form which is attached to some image like "image.jpg", now when I change image file (physically file) with some other file with the same name my page shows the old image until I click "Refresh" button of the browser. So how can I refres...more >>

Going back to calling page
Posted by BillGatesFan at 1/3/2005 1:02:14 PM
Let's say I'm in a.aspx and I do a response.redirect to b.aspx. Then I show and hide a couple of panels in b.aspx and now I want to click a button to take me back to a.aspx. how do I do that without doing response.redirect? ...more >>

Question: Object Reference not set to an instance of an object.
Posted by Manny Chohan at 1/3/2005 1:01:03 PM
Hi Guys, been puzzled with this error for few days now. In the try and catch block, i am trying to set the label text property to property retrieved from exchange database. The record has certain properties set and some are not. I keep on getting error Object reference not set to an instanc...more >>

Run a bat form an aspx page
Posted by Carmen de Lara at 1/3/2005 12:39:02 PM
Hi all, I want to run a bat form an aspx page. The bat have to move text files to another location, as show: @echo off move /Y c:\prueba\*.txt \\servidor5\conta\buzon\cirreportes\ in the aspx page I have the following code to call the bat. But it doesn't work, the error i...more >>

Account used for file upload
Posted by Bart at 1/3/2005 12:29:06 PM
Hi all, I just created a new page to upload some files to a webserver. I put it on my test server (IIS 6.0) and to my supprise I have to give "NT AUTHORIY\NETWORK SERVICE" write access to save the uploaded files. It was my understanding this kind of things ran under the "ASPNET" account of...more >>

Asp.net debugging denied on w2003 server
Posted by Bill Buss at 1/3/2005 12:29:04 PM
After several months of successful development in Visual Studio .NET on our Windows 2003 Small Business Server, I now receve a message: "Error while trying to run project: Unable to start debugging on the web server. You do not have privileges to debug the web server process." I can run fr...more >>

scope of types in an assembly
Posted by mirage83 at 1/3/2005 12:27:02 PM
Hi, Is it true that the CLR does not see any namespaces but only the assembly while executing? can i have two types which have the same name in different namespaces inside the same assembly and still have my program work? this wldnt be possible if the runtime doesnt see namespaces? thanks s...more >>

Multiple File Deletions Based on Creation Dates
Posted by crjunk at 1/3/2005 12:20:41 PM
I have a folder named TXT24 on my web server that will contain multiple txt files. I want to add some code to the Session_Start event in my Global.aspx page that will scan all the files in the TXT24 folder and delete any text file that is over 24 hours old based on file's creation date. All th...more >>

braindead with a textbox today
Posted by Rob T at 1/3/2005 11:50:44 AM
I think I've had too much eggnog the past couple of weeks.... If I dynamically create a text box like this: txtTextBox = New TextBox txtTextBox.ID = "WOF" & cnt txtTextBox.Text = "hi" plhResults.Controls.Add(txtTextBox) After a postback, how do I read (or write) t...more >>

Textbox text change
Posted by Mariame at 1/3/2005 11:21:00 AM
Hi everyone i have a textbox that is added dynamically in form load i want an event to happen when the text change how can i do it? Thx in Adv ...more >>

Problems with unicode
Posted by Ziemowit at 1/3/2005 11:19:52 AM
Hi all I have a problem with unicode. Because of my location, most of my apps are in polish. In a few cases, data readed from database are displayed incorrectly. In databse I have string with polish characters. This string is displayed in page without polish chars. I can not find why it i...more >>

How to Work Many Developers at a project, simultaneous?
Posted by Dexter at 1/3/2005 11:10:15 AM
Hello all, I need all my developers work at a project simultaneous. How it is possible? I need a machine as web server? And how to configure the visual studio to all to work simultaneous? Thanks Dexter ...more >>

.net framework version for asp.net???
Posted by Kiran B. at 1/3/2005 11:03:23 AM
Hi, how do I know which version my code is running? I have two versions of ..net framework installed 1.0.3705 and 1.1 Thanks a lot ...more >>

How to hide a div?
Posted by Miguel Dias Moura at 1/3/2005 10:58:40 AM
Hi, I have a div on a page which i need to hide or show when clicking a link or an image button. How can I do this? Thanks, Miguel ...more >>

passing same property to multiple controls
Posted by darrel at 1/3/2005 10:55:16 AM
OK, due to peer pressure, I'm caving into the concept that one should have the ASPX page TELL the ascx pages what's going on rather than vice versa. ;o) I have an aspx page that needs to pass a property to the usercontrols it's loading (some dynamically via codebehind). I can certainly just...more >>

this.Controls.Add(ImageButton[i]) exception
Posted by CJ Oakwood at 1/3/2005 10:51:31 AM
Morning - I am hoping somebody from this group can help me out here... I have been trying to add an array of ImageButtons to my WebForm however I keep getting an exception that I can't seem to find an answer for any where on the net. Any help in the right direction would be greatly appr...more >>

Datalist edit items not working
Posted by tshad at 1/3/2005 10:39:52 AM
I have a DataList that I have set up to allow editing. The edit button does go to the subroutine defined by OnEditCommand. The problem is that it doesn't change the fields to editing fields. The textbox doesn't show from the edititemtemplate section. I don't get any errors. Do I need to...more >>

using a shared session
Posted by masoud bayan at 1/3/2005 10:32:46 AM
Hi, We have 3 different web applications on three different websites (and domains). Now we want to make it possible for users to login in each of these applications and can navigate to other applications without authenticating. So generally we need to have a shared session across applicat...more >>

Textbox - additional features?
Posted by Rob T at 1/3/2005 10:23:59 AM
I'm dynamically creating some textboxes but also need to add some javascript into them. What properties do I use to do this? txtTextBox = New TextBox txtTextBox.ID = "CAS" & dv(cnt)("InvID") txtTextBox.Text = dv(cnt)("Cash") txtTextBox.Columns = 9 plhResults.C...more >>

Starting a new Process under a Specified Windows Account
Posted by Christopher at 1/3/2005 10:09:04 AM
One of our ASP.NET Pages is starting a new Process using the Process object. When the process starts, it is started under the ASPNET User. We tried editing the web.config file and the machine.config to operate under other user accounts but our dynamically started process still starts under A...more >>

Best way to require SSL for a page?
Posted by Bill Henning at 1/3/2005 10:08:35 AM
What is the best way to require certain pages on a web site to be viewed in SSL (https://) vs. regular http://? Are there any recommended practices? ASP.NET 2.0 suggestions are welcome. Thanks in advance, Bill ...more >>

Client script access to server side controls
Posted by Don Parker at 1/3/2005 9:59:07 AM
Does the use of server side controls eg <asp:textbox> preclude the access to that control by client script? If not, how do you reference those elements? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

Organizing file resources in VS 2003 / VSS environment
Posted by Sandor Palfy at 1/3/2005 9:34:26 AM
I have a VS solution with 3 c# class library projects and an "asp.net web application" project. The whole stuff is under integrated source control provided by VSS. The application is under development, I use copy project/[only files needed to run this application] frequently to deploy and test i...more >>

passing objects in asp.net
Posted by chris blackbur at 1/3/2005 9:33:46 AM
I have a reference tag in one of my asp.net pages that looks like: <%@ Reference Page="ReportSetup.aspx" %> When the page is loaded, I check that the Context.Handler is this referenced object and save it to a local object. I then access properties that were stored when the page was posted. T...more >>

Remote debugging with asp.net (or lack thereof)
Posted by vbMental at 1/3/2005 9:23:01 AM
Has anyone gotten this to work successfully ? My setup: --------------------------------- Workstation: VS2003 Server: Windows 2003 Server -or- Windows XP SP1 In trying to develop with a non-administrator account ,I always get this error: "Unable to start debugging... Access Denied..." In...more >>

Debug an asp program
Posted by Eitan at 1/3/2005 9:10:40 AM
Hello, Can I debug an asp file with Microsoft Dotnet Development environment (dotnet architecture) (or check whether the syntax is correct) ? If so, than how can I do that - need sample, please. Thanks :) ...more >>

confirm messagebox, but after onclick firing
Posted by Chris at 1/3/2005 8:53:04 AM
I can create Javascript confirm message boxes during page creation, etc adding them to the button attributes (many good posts on this!). But how can I add this event after the button is pressed? I have created an Is_Dirty routine checking for field changes on my page then if the user clicks o...more >>

ASP.NET Reading problem (reading .xls)
Posted by Wael Soliman at 1/3/2005 8:39:55 AM
hi all when i try to read from .xls file in .NET windows application it work correctly but when i try to use the same connection string in the asp.net i fail while the connection is the same i need the right connection string and the rigth way to read .xls file from asp.net using ADO.NET ...more >>

Referencing parent page controls
Posted by John Spiegel at 1/3/2005 8:29:00 AM
Hi all (again), Next question: I have a Web user control contained in a page. How would I go about referencing the other objects in the page from within the control? One way seems to use something like: this.Parent.FindControl("pnlExample").Visible = true; or if this is to be referenced...more >>

Using my own controls in webforms
Posted by paul1664 at 1/3/2005 7:13:05 AM
Hi, This is a ASP.NET 2.0 question. I have created a new derived control similar to: public class MyButton : System.Web.UI.WebControls.Button { } I now want to use this new control in a webform *in the same project* rather than as a seperate assembly. Is this possible and if so how...more >>

Do programming jobs exist that are purely online?
Posted by dotnw NO[at]SPAM hotmail.com at 1/3/2005 7:03:28 AM
I would accept 50% less salary wise than if I were to go to an office and do exactly the same ASP.Net development role. And I have 14 years of programming experience, so I am quite good now. Do you think that *any* employer would be interested, or am I wasting my time? Thanks very much for...more >>

Sequence of events
Posted by John Spiegel at 1/3/2005 6:33:35 AM
Hi all, I've got an aspx page with a Web user control and (among other things) a submit button. When the form is submitted, the same page is to be served back up, but with some items changed, mainly a panel visible that had not been and a setting in the user control. The problem I'm having i...more >>

Dynamic Validation not doing what (I think) it should
Posted by Luis Ferrao at 1/3/2005 5:51:13 AM
Hi, To understand the problem, a small description of the situation should be provided: I have a Field Control that is made of a one row table with three columns. The table width is 100%, the first column is 40% and the other two have a width of 30%. The middle cell has a TextField with 100...more >>

Serious cache problem - Page_Load get never get called !!!
Posted by bajy NO[at]SPAM intizen.com at 1/3/2005 5:40:05 AM
Hi, I got a asp.net page that stores session variable. This page gets input parameter by QueryString and this variable stored into session variable. Asp.net page works in normal navigation scenario. Then I bookmarked this url to my favorites and call this url by clicking favorites link...more >>

Hiding Address bar through Resounse.redirect or Server.transfer
Posted by thomson at 1/3/2005 5:04:31 AM
Hi all, In Javascript we have the option of not showing the title bar, address bar through the window.open function, Is there any option in Server.transfer or Response.redirect to hide the address bar and tool bar Thanks in Advance Regards Thomson ...more >>

Multilanguage Websites
Posted by Andrew Smith at 1/3/2005 4:54:21 AM
Hi, does anybody know to program multilanguage website, which are dependend on the browsers language settings? Does anybody know a nice jumpstart for this? Thanks in advance for any advice Andrew -- Andrew Smith ...more >>

Nov ctp after beta 1
Posted by John at 1/3/2005 2:27:15 AM
Hi I have vs 2005 beta1 installed at the moment. Do I need to do anything special before installing nov ctp? Thanks Regards ...more >>

Sorry - Anoher Question
Posted by Wizard at 1/3/2005 1:29:53 AM
Hi All, Sorry for been a pain in the ass, but im looking everywhere and can't seem to find the answers. I would like to build a small ASP based site. I have 4 departments, and what i would like to do is have a list of usernames and password. I would like the department heads to have a logo...more >>

Calendar: detect when selected day is clicked
Posted by Ben Amada at 1/3/2005 1:12:22 AM
Hi, I'm using the built-in calendar control. One problem I'm having is that if the user clicks on the day in the calendar which is already the SelectedDate, a postback occurs, but the SelectionChanged event doesn't fire. Is there anyway to disable the SelectedDate link so the user can't...more >>

aspnet_wp.exe (PID:xxxx) stopped unexpectedly
Posted by Lokanathan at 1/3/2005 1:05:02 AM
Currently we are experiencing a unique problem with regard to the ASP .net service. Intermittently the ASP .Net service gets stopped (error message displayed in the webpage is "Server Application unavailable") and it takes sometime off to get back to normal state (this happens automatically)...more >>

A tricky one! (at least for me) - Visual Studio 'design view' problem
Posted by Luis Ferrao at 1/3/2005 12:55:54 AM
Happy new year everyone. I'm building a templated website. For each individual content page I have a UserControl that holds the content. The UserControl inherits from a custom PlaceHolder class. Everything works great, well, everything but one small thing really. When I try to use the V...more >>

sending mail
Posted by sona at 1/3/2005 12:37:02 AM
I have an ASP.NET application using .NET Framework 1.1 running on a Windows 2003 server. The application uses SMTP to send emails. My source code is as follows: Dim a As New MailMessage() a.From = "rani@yahoo.com" a.To = "sona1883@yahoo.com" a.Subject = "Hello"...more >>

Blank Web Page
Posted by student at 1/3/2005 12:29:37 AM
Hello all, could someone explain why I'm getting a blank web page when I run start my code in a web browser? Here is the code: Imports System.Data.SqlClient Imports System.Data Public Class WebForm1 Inherits System.Web.UI.Page #Region " Web Form Designer Generated Code " 'This cal...more >>

Newbie - Quick Question again on Inetrenet Explorer
Posted by Wizard at 1/3/2005 12:09:00 AM
Hello Again, Sorry to be a pain All, but ....................... How do I get it so that when internet explorer opens with my ASP.Net project it opens to the size of my project and without the toolbars and menubars etc etc? Many Thanks Cheers Si ...more >>

Very New, Newbie Confused
Posted by Wizard at 1/3/2005 12:06:44 AM
Hello All, I`ve started learning ASP.Net and web design. I`ve download the Web Matixs Software but im very confused with something that i think is so simple. Here goes i`ve downloaded some example ASP code from the net, As below. How do i intergrate this into my web page? the code below i...more >>


DevelopmentNow Blog