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 2005 > threads for wednesday february 2

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

Microsoft.SharePoint.dll in ASP.NET
Posted by Ravi at 2/2/2005 11:57:02 PM
i am trying to use Microsoft.SharePoint.dll in asp.net application when i Add reference it asked to its dependency files Microsoft.SharePoint.Dsp.dll, Microsoft.SharePoint.Library.dll and Microsoft.SharePoint.Security.dll, then i added them into the refference of my project, then if i run ...more >>


Runtime Error
Posted by Hines at 2/2/2005 11:45:02 PM
Hi, Can someone tell me what's the cause of this error. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could,...more >>

Building an E-Commerce Site
Posted by Carl Gilbert at 2/2/2005 11:42:59 PM
Hi I was looking to build an E-Commerce web site using ASP.NET. I work with VB.NET and know some HTML so I imagine the learning curve for ASP.NET shouldn't be too steep. I was looking for the best way to approach this task and came across the IBuySpy starter pack from Microsoft but felt...more >>

Cookies/Cache/ViewState/Session
Posted by Alex Nitulescu at 2/2/2005 11:37:35 PM
Sorry, I'm really confused - I'm only at the middle of my book and already I can count 4 methods to store values. Yes, I know that cookies can not store much, but what is the difference between storing data in the cache object, in a viewstate and in a Session. I can say Cache("MyData")=...more >>

ASP.NET n00b needs help here
Posted by John McClamrock at 2/2/2005 10:27:11 PM
Hello, I'm just starting out with ASP.NET and it looks great. I have minimal programming experience and have some PHP experience. I've also pretty much mastered HTML. I need a little help here. I made an access database with the Web Matrix, and connected to it using the Select function, but...more >>

How to make an application Database independant
Posted by Gustavo De la Espriella at 2/2/2005 9:57:38 PM
Hi, What's a good way to make an application automatically choose between SQLClient, ODBC, Oracle and OleDB depending on user's choice? Thanks, Gustavo De la Espriella ...more >>

How to programatically load control in HTTPHandler ?
Posted by Alex Nitulescu at 2/2/2005 9:44:46 PM
Hi. I have a web.config which says that all files with the "axd" extension should by a special handler. The handler writes some stats to the "axd" page. Public Class WhosOnHandler Implements IHttpHandler Public Sub ProcessRequest(ByVal context As System.Web.HttpContext) Implements System...more >>

A good asp.net architecture for a large project (sort of newbie)
Posted by Gus at 2/2/2005 7:34:43 PM
Hi, I'm helping a software development business to upgrade a (VB6 to Asp.net) commercial software they sell. We wanted to know what would be the best architecture(in ASP.NET) to use as base for this large project. Especifically, the current application uses any (odbc) database and displays ...more >>



Can you maintain session state when using Server.Transfer() ?
Posted by David Berman at 2/2/2005 7:12:53 PM
It seems that my site is losing session information when using Server.Transfer. I have a page called PictureGallery.aspx. It takes an argument which is an index id, so it would look like PictureGallery.aspx?id=30 to display gallery 30. In this way I have a database driven picture gallery. To...more >>

Consuming usercontrol events in a webform
Posted by Craig Douthitt via DotNetMonster.com at 2/2/2005 7:07:02 PM
I am trying to capture an buttonclick on a usercontrol in the webform the usercontrol resides in. After researching this issue, I've come to believe that the best way of handling this is by raising an event in the control and consuming the event in the webform. I tried the following, unfortunatly ...more >>

