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 2007 > threads for tuesday march 13

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

How to Avoid Dynamic Port in VS 2005.
Posted by BSM at 3/13/2007 11:05:33 PM
I have created one Web Service in VS 2005 Team Edition. In the Website Creation Template, I chose "HTTP". When I run the application, the URL was like this http://localhost:1245/WebServ1/Service.asmx When I try to include this WebService in another app, I was in the situation to include t...more >>


control alignment problem with diff versions of IE
Posted by snehal patil at 3/13/2007 10:49:25 PM
hi, I have created a asp.net web application with one aspx file . I am using vs 2005. On my machine this application works properly (using IE 6). But when i installed this application on diff machine with IE7 , alignment of controls is changed. Can anybody give the answer of Why this happen...more >>

Difference between prerender and render event.
Posted by archana at 3/13/2007 9:48:25 PM
Hi all, Can anyone tell me difference between prerender and render. thanks in advance. ...more >>

SessionState & Remoting
Posted by Dan Avni at 3/13/2007 8:54:44 PM
Using VS 2003, i have a web application that has a business layer & a data access layer. on most installations of my web site, the sql server is residing somewhere in the network and i configure the DAL to have the SQL connection string. i now have a customer who decided that there should be a ...more >>

Hidden Text boxes
Posted by DanWeaver at 3/13/2007 6:06:24 PM
Due to the lack of persistence in a listbox element across postbacks I have been forced to use textboxes to gather eg removed items (removed via a javascript) so that the listbox can be repopulated on postback amongst other things. I now find (stupidly I didnt test this before) that when an as...more >>

Unable to debug asp.net app
Posted by Sehboo at 3/13/2007 6:06:10 PM
I just installed VS 2003 and now trying to run the asp.net application. But I get the message that "Unable to start debugging on the web server. you do not have permissions to debug the server. Verify that you are member of the debugger user group on the server. I am user of this group. Thi...more >>

Uploading a file in ASP
Posted by G.G. at 3/13/2007 5:47:23 PM
Hi to all, I have developed an ASP and VXML application. An ASP page record a video with a form and the VXML tag <record> and passes the parameters, thanks to a submit and the POST method, to another ASP page which would have to upload the video on a IIS web server, but it doesn't work. I ca...more >>

Asp.Net Calendar: get date on page load
Posted by dean.h.brown NO[at]SPAM gmail.com at 3/13/2007 5:19:20 PM
How do you get the Calendar date when the page first loads? I have this code (which works once the user selects a date) - I get "12:00:00 AM" for the label.text when the page first loads: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load ...more >>



Retrieving SiteMap Menu Name from Master Page, ASP.Net 2.0, VS 2005?
Posted by Luqman at 3/13/2007 5:07:20 PM
I have setup a Menu using Master Page, and I want to retrieve the name of the selected Menu. I tried using following code in Page.Master, Protected Sub MainMenu_MenuItemClick Event Session("MyMenu")=mainmenu.SelectedItem.Text End Sub But the above code is not working. My menu cont...more >>

Uploading Files in .Net
Posted by Rob Meade at 3/13/2007 3:59:14 PM
Dear all, We have purchased a product called SA-FileUp which we have used in our organisation for a number of years, I'm quite an an avid supporter of it, recently I've been trying to ensure some of our older applications which used native .Net uploading moved across to our .Net implementat...more >>

loading and dumping controls dynamically
Posted by news.microsoft.com at 3/13/2007 3:55:55 PM
I'm strongly considering abandoning the one-physical-file-per-page model and going with an arcitecture that simply loads content from classes dynamically. There will be only one page that a user will go to, and all variation from navigation will come from AJAX calls to load and replace conte...more >>

Access excel file in HttpPostedFile directly?
Posted by Ralph Watermann at 3/13/2007 3:16:57 PM
Hi, we upload an Excel-file via a FileUpload-Control into an HttpPostedFile object. Now we want to access the contained data directly without saving it to a temp file. Is this possible? So far we have to to a HttpPostedFile.SaveAs(strFileName) and use a connection string to access the d...more >>

Get All parents of selected nodes in asp.net 2.0
Posted by Ted Ngo at 3/13/2007 2:22:56 PM
Hi All, I am using treeview control in asp.net 2.0. this is my treeview: ZZZZZ NNNNNN HHHHHHH KKKKKKK AAAA BBBB CCCC DDDD LLLLL 11111 22222 333333 XXXXX 12345 5678 YYYYY if I selected "DDDD" node, I ...more >>

