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 > june 2004 > threads for monday june 21

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

Menu control--??
Posted by Sachi at 6/21/2004 11:20:01 PM
Hi, Anyone have good example or free code avilable with you for Horizontal displaying menu which can drill one or more level down. I happen to find on control. but unluck it is only main root level displaying only. Looking for some timely help. Thanks and Regards, Sachi...more >>

Can you tell me how to use "AND" here. It's really urgent. Thank You.
Posted by Miguel Dias Moura at 6/21/2004 10:25:56 PM
Hi, i have this line code to hide a table if a database field value is empty: <table runat="server" visible='<%# dataSetPerson.FieldValue("Book", Container) <> "" %>' ... What i want is to HIDE the table if any of these 3 conditions are true: dataSetPerson.FieldValue("Book", Container) ...more >>

Platform determination....
Posted by EMW at 6/21/2004 8:59:44 PM
I need to know on which platform the users pc is running. I.e. is it a PC or is it a PocketPC? I know that I need to use: Request.Browser.Platform But what are the possible answers on this request? The examples of msdn only talk about 'WinNT' thanks! Eric ...more >>

Override design time databind settings of label WebControl at runtime ?
Posted by Martin at 6/21/2004 8:51:24 PM
Hi, I've got a web label control which I set a databind expression on the Text attribute in the html for the page (aspx file). At runtime, I want to override this attribute, so before I do MyLabel.databind() (or actually Page.DataBind()), I set Text to "". This doesn't work because then the...more >>

Empty <SCRIPT> Tags Required?
Posted by Jeffrey T. at 6/21/2004 8:41:40 PM
I had some JavaScript functions defined in the <SCRIPT> section at the top of an aspx page (tested fine there). I then moved the JavaScript functions to their own separate file and then referenced that file in the <HEAD> section of the aspx page. I then removed the <SCRIPT> section from the ...more >>

How To question
Posted by Snarf at 6/21/2004 7:35:40 PM
I'm a C/C++ programmer with intermediate knowledge of VB and HTML. I picked up VB.NET standard as it looked like it would allow me to create web sites with more functionality and faster development than using Javascript for my "computing" needs. I picked up a copy of Visual Basic.Net all in...more >>

can anyone answer this
Posted by Mike at 6/21/2004 6:50:48 PM
Ok heres the issue. I have a copy of the production database localy on my machine for developing, the DB has null values in some rows, now when i run my code against the row of data that has NULL values in the columns, i get no errors, Now here is the issue, when I go against the same database on...more >>

Turn off browser cache
Posted by A.M at 6/21/2004 5:53:25 PM
Hi, How can I disable the end-user's browser cache inside the Page_Load event? Thanks, Alan ...more >>



Multiple Submit Buttons
Posted by Lau Lei Cheong at 6/21/2004 5:36:19 PM
Hello, Let's say that I have multiple submit buttons on a form (imagebuttons actually, but documentations say that <input type=image> which a called image buttons should behave like submit buttons). How could I determine which submit button do I invoked by calling form.submit() in javascri...more >>

string resizing
Posted by Matt MacDonald at 6/21/2004 5:19:18 PM
Here's a pretty easy one i think. How do I trim a string to a certain (physical) length i.e. in pixels, as opposed to characters? I'm tring to fit strings in data cells in an asp datagrid. Thanks alot, Matt ...more >>

Can't properly run ASP.NET applications
Posted by sgelfmann NO[at]SPAM yahoo.com at 6/21/2004 5:09:13 PM
Hi, I have a problem running ASP.NET applications that recently started to only work when they contain static HTML tags, everything else like <script> or directives are not executed. I used to be able to see ASP.NET error messages if the application had syntax errors but now, unless it's stati...more >>

Protected WithEvents Question
Posted by Benign Vanilla at 6/21/2004 4:45:03 PM
I am a ASP.NET newbie so please bear with me. I had a series of webforms working on my web site, and then I made some tragic error that is causing all kinds of problems. The main symptom is that when I try to declare a control in my code, I can no longer reference the proper type. The old c...more >>

