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 > april 2004 > threads for wednesday april 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 29 30

DataGrid Columns lost on Postback????
Posted by Allen K at 4/7/2004 9:14:29 PM
Hi, I'm programmatically creating a HyperLink column for my datagrd ( in addition to Bound Columns created through the VS.NET Visual Interface ). However, when a Postback occurs, this column simply disappears, as if it doesn't exist in ViewState.. However, the columns I created in the VS.NE...more >>


registering .dll and using it in other web pages
Posted by Arvind P Rangan at 4/7/2004 8:25:54 PM
hi, I have compiled a .dll. steps followed is try to upload the dll to global assembly method 1: al /i:temp.dll but this gives an error method 2: gacutil /i temp.dll - this uploads dll to global assembly. Next how can i use it. if i type imports temp it gives error its not shown in the ref...more >>

modal
Posted by Mike at 4/7/2004 8:19:49 PM
I'm in the process of converting a VB6 app to the web and and using .NET (C#). In the VB app on the grid if the users clicks on a row another form displays with detailed information about that row they clicked. Now my question is with the .NET grid can I allow the user to double click a row with...more >>

Any good crystal reports alternatives
Posted by DaveF at 4/7/2004 7:53:08 PM
Does anyone have a recommendation? -- David ...more >>

Displaying XML document in ASP.NET page using XSL Transform
Posted by banderbe NO[at]SPAM yahoo.com at 4/7/2004 7:20:58 PM
I have an XML document that I am trying to display in my ASP.NET page. I am using an XSL Transform to display repeating XML data in a specific format. It reads the data, and displays it on my page, but there's a problem. It runs all the data together on one line. The XSL file is as foll...more >>

service installation with user account
Posted by Lukasz at 4/7/2004 6:13:58 PM
Hello I created windows service, and set Account property to User, under installation system asks for username and password, Im giving right username and password but it says that they are bad, and service is not installed. I can set it to run as LocalSystem, but I need it to run under user ...more >>

Regex query
Posted by Shaun Wilde at 4/7/2004 6:08:26 PM
When using the regular expression validator is there a way of failing a validation when you detect a match - I suppose a sort of anti-match. I want to detect certain things on user input and if they exist then fail client-side validation. An example would be detecting html input, a simple te...more >>

problem with back button
Posted by Ireney Berezniak at 4/7/2004 6:05:31 PM
Hey guys, I have a problem with events misfiring when the back button is used. I have two controls (a drop-down list and a text field) and two buttons, one for each of the controls, on a "quick search" type bar/control. When I click the button that submits the drop-down list, I do some proc...more >>



asp and aspx not working after fp2002 install
Posted by anthony NO[at]SPAM no.spam at 4/7/2004 6:05:13 PM
W2K Server asp and aspx not working after fp2000 removal and fp2002 install Any Ideas? Thanks, -Anthony ...more >>

RequiredFieldValidator in action immediately in fresh form
Posted by peshrad at 4/7/2004 6:03:21 PM
Hi ! I'm using Visual Studio .NET to program a Web application coding in C#. In my form I use an HtmlSelect control that calls a JavaScript function when the selected item changes. This JavaScript function calls the submit() method of the form. For this HtmlSelect control I have also prog...more >>

web button
Posted by Alex B at 4/7/2004 5:59:37 PM
A simple web button question: How do you make it so that a web button's click event is triggered when someone hits <enter> on a web form? i.e. the page has three input boxes on it and a web button. When enter is pressed, a postback occurs, but no events are triggered. ...more >>

DateTime - Datagrid
Posted by Paul Say at 4/7/2004 5:15:59 PM
I have a class called Job, that has several properties JobID,Description & StartDate. The StartDate is Property is defined as follows public Class Job private _StartDate as DateTime public property StartDate() as DateTime get return ...more >>

Just starting with IIS, ASP.NET, how do I protect myself?
Posted by newgenre at 4/7/2004 5:15:36 PM
I've allowed my port 80 and have a simple page up through IIS using WinXP as my server. Where can I find out how to protect myself from hackers, etc? What would be a good source of info on this for the n00b? ...more >>

Databinding a datalist within a panel
Posted by wweems3 NO[at]SPAM charter.net at 4/7/2004 4:46:22 PM
Apparently I've seen a few cases where datalists and other controls dont bind properly when in a pageview or panel. I was curious if there were any current work arounds. I can solve the problem with a datagrid, however its really trivial information I wish to display, and dont think I should r...more >>

