Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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 > march 2005

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

ADSI Guru... HELP!
Posted by Tim::.. at 3/31/2005 11:55:01 PM
Hi can someone please help! I have been having issues with the following piece of code! Everytime I run the application I get: Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: Line 70: topRow(" ") = "...more >>


Save Page As Web Page
Posted by SMG at 3/31/2005 11:18:44 PM
Hi All, On my website I want to provide a link with 'Save Web Page as HTML" I wrote the following code for the same and it works " document.execCommand('SaveAs','1','TEST'); " But it saves page content(HTML Code) and does not save images on the page (as I had given relative path for th...more >>

Uploading file to local host
Posted by jackson at 3/31/2005 11:17:56 PM
Hi all, Im having problem when uploading file to localhost. but I can upload to drive c: any idea thanks...more >>

Newbie - Can you point me in the right direction.
Posted by james at 3/31/2005 10:14:37 PM
I am trying to put together a simple site where the user can select the page layout from a set of templates. The templates will be in the form of 3 blocks of code: header, navigation and footer I have tried using user controls and calling them by using <%@ Register TagPrefix="uc1" TagNa...more >>

Changing a RequiredFieldValidator on the fly?
Posted by RCS at 3/31/2005 9:49:03 PM
I have a questionnaire-type web form - and I would like to have one field validator, and when you switch to a question - have the field validator apply to the current item. If I try to change the ControlToValidate on the fly, I get no error - but it also doesn't work. It just seems like ...more >>

download files
Posted by Marc Pelletier at 3/31/2005 7:42:08 PM
Hello, I'm not sure how to pursue what I want to do. I want to create a website that keeps a set of files on the users machine syncronized. I've found some code using directoryinfo that I am using to build the list of files to sync, but don't know how to download them all and put them in...more >>

Help: gif file is still caehced despinte <%@ OutputCache Location="None" %>
Posted by YeeCN at 3/31/2005 6:27:48 PM
Hi, I have a page which contain a image control for displaying a .gif file. The application allows the user to upload a different image to replace the existing one - but when I do Response.redirect() back to the page, the old image is still being displayed. I need to do a refresh from the brow...more >>

Form Submission and Refresh
Posted by Jim Little at 3/31/2005 5:57:08 PM
Hello, I'm driving myself crazy either because I'm missing something about ASP.NET, or what I'm trying to do simply can't be done. First, I am not using session variables to track state. My app will ultimately be web-farmed, so I resisted using either session variables. Second, what I'm...more >>



excluding some rows when databinding
Posted by Andy Fish at 3/31/2005 5:56:42 PM
Hi, Say I have an Array of "Person" objects that I'm using as the DataSource for a grid control. At databinding time I'd like to select only people with age>18 to go into the grid and ignore all the others. The only way I can think is to make a new array (or arraylist) containing only th...more >>

Looking for a good validation control
Posted by Shapper at 3/31/2005 5:49:18 PM
Hello, Could someone point me a good validation control for ASP.Net? Thank You, Miguel ...more >>

detecting bokmarkedUrl in IE favorite list with javascript?
Posted by Jensen bredal at 3/31/2005 4:19:31 PM
Hello, I need to offer the visitors of my siste to add it to the favorite list but only when it is ot there. the code below: window.external.AddFavorite(location.href, document.title) add the link. How can i see if the current link is already there? Many thinks in advance JB ...more >>

AspCompat="true" on a Windows 2003 may cause an error
Posted by Angelo Brusati at 3/31/2005 3:18:02 PM
When using VB6 COM objects on a ASP.NET page, and having the @Page directive with the AspCompat attribute set to true, it causes an error like "Method '~' of object '~' failed" or "Object reference not set to an instance of an object". The scenario is: - Windows 2003 server - IIS6 - Framewo...more >>

How to Post a Form
Posted by Justin at 3/31/2005 3:15:04 PM
How do I post a form to a specified url using an ASP.NET with a code behind? With traditional ASP I used to be able to simply use: action="https://www.domain.com/process.asp" Thanks, Justin....more >>