datagrid and column data
Posted by SKG at 6/21/2004 4:26:04 PM
i have a datagrid which has to display values like <Main> and <SubMain> But then they appear to be blank. I found when these values are placed in datagrid cells <td></td> they do not show. how can i display them. Thank!!! ...more >>

Cookieless InProc sessions (reset on its own)
Posted by Ron Vecchi at 6/21/2004 4:25:04 PM
I've been searching to find an answer but can not. I have a site that started out using the defaul session cookieless="false" Most pages have an IFrame located on them. I decided to change to cookieless="true" Now the session is completely reset and a new session id is given. Are there kn...more >>

Child classes calling one anothers methods
Posted by Horace at 6/21/2004 4:21:45 PM
Hello I have a class Parent1 that instantiates Child1 and Child2. But Child1 calls methods in Child2 like so :- ======================================== Imports Tiger_Devl.Includes.Child1 Imports Tiger_Devl.Includes.Child2 Namespace Includes Public Class Parent1 Public T...more >>

Use Server object in Class file
Posted by Grey at 6/21/2004 3:57:59 PM
I have created CLASS file (.cs) in ASP.NET. I need to get the server path in this cs file, so i use "Server.MapPath()". But I got "The type or namespace name 'Server' could not be found (are you missing a using directive or an assembly reference?)". Is it possible to use Server object in cs fi...more >>

Using Frame
Posted by tangolp NO[at]SPAM yahoo.com at 6/21/2004 3:44:06 PM
I have aspx page called test.aspx where I create a frameset. At the top frame, I have dropdownlist box which has autopostback turned on, a hidden image (visible = false) and a button. When the user chooses an item from the dropdownlist box (after postback), I want to show/display the image in ...more >>

Forms Based Authentication, Except on Certain Files
Posted by - Steve - at 6/21/2004 3:34:28 PM
I have a directory that I want to use forms based authentication on. There's a couple of pages in that directory that I want to allow anonymous access to. There's also one page that I want to allow anonymous access to, but if someone is logged in then the page would be slightly different. How...more >>

What is wrong with this line?
Posted by Miguel Dias Moura at 6/21/2004 3:19:35 PM
Hello, i want to display the image "icon-yes.gif" if a certain condition is = true or the image "icon-no.gif" if it's false. I have this line: <td><img runat=3D"server" src=3D'<%# "..image/" & = IIF(dataSetPerson.FieldValue("Author", Container) =3D "Yes", = "icon-yes.gif" "icon-no.gif" %>'...more >>

Get postion of controls in IE
Posted by Grey at 6/21/2004 2:57:32 PM
Can I get the position (X & Y location) of controls in IE?? ...more >>

sending messages from the server over the network to another machine
Posted by Paul Wilson at 6/21/2004 2:47:11 PM
Guys, I would like a notification module for my simple ASP application. What i want to do is simple & as follows, 1). When the user adds some data into the system (VB.Net on the server side of my ASP.Net application will handl this processing), then i want to send a notification over the ne...more >>

ASCII file without crlf's
Posted by netproject_2004 NO[at]SPAM yahoo.com at 6/21/2004 2:29:11 PM
Hello. I am working with very large files in my .NET project (1 million plus records). Some of these files do not have crlf's, which makes it very hard to read the file without a layout or record length. In my application, I would like to open one of these text files and check to see if it co...more >>

connection from asp.net to sqlserver2000 remains open and blocks other connections.
Posted by z. f. at 6/21/2004 2:08:55 PM
Hi, i use asp.net and i have a general class that manages database access using ado.net and sqlclient provider. this class upon deconstructor closes connection to DB. it appears on sql 2000 manager when i look in management/current activity/Process Info that my connections stays open and th...more >>

Active Directory Error "The specified domain either does not exist or could not be contacted"
Posted by Brad at 6/21/2004 2:00:47 PM
I'm trying to use Active Directory to retrieve information for a user...for display purposes.. I am not using windows authentication or impersonation....I am using a fixed user id and password for initializing the DirectoryEntry object. For example sake our domain name is mydomain.net so the ...more >>

