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 2004 > threads for tuesday february 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

basic GDI+ usage
Posted by Karl Hungus at 2/3/2004 11:44:54 PM
Im looking for a barebones example of dynamic image creation using GDI+ and asp.net using c#. My hosting provider supports asp.net, but I have a fairly basic account and cannot install any custom components, etc. Thanks in Advance ...more >>

Cannot find WebUIValidation.js ?
Posted by Samik at 2/3/2004 11:21:06 PM
I am using VB.Net with ASP.Net for an application. I have loaded Dot Net Framework ver 1.1 loaded in the server. Whenever I run the application I get a error and in the popup windoe it is specified that it cannot find the WebUIValidation.js file or asks me to install aspnet_regiis -c. But I have the...more >>

passing information between pages
Posted by francois at 2/3/2004 11:13:17 PM
Hi, In the navigation mechanism I am using now in my ASP.NET page, I am using hyperlinks to navigate through the application. Now I need to transfer information from one page to an other. How can I achieve this? I do not want to expose values in the url and then I do not want to have things...more >>

Dot Net Controls Not showing up in Netscape 6.0
Posted by Samik at 2/3/2004 11:11:05 PM
I am developing an application in ASP.Net using VB.Net. For the top section I have created a control(.ascx). When I run the application in Netscape I cannot view this section. But it is showing correct code in the "View Page Source". This is working perfectly ok in IE and Opera. Please suggest ! Th...more >>

Page_Load
Posted by A.M at 2/3/2004 11:02:58 PM
Hi, Why in the following page, word ABC is being appear twice? Thanks, Ali <%@ Page %> <HTML> <HEAD> <title>test</title> <script language="vb" runat="server"> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If Not Me.IsPo...more >>

web.config Authentication HELP!
Posted by ibeetb at 2/3/2004 10:53:14 PM
I keep receiving an authentication error when trying to view certain (.aspx) pages in a browser. In mny web.config file, all I have is: <authentication mode="Anonymous" /> I have the Anonymous box checked in IIS also and when I load a page on browser it opens to tell me I have an error on the...more >>

passing parameter to javascript function
Posted by alf at 2/3/2004 10:02:50 PM
Hi, how can I pass a value from ASP.NET to a javascript function in the client-side ?? my problem is appening the ' at beginin and end of the argument: href=<%# "javascript:myFunction(" + HttpUtility.UrlEncode(DataBinder.Eval(Container.DataItem,"id").ToString()) + ")" %> the previous line wi...more >>

datagrid question
Posted by MS Newsgroups at 2/3/2004 9:07:06 PM
Hi, If i store a image in a sql 2000 database binary using the image data type, Is it in someway possible to use a bound datagrid to have this image displayed in the grid ? Regards Niclas ...more >>



help -- sending email on the server
Posted by vagzone at 2/3/2004 8:26:06 PM
I used the following code sending email on the server. I got no error messages but I never received any email.. System.Web.Mail.SmtpMail.Send("someone@some.com","me@some.com", "test", "test") Could someone help me out. Thank you.....more >>

How to Display processing
Posted by FatboyCanteen at 2/3/2004 8:26:05 PM
I have a Page that have a heavy computation, it take a long long time, how to display " now processing" in the page! I have make a label, however, it will display after finishing computation! Thank You...more >>

validator controls and disabled controls
Posted by Dune at 2/3/2004 8:21:06 PM
Hi there, If a control is disabled (enabled = false), will the validator controls associated with it automatically know not to carry out validation? I have a page with a bunch of controls and depending on what is passed in through the querystring, I disable some of those controls in my cod...more >>

ASP page initiating complex code execution
Posted by Pavils Jurjans at 2/3/2004 8:16:09 PM
Hello, I need some advice, how to set up the following: I have a web application, written in ASP.NET. User can ask this application to prepare some report, that takes much processing time, thus it would be inappropriate to let user wait until the report is ready. Instead, I'd like the ASP c...more >>

