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 2003 > threads for wednesday october 22

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

Singleton Usuage
Posted by Srini at 10/22/2003 11:18:08 PM
Hi everybody , A Couple of weeks back I had asked some practicle scenarios for using the sigleton pattern. Most people use the singleton pattern for storing configuration related data . Would this not make it difficult to update the cofig data as the webserver would have to be restarted if...more >>


ARCHITECTURE : Enabling and disabling functionality in ASP.NET based on roles.
Posted by VSK at 10/22/2003 11:02:15 PM
Hi all, In our ASP.NET web application we have to enable or disable features in each ASP.NET page based on role assigned to user. Ex: if user who logs in is superisor then he can change phonenumber in page1.aspx if user who logs in is finaceofficial then he can just view the phone numb...more >>

Error-handling
Posted by Leo R at 10/22/2003 10:02:07 PM
Hi all, If an error occurs in an aspx-page, you can configure the web.config in a way that the user automatically navigates to a certain page (e.g. error.aspx). My question: is it possible to catch the stacktrace of the error in error.aspx so it can be logged? The error has been catched som...more >>

Inprocess state on multi processor box
Posted by martin at 10/22/2003 9:52:32 PM
Hi, I am just about to deploy my production application on a win2k server with two processors. I have been reading that inprocess session state is not the best method for multi processor systems (web garden) because asp.net will spawn a single process for each processor. I was a little per...more >>

DataSet
Posted by itsme at 10/22/2003 9:52:21 PM
Hi, How can I combine the rows from two tables as a result of an outer join, wherein I have a primary key and foreign key constraints. Right now, I am using two different adapters to fill the dataset. Is there any way I can use a single data adapter to fill the data in the dataset with...more >>

Using a ASSEMBLY
Posted by michael at 10/22/2003 9:19:11 PM
General: - Using C# - Using notepad to program (NOT Visual Studio). I have a code-behind file name 'example1.cs'. I want to use an Assembly given to me for a project I'm working on. I have put the assembly named 'assembly1.dll' in the /bin directory. How do I import/load etc the assemb...more >>

Server.Mappath returns path on local drive instead of server drive? (ASP.NET)
Posted by to_jon NO[at]SPAM hotmail.com at 10/22/2003 9:09:53 PM
I'm calling Server.MapPath from global.asa through this line of code: Application("reports_dir") = Server.MapPath("Reports") The web application opens on a testing web server (not mine) at this mapped drive: M:\ And at this browser URL: http://mrs2/P2M/login.aspx I expected MapPath to ma...more >>

Update textbox in datagrid
Posted by manish.chaturvedi NO[at]SPAM hmshost.com at 10/22/2003 9:00:56 PM
Hey folks I am having a weird problem in ASP .Net. My page is in C#. I have a datagrid, which populates based on selection in drop down box on ASP page. This datagrid has template textbox colum in itemtemplate. Datagrid is something like this- Category Week Amt Week% Button Revenue 1 ...more >>