Trace from WebServices!!
Posted by Jay at 6/21/2004 1:46:22 PM
Hello, I want to print some trace messages in my webservice. If I debug asp_net through VS.net wp I would like to see those trace messages. Iam currently using debug.Writeline("debug"); but it is not printing anything. Am I missing a setting. How do I go about doing it thanks. jay ...more >>

WinXP German and English .NET Framework
Posted by Eric at 6/21/2004 1:17:12 PM
Hi, Normally I'm developing evertime with the english versions of Win, VS.NET, ..NET etc. But know I have a german Win XP SP1 with IIS 5.1 installed. Anyway I would like to develop with english versions. Because of that I installed the english version of VS.NET. My question now: How I...more >>

FTP using WebRequest
Posted by All Smiles at 6/21/2004 1:17:08 PM
I'm trying to use WebRequest to FTP from my local machine to a remote server, but I continually get a 550 response from the server. I can create the file, but cannot write to it or delete it - there seems to be a hanging process running that eventually times out. Has anyone run into a similar pr...more >>

overlay text on uploaded picture
Posted by Brian Lowe at 6/21/2004 1:11:08 PM
My web site accepts uploaded photos and stores them in a SQL table as BLObs so they never touch the filesystem. I have a way to create a thumbnail version of the uploaded image and store that in the db too, again without touching metal. I need a way to overlay some text on the image but I'm ...more >>

ASP.NET / Crystal Reports v9 ActiveX Viewer
Posted by James at 6/21/2004 12:51:02 PM
Hello, I have developed a reporting application w/ASP.NET on IIS v5 utilizing the Crystal Reports v9 ActiveX Viewer. Another developer has produced several reports using the client version of Crystal Reports v9, and we are using this application as a means of publishing these reports to internal...more >>

passing values to showmodal dialog
Posted by DavidS at 6/21/2004 12:42:02 PM
I have parent.aspx web page from which I call a modal dialog (child.aspx via showmodaldialog). I'd like to populate two text boxes, <asp:TextBox id=txt_HN> on the child form with data from the caller. for parent.aspx..... <script> block function UpdH(title,horse) { var iParms=new Object(); ...more >>

Setting Page properties
Posted by Angel at 6/21/2004 12:24:01 PM
Is there any way to set custom public properties that i created on the page via JavaScript. I would like to open a Web Dialog Window but while I open the aspx page in that dialog window I'd like to pass it certain properties(like sql connection string) before it opens that page up. thanks, Angel...more >>

Static methods in ASP.Net
Posted by blah, blah, blah at 6/21/2004 12:23:55 PM
I'm developing a .Net web application and created many helper classes often using static (shared in VB.Net) methods. Do I need to use the lock (SyncLock) statement in these methods to prevent multiple web application threads from using the same method at the same time? For example, I have a...more >>

XSLT: Loading Single Image Multiple Times
Posted by Larry Marburger at 6/21/2004 12:08:42 PM
I've built an XSLT that is used to generate a simple TreeView-type, web-based control (ASP.NET / C#). When the tree is fully transformed (client-side, JavaScript transformation), there are about 5 different images that are referenced (page.gif, folder.gif, plus.gif, minus.gif, and clearpixe...more >>

IIS ASPX .NET VB .NET Managed C++ and COM VB 6.0 ASP
Posted by chguan_ggl NO[at]SPAM yahoo.com at 6/21/2004 12:08:41 PM
I have a simple Managed C++ wrapper built around an *existing* C++ interactive [GUI] application. I can access the Managed C++ application classes from a VB .NET or C# client and the GUI part works as expected. I am using VS .NET 2002 (.NET framework v1.0.3705) for building my Managed C++ appli...more >>

write server's event log
Posted by Grey at 6/21/2004 12:07:00 PM
How to write the log detail into server's application event log (Windows Event log, not file created by own). Million thanks ...more >>

how to print a barcode label in asp.net?
Posted by angus at 6/21/2004 12:02:00 PM
Dear All, How to print a barcode label in asp.net? Thank you Regards, Angus ...more >>