Logon error
Posted by suicidaltendencies at 2/3/2004 7:36:08 PM
I'm getting a logon error when creating my crystal reports. Does anyone know how to solve this Thanks Harold...more >>

capture window username
Posted by Z0gS at 2/3/2004 7:31:06 PM
Hi How do I the the username that was used when you logged into Windows from asp .net or c#? Thanks Cheers, James...more >>

Runtime Error on CrystalReportViewer
Posted by suicidaltendencies at 2/3/2004 7:11:06 PM
Does anyone know how to fix this problem. I'm trying to create some Crystal Reports Thanks Harol Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source cod...more >>

keeping information in a page
Posted by francois at 2/3/2004 7:03:41 PM
Hi all, I am using a webpage containing a user control. That user control contains a drop down list that will postback the page. I want to make available programatically some information populated by the usercontrol to the aspx page. How can i achieve that? is it possible to declare public ...more >>

How to call a Javascript function in VB?
Posted by prince -=nore=- at 2/3/2004 5:51:10 PM
I'm trying to open a new window when a button is clicked. I'm using the following code in my page_load to do so. Dim myScript As String = "<script language=javascript> function loadWin() {" myScript += "window.open('testl.aspx')" myScript += "}</"...more >>

Changing styles sheets on a per user basis
Posted by Terry at 2/3/2004 5:46:05 PM
I'm trying to change styles sheets on a per user basis. I was able to do this on the client using DOM, but how can I do this using the code behind page in the Load Page sub? I have a place that I save the user's preference for style (whihc style sheet they prefer to use), but how do I dynamically ...more >>

Event AddHandler
Posted by Kay at 2/3/2004 5:42:20 PM
Hello, I have a dropdown list control on my form, sometimes I want the SelectedIndexChanged event to be handled and other times I want it to be ignored, so I programmatically add a handler for the SelectedIndexChanged event. The ID of my dropdown list is "ddlAlerts", the method I want to call...more >>

Runtime Error on running aspx page on https://
Posted by kl at 2/3/2004 5:26:06 PM
Hello My aspx pages run fine with non-secure server. When I tried to run them with https://, on the browser side, the runtime error occurred with suggestions of adding the following configuration <configuration><system.web><customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/><...more >>

confirm box when clicking Delete Linkbutton in DG
Posted by Calvin Lai at 2/3/2004 5:21:51 PM
Hi all, Does anyone know how I could add a confirm (client side) feature on those Delete Linkbutton in DataGrid? Thanks, ...more >>

Handling PostBacks in UserControls, __doPostBack() ?
Posted by Michael Ramey at 2/3/2004 5:20:22 PM
Howdy, I'm writing a User Control that will operate like windows explorer (file browing through directories) I'm making it so it will have the ability to delete files as well, and to do that I'm going to associate an image next to the filename that you click, that will raise a "delete" event....more >>

Japanese in browser??
Posted by Shelly at 2/3/2004 5:02:38 PM
Hi I am developing a web application for multi language support. But when I view in browser, all languages are shown except Japanese. Do I need to follow some conventions or special settings for display in Japanese? Thanks in advance. ...more >>

TableCell Width
Posted by Andre at 2/3/2004 4:56:51 PM
Hi, Did someone know why this code does'nt work (The TableCell Width). The cell don't have 600 and 150 like writed in width="600" and width="150". <asp:datagrid id="DataGrid1" runat="server" AutoGenerateColumns="false" ShowHeader="false" ShowFooter="false"> <Columns> ...more >>

Application Cache Remove Callback Issue
Posted by Glenn at 2/3/2004 4:46:06 PM
Hi, I have a config XML file that I am using from the application cache. I have configured the entry with a remove callback to re-populate cache automatically when the XML file changes. All is well until the XML file is changed. The cached item is being removed as I would expect, but the remov...more >>

Web.Config Cached???
Posted by Bob Smith at 2/3/2004 4:36:08 PM
Are the custom settings within the <appSettings> tags cached at ApplicationStart or does a disk read occur each time a setting is requested using the ConfigurationSettings class Thanks - Bob...more >>