Help: ASPX interaction with Flash MX
Posted by VB Programmer at 2/2/2005 6:54:31 PM
I am housing a flash movie in an ASPX page. The flash form basically consists of FullName, EmailAddress, and Comments and a "Send Email" button. (I'm simplifying the issue.) How can I: (1) Get the values of the 3 variables from the Flash MX form (using ASP.NET)? (2) Send an email which t...more >>

formating numbers
Posted by TomislaW at 2/2/2005 6:03:02 PM
how can I format int 50 as string "0050"? ...more >>

Dropdownlist text
Posted by tshad at 2/2/2005 5:51:28 PM
How do I get the selected text from a dropdownlist? I know I can get the value using selectedValue and there is selectedIndex to get the row, but how do I get the text that is displayed? I tried ddl.text and that doesn't work. Thanks, Tom ...more >>

asp.net assemblies over UNC network shares
Posted by zerokarma at 2/2/2005 5:39:03 PM
I've recently setup a webfarm using win2k3 and a network disc array to store all the files served up by the webfarm. All web sites being hosted are configured to work over UNC. My problem is IIS doesn't load the .Net assembly from the UNC share (in the bin directory) and the page fails. Her...more >>

Visual studio 2003 "HTTP/1.1 500 Internal Server Error"
Posted by gerr at 2/2/2005 5:15:46 PM
Visual studio 2003 "HTTP/1.1 500 Internal Server Error" when trying to create a new Asp.net site with Visual Studio 2003 on localServer/IIS 5.1. Anyone have any new solutions or urls to point me to for this problem short of reinstalling the local developer XP OS/IIS 5.1 ? I have tried everythin...more >>

Am I blind?
Posted by Roy at 2/2/2005 5:11:24 PM
Sorry for the sea of code. For no apparent reason that I can tell, this section of code began producing an "Object reference not set to an instance of an object." error. The error occurs on the line I indicate below. The code below is nothing in-depth, some variables and a darn editable datagrid...more >>

Getting the HTML for a control
Posted by Chad at 2/2/2005 4:53:34 PM
Your gonna ask why would I want to... One reason is that the unsupported MS Web Tree Control has a text property on a node, but no Controls collection. To add a control to the node, I need its HTML, or I need to build it myself (i'd rather not) Somebody suggested I take a look at the HTML in...more >>

Sort dirInfo.GetFiles("*.*") collection in DataGrid
Posted by Hrvoje Vrbanc at 2/2/2005 3:58:43 PM
Hello all! I have a small problem: I have an ASP.NET page that displays content of a folder in a DataGrid (more precisely, it displays Name, Lenth and CreationDate of the files). Default sort order is by file Name. Howwever, I would like to sort the collection by the CreationDate. How to ...more >>

Upload files to UNC network path from webserver
Posted by Tom Wells at 2/2/2005 3:50:07 PM
I have a little file upload page that I have been able to use to = successfully upload files to the C: drive of LocalHost (my machine). I = need to be able to upload to a network drive from the intranet server. = On the line: dirs =3D Directory.GetDirectories(currentDir) I get = "Access to...more >>

What is wrong with my JScript Syntax
Posted by Craig G at 2/2/2005 3:32:11 PM
the problem is caused by the cboRefSrc.SelectedValue but im unsure how to get the selected value from the combo to put in the string function OpenReferrer(idname, postBack) { var strReturn; var myArray; strReturn=window.showModalDialog('frmReferrer.aspx?REFSRC=' + document.getElement...more >>

How to get log off to work in a custom control
Posted by Paul at 2/2/2005 3:31:03 PM
Hi I have a custom control that I am using as a menu on several web pages. I want the hyperlink to close any window the user is on, just wondering if this can be done with java script and how. I tried <script language="javascript" event="onclick()" for="Hyperlink"> window.close(); </...more >>

Converting GET URL to a POSTed one while maintaining session
Posted by Keith Patrick at 2/2/2005 3:16:21 PM
I've got an app that does a ton of Response.Redirect's to bring up various pages. Due to some printer-friendly stuff we use, the URLs all have to pass their data in via the querystring. However, we're hitting problems where the URL becomes too long, so now I'm trying to convert all the que...more >>

Newbie - Protecting source code
Posted by Fronky at 2/2/2005 3:05:59 PM
If I create an ASP.NET (c#) web application, how can I prevent my code being ripped off when I load it onto a 3rd party web server? (Someone copying the ..cs files, and removing them) Is there a way to compile these .cs files for the ASP.NET pages to read. ...more >>

How to assign today as selected date on calendar control
Posted by KatB at 2/2/2005 2:53:04 PM
I have a calendar control which renders on page load. I need the initial rendering to have a selected day (today) and not wait for the first SelectionChanged event to occur. Any suggestions? Thanks, Kat *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in...more >>

error BC30188: Declaration expected ???
Posted by Chuck Insight at 2/2/2005 2:13:39 PM
Another newbie question. While working on a WEB project, I came across some code that looked promising, but retues an error. The code is: Private Sub Form_Load() The error it produced is: error BC30188: Declaration expected. In a nutshell 1 - what is this telling me? 2 - what is wr...more >>

Single Sign On(SSO) and Active Directory (AD)
Posted by daniel at 2/2/2005 2:03:11 PM
Hi, i want to use dotnet web form to do SSO with AD now, but i don't know to do it. where can i look for relative article or sample code ? thanks. ...more >>

How to use confirmation box on delete a row in a datagrid?
Posted by jenniferhu46 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 2/2/2005 1:59:09 PM
Hi experts, I want to add a delete button in my datagrid, and before it deletes from database, I want to have a confirm dialog box for this deletion. I am entry level to the vb.net, and don't know java or c#. The problem is, when I tested the program, there is no pop-up confirmation box fo...more >>

How secure is framework 2.0?
Posted by Benton at 2/2/2005 1:51:51 PM
Hi there, Currently I have a customer website running with Framework 1.1 and built with VS 2003. Now at the office I am already playing with VWD 2005 Express (Beta 1) and wonder if it's safe to convert the project, install the framework 2.0 on the customer server and install the upgraded pr...more >>

Gregorian to Julian Date conversion
Posted by Chris Davoli at 2/2/2005 1:39:04 PM
Is there a class that converts from Gregorian date to TRUE Julian Date in ..NET? Any VB.NET examples available? ie; The Julian date is calculated by the number of days since January 1, 4713 BC. For example, the Julian date for August 1, 2001 is 2452122. -- Chris Davoli ...more >>

Access is Denied "MyDll" MyDll could not be loaded
Posted by Joe at 2/2/2005 1:37:28 PM
I get this error message whenever I update my website. The only way to get it to work again is to create a new web site under IIS and move the files to the new folder. I read the KB articles on MS about indexing but I don't have indexing on. Anyone else running into this problem? Thanks, ...more >>

File Download
Posted by Steve Caliendo at 2/2/2005 1:36:27 PM
Hi, I want to make a file on my server available for download to the client. I set a hyperlink.navigateurl to point to my file using an ftp:// with a valid address, but it doesn't work. What I want is that dialog to pop up that says "You are about to download a file from ..." Do I need t...more >>

a host which also supports ASP.NET?
Posted by ALI-R at 2/2/2005 1:12:12 PM
Hi ALL; Sorry if here is not a suitable place to post this question,but I'm going to create my own personal website (and a weblog besides it) and I have absolutely no idea where to get a decent host from. I am kind of confused with different offers currently exist.I'd like to put some persona...more >>

Regional Settings for ASP.Net?
Posted by Andy Pickering at 2/2/2005 1:02:04 PM
I made the mistake of leaving the regional settings as US (I'm based in the UK) when I installed my development server (2003 Std). I've set the regional settings back to English (UK) in all of the settings in control panel - but my sites are still showing the date formats as mm/dd/yyyy. I kno...more >>

asp:button and response.redirect _top
Posted by Jim in Arizona at 2/2/2005 12:58:33 PM
I have a site that uses frames. I made an aspx form with an asp:button control with Onclick=test. The test sub is: Sub Test(ByVal sender As Object, ByVal e As System.EventArgs) Response.Redirect("http://webserver/policies/pppindex.htm target=_blank") End Sub Of course, this will not wo...more >>

Help on system.web.mail
Posted by Newbie at 2/2/2005 12:30:43 PM
I'm using system.web.mail component to send out emails from one of my hosted ASP.NET appl. But I only able to send to recipients in my domain only. Why is that? How to correct this? thanks, andy ...more >>

Commenting out VB code
Posted by Sandy at 2/2/2005 11:43:06 AM
Is there a better way to comment out code in VB than putting a single quote in front of each and every line? -- Sandy...more >>

asp.net scrolling
Posted by venky at 2/2/2005 11:40:42 AM
I have a question. In asp.net page, how do u scroll to particular position in a page. I have a button at the end of my page, when i click the button, i do some validation and if the validation fails, i want to scroll to particular postition in the page. Instead the page stays in the same place w...more >>

Using a Web Application While Offline ...
Posted by George Durzi at 2/2/2005 11:21:17 AM
I've developed a web based sales contact software for my company. Account managers use the software to record sales activity they've made. Recently, they've been complaining that there are times when they can't use the application, e.g. when they have no internet access, like on a plane. DU...more >>

How far does ASP.NET keep up with its Browser Compatibility?
Posted by ms at 2/2/2005 11:12:35 AM
Hi Everyone, You all would be aware of the fact that we boast about .net supporting multiple web browsers. I hope we have all experienced that our screen layouts look different in every other browser. (Netscape being the worst!) So how far can we agree on this statement? Manoj ...more >>

session state between http and https
Posted by JStemper at 2/2/2005 10:41:04 AM
I have a site where I would like a page to be accessed via SSL (payment.apx) others via regular http. However it doesn't seem that session state is passed between the two protocols. Is there a "right" method for ensuring that this happens? Has anyone run into any Best Practices regarding ...more >>

Server.Transfer - Open page in new window
Posted by RJN at 2/2/2005 9:38:22 AM
Hi Is it possible to a server.transfer and open the page in a new window? I need to pass values between forms and hence using server.transfer. I do not want to use query string for passing values. Regards Rjn *** Sent via Developersdex http://www.developersdex.com *** Don't just p...more >>

Dump the response.
Posted by Robert Strickland at 2/2/2005 9:26:52 AM
Is there a quick way to see response stream? I need to dump the stream into a file. Request has the InputStream but Response does not have the same (OutputStream is write only). Do I have to use a filter? ...more >>

Help with hyperlinkcolumn, I can't seem to get it work!
Posted by Chris at 2/2/2005 9:25:06 AM
I've tried several posting examples to no avail. I'm trying to pass two parameters to the hyperlink inside of the grid. I've gone to this link that was posted, and besides the typo (missing '>') I can't get it to work. http://www.extremeexperts.com/Net/faq/PassingMulitpleParameterinURLLink.asp...more >>

No Class at ALL!!! beginner/beginner question
Posted by Kurt Schroeder at 2/2/2005 9:09:09 AM
I want to define a class to use as what i would call a datastructure my sinple example does not work and i know the answer will be a 2 seconder. here is my code the instance of c is flagged as undefined. Public Class crt Dim col As Integer End Class Public Class IndexBuilderDaily2 I...more >>

Newbie-Index out of range error
Posted by Rudy at 2/2/2005 9:05:20 AM
Hello all! I am trying to get my update button to function from my datagrid. But I keep getting a index out of range error. I see this post alot, and now I'm proabably more confused about tha ever. When I hit my edit button, it loads the right fields into my textboxes, there I can change...more >>

query on license
Posted by Melinda at 2/2/2005 8:59:56 AM
Our website (currently done in simple HTML - using front page) is hosted by a 3rd party hosting firm, & the servers have ASP.NET installed. I have a copy of VS.NET 2003 (from a friend, installed & working), is it possible for me to place some ASP.NET pages on this website - or are there some lic...more >>

I need some help here
Posted by Chris at 2/2/2005 8:17:02 AM
Hi, I have a datagrid with 3 columns. One of the columns (quantity) is a template column with dopdownlist. I want to be able to populate the dropdownlist for each row with different data (based on the data in the first column. I am trying this but doesn't work Private Sub grdTranx_Item...more >>

WMI with the ASPNET account?
Posted by Todd at 2/2/2005 8:15:09 AM
When running the following WMI Query in C# code as administr=ADator, the NetConnectionId ("Local Area Connection", etc.) for the NICs=AD are returned by the following query: SELECT NetConnectionId FROM Win32_NetworkAdapter However when running with the ASPNET account in a web servic=ADe, e...more >>

Return Values and SqlHelper
Posted by riversmithco NO[at]SPAM hotmail.com at 2/2/2005 7:55:07 AM
Does anyone have an example of getting a return value back from a stored proc using the SqlHelper data block? This should be so easy! Here is my stored proc: CREATE PROCEDURE AddEmployee ( @SessionID varchar(24), @EmployeeID varchar(6) ) AS IF (SELECT COUNT(*) FROM Employees WHE...more >>

Parser Error - Could not load type
Posted by dhnriverside at 2/2/2005 7:45:07 AM
Hi peeps Ok, I've got a web application running (lets call it MyApp, so its namespace is MyApp). I've created a subdirectory within this application called "secure", and made than an Application in IIS too. Plus I've added another web.config in there. Then I added an aspx page (called U...more >>

Setting Radio Button In A Item Template Of A DataList
Posted by pierre.basson NO[at]SPAM psitek.com at 2/2/2005 6:49:33 AM
Hi, I have a DataList with an Item Template that contains an image and three radio buttons, which are used to indicate the image's status. How can I set the appropriate radio button to checked, when I load the DataList from the database? Thanks in advance. Pierre ...more >>

VS 2003 Binding Drop Box
Posted by Frank Bishop at 2/2/2005 6:43:11 AM
Can anyone point me to an example on the net of how to bind a drop box on a Web form using VS2003.net? for some reason, I can't get my drop box or list box to bind to my dataset. I am using VB.Net. Help appreciated. Frank *** Sent via Developersdex http://www.developersdex.com *** Don'...more >>

Submitting Data to Another Page Using ASP.NET
Posted by Dennis E. Jones, Jr. at 2/2/2005 6:28:02 AM
I need to post an ASP.NET form between sites for report processing. Site A contains the asp.net forms and site B contains Java Servlets for report processing. All form fields values must be passed to the reporting servlet via http post method. No parameters can be transmitted by URL. The rep...more >>

Can't write to Eventlog with ASP.NET
Posted by pthawkes at 2/2/2005 6:11:04 AM
Hello. I am using win2k3 server and the Microsoft.ApplicationBlocks.ExceptionManagement. I am trying to write an exception to the eventlog. I have given permissions to the registry that are required (eg. Network service, AspNet, iusr etc) all have full permission to the eventlog key in th...more >>

Oops.. how can I rebuild a RESX file?
Posted by dhnriverside at 2/2/2005 6:07:03 AM
Yup - I'm having one of those days! I've just deleted the wrong RESX file (ie one that was in use!) and now my project wont compile. How can I rebuild the resx file, or get it back!? (didnt go into the bin!). Ta Dan...more >>

Committed Memory issue
Posted by Steven at 2/2/2005 5:49:04 AM
We currently have a W2000 server, IIS 5.0, and 1.0.3705 Framework. Our asp.net app seems to be running well, sometimes kinda slow. We're concerned with the fact that our committed memory reaches 1.5 GB. Can this be considered normal? Is there a standard we can go by to make sure things are r...more >>

visible - hidden
Posted by Boonaap at 2/2/2005 5:35:04 AM
two labels, one with a list of input controls, and another with a datagrid depending on which button is clicked, one of the labels is put visible, the other one is put hidden with a css class like this.. this.labelname.Attributes.Add("class","hidden"); this.labelname.Attributes.Add("class"...more >>

Getting binary image data from SQL Server
Posted by NathanV at 2/2/2005 4:25:03 AM
I have a stored procedure that returns the binary representation of an image from a SQL Server db. The following code returns an "Invalid parameter" error on the System.Drawing... line. I am converting this code from Access. Any ideas? Thanks! byte[] imageData = (byte[])(command.Execute...more >>

problem in reading server side string from client
Posted by Raed Sawalha at 2/2/2005 3:45:06 AM
i have an aspx page in the code behind i have in aspx.cs public string sPath = "C:\\Public\\User\\Other"; is aspx when I tried to get the string the slahes is gone i tried to alert the string it gave me C:PublicUserOther , why? <script language=javascript> function CreateFolder() { ...more >>

vb.net webform on 2000 returns "Bad variable type" for Excel
Posted by David Reynolds at 2/2/2005 3:43:01 AM
Hi Everybody, I have a vb.net webform where I create the Excel application/workbook/worksheet. On Windows 2000 server for some reason, I keep getting an error("Bad variable type") when trying to first set the value to a cell. I don't have the problem on 2003 server or XP, and I'm wonderin...more >>

trying to create an asp.net project
Posted by rebecca_cosmatos NO[at]SPAM businessedge.co.za at 2/2/2005 3:23:07 AM
hi to anyone who can help me, i am a beginner in the asp world and have no idea how to create an asp project. i get the following error: "unable to create web project 'webapplication1'. the file path 'c:\inetpub\wwwroot\webapplication1' does not correspond to the URL http://localhost/webappl...more >>

Javascript and .Net Validation controls...
Posted by ksrohit NO[at]SPAM gmail.com at 2/2/2005 3:21:48 AM
Hi, Can we use Javascript and .Net Validation controls on the same page. If yes how? Please provide some examples which will help me a lot....thanks....more >>

e.CommandName is = "". Why?
Posted by Jon at 2/2/2005 3:09:03 AM
Hello all, I've pasted in my code that doesn't seem to work. I can raise the grdLinks_ItemCommand event, but for some reason e.CommandName is = "", event though in gdrLink_ItemDataBound I'm setting it to be AddFAQ. WHy is that? Thanks, namespace HotLinks { /// <summary> /// Summary desc...more >>

System.WebException | The operation has timed out
Posted by Sachin Surana at 2/2/2005 1:47:01 AM
We use HttpWebRequest to send the request at a URL. But some times the method GetResponse throws a time out exception. But when we check the IIS logs, there is no such entry. So the request never reached the server but the client is getting a time out exception. What could be the possible ...more >>

How do I pass TWO parameters in Response.redirect ?
Posted by Alex Nitulescu at 2/2/2005 1:25:36 AM
Hi. I have tried to pass two parameters, like this: Response.Redirect(String.Format("NewPage.aspx?Username={0}, Pass={1}", txtUserName.Text, txtPass.Text)) But if I pass Username="Alex" and Pass="AAA", I get Params("Username") = "alex, Pass=AAA" and Params("Pass")="", which is not what ...more >>

highlight 1 row in asp:repeater
Posted by dhnriverside at 2/2/2005 1:23:02 AM
Hi I'm using an asp:repeater and its DataSource/DataBind system to show a number of records from the database. I want to highlight the latest record (which will be the highest ID). Any thoughts on how to do this with the repeater? Cheers Dan...more >>

Email System Folder Manager Recommendation
Posted by Raed Sawalha at 2/2/2005 12:01:01 AM
WE have Email system in our web application and need to add a folder manager as in HOTMAIL and YAHOO! , currently we are moving the messages using web service, so what i need is how do I start to build such thing? initially I think of creating a physical folders and manage them , does it th...more >>


DevelopmentNow Blog