SSL and Performance
Posted by Ryan Ternier at 3/31/2005 2:47:45 PM
My Company is looking to implement SSL encryption on a few of our software projects. We deal mostly with local governments so information needs to be secure between the client and our servers. We've heard SSL can be costly on the initial handshake.. how costly? Our Server is currently...more >>

Default size for dropdownlist
Posted by tshad at 3/31/2005 2:37:03 PM
Is there a way to set the Default size of a DropDownList? If there is nothing to fill it with you get a really small (width) control that looks kind of funny. I wanted to set it to be abou 50px if there is nothing in the box. Width doesn't seem to work. Thanks, Tom ...more >>

Please wait...
Posted by Anonymous at 3/31/2005 2:29:21 PM
Hello, I am generating a pdf file via some code. It takes approx. 30 secs to create the pdf and to show it to the user. During that time, I want to show a message like "Please Wait...". Ideally I would like to show only this message in some kind of messagebox and show the pdf page on...more >>

SelectedIndexChanged event not responding on selecting gridview
Posted by AT at 3/31/2005 2:19:04 PM
I am having problem with beta 1 asp.net 2.0 I have 3 development stations xp /pro On 2 of them it is working just fine on 3 rd -this event not fired!!!! Problem description: I placed gridview with objectdatasource on the page c# it is shows the data but when i press on select button on gri...more >>

How to pass listbox to sub
Posted by Chris at 3/31/2005 1:21:02 PM
I have this sub to resize a listbox: Sub ResizeListBox() Dim lineCount As Integer = 0 Dim li As ListItem For Each li In Me.lstStatus.Items lineCount += 1 Next li Me.lstStatus.Rows = lineCount End Sub Right now the listbox name ...more >>

How do you check if validate has been called.
Posted by tshad at 3/31/2005 1:03:38 PM
I get the following message from one of my buttons where I have CauseValidation=false. Page.IsValid cannot be called before validation has taken place In my routine I need to do: if Not IsValid then exit sub end if This is because I have a custom validator on some of my fields...more >>

How to set Base Control for ALL Controls? (ASP.NET 1.1)
Posted by Jon B at 3/31/2005 1:00:21 PM
Hi All! Are there any ways to set Base control class for all the controls in an ASP.NET application? For example, Base Page can be set in the Web.Config file as follows... <pages pageBaseType="frmCustom,frmCustom" /> Is there a similar setting in web.config for all the ASCX controls to ...more >>

Can I call a SQL Server 2000 DTS package from an aspx?
Posted by lanem at 3/31/2005 12:37:14 PM
How can I do this?...more >>

System.Web.UI.HtmlControls.HtmlGenericControl.Controls.Add
Posted by Martin Eyles at 3/31/2005 12:23:36 PM
Hi, I have a routine that uses System.Web.UI.HtmlControls.HtmlGenericControl.Controls.Add quite a lot to add <v:line>, <v:rect> and <div> tags to a document. Unfortunately, the output HTML markup is VERY messy, as all the tags and their contents end up on the same line. Is there a...more >>

querystring && postback
Posted by Alejandro Penate-Diaz at 3/31/2005 12:18:46 PM
Does anbody know how to clear the querystring between postbacks? tnx, alejandro. ...more >>

putting ASP.NET files online
Posted by Davy Marichael at 3/31/2005 12:07:59 PM
Hello, i'm working with ASP.NET to create my aspx files, the program i've made communicates with a Db (oledb) to read data and to write data.. I've found a server that supports asp,php, mysql,... http://ibizaaaaaaah.europe.webmatrixhosting.net/Login.aspx The login and paswd are; Ibiza, S...more >>

WebService TimeOut!!
Posted by Vai2000 at 3/31/2005 12:01:46 PM
Hi All, What's the difference between Timeout on the Webservice proxy object and Timeout on the auto generated Proxy // foo.aspx.cs localhost.MyWebSvc svc=new localhost.MyWebSvc(); svc.Timeout=1000; // auto generated proxy // WebReferences/localhost/Reference.cs this.Timeout=5000; ...more >>