Page_Load
Posted by Alberto at 2/3/2004 4:34:33 PM
The event page_load in an aspx page is fired twice. Does anybody know a reason? Thank you. ...more >>

findcontrol inside a DataList returns an object but no data
Posted by Rimu Atkinson at 2/3/2004 4:18:12 PM
hi all i use FindControl to get a textbox, and i get a textbox object, but it's ..Text property is empty. some background info: i have a DataList, which has a template column in it, and in that template column i define a textbox. <asp:TemplateColumn HeaderText="Quantity"> <ItemTemplate>...more >>

textbox and password type input
Posted by Jason at 2/3/2004 4:02:43 PM
Hello! just would like to know. when i set an ASP textbox control to be of input type password, i can't do a "txtPassword.Text = "value"". when the page renders the control just appears empty. why would that be? is this by design? how would i get passed this, cause i do need to populate that b...more >>

running dos batch file
Posted by John Kraft at 2/3/2004 3:50:49 PM
We have an old VB 6 web site that we are trying to update to .NET. In this project we access a old dll that wraps an active X control. For soem reason the control gives us a "catostrophic failure" under .NET. What we really need to do is execute a dos batch file located on the server from...more >>

ASP and ASP.NET session pool
Posted by David Kleyman at 2/3/2004 3:29:49 PM
Hello I am trying to gradually convert an existing ASP application in to ASP.NET one page at the time I am having a problem doing that. ASP and ASPX pages don't seem to be sharing the session pool For example In the old application login page was checking login credentials and if they wer...more >>

anyone has made culture specific web applications???
Posted by .NET Follower at 2/3/2004 3:26:48 PM
-- Thanks and Regards, Amit Agarwal Software Programmer(.NET) --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004 ...more >>

"name not declared" but it is
Posted by TJS at 2/3/2004 3:24:38 PM
it says the name is not declared, but it is how can I fix this ? Compiler Error Message: BC30451: Name 'arrReportsList' is not declared. ========================== if Len(request.querystring("rpt")) > 0 then Dim arrReportsList =split(request.querystring("rpt"),",") else Dim a...more >>

Getting the real requested URL
Posted by Nobody at 2/3/2004 3:12:13 PM
If I request: http://www.test.com/ which is implictly: http://www.test.com/index.aspx Request.Url contains the index.aspx portion regardless of whether or not the client requested the index.aspx page or not. I want to distinguish between the implicit and explicit requested pages. The...more >>

Redirecting to the default 404 page
Posted by Nobody at 2/3/2004 3:06:14 PM
I am using C# ASPX and responding to the client with a page depending on what is in the query string. If the location in the query string is not found, I want to return the default 404 page. How do I output the DEFAULT 404 page? I know I can send manual headers, but I don't want that... I want...more >>

State managment
Posted by Vik at 2/3/2004 2:53:18 PM
A Web page contains a search function, which fills out a dataset and stores it in a Session state. A user can navigate through the stored records. If the user opens a new browser window from the existing one and enters another search criteria, then the new dataset overrides the dataset from the ...more >>

Very very strange. Major bug?
Posted by Shawn at 2/3/2004 2:44:42 PM
Hi. Can anyone please explain to me why this method "restarts" after the StreamWriter is created?? Put a brakepoint on the sub and you will see what I mean. I've tried running it on a different machine and the same thing happends. I'm running .NET Framework 1.0 Private Sub test() Dim swWeb...more >>

Compilation Error: dropdownlist does not contain a definition for selected value
Posted by Ashish Kanoongo at 2/3/2004 2:38:11 PM
I am getting error at the time of compilation, However application runs = successfully 'System.Web.UI.WebControls.DropDownList' does not contain a definition = for 'SelectedValue'. It is giving error in following line. ddl.SelectedValue=3DddlSelectedValue If I change this to=20 ddl....more >>