html protocal monitor
Posted by Jeffrey A. Voigt at 4/7/2004 4:45:37 PM
I'm not sure if this is the right place for this question, but here goes. I would like to view all of the html headers, etc, everthing coming into and going out of my machine on a specific port. What applications are available, etc that will help me see this information? Thanks in advance! ...more >>

Delete data in a text file
Posted by Shawn at 4/7/2004 4:39:54 PM
Hi. I have a .txt file with some data in it. I'm trying to delete it's content, but I can't quite figure out how. This is my code so far: streamWriter = New StreamWriter(fileStream, System.Text.Encoding.Default) streamWriter.BaseStream.Seek(0, SeekOrigin.Begin) streamWriter.Write("") strea...more >>

Job Scheduling
Posted by John at 4/7/2004 4:31:02 PM
Hi I have a WebForms app. There are a number of rather large reports available. What I would like to be able to do is to have a user select their reporting options in a WebForm abd also be able to schedule the report to be run at a later time and have the output e-mailed to them Does anyone have...more >>

How to create metafile in ASP.NET?
Posted by Richard Skopal at 4/7/2004 4:29:52 PM
In .NET Windows forms I can create a metafile using this code: Graphics grph = aControl.CreateGraphics(); IntPtr ipHDC = grph.GetHdc(); Metafile mf = new Metafile(aImgFilePath, ipHDC, EmfType.EmfOnly); grph.ReleaseHdc(ipHDC); grph.Dispose(); grph = Graphics.FromImage(mf); ...more >>

Adding cell to the tble
Posted by simon at 4/7/2004 3:31:01 PM
I have table with rows: <asp:Table Runat="server" ID="tbl_MPlan"> <asp:TableRow Runat="server" ID="Tablerow0"></asp:TableRow> <asp:TableRow Runat="server" ID="Tablerow1"></asp:TableRow> <asp:TableRow Runat="server" ID="Tablerow2"></asp:TableRow> <asp:TableRow Runat="server" I...more >>

Adding ASP.Net pages to existing ASP web (How,What to look for?)
Posted by Microsoft at 4/7/2004 3:12:47 PM
I currenty have an ASP website running on a windows2000 server. I have developed a small asp.net application I want to run along with the existing ASP web. I have read that you can do this, but would like to know how or where I can get documentation on how to do this? I have created this a...more >>

DropDownList not maintaining viewstate
Posted by sklett at 4/7/2004 3:11:35 PM
I have 2 dropdownlist on a page. They have ViewState = true. After I submit to the page, the selection in the DropDownList is lost. I set a break in the Page_Load event to make sure that I wasn't re-binding them somehow... I'm not. So shouldn't they maintain their selection? Anything you c...more >>

Log user in
Posted by Andrew Banks at 4/7/2004 2:54:24 PM
Using forms authentication in C# I usually use FormsAuthentication.RedirectFromLoginPage to log a user in as follows FormsAuthentication.RedirectFromLoginPage(id,false); How can I log a user in without re-directing them somewhere else? I simply want to log the in and then run some other code...more >>

Reference Page Controls From Class
Posted by Alphonse Giambrone at 4/7/2004 2:41:42 PM
How can I reference a page or user control's properties (such as viewstate) and controls from another class? TIA -- Alphonse Giambrone Email: a-giam at customdatasolutions dot us ...more >>

RegisterStartupScript Question.
Posted by Bill Jones at 4/7/2004 2:39:26 PM
I'm trying to use this.RegisterStartupScript to add some javascript to and aspx page that will run when the page is loaded. Does anyone know if this function only works in the Page_Load function? Or can I put it anywhere. Right now it is inside the eventhandler function that is called on the "...more >>

Registering assemblies for remote deployment
Posted by dhm2e NO[at]SPAM hotmail.com at 4/7/2004 2:28:23 PM
Hi all - I have a problem I've been trying to solve for several days. I'm trying to get the 'hands free' deployment working on a .NET web project that involves both a front end web site (with web pages and code-behind) and a middleware class library that is compiled into a DLL. All the docum...more >>

Help referencing ddl in ItemTemplate vs EditItemTemplate
Posted by VB Programmer at 4/7/2004 1:58:55 PM
I have a datagrid with a dropdownlist in it. As I understand it, the ItemTemplate section represents the cell when not in edit mode and the EditItemTemplate section represents the cell when in edit mode. For simplicity let's call ddl in ItemTemplate section "ddl1" and the ddl in the EditItemTe...more >>

Help!! how to get the value of dynamic web user control?
Posted by hb at 4/7/2004 1:52:48 PM
Hi, I have a page that uses dynamic generated web user control. On the eupdate.aspx, I get: === <asp:table id="tblE" runat="server"> <asp:tablerow id="rE" runat="server"> <asp:tablecell id="cE" runat="server" /> </asp:tablerow> </asp:table> <asp:button id="btnUpdate" runat="ser...more >>