null reference in application object
Posted by Jim Meisterich at 10/22/2003 8:38:13 PM
I am trying to move an application that i created to my isp. My application runs on my local machine. Howerever I am gettting a null reference point to an application variable I created. In my default.aspx page I have the following line in my page load event TextBox1.Text = Application["Ba...more >>

formatting strings
Posted by Perecli Manole at 10/22/2003 8:22:49 PM
I want to convert a string "1234123412341234" to "1234-1234-1234-1234". This does not work: String.Format("{0:xxxx-xxxx-xxxx-xxxx}",s) What will? Although I know there are many other solutions, I am only interested in ones that use the new braket {0:} style formating because many web controls r...more >>

Loss of event handling
Posted by Lloyd Sheen at 10/22/2003 7:45:10 PM
In an attempt to reformat the web page I moved controls into a frame and then when that did no good I replaced then on the aspx in the same order as before. When I did the CTL-X the handlers lost their handling capabilities. I have replace the handling clauses but nothing happens (not totally c...more >>

How to transfer execution to ASPX page from custom handler
Posted by Stanislav Ostachevski at 10/22/2003 6:37:28 PM
Hello, My app needs to map calls to "virtual files" to ASPX parametrized pages, without showing user actual page address. I.e, I want to catch calls to http://myserver.com/products/id_product/somefeature.ashx and redirect them to http://products.myserver.com/product.aspx?id=id_product&featur...more >>

using Session object outside of a WebForm's code-behind
Posted by John A Grandy at 10/22/2003 5:41:30 PM
for the code-behind a WebForm, it's easy to use ASP.NET session state -- just refer to the built-in Session object ... but how to write code elsewhere that utilizes this same object ? within a WebForm, Session is an instance of the class System.Web.SessionState.HTTPSessionState .... but ...more >>

fire page once a day.
Posted by SStory at 10/22/2003 4:49:22 PM
I have an aspx page that is used to control automated tasks. It needs to be visited every day at 1am. The host provider provides no such service at present. I was looking for ideas. Thanks Shane ...more >>

Web.Config and Server.MapPath
Posted by Marcin at 10/22/2003 4:22:38 PM
I am keeping my information about connection in web.config file. I would like to use Server.MapPath method to retrive a path to a database in access but I do not know how to do it. If I use just use + to combine string with Server.MapPath method I got an error. I will appreciate if somebody c...more >>

Can't create VS Project
Posted by Mr. TW at 10/22/2003 4:04:54 PM
Hi all, I've scanned Google Newsgroups, but although similar problems were discussed there seemed to be no solution for the following. I am using Windows 2003 Server, Evaluation Edition (Build 3718) and a trial version of vs.net 2003 enterprise edition, both on the same machine. all specifi...more >>

remote debugging is not working?
Posted by cliff at 10/22/2003 3:52:47 PM
ASP.net bebuging rejected. the error message is: Error while trying to run project: Unable to start debugging on the web server. Access is denied. This seems to be because the 'Network access: Sharing and security model for local accounts' security policy does not allow users to authentic...more >>

Site Server Commerce Edition 3.0 - Compatible with ASP.NET?
Posted by J Landeros at 10/22/2003 3:51:50 PM
Hello, Does anybody here know if you can use Site Server Commerce Edition 3.0 with the .NET framework and ASP.NET? Issues. j g l *AT* t t a h e a d . c o m...more >>

Output to Excel - White Cell Background.
Posted by dontspammenow NO[at]SPAM yahoo.com at 10/22/2003 3:50:08 PM
I'm doing a query against a database table and outputting to Excel via Response.ContentEncoding and Response.ContentType. Something like the code below where dg is a DataGrid control. Response.Clear() Response.ContentType = "application/vnd.ms-excel" Response.Content...more >>

Casting Object into String[ ]?
Posted by Nathan at 10/22/2003 3:36:21 PM
Hi: Here's what I am trying to do, pass a string array between two pages using Server.Transfer method. Sending page I do this: private string[] arrFCInfo=new String[5]; //Property - read only public public object arrayFC { get { return arrFCInfo; } } In the receiving page, I wa...more >>

Posting Time
Posted by mholli at 10/22/2003 3:31:35 PM
Does anyone know why it takes so long for a post to show up?...more >>

Looking for any heads up for large attachments in mail sending
Posted by Ron Vecchi at 10/22/2003 2:52:46 PM
I've used System.Web.Mail before but have never had the need to send attchemnets through it...until now. A client of mine would like a form on the website to allow a user to type up a message and upload a file. I'm staying away from mailto links. So the file and message will be uploaded to th...more >>

size of .dlls
Posted by Mark at 10/22/2003 2:28:11 PM
Is there a point when the size of a asp.net web project is too big ... and it really should be broken down into multiple projects? For example, there is a significant difference in .dll size between a web site that has 10 codebehind pages v. 50 codebehind pages v 150 codebehind pages. Is ther...more >>

ASP .Net PageBase Inherit
Posted by Ben Mann at 10/22/2003 2:09:57 PM
Hi there, I am starting on an ASP .Net project. I have some examples of using a base class for pages to inherit from to allow additional properties to be used by default. This seems like a good idea to me. I have a namespace Company.Web. I have created a PageBase.vb file with a PageBase cla...more >>

dataview is not serializable? - session state management
Posted by uni at 10/22/2003 1:20:01 PM
Hi, If I use session state mode=InProc, my session variable for the dataview object is working fine, but if I change the mode to StateServer, I got the error message saying: The type System.Data.DataView in Assembly System.Data, Version=1.0.3300.0, Culture=neutral, ...... is not marked ...more >>

Can't get drop down list to load
Posted by Biva at 10/22/2003 1:13:14 PM
Hello, I have a drop down list control in a datagrid. I can't seem to populate the control. Here is what my code looks like: <EditItemTemplate> <asp:DropDownList ID= "ddlUser5" DataSource = '<%# ddlUser5Bind() %>' Runat =server> </asp:DropDownList> </EditItemTemplate> Function ddlU...more >>

Screwing up my HTML
Posted by cmay NO[at]SPAM walshgroup.com at 10/22/2003 12:37:06 PM
This is one of those things that is really bugging me. I have a big form (lots and lots of textboxes). I know it isn't the greatest design, but thats besides the point.... So when I have a Form in IE6 with the readonly property and the Disabled attribute: <FORM NAME="aForm" id="aForm" READ...more >>

Page_Unload event fires to early
Posted by Heidi Hundåla at 10/22/2003 12:34:37 PM
Hi ! I have a Wep App in C#. Page_Unload fires after Page_Load, and it seems totally unreasonable when you want to use this event when you _leave_ the page. In my project we wanted to use the Page_Unload - event to clean up the Session variables, but when it turns out that it fires before...more >>

DropDownList SelectedIndex stuck at -1 after IsPostBack
Posted by clemmonsm NO[at]SPAM yahoo.com at 10/22/2003 12:32:14 PM
After selecting an option from the DropDownList and posting back, the SelectedIndex for the DropDownList (ddlShippingMethods) remains at -1. This form inherits from a base class. There is no code in the base class that pertains to the dataset, ddl, datasource, etc. Any ideas as to why this is...more >>

Referencing HTMLTextArea
Posted by Will T at 10/22/2003 12:27:04 PM
I have added an HTMLTextArea object (htaNote) to my webform.aspx and in the Page_Load codebehind I type something like: htaNote.Value = "Ouch!" Unfortunately, the intellisense does not provide the .Value for me because it does not recognize the object. I cannot reference Me.htaNote, e...more >>

Trimming data in dropdownlist from sqldatareader
Posted by William Mild at 10/22/2003 12:11:46 PM
When I databind a value/text combination from an sqldatareader to a dropdownlist, the trailing spaces are getting included in the dropdownlist. I can RTRIM from within the SQL to fix this problem, but I am wondering if there is a more elegant solution to trim all the text/value combinatio...more >>

Events, Viewstate, OnPreRender it has to be a bug
Posted by Kenton Smeltzer at 10/22/2003 12:05:13 PM
Hello All, I am having a problem with events and the addition of controls on a page I am developing. First let me tell you what I have tried and then maybe someone can see something I missed. First I tried adding the controls and the event handlers for my control in the Initialize Com...more >>

RegisterHiddenField and trace
Posted by Erik Cruz at 10/22/2003 11:39:41 AM
Hi. I am creating a custom control that uses the RegisterHiddenField method to insert a hidden field on a page. When I tried to see the value of the hidden field on a trace, I noticed that it does not appear on the Control Tree section of the trace. I put a normal hidden field on an aspx page ...more >>

Server.Transfer exception
Posted by Jan at 10/22/2003 11:32:06 AM
Hi, If I put a try catch block for Server.Transfer call. It will catch a System.Threading.ThreadAbortException exception like this. However, it transfer the page to the correct page. Why did this exception occur? Thanks. ------------------------------------ {"Thread was being aborted." } ...more >>

Help with checking table for duplcate record
Posted by momo at 10/22/2003 11:22:11 AM
I need to find out if a user name have been create before in a table. if so I don't want to allow new users to recreate it. ...more >>

Problem calling class that implements a COM interop DLL
Posted by Andrew Connell at 10/22/2003 11:16:22 AM
Using Interop, I created an assembly DLL that implements some of the = methods within the COM DLL. In a WinForm app, it works great. But when = I try to implement it in ASP.NET, I get the following error: System.IO.FileNotFoundException: The specified module could not be = found. I've creat...more >>

Upload Outlook Email via ASP.NET
Posted by Jeffrey H at 10/22/2003 10:51:05 AM
My ASP.NET application has a file upload module to upload files from a client's desktop to the web server. This module works very well. However, our clients have been asking if there is a way to upload email text and email attachments directly from their Outlook InBox to our web server. Is the...more >>

How do you pop up a message (like messagebox.show)?
Posted by VB Programmer at 10/22/2003 10:44:18 AM
I would like my error handler to pop up a message on my webform. How do you do this? Currently I'm using System.Web.HttpContext.Current.Response.Write("MY ERROR") Any ideas? Thanks! ...more >>

Custom http errors
Posted by Ron Vecchi at 10/22/2003 10:41:40 AM
I am using a custom http error redirect in my web.config (404) <customErrors mode="On" defaultRedirect="default.aspx"> <error statusCode="404" redirect="default.aspx"/> </customErrors> It works when someone enters http://www.mydomain.com/myfolder/mypage.aspx the redirect works fin...more >>

is auth cookie still active
Posted by Alex at 10/22/2003 10:34:10 AM
hi, I have implemented forms authentication and it is woking well however I am experiencing a slightly frustrating problem. The "Admin" directory of my site is password protected, however if a user successfully logs in to this section then will see a small menu at the top of the page on ANY ...more >>

using Acme?
Posted by LL at 10/22/2003 10:27:09 AM
Hi, Have one quesiton: "Acme" belongs to which object? Thanks. ...more >>

Scope of a Public Module in a Web Environment
Posted by Ashish Shridharan at 10/22/2003 10:16:55 AM
Hi All I have been tryign to figure out the scope of a module as shown declared below in a web environment. My Questions are Is this module shared across multiple instances of the application ?? What about variables declared in global scope of this module ? How does asp.net treat ...more >>

Open web page in New browser Window?
Posted by Mike Lambert at 10/22/2003 9:59:46 AM
I want to be able to open another web page in a new browser window from the one I am currently on? How do I accomplish this? I am currently just using the response.redirect method but can't find a way for it to open the page in a new window. Thanks Mike ...more >>

Iterating through specific rows of DataReader...
Posted by Jacko at 10/22/2003 9:58:32 AM
Hi guys, Say I made a SELECT statement to my sql DB that would return 50 rows that I will use a sqldatareader to access. Instead of iterating through each and every row of the datareader, I'd like to just iterate through, say, rows 20 through 30. How can one do this? Thanks very muc...more >>

Page Load event?
Posted by LL at 10/22/2003 9:39:34 AM
Hi, What's diff between the two page load event? I can debug the second one. Please advice. Thanks... <script language="C#" runat="server"> protected void Page_Load(Object Src, EventArgs E) { } </script> aspxcs file private void Page_Load(object sender, System.EventArg...more >>

IE Web Controls Problem
Posted by Guillermo at 10/22/2003 9:20:07 AM
I've downloaded and built the IE web controls, so I have the Microsoft.Web.UI.WebControls.dll on my hard disk, I've added to my toolbox in Visual Studio .NET 2003 (spanish). The problems raise when i try to use a treeview control, I drop it and when I try to add nodes i receive the next me...more >>

Build script dynamically...
Posted by Ivan Demkovitch at 10/22/2003 9:18:23 AM
Hi! Here is my problem: I'm inserting script for Trust Logo from one of the SSL authorities. It works fine when I do it in HTML, but I need to build it dynamically: HtmlTableRow tR = new HtmlTableRow(); HtmlTableCell tC1 = new HtmlTableCell(); tC1.Controls.Add(new LiteralCo...more >>

mscorlib error '80070002'
Posted by rkshankar28 NO[at]SPAM yahoo.com at 10/22/2003 8:59:13 AM
Hi, I am developing a COM component in C# using a COM Callable Wrapper. This com component works fine on my development machine(Win XP). I use ASP pages to invoke this component. When I try the same on Win 2003 Server ( i.e., when I try calling a function on the COM component from ASP) I ge...more >>

calling a DOS executable with GUI status window from ASP.NET ??
Posted by jason NO[at]SPAM cyberpine.com at 10/22/2003 8:56:30 AM
I have a DOS script that runs the batch version of an application (called SAS) that generates log file. Executed from DOS the script runs fine generating the log file. Except for a quick GUI flash, the executable appears to be just a DOS executable. From ASP.NET, I've am able to run other DOS ...more >>

ASP.NET HTML editor
Posted by Leszek at 10/22/2003 8:44:47 AM
Hello, Has anybody heard about an HTML editor available as an ASP.NET control or so? I need one for my Content Management System. I would appreciate any help: links to existing components, programs, code snippets, or any other resources regarding building online HTML editors using ASP.NET. ...more >>

ASPX not executed
Posted by taja at 10/22/2003 8:42:25 AM
Hi, I'm trying to execute ASPX page on a test IIS Server. Instead of executing it shows the ASPX file on screen. What's happening ? ...more >>

running gui app on server desktop from asp.net
Posted by cs at 10/22/2003 8:29:39 AM
Computer A is a server running IIS. User X logs in computer A, by logs in I mean phyiscally goes to that server and logs into a winxp user account. A has a website on IIS, user Y on computer B visits that site. The site needs to launch an application with a gui on computer A on the desktop...more >>

Autoincrement database tavle field
Posted by RA at 10/22/2003 8:21:18 AM
Hi I have the following datarow that I want to add to a datatable. DataRow newRow = ds.Tables["Customers"].NewRow (); newRow["ContactFirstName"] = Cache["FirstName"].ToString (); newRow["ContactLastName"] = Cache["LastName"].ToString (); ds.Tables["Customers"].Rows.Add (newRow); ...more >>

Convert QueryString to regular Url
Posted by dtaylor NO[at]SPAM harc.edu at 10/22/2003 7:12:34 AM
I saw an article that described how to convert the query string into an Url without a query string and return the page. For example, this request: http://www.mywebsite.com/products.aspx?category=motherboard becomes something like this: http://www.mywebsite.com/motherboard.aspx I need...more >>

Asp.net fails to connect to access db after a while
Posted by mark at 10/22/2003 4:56:04 AM
My asp.net app fails to make any further connections to my access db after surfing for a while. This error also brings down the entire site for all other users as well. Made sure to close all connections and even call dispose when done. Access lock remains for a while. The file size of...more >>

RUN/execute a Command-Line command from an ASP page.
Posted by Lucas Cowald at 10/22/2003 4:14:25 AM
Hi, I need to RUN/execute a Command-Line command from an ASP page. This is the command: sse45.exe -i k:\o\2.wmv -o k:\o\2.shh -w 128 -df 0 -m 2 -p Can you show me a code how to run this command from an ASP page? I need to run it from an ASP/VBscript? Thank you very much for your help! ...more >>

How do you refer to a textbox that is located in a User Control?
Posted by Mike Hnatt at 10/22/2003 3:04:24 AM
How can I refer to MyTextBox.Text which is located in mycontrol.ascx from within mymainpage.aspx? (i.e, mycontrol.ascx is a User Control located on mymainpage.aspx). Thanks! Mike ...more >>

Redirect a page after a new window opened?
Posted by nazirhaji2004 NO[at]SPAM yahoo.co.uk at 10/22/2003 2:51:36 AM
I am trying to do something pretty simple - but can't see how it can be done in ASP.NET. I have an aspx web page with a form which opens up a new window. The web page uses code behind to build the new window. There is simple validation on the form. However, after the form page validates a...more >>

close internet explorer
Posted by Justin at 10/22/2003 2:20:02 AM
Hi, I would like to ask how I can close the whole IE program when I click on a button in my aspx page, which is something like: application.exit() thanks in advance... Justin...more >>

spell checking in VS.NET ?
Posted by Max at 10/22/2003 12:50:59 AM
Is there a way to spell check other than copy and pasting into Word to see how bad at spelling you are? -M ...more >>

WHAT is this ??? Got Me by the Nut-Sack!
Posted by Ken at 10/22/2003 12:12:42 AM
Parser Error Message: Access is denied: 'localhost'. Source Error: Line 256: <add assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> Line 257: <add assembly="System.Web.Mobile, Version=1.0.5000.0, Cultur...more >>


DevelopmentNow Blog