Once page is transferred the form action is wrong
Posted by Cliff NO[at]SPAM twobowmans.com at 2/3/2004 1:57:29 PM
When implementing the Front Controller, you use Server.Transfer to halt execution on the "imaginary" page and transfer to the "actual" page. Thereby abstracting the url from the resource. The problem I'm running up against is that when I transfer to the "actual" page the action on the form is ...more >>

Service call failed: Star Wars
Posted by Jon Davis at 2/3/2004 1:27:41 PM
I'm running the Community Starter Kit from www.asp.net and I'm having a = problem with the Web Box Services. I've removed the Star Wars = subscription and added my own (http://ifc.gospelcom.net/index.rdf + = http://www.blogs4god.com/index.rdf). But when I click on "Refresh" = button in the Admin...more >>

Using Page.RegisterStartupScript in Class
Posted by Earl Teigrob at 2/3/2004 1:18:28 PM
I have this method on many of my pages. I would like to move it to a Class as a static method so I can access it in all my pages. However, the page namespace is only available in the code behind files. It it possible to do this? (And please do not tell me how bad it is to use a popup, thanks) ...more >>

How can I change the link of stylesheet at run time by server side code?
Posted by Abrams at 2/3/2004 12:56:50 PM
Thanks a lot. ...more >>

Are there free ASP.NET tools that do *this*?
Posted by Preston Crawford at 2/3/2004 12:45:22 PM
By *this* I mean the following. Resize images on the server. File upload handling. Some kind of WYSIWYG web-based front end that allows for light editing for an end-user. Kind of like what's found here - http://www.solmetra.com/en/disp.php/en_products/en_spaw/en_spaw_demo The reason I ask...more >>

How to catch this exception
Posted by will at 2/3/2004 12:38:31 PM
Hi all. I've got an question about how to catch an exception. In Page_Load, I place a DataGrid, dg1, into edit mode. This will call the method called GenericGridEvent. GenericGridEvent will call a mehtod called ExceptionGenerator that will generate a run-time exception. The exception is ca...more >>

Dropdown - SelectIndexChanged Event
Posted by SQL at 2/3/2004 12:26:43 PM
Hi, on my aspx page, I want to enable a textbox, when a certain item in a dropdown is selected. I thought I could do this by adding code the the dropdown's SelectIndexChanged event, but that doesn't seem to fire after the dropdown is changed. Is there another way to do this? Thanks ...more >>

How to build a ASP.net project in multi DLLs
Posted by Daric at 2/3/2004 12:26:08 PM
Hi, al I'm using VS2002 to create my web application, by default, VS2002 will build my project in a single dll (myWebApp.dll), but I hope each page correspond to it's own dll (page1.dll, page2.dll), how can I build a ASP.net project in multi DLLs? Should I build each .cs file alone in command line?...more >>

How to count a very large volume of request
Posted by Arsen V. at 2/3/2004 12:21:22 PM
Hello, What is the best way to accomplish the following. 1) An ASP.NET program (consiting of one file somepage.aspx) receives about 25,000,000 requests pay day. 2) The requests come from a limited set of IP addresses. 3) How to count the total number of request from each IP address per ...more >>

Displaying Empty DataGrids
Posted by Tom Jorgenson at 2/3/2004 11:56:26 AM
Is there a way to have a DataGrid with no rows display its header information rather than just disappearing? It would seem like a simple enough thing to do, but so far I haven't found a way to make this happen. ...more >>

Caching DataGrid Page
Posted by Janaka at 2/3/2004 11:44:30 AM
Hi All, I'm having a problem with Page Output caching on a page that contains a DataGrid. Basically the page pulls up some data for sales information from the DB. Some of this has to be calculated on the fly when the request is made, and so I thought it would be ideal to cache the page for a...more >>

Globalising application?
Posted by .NET Follower at 2/3/2004 11:25:14 AM
hi, has anyone tried out globalising their applications in diff languages specially indian languages.... -- Thanks and Regards, Amit Agarwal Software Programmer(.NET) --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Versi...more >>