compiled dll's versus aspx.cs
Posted by G.H.Lawrence at 4/7/2004 1:46:02 PM
Hello. I am relatively new to VS.NET and have ingerited a web application built by 2 previous developers. The most recent one compiled his C# source to a dll, the first one left her C# source as aspx.cs files. I have to debug and enhance the appliation but am running into a couple of issues 1. in ...more >>

A Very interesting cookie problem
Posted by Rakesh Roberts at 4/7/2004 1:38:53 PM
I think I have a very interesting cookie problem. I use form authentications on my application. Through out my application I started using a toggle control that persists its value for the session using cookies that it writes to on the client side (using javascript). What happens sometimes it th...more >>

MDE Error "Not enough storage"
Posted by Mark at 4/7/2004 1:19:48 PM
Hello, Recently I have not been able to open an asp.net page in MDE's web from designer. I recieve the following error: "The file failed to load in the web from designer. Please correct the following error, then load again: Not enough storage is available to complete this operation" I have...more >>

Question: How set dropdownlist SelectedIndex based on value?
Posted by VB Programmer at 4/7/2004 1:16:31 PM
I have a dropdownlist. It consists of these Name/Value pairs: "Apple","1" "Banana","2" "Pear","3" The value (number) is stored in the database. How can I set the dropdownlist to the correct SelectedIndex based on the value I retrieve from the db? Thanks! ...more >>

WebHosting
Posted by C# newbie at 4/7/2004 12:37:36 PM
Hi Group, I'm new to ASP.NET and have decided to create a web stie. Do you guys know any webhosting company with good services and good price ? Thanks newbie ...more >>

Problem with ASP.NET validation and custom errors on IIS
Posted by ninja_kornjaca at 4/7/2004 12:08:16 PM
Hello, I'm having a pretty strange problem and I'd appreciate if anyone could help me with it. I'm having a custom error page on my IIS. Specifically, I've written my own ASP (classic ASP) error page for "404 Not Found" error. It does some work in database (via. ADO), and the redirects user...more >>