URL without extensions
Posted by Prince at 6/21/2004 11:25:10 AM
Given the following URL, www.xyz.com/game, can it be redirected to www.xyz.com/game.aspx instead? Can it be done using asp.net if so, how? thanks ...more >>

Tracking High Volume of Impressions
Posted by Arsen V. at 6/21/2004 10:55:30 AM
Hello, Did anyone have some experience with the following: 1) Need to track high volume of impressions - 20,000,000+ per day 2) Backend is SQL Server 2000 3) Webfarm of IIS with ASP.NET 4) Need to track the data as follows: DATE, TIME (resolution should be 1 hour), ID, NUMBER OF IMPRESSION...more >>

re-start IIS 5 work process
Posted by Henry Chen at 6/21/2004 10:48:43 AM
We have a web server that runs on Windows 2000/IIS 5. We have multiple site of web application on the web server. Each site has it own assembly versions of ASP.Net application. They are all developed with ASP.Net 1.0. When we test a site of the application, it sometimes pops up stating that a fil...more >>

System.IndexOutOfRangeException
Posted by jake NO[at]SPAM attis.org at 6/21/2004 10:44:12 AM
I have the following code... Public Sub SelectPieceByProductID() Try Dim arParams(0) As SqlParameter arParams(0) = New SqlParameter("@lProductID", lProductID) Dim oDR As SqlDataReader = oData.ExecuteReader(sConnectionString, CommandType...more >>

System.Data.SqlClient.SqlException: General network error. Check your network documentation.
Posted by kalyankk NO[at]SPAM hotmail.com at 6/21/2004 10:41:49 AM
Hello, System.Data.SqlClient.SqlException: General network error. Check your network documentation. What does this error means? My web app, suddenly started to show this error today in my production environment, beta environment, development environment, and also on my machine too. When ...more >>

Sessions never end? IIS 5.1.
Posted by D. Shane Fowlkes at 6/21/2004 10:25:28 AM
I posted this on the MS IIS NG but that NG is slow to respond so I thought I'd try here to.... I'm using ASP(.NET) trickery to show the number of "current users" on one of my web sites (http://www.drpt.virginia.gov). I use this method on a few of my sites but it seems that only this one (on...more >>

Use SQL Server DB from another domain
Posted by Grey at 6/21/2004 10:20:06 AM
Can I connect the SQL Server DB from another domain?? If so, is there any parameter changing in order to connect it? Million Thanks ...more >>

DataBinding: 'System.Data.DataRowView' does not contain a property with the name ...
Posted by georgmayer NO[at]SPAM gmx.de at 6/21/2004 10:17:07 AM
Hi, I am trying to display data from a DataSet in a Repeater Control. My item-template (just an example) is like this: <ItemTemplate> <td> <asp:Label Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "item.Name") %>' ></asp:Label> </ItemTemplate> The problem,...more >>

Why is it called "Business Objects"?
Posted by galenstewart NO[at]SPAM yahoo.com at 6/21/2004 9:49:01 AM
The word "Business" in the term implies some sort of commercial aspects or connotations. But from what I can see, that is not necesserially the case at all? So what is the reasoning behind the term? Stupid question, I know ... and quite irrelevant in many ways ... but I really would like to...more >>

adding controls dynamically at runtime
Posted by Mark Siffer at 6/21/2004 9:45:41 AM
I am trying to add a compare validator at runtime. I would add it before but my input controls are built at runtime via an editable datagrid. Therefore, the names of the controls are not known until the page has been rendered. Any ideas? Thanks in advance MS ...more >>

how to display a MessageBox in ASP.net
Posted by Paul Wilson at 6/21/2004 9:29:58 AM
Hi guys, Can someone tell me how i could display a messagebox in ASP.NEt. Following is what i want to do. Validate the user details, & if the user doesn't have requried access rights, then Display a MessageBox informing the user of this. (or displaying messages when unable to save data on t...more >>

Trying to display the decimal...can someone help?
Posted by TN Bella at 6/21/2004 9:29:39 AM
This is what I have working, but I want to display the value like currency...showing the decimal point and the two points after it...$8.99. Thank you!! Sub AddAcctNums(Source as Object, E as EventArgs) Dim strControlName As String Dim i, sum As Int16 ...more >>

Re: Tracking High Volume of Impressions
Posted by Phil Winstanley [Microsoft MVP ASP.NET] at 6/21/2004 9:11:19 AM
Arsen, Why don't you use the Message Queue? Cheers, Phil Winstanley Microsoft ASP.NET MVP http://www.myservicescentral.com ...more >>

Listbox multiple insert
Posted by Big E at 6/21/2004 9:04:29 AM
I'm using ASP.Net and SQL Server 2000. I'm trying to insert or update records from a multiselect listbox. How can I get the contents of the listbox if there is more than one selected and update that into the database. But most important how do I update or insert those records. Any articles or id...more >>

Is it a mistake to put passwords in an .asmx.cs file on the web server?
Posted by johnfofawn NO[at]SPAM hotmail.com at 6/21/2004 8:50:40 AM
Hi, I'm building a web service which connects to a database. I have hardcoded the connection string in the web service source code (an asmx.cs file). Is this a mistake? Is there someplace else I should put the database connection string or just the password? BTW, is it a bad idea to leav...more >>

Re: need second pair of eyes: databinder.eval problem
Posted by Phil Winstanley [Microsoft MVP ASP.NET] at 6/21/2004 8:41:19 AM
Darrel, The HeaderTemplate can't access the DataItem, you'll need to do that in the Code behind. Hth, Phil Winstanley Microsoft ASP.NET MVP http://www.myservicescentral.com ...more >>

Permission denied creating directory
Posted by Christoffer Sørensen at 6/21/2004 8:25:40 AM
Hi, I have a created a simple file upload asp.net web page which also creates directories on the fly using the following code: string fullpath = Server.MapPath(".\\..\\..\\" + path); DirectoryInfo dir = new DirectoryInfo(fullpath); if(!dir.Exists) dir.Create(); Now the dir.Create() sta...more >>

Re: GC.GetTotalMemory() and ASP.Net
Posted by Phil Winstanley [Microsoft MVP ASP.NET] at 6/21/2004 7:54:16 AM
Scott, The documentation doesn't qualify the source of the value ... it generalises: - "A number that is the best available approximation of the number of bytes currently allocated in managed memory." What the scope of "managed memory" points to is the question. Not just that, but the am...more >>

Re: What is wrong with this line?
Posted by Phil Winstanley [Microsoft MVP ASP.NET] at 6/21/2004 7:29:01 AM
Miguel, Firstly, you won't need the runat="server" in there if you're not accessing this control programatically. I don't know VB.NET so I'll show you a way to cheat ;-) Rename your images "icon-true" and "icon-false" then do this: - <img src='<%# "..image/icon-" & (dataSetPerson.FieldV...more >>