DropDownList in editable DataGrid
Posted by Stephan Bour at 2/3/2004 11:02:45 AM
Hi, I¹ve tried to implement a solution to populate a dropdownlist inside an editable datagrid. The code is simple enough and an example can be found here: <http://www.4guysfromrolla.com/webtech/050801-1.shtml> The problem I'm having is that the entire datagrid disappears after I click the Edit ...more >>

Releasing a native DLL
Posted by Mike King at 2/3/2004 10:30:13 AM
How can we get ASP.NET/CLR to release a native DLL when using P/Invoke. We are building a web application that uses a native DLL heavily. It's unlikely that we will ever have a Managed DLL because of the 3rd party static library (.LIB) file that we're using. The problem is that when one of th...more >>

Application Security Context
Posted by Jerry Camel at 2/3/2004 10:25:22 AM
This is probably a newbie type of question, but how / where can you specify the security context in which server side code runs? I need to do some active directory lookups and such that the current user might not have access to. Is there a way to do this like there is for a windows service? Th...more >>

Accept properties in Property Box for Customr Validator /or any Custom Control
Posted by Vinod I at 2/3/2004 10:01:05 AM
Hi Team, I made a custom validator control which is having 2 public properties. But after making dll & adding that to the ToolBox, I could not able to find these properties in Property Box. Can any body explain me where am I wrong ? Also, if I want to make this control as like other valid...more >>

asp:Xml control and Xml output
Posted by Grant Harmeyer at 2/3/2004 9:57:58 AM
I am attempting to construct a simple ASP.NET Rss/Xml newsfeed. If anyone has visited Don Box's Blog (http://www.gotdotnet.com/team/dbox/), you will notice that his Rss feed is exposed through an ASP.NET page. When you load the .aspx page in IE, it displays just as an Xml doc would (colored nodes...more >>

moving items between list boxes
Posted by Kay at 2/3/2004 9:42:59 AM
Hello, I have two list boxes on my form, one initially displays blank, and through javascript it is possible to move items from one box to another, this works fine, I followed an article titled "How to move items between Lists with Javascript" http://www.devx.com/GetHelpOn/10MinuteSolution/163...more >>

Rich client and ASP.NET forms running side-by-side??
Posted by JezB at 2/3/2004 9:23:52 AM
Is it possible to have rich client and ASP.NET forms running side-by-side, with at least some method of communication between them (if shared memory is not viable) ? ...more >>

Reload DataGrid on DropDownList onChangeIndex
Posted by hansiman at 2/3/2004 8:50:32 AM
I have a drop down list and a datagrid. The dropdownlist is populated on pageload. I' like to databind the datagrid when user selects in dropdownlist: Something like this: Private Sub cbo1_SelectedIndexChanged(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles cbo1.S...more >>

dates sql and aspc....
Posted by luna at 2/3/2004 8:45:02 AM
sql query in code looks like this :- sql = "INSERT INTO livetracker (ID,MortgageSourced,PostalPackIssued,PostalPackReturned,SalesManager,Mortgag eAdministrator,DateToMortgageAdmin,MortgageAppSubmitted,Lender,LendersRefere nce,Solicitor,OfferIssued,CompCheckedBy,ToSales,CalledBy,MortgageResourc...more >>

Disable "Create a new class file now" Dialog box in VS.NET
Posted by Brian Takita
Hello, Whenever I add an existing aspx/ascx file to the project, a dialog box saying "There is no class file in the project associaated with the Web Form 'blah.ascx'. Create a new class file now?" This is a Yes|No dialog box. This is fine when theres a couple of files, but when there are...more >>

DLLs in /bin do not load
Posted by nfedin NO[at]SPAM programmer.net at 2/3/2004 8:11:21 AM
I have a web app that I have written on a test server. I have written my own classes and compiled them in several DLL files, which are located in the /bin directory. I am now trying to move the project to a production server. I have copied all the files from the test server to the production s...more >>

Page load with iFrame
Posted by Grafix at 2/3/2004 8:11:08 AM
All, I have a main ASP .NET page, which has 2 iFrames in it and each frame hosts a different aspx page. ie. Main.aspx hosts with iFrames pg1.aspx and pg2.aspx. I receive an event from one of the controls in pg1.aspx and as a reaction, the source for frame2 (pg2.aspx) mus...more >>