Exception Management App Block - System.ComponentModel.Win32Except
Posted by Steven at 3/31/2005 11:35:03 AM
Hi all, I am using the Microsoft Exception Management App Block (Enterprise Library) with ASP.NET. When I try to publish an exception I get a System.ComponentModel.Win32Exception: Access is denied exception on both my WinXP development machine and both of my Win2k3 production servers. I...more >>

Double Click on Listbox
Posted by tshad at 3/31/2005 11:17:56 AM
Is there a way to do go to an even using double click? I know there is such an event, but I haven't seen any on the asp.net objects. I tried to add one, but it didn't go anywhere. Thanks, Tom ...more >>

Inheriting Web Forms
Posted by Shak at 3/31/2005 11:14:06 AM
All, What is the best way to inherit from an existing webform? I have a simple ASP page which displays the results of a DB query in a datagrid. I now want to use the existing code, to display the results of a different query, but with the same peripheral code (formatting of the datagrid for ...more >>

What am I missing here from this function/control?
Posted by Microsoft News Group at 3/31/2005 10:58:18 AM
I am populating a dropdown list from a DB Table and cannot get the list to populate! Can anyone see what I am missing? I am telling the dropdownlist to use 2 fields from the record set, then from the codebehind I am pushing the dataset to the dropdownlist. Thoughts? <asp:DropDownList id=...more >>

Data binding at design time. How to work with them. I got error me
Posted by david at 3/31/2005 10:55:02 AM
MY purpose is that develop a web form with textboxes to display database contents. In design time, I follow the .Net document and click data binding property field in each TextBox, select the corresponding colunm name of database table to each textbox. In the Page_Load procedure, I type me...more >>

Persisting Trace.axd
Posted by Shawn Melton at 3/31/2005 10:41:07 AM
I need to log and collate trace information from servers in a shared environment. I'd like to use Trace.axd. Can the tracing info displayed with Trace.axd be persisted? Can it be collated?...more >>

OWC pie chart
Posted by LB at 3/31/2005 10:37:46 AM
Hello everybody I'm learning how to create pie chart using OWC. I'm able now to create a pie. But I can not figure out how to do the following : - for each pie, when mousing over, I would like to display the value in a tooltiptext - for each pie, I would like to have in the middle, the %. ...more >>

Background Thread Error Logging
Posted by Solel Software at 3/31/2005 10:25:04 AM
Hi, I'm running a long running process on a background thread in an ASP.NET application and not sure about how to get the path since the HttpContext.Current object is null. If there is no context, how does one get the path for the error log? -- Sincerely, Mark Fox...more >>

PDF
Posted by Anonymous at 3/31/2005 10:12:03 AM
Hello, Is there a way open adobe reader automatically in the background? I am refereing to the processes: acrotray.exe and acrobat.exe in the taskmanager. I dont want to open the real adobe acrobat window. The user shouldnt know that it is open in the background. Thanks...more >>

How to do that ....... ?
Posted by Sam Carl at 3/31/2005 10:01:43 AM
We have (Windows 2000 Servers and Windows 2000 Professionals desktop) network. Requirement is if the specified user (UserId = UserId1) logged in to our network by logging into his/her workstation (Windows 200 professional) using Userid = UserId1, I want to allow them to launch and query my app...more >>

Detection of data changes in a page
Posted by Frank Esser at 3/31/2005 10:01:38 AM
Hallo, I've got a project with about 10 pages. On each of them the user can do data changes (mostly datagrid interactions; the datagrids are bound to datasets). The user is able to jump to each page of my project without clicking on the "save" button and he can also close the browser witho...more >>

QueryString
Posted by hecsan07 at 3/31/2005 9:55:01 AM
I am a newbie in .NET. I am trying to collect the query string and paste it to the new url. The problem is I am not sure with the particular names of the query string elements are. How can I iterate through the QueryString collection and copy the values to the URL? Please help me with some co...more >>

Sketching
Posted by Chris Mahoney at 3/31/2005 9:41:33 AM
Hi I am developing a VB.NET web app, where I'm replicating a paper form. On the existing form there is a space where users can draw a picture to help show what that want. I need to be able to add this functionality into my web app. How can I do this? The drawings will be quite simple, just ...more >>

directly typing url in address bar
Posted by vips at 3/31/2005 9:36:43 AM
how can we identify whether the web page is opened by typing the link in the address bar or it opened by clicking it from one of the previous pages ?? Is there any way to find this out .....I want the page to open only if it come from the previous page and not by directly typing the url of my w...more >>

ADO leaving Db connection open for duration of session
Posted by Shawn H. Mesiatowsky at 3/31/2005 9:19:37 AM
I am writing a web app that is very Database intensive.. I have to open and close db connections all over the place. I was wondering if there is any reason not to open the db connection in the session_start event, so the connection is availbale for the entire seesion? ...more >>

How to add imageButtons to DataGrid?
Posted by charliewest at 3/31/2005 9:19:02 AM
I am dynamically creating my datagrid, building each column in real-time via code-behind (using c#). The only way i have read to add ImageButtons to my grid dynamically is by creating a separate template class. However, a class cannot create server controls (or at least this is beyond me)....more >>

Component for ASP.Net
Posted by hendrik at 3/31/2005 9:17:10 AM
Hi, If I buy a component from 3rd party to be used in ASP.Net based on the Framework 1.1, then when I upgraded my IIS with .Net Framework 2.0, would the component still can be used? The component was compiled using .Net Framework 1.1. All my ASPX pages will be re-compiled using .Net Framewo...more >>

What to use instead of the CommandArgument in DataGrids?
Posted by charliewest at 3/31/2005 8:37:06 AM
In the datagrid ButtonColumn, for both the pressButton and linkButton, there is no CommandArgument property. My question is: How do i go about programming events using the commandName without knowing the value associated with the row? Is there a different property or a hack i can use? T...more >>

Unicode character in Japanese printing, but only square
Posted by Spencer H. Prue at 3/31/2005 8:29:03 AM
Hello, I am trying to print a unicode character that's in Japanese. In my ASP.NET app (C#) I just set a char to that unicode character and use a response.write(). The char prints, but it is just a square. I set the culture of the .aspx page to japanese, and even though my browser already pr...more >>

deployment/publishing of aspnet apps...
Posted by Terry Mulvany at 3/31/2005 8:15:31 AM
Hello group, Curious as to how you all have chosen to deploy/publish your asp.net apps. Currently though we have a local dev environment, then we stage to a QA server then we publish/deploy. In previous jobs I've always used straight xcopy to publish to production (usually via the Copy Projec...more >>

Multiple http modules
Posted by Ramesh at 3/31/2005 7:57:04 AM
Can we have multiple http modules for a web application like one for url rewriting and the other for authentication ? If possible, how can it be implemented ? Any ideas are appreciated Thanks Ramesh...more >>

showModalDialog, IFRAMES, and document titles
Posted by PeeBee at 3/31/2005 7:33:04 AM
I have researched the issue of setting the title of a window created with a call to showModalDialog. I have found numerous articles, but nothing that answers my particular case (Code abbreviated for simplicity): in spawner.aspx - <script> window.showModalDialog('dialog.htm'); </scr...more >>

Tracing and Web.Config
Posted by Shawn Melton at 3/31/2005 7:29:01 AM
I cannot get a clean compile if I add Trace configuration info into my web.config. This generates an error: <configuration> <system.diagnostics> <switches> <add name="MyTraceSwitch" value="4" /> </switches> <trace autoflush="false" indentsize="4"> <listeners> ...more >>

Good Reasons to port asp.NET VB.NET app to C#
Posted by WebMatrix at 3/31/2005 7:19:07 AM
Hi, I developed ASP.NET application in VB.NET about a year ago; it has been in production since. Now they want to add new features change some of the existing ones, it's not a major rework, but probably a week of work or so. My dilemma is that I have switched to C# since than and want to con...more >>

Temporarirly storing web form data to be inserted into Database ?
Posted by Saket Mundra at 3/31/2005 7:03:06 AM
I have a web application with two forms. After user enters data in first form he is directed to the second form. After Filling the second form as he clicks on save button, the data entered is stored in the database using a Transaction Object, That inserts data, entered by user in both the form...more >>


DevelopmentNow Blog