Re: Add HttpHandlers Programmatically
Posted by Phil Winstanley [Microsoft MVP ASP.NET] at 6/21/2004 7:20:32 AM
TJ, Not sure about doing it at run time, although something you can probably do in VS.NET is add the text to the Web.Config yourself with the methods exposed in the IDE. Hth, Phil Winstanley Microsoft ASP.NET MVP http://www.myservicescentral.com ...more >>

Protecting PDFs with Forms Authentication?
Posted by mike NO[at]SPAM kingscott.f9.co.uk at 6/21/2004 6:43:45 AM
Hi there, I'm writing an app in which a punter buys some PDFs online. After purchasing said PDFs, they will be given a token (bless them Guids) to go to a download .ASPX page from which they can download the PDFs. I'm planning to use Forms Authentication to protect the .ASPX page which give...more >>

Add HttpHandlers Programmatically
Posted by TJoker .NET at 6/21/2004 6:32:35 AM
I have this web control that need to process some special urls requested by the browser. So I created a class implementing IHttpHandler to deal with it. The problem here is that to properly use the control, the developer has to include something like the following in his web.config: <htt...more >>

PostBack doesn't fire the first time with Safari 1.2.1
Posted by ian_cox2000 NO[at]SPAM hotmail.com at 6/21/2004 5:43:23 AM
We are having trouble getting our application to work well with Safari 1.2.1. When a page is first rendered and a button clicked it is not sent as a post back and no click event is fired so the page just reloads itself. The second time it is clicked it is a postback and the click event fires su...more >>