Listbox SelectedIndexChanged not firing (Autopostback = True)
Posted by teddysnips NO[at]SPAM hotmail.com at 2/3/2004 8:00:55 AM
I am having a terrible time getting anything useful out of a listbox on my web form. I am populating it with the results from Postcode lookup software, and it is showing the results fine. What I want to do is to allow the user to click on the row that corresponds to the correct address, and ...more >>

Intranet form creating a user in AD?
Posted by M K at 2/3/2004 7:46:08 AM
Can I create code so that when my users create a username in an Intranet form (Using Integrated Windows security) that user gets added to AD under a certain group? Where can I get info on this?...more >>

Error: File could not be loaded into Web Forms Designer
Posted by Tim at 2/3/2004 7:46:08 AM
I'm getting the following error when trying to open a web form in design mode in VS "The file could not be loaded into the Web Forms designer. Please correct the following error and then try loading it again: Illegal characters in path. Make sure all of the classes used in the page are built or ...more >>

No TextBoxes
Posted by Jim Heavey at 2/3/2004 7:12:43 AM
Hello, I am having a strange problem with my ASP.Net web page. When I am in Visual Studio and I place a textbox and a Dropdown box on the form, when I run the application and view it in the browser, nothing shows up at all. If I go back to the application and place text in the textbox and ...more >>

Is this possible
Posted by Bob Cummings at 2/3/2004 7:02:37 AM
Greetings I am a student doing a senior project in ASP.NET. The project is to build an "on-line" card catalogue for a training library for a local company. The library contains several different types of media; books, DVD, VHS tapes among others. Each of these different types of media ...more >>

Internet explorer
Posted by Ashley at 2/3/2004 4:51:08 AM
Hi all what drives the size of the Internet Explorer if I start debugging from Visual Studio? Some times the window is small and sometimes big. Is it necessary to close IE in a special way to get the same size the next time Thank Ash...more >>

datagrid events-urgent
Posted by reiks at 2/3/2004 4:01:10 AM
Is it possible to write a dragnddrop event for my web datagrid How can I acheive this ...more >>

Urgent problem with session variables
Posted by Mike Hanson at 2/3/2004 2:46:11 AM
I have transferred an application to a new development machine, and the same code that works fine in production and on my previous development machine, no longer works. During login I create an instance of an AccessToken for the current user and store it in Session. The base class from which all...more >>

Forms Authentication displays basic authentication dialogue window
Posted by brett.porter NO[at]SPAM strikedesigns.co.uk at 2/3/2004 1:37:42 AM
Hi, A very large portion of my site uses forms authentication which seems to work reasonably well. However many of my authenticated pages display a basic authentication dialogue box prior to display, even though I am authenticated. Clicking cancel to the dialogue box displays the page fine wi...more >>

Inherit Page_Load method
Posted by Christopher Attard at 2/3/2004 1:36:09 AM
Hi, I have some repeated code in the Page_Load() methods in several asp.net pages. This common code performs some checking and is not related to HTML. I tried to create a Base asp.net page containing this common code in the Page_Load() and the other asp.net pages inherit this base page and...more >>

Form validation doesn't work
Posted by brett.porter NO[at]SPAM strikedesigns.co.uk at 2/3/2004 1:20:47 AM
Hi, I have many, many forms that use all of the different form validation controls. These work great on my local server however I have just been alerted to the fact that the form validation doesn't work at all on the web server causing all sorts of differing problems. I would assume that it...more >>

Accessing files and folders on remote server in webApplication
Posted by Z0gS at 2/3/2004 12:56:08 AM
Hi I got this problem for the web application I try to access folders on a remote server. string[] dirs = Directory.GetDirectories(@"E:\vehicles") E drive is a map to a network drive. I get the DirectoryNotFoundException. How do I solve the problem or the is another way to write the code T...more >>


DevelopmentNow Blog