SQLConnection' is not defined
Posted by Bret at 3/13/2007 2:19:12 PM
Please Im getting the above error due to running code below from .aspx.vb form. Ive taken out some code below to simplify this question. Partial Class Process_Master Inherits System.Web.UI.Page Protected Sub lst_Employees_SelectedIndexChanged(ByVal sender As Object, ByVal e As System....more >>

Expanding a treeview without postback
Posted by JJ at 3/13/2007 2:17:07 PM
Is there any way you can expand a parent node on the treeview control _without a postback_ by clicking on the node text (NOT clicking the expand image URL) ? I want to format the treeview node to look like a column of buttons that expand to show the child nodes (if there are child nodes) qi...more >>

How to allow classic ASP pages in Visual Studio 2005 development server?
Posted by Jude at 3/13/2007 1:42:33 PM
IIS on my local machine serves both ASP and ASP.NET pages fine but when I debug using the built in Development Server that comes with Visual Studio 2005 I get the following error when I try to cross to a classic ASP page: Server Error in '/myapp' Application. ---------------------------------...more >>

Attach to running process?
Posted by Kees de Winter at 3/13/2007 12:58:42 PM
Is it possible to attach the VS2005 debugger to an already running, and published website? If I choose "Attach to process" from the menu and then select the right process, set breakpoints, run the code, nothing happens. Thanks for your help. -- Kees ...more >>

GridView. What is wrong with my code? Thank You.
Posted by shapper at 3/13/2007 12:46:51 PM
Hello, I need to loop though each row in a GridView and if the checkbox is a Template Field is checked I want to display the value of an invisible column named "LevelName". I tried everything I could think off but I always get an error or no value. Could someone please let me know what mig...more >>

Wiring a GridView Programmatically - Is It Possible??
Posted by Tomasz at 3/13/2007 12:38:52 PM
Hello Developers, Here is interesting problem I just came across: how do I wire a GridView control programmatically? Here is my sample code using Object Data Source: protected void Page_Load(object sender, EventArgs e) { ObjectDataSource ods = new ObjectDataSource("MyTestTableAdapter...more >>

Speed issues with 2.0 app referencing 1.1 assemblies
Posted by Stefan Barlow at 3/13/2007 12:08:28 PM
I am experiencing a lot of speed issues on initial app loads where we are referencing 3rd party 1.1 assemblies from 2.0 code. Those 1.1 assemblies reference things like System.Windows.Forms (totally unnecessarily I might add). I'm assuming our memory footprint will practically double by ...more >>

Get Application Pool Name
Posted by Serge at 3/13/2007 11:53:27 AM
How can you get the application pool name that handles the web request? Currently we display the server name using: <!-- <%= Server.MachineName %> --> but would like to also display what application pool the page came from. Thanks, Serge ...more >>

Build Numbers in ASPX Pages
Posted by nautonnier at 3/13/2007 11:39:47 AM
This may have been covered before but I didn't find anything after doing a google search. Does VS.NET 2005 have a way to put build or version numbers within aspx pages? I'm envisioning an attribute on the page directive or maybe its own tag. This would be a tremendous help to keep track wheth...more >>

Only outside VisualStudio - Object reference not set to an instance of an object.
Posted by Michael Turner at 3/13/2007 11:24:32 AM
Hi, I seem to be getting an error outside visual studio - Object reference not set to an instance of an object. - This only appears outside visual studio when accessing a page which uses a class library I have created the most upto date dll appears to be in the Bin folder for the site so I ...more >>

Erro calling stored proceedure
Posted by Problematic coder at 3/13/2007 11:03:13 AM
The intention is to call a stored proceedure which sets flags in the database, this requires no parameters and the page does not need an output from the stored proceedure, though is this is necessary I could change that. Here is the code I am using: Dim objcom2 = New Data.OracleClient.Oracl...more >>

All web projects crash trying to find uninstalled assembly
Posted by tcc.se7en at 3/13/2007 10:44:15 AM
I was having a bit of an issue with assembly references, but now it seems to have spiraled even further out of control. Not sure what I did to break it, any help is appreciated. Basically, I have this dll, which was a Web Application Project with some classes in it. I was trying to find a way ...more >>

GridView help please...
Posted by trint at 3/13/2007 10:24:15 AM
I need something like a GridView that will allow me to do exactly what I've drawn in this display: http://www.windintrees.com/example1.gif I've tried GridView1, GridView2 and GridView3 to drill down, but after GridView1 and GridView2 displays, GridView2 errors out since I have to c# programmati...more >>

how is it possible?
Posted by Bapu at 3/13/2007 9:03:45 AM
In IIS7, appcmd.exe is there. This is the part of help of appcmd clear config /? in windows vista see below Both the command are same but functionality different... what a great technology!!! Isnt't it?? appcmd clear config "Default Web Site/" -section:defaultDocument Clear the ...more >>

Problem with ASP.NET 2.0 Location override of Forms Authentication settings
Posted by n33470 at 3/13/2007 8:03:08 AM
Hi all, We have an asp.net 1.1 app that we're in the process of converting to 2.0. What I'm about to describe runs just great in the 1.1 framework, but does not work in the 2.0 framework. This app uses forms authentication and denies all unauthenticated users. There is a location overr...more >>

image url question
Posted by rodchar at 3/13/2007 7:36:25 AM
hey all, i'm doing the "use an aspx page for ImageUrl" trick and ran into wall. i need to take an existing image that resides in the application root in a folder called, none other than, images and make that show up. Could someone please help me with the syntax? Also, if i could be doing thi...more >>

drop down list - auto post back - please wait
Posted by C10B at 3/13/2007 7:22:03 AM
hi all, I have 3 drop down lists. When any of them changes there is an auto postback to do some server stuff. It is not always obvious (as a user) that a page reload has been started, and you can start selecting other options and then suddenly the page refreshes. It would be great to show...more >>

Is Nothing problem
Posted by shapper at 3/13/2007 6:17:06 AM
Hello, I have a generic list as follows: Dim rows As New Generic.List(Of row) Now I have a row: Dim myRow As row I tried to check, further in my code, if the row is nothing: If myRow Is Nothing Then .... End If I get an error: "Is" requires operand that have reference types but thi...more >>

Request.IsSecureConnection Implementation for use with Apache
Posted by paulshannon at 3/13/2007 5:59:44 AM
Hi, Does anyone know the actual implementation of Request.IsSecureConnection? We want to mimic an SSL request from a Apache proxy request so that we don't have to setup SSL on the windows box for the proxy request. At the moment, the windows box only sees plaintext HTTP requests, but we ca...more >>

Imagebuttons
Posted by rcoco at 3/13/2007 5:51:28 AM
Hi everyone, I'm using smilies in a datagrid so that when a user selects one smiley it is installed into sqlserver how could i go about this? The smiley is an ImageButton. Thanks ...more >>

asp.net 1.1 generates spurious whitespace
Posted by ajfish NO[at]SPAM blueyonder.co.uk at 3/13/2007 5:47:05 AM
hi, I have an asp.net webform that contains some source like this <img src="..."><asp:hyperlink id=".." runat="server"...> with no whitespace between the tags. when the page is rendered, it comes out like this: <img src="..."> <asp:hyperlink id=".." runat="server"...> there are 2 t...more >>

Imagebuttons
Posted by rcoco at 3/13/2007 4:30:30 AM
Hi everyone, I'm using smilies in a datagrid so that when a user selects one smiley it is installed into sqlserver how could i go about this? The smiley is an ImageButton. Thanks ...more >>

Sending a zip file with Content-Disposition issue: corrupt (half-length; strange!)
Posted by kierenj NO[at]SPAM gmail.com at 3/13/2007 4:19:35 AM
Hi, I'm trying to send a zipfile to a client using Content-Disposition: attachment. Done it before and it works fine. My code is below: context.Response.Buffer = false; System.IO.MemoryStream stream = ArchiveUtil.CreateArchive(new string[] { "c:\\...more >>

Advice on the best practice please...
Posted by Nemisis at 3/13/2007 3:41:05 AM
Guys, I would like to write a error handler, or something, that will allow me to write to a database when an error occurs on my site. I am trying to implement this in the global.asax file a the moment, but am having problems when a 404 error occurs, i cant access sessionstate. Is writing t...more >>

App does not redirect to custom error page with ~(tilde) in URL
Posted by Alf at 3/13/2007 12:12:06 AM
Hello all, I am having trouble dealing with ~(tilde) in my .Net 1.1 web application, specially when it comes through the URL. For example, when someone requests the following URL: www.mysite.com/~mypage.aspx, my web application will through the following error (with custom errors turned off...more >>


DevelopmentNow Blog