Re: Dropdown date picker in .NET?
Posted by Phil Winstanley [Microsoft MVP ASP.NET] at 6/21/2004 4:55:11 AM
B, I use this (free) control: - http://www.eworldui.net/CustomControls/CalendarPopup.aspx Works great. There is a version with support and such here: - http://www.richtextbox.com/RichDatePicker/ Hth, Phil Winstanley Microsoft ASP.NET MVP http://www.myservicescentral.com ...more >>

Re: IIS errormessage referrs non-existing linenumber
Posted by Phil Winstanley [Microsoft MVP ASP.NET] at 6/21/2004 4:44:32 AM
Christina, Thanks, from the bottom of my now two broken ribs ;-) The *.pdb files contain all the debug information, so all the line numbers and such are stored in there, if you remove the *.pdb files you'll see you get hardly any debug information. They're central to getting debug informati...more >>

Re: IIS errormessage referrs non-existing linenumber
Posted by Phil Winstanley [Microsoft MVP ASP.NET] at 6/21/2004 4:21:52 AM
Christina, Ensure that the *.pdb files in the /bin folder are up to date, delete them and allow them to be recreated for example. Also take a closer look at the Stack Trace to ensure that you're looking at the source of the error, not just the point at which it bubbled up to. Hth, Phil ...more >>

newbie question on "Type Safety"
Posted by Raymond Du at 6/21/2004 3:32:33 AM
Hi, I came across the term "Type Safety" more than 20 times already while reading .Net documents, do not really know what it means. I know Type is the combination of class, interface, enum, struct,..... But "Type Safety", safe from what? Or do I completely misunderstand the term? TIA ...more >>

&#21319;&#32423;&#21040;Windows Server 2003&#21518;&#65292;&#21407;&#26469;&#30340;ASP.net&#32593;&#31449;&#19981;&#33021;&#36816;&#20316;
Posted by REi at 6/21/2004 2:49:30 AM
&#24050;&#32463;&#23433;&#35013;IIS = 6&#65292;&#24182;&#24320;&#21551;&#20102;ASP.net&#65292;&#25253;&#21578;&= #22914;&#19979;&#38169;&#35823;&#65306; [HttpException = (0x80070005):&#23545;"D:\Webroot"&#30340;&#35775;&#38382;&#34987;&#25298;= &#32477;&#12290;&#26410;&#33021; &#24320;&#22987;...more >>

Datatable indexing problem
Posted by Thomas Scheiderich at 6/21/2004 2:35:47 AM
I am having a problem with a Datatable access. This statement apparently works fine: response.write(GetRows.Rows(ktr)(1)) and this statement does not: if e.day.date = GetRows(ktr)(1) then Here is the snippet of code that has these statements ************************************...more >>

Wait function
Posted by kuldeepiitk NO[at]SPAM yahoo-dot-com.no-spam.invalid at 6/21/2004 2:03:09 AM
Is there any way that i can make my application wait for some time so that page loads in that time, right now I am using following code, ================================= Public Sub waitBySecs(ByVal nNumSecs As Integer) Dim d1, d2 As DateTime d1 = DateTime.Now.AddSeconds(nNu...more >>

IIS timeout, IE timeout or what?
Posted by Just D at 6/21/2004 1:54:54 AM
Hi, How can I name this effect and change it? My WebApp takes a few seconds to start, sometimes more that 10 seconds, especially when I start it from the VS IDE. If this time is too long then the IE shows that the Action cancelled, the IE was unable to link to the Web Page that I request...more >>


DevelopmentNow Blog