New session created when moving between asps and asp pages
Posted by jpopper at 4/7/2004 11:31:08 AM
Hi, I am currently supporting a website that is a mix of asp and aspx pages. In one scenario I redirect the user from an asp page, to an aspx page, and then back to the asp page. When I return to the asp page, I find that *sometimes* a new session has been created. (I.e., session.sessionid is d...more >>

database connection
Posted by wei at 4/7/2004 11:30:38 AM
Thanks Craig. i think you are right.the connectString is not set properly. if i down the ip address, how do i set it? string connectionString = "Provider=MSDAORA.1;Data source=server;User ID=username;Password=password"; this is my current setting. i try to replace server with ip+port, it didn'...more >>

ASP error when uploaded ""An error occurred on the server when processing the URL"
Posted by Luke at 4/7/2004 11:30:03 AM
Hi I have the following code which is an ASP questionnaire using an Access database. (I am using access as I have no choice!). Basically there is an html form which submits the form to the page below and the code below submits the data to the DB and redirects the user. The code works locall...more >>

resx and deployment
Posted by mklapp at 4/7/2004 11:26:02 AM
Hello Are resx files required to be deployed (in a Web App) along with aspx and .dll files (which are not in the GAC) ...more >>

Exceeding File Upload max size - trapping error
Posted by Brett Robichaud at 4/7/2004 11:17:53 AM
I am fully aware of the size limitations of the file upload control in asp.net and how to change it. But has anyone figured out how to gracefully handle the situation where an upload atempt exceeds the maximum? By default asp.net throws up a dns error page, this just doesn't cut it. How can ...more >>

server.mappath and network shares
Posted by JR at 4/7/2004 11:00:45 AM
My IIS Web site has a virtual directory called content mapped to a network share. If the home directory of the Web site is c:\inetpub\wwwroot and the virtual directory maps to the network share \\myserver\content, Server.MapPath is returning c:\inetpub\wwwroot\content rather than \\myserver\cont...more >>

complex TreeView
Posted by Shaul Feldman at 4/7/2004 10:30:03 AM
Hello, I was searching for a good free TreeView component for ASP.Net, but haven't found the right one. I need to build a TreeView with = multiple selection (Checkboxes) when each "subtree" may have more than one "leaf" and selection of subtree = causes to all nodes in that subtree to be select...more >>

OT ...CSS positioning
Posted by at 4/7/2004 10:00:01 AM
Where Can I find info about Advanced CSS positioning?? Thanks ...more >>

Changing return code
Posted by Lorenz Buchberger at 4/7/2004 9:54:53 AM
Hi, I'm writing a web based service in which that service should return a return code which is text based (instead of 200 or 500 ...) How do I do this ? Thanks in advance Lorenz ...more >>

How to restore password TextBox
Posted by Amil Hanish at 4/7/2004 9:43:53 AM
I have a form with 5 TextBox controls. One of them is a password TextBox. When the form is submitted, one of the other fields might have an invalid format; on the repost showing the error in the other field, I want to restore the password value into the password TextBox...without the user re-en...more >>

how to set print quality
Posted by Lukasz at 4/7/2004 9:39:02 AM
Hello I have to print something from asp.net, but I cant find where can I set the printer quality, I need to print in draft. Thanks for any advice. best regards Lu ...more >>

button's click handler gets called twice
Posted by Nikhil Patel at 4/7/2004 9:31:26 AM
Hi all, I have a strange problem. I have a button called btnSubmit on a .aspx page. I have written btnSubmit_Click method in C# to handle the button's click event. In the .aspx file, the onclick attribute is set as onclick="btnSubmit_Click". This is the only place where I call the btnSubmit_...more >>

Checkbox ReadOnly
Posted by Cyril at 4/7/2004 9:24:44 AM
Hi every body, How can i have a readonly checkbox and checkboxlist ? thanks very much. ...more >>

Unable to create web project
Posted by sreedhar at 4/7/2004 9:01:05 AM
Hi, i'm trying to open an existing ASP.NET project solution inside my VS.NET and i'm getting the following error. Any help would be greatly appreciated Unable to create web project 'http://localhost/DotNetNuke'.The file path 'C:\Inetpub\wwwroot\DotNetNuke\DotNetNuke' does not correspond to the UR...more >>

.NET NEWBIE - EASY QUESTION
Posted by Ryan Smith at 4/7/2004 8:56:06 AM
I have been programming in ASP for years and am making the move to .NET and am having a problem. I have an item on a form that i am validating against and i am receiving the following error message. What am i doing wrong Description: An error occurred during the compilation of a resource require...more >>

Getting Data From Application Object and C#
Posted by Matthew Sajdera at 4/7/2004 8:54:20 AM
All - This probably qualifies for the "Stupid Question of the Day" award but I am stuck on this. I have an IIS Application object in which I am storing a multi-dimensional array. Later on in the application I am trying to retrieve this array and set it to a local array, but I cannot get th...more >>

HTTP 500 Error
Posted by Adrian at 4/7/2004 8:01:03 AM
Did anyone meet the following situation? A) ASP.NET application, hosted on a Win2000-Server, LockDown utility for IIS installed an B -when client runs on Win2000x, the app works just fine -when client runs on WinXP-Pro, at some point it gets a "HTTP 500 Internal server error"...more >>

Replace quotes???
Posted by DaveF at 4/7/2004 7:58:27 AM
sInput =3D sInput.Replace(""", "") No accesable replace accepts this number of arguements error???? --=20 dave...more >>

Trying to Use Class
Posted by Wayne Wengert at 4/7/2004 7:47:22 AM
I am trying to work through an ASP.NET book and in one example you build a Class and then call a method from that class in an ASPX page. I put the class file ("quote.dll") in the bin directory and then added the aspx page that uses it to the project. When I re-open the project and right click on ...more >>

Variable scope in ascx file
Posted by John Mason at 4/7/2004 7:18:18 AM
Hi, Could someone please help?! I am declaring a global variable in an ascx file... <%@ Control Language="VB" runat="server" %> <%@ import Namespace="System.Data" %> <%@ import Namespace="System.Data.SqlClient" %> <%@Import namespace="System.Web.Mail"%> <script language="VB" runat="serv...more >>

System.OutofMemoryException - Session
Posted by Fletch at 4/7/2004 6:16:02 AM
Hi I have an application running on a cluster that's constantly throwing an OutOfMemoryException with the following message "Unable to serialize the session state. Please note that non-serializable objects or MarshalByRef objects are not permitted when session state mode is 'StateServer' or 'SQLS...more >>

Persisting Information across forms
Posted by Shawn McNiven at 4/7/2004 12:49:30 AM
Hi, I've got a problem I hope someone can help me with. First some long winded explanations: I have several forms: Countries.aspx, Country.aspx, Cities.aspx and City.aspx. Countries displays a list of countries which can be filtered with a search function. Country displays the selected reco...more >>


DevelopmentNow Blog