Groups | Blog | Home


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 > may 2006 > threads for tuesday may 9

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

Visual Studio and Firefox View Source
Posted by Ray Booysen at 5/9/2006 11:48:27 PM
Hi all Has anyone had any success in using Visual Studio and Firefox -> View Source. If I click view source on firefox in a site I'm developing that requires a login, the source I see is the login page. I.e., I don't see the current page I'm viewing even if I'm logged in. Has anyone el...more >>

Draw vertical text
Posted by marss at 5/9/2006 11:47:35 PM
The text for the chart Y-axis title is to be drawn vertically. Here is the snippet of my code. ..... StringFormat drawFormat = new StringFormat(); drawFormat.FormatFlags = StringFormatFlags.DirectionVertical ; //g is object of type System.Drawing.Graphics g.DrawString("Period", font, Brushes...more >>

ASP.NET 2.0 MasterPage renders blank?
Posted by K B at 5/9/2006 10:42:06 PM
Hi, I created a simple MasterPage, then created a content page. I've checked that my MasterPage HTML is correct, but when I run the content page, I get a blank page in IE. My content page is simply two placeholders and a label control. TIA, Kit <%@ Page Language="VB" MasterPageFile="~/Master...more >>

Rewrite ...
Posted by Stan Canepa at 5/9/2006 10:32:29 PM
This post is mostly for discussion. Why rewrite in .NET? Just a general discussion not related to any specific details. I was just looking to see what reasons developers are looking to, to help decide whether they should rewrite their app in .NET. What are the trends being observed of Microsof...more >>

Question about LoginControl (asp.net 2.0)
Posted by FRANCHDREAM at 5/9/2006 8:57:01 PM
I build a website on my computer and copy the files to the Server. When I accessing the website which on the server by server's ip address, everything is right. But when I use the domain name, all of the computers cannot redirect the request url after they are validated except my computer. I ...more >>

User control caching
Posted by Liverpool fan at 5/9/2006 8:34:45 PM
I have a simple user control that consists of a lebel and a dropdown list that I am using for page navigation. I want to cache this control so that it is reused between pages, however when I add the OutputCache directive, the control no longer responds to events What am I doing wrong? <%@ Con...more >>

2.0: "Page cannot be refreshed without sending information again."
Posted by R.A.M. at 5/9/2006 7:36:04 PM
Hello, I have written an .aspx page which calls Calendar.aspx page to select birth date which should be assign to some text box control on first page. Here's the code of first page: Birthdate: <asp:TextBox ID="Birthdate" runat="server" ValidationGroup="Birthdate" /> <as...more >>

Object reference not set to an instance of an object.
Posted by Seok Bee at 5/9/2006 5:46:02 PM
Hi All, I have a webform with a button to add record into the database. When the button is being clicked, the program will assign initial value controls in a detailsview control. When the first time, the button being click, the program works as expected. However, the next click on the butto...more >>



Start Web services as Windows Services start
Posted by Anup at 5/9/2006 5:03:02 PM
Hi All, I have a web services(like Map point 2004) which has to be manually started on rebooting. Can a windows based Service(c#) be created which automatically starts a web service.? If so how can it be done. Plz do reply, anup kamat ...more >>

TreeView and Frames...
Posted by Dan Bass at 5/9/2006 4:17:17 PM
Using: ASP.Net 2.0 C# for code behind I'm slowly migrating a project into the .Net realm from ASP. One of the first things I've been asked to do is replace a tree navigation control (java applet), with the ASP.Net TreeView. The tree resides in a frame, and when a link is clicked, has to ...more >>

Transmit File AND HTML in Response
Posted by john NO[at]SPAM haasbeek.com at 5/9/2006 4:02:57 PM
The standard method to transmit a file from an aspx page to a browser is to stream the file to the response then end the response. The HTML code generated by the aspx page is discarded, and the browser displays or offers to save the binary file instead. I would like to have the browser accept...more >>

IsNumeric keyword
Posted by Vikas Kumar at 5/9/2006 3:42:22 PM
For Each item In Request.Form If IsNumeric(item) Then Try Approved(item) Catch ex As Exception Response.Write(ex.Message) End Try End If Next this is code in vb.net to ...more >>

Excel to database
Posted by Kuldeep at 5/9/2006 3:00:13 PM
Hi All, Can anyone give me some leads towards uploading the excel file contents into SQL Database Regards Kuldeep ...more >>

App_Themes and stylesheets for print
Posted by Pål Andreassen at 5/9/2006 2:52:31 PM
We are using themes (skin files and css files in the App_Theme) folder of a large web application. We are now implementing print functions on our pages. Earlier we've done this by having separate stylesheets for screen and print using the media attribute to specify usage. e.g.: <link re...more >>

add a link to the end of the text label
Posted by Nalaka at 5/9/2006 2:50:54 PM
Hi.... I have a multi-line label that shows the first 80 characters of a long = paragraph. I need to add read-more link to the end of this label so a user click = will show the whole paragraph (on a different page). Current look: Please, restore the database to its latest prodcution.....more >>

Gridview question
Posted by Carl Maloney at 5/9/2006 2:38:28 PM
I am trying to add a record to a gridview. I want one column in the gridview to show 4 checkboxes using C#. I am having a tough time doing that. Any solutions? Thanks Carl -- Sent via .NET Newsgroups http://www.dotnetnewsgroups.com...more >>

IE & the select tag
Posted by bot at 5/9/2006 2:36:47 PM
I have hidden the select tag successfully by layering an iframe over it but when the page is added to the users desktop (active desktop?) the problem comes back. Again if the same page is viewed in an IE window the select tag is successfully hidden. Any suggestions? Thanks ...more >>

Connection Pooling & Users
Posted by Terry Holland at 5/9/2006 2:15:22 PM
I have an intranet application that comprises an ASP.Net application connecting to a SQL Server DB The application has 150 users. At the moment I am connecting using the following setup I have created a MyApp_WebUser user in SQL Server. My connection string, which is stored in my web.config...more >>

Pointing at code behinh in User Control-C#
Posted by aarepasky NO[at]SPAM yahoo.com at 5/9/2006 2:12:23 PM
I have built a user control. When a button is clicked I want it to go to a subroutine in the code behind. But it wants me to put it in the asp code as a script. So how do I point to the code in the other file. I have tried things and all I get is other errors. I want to fix this error, but...more >>

Row Command Firing twice in GridView Control
Posted by chelsea at 5/9/2006 2:07:02 PM
I am using a GridView control with a ButtonField and receiving 2 row command events for each click of the button. Is there a configuration switch that I can turn that will ensure I only receive one call to my handler? I'm using the most basic wiring as it comes out of VS 2005.. Thanks in a...more >>

link attribute
Posted by simonZ at 5/9/2006 2:04:43 PM
I would like to add this attribute to content page: <link rel="stylesheet" media="print" title="Printer-Friendly Style" type="text/css" href="printStyle.css"> This attribute should be putted into the header of the page. Since my content page has master page and header is only at the maste...more >>

How to build string with new lines and display on ASP.NET page.
Posted by retsam at 5/9/2006 1:40:12 PM
All, I'm working on an ASP.NET 2.0 (C#) page and have a question on how to build a string that includes line feeds (new lines) that displays properly on an ASP.NET page. Here's what I got: ..aspx page <asp:Label ID="LabelMoreInformation" runat="server" Text=""></asp:Label> code-behind f...more >>

Lost columns in datagrid
Posted by Reg at 5/9/2006 1:17:02 PM
Hello, I have a datagrid with a checkbox column created in VS. The user can filter the data and obtain a grid (with dimanics columns : AutoGenerateColumns=false) in which he selects the lines. When he submits the query, the datagrid contains only the first column. Where are my others colu...more >>

shell commands via ASP
Posted by George Lake at 5/9/2006 1:15:26 PM
Hi, I need to run a few commands from the shell and display the output via ASP (VB) Any ideas? ...more >>

XML ordering with gridview
Posted by xerj at 5/9/2006 12:56:29 PM
Is there a way to control the order in which records are displayed using a gridview of an XML file, or is it always just read from the top down? TIA ...more >>

SqlDataAdapter question
Posted by kempshall at 5/9/2006 12:37:50 PM
When I use an SqlDataAdapter to fill a DataSet from a database, do I need to explicitly open and close the SqlConnection that I'm using? For example, I have code that looks like this: SqlConnection myConnection = null; try { myConnection = new SqlConnection(ConfigurationSettings.AppSett...more >>

OnClick method is not called
Posted by Little Gazer at 5/9/2006 12:32:02 PM
I want to select a row without using a button column, but instead just click anywhere on the row. I also don't want to write a new control. I am using the following code to create an onclick attribute to each cell and I want to call my function onClickTableCell(), but when I click the DataG...more >>

Application restarting.
Posted by Kevin Antel at 5/9/2006 12:13:51 PM
We've put the application in its own pool and turned off all recycling. Yet, when we get to a certain point in the application, we get kicked back to the beginning of the application and the event error is below: (We don't do any writing to the web.config and the only thing we can see in filemon...more >>

ASP 2.0 Net.Mail.SmtpClient Delay
Posted by mazdotnet at 5/9/2006 11:58:10 AM
Hi everyone, I'm coverting some of our code here from the old way of sending mail in ..NET 1.1 to the new .NET 2.0. However, everytime I switch the code to the new method there is a delay of 1-2 minutes before an email is sent (this is on my local computer pointing to my local smtp -> localhos...more >>

"aspnet_wp.exe could not be started"- Error code 80070545
Posted by VMI at 5/9/2006 11:39:02 AM
In the Event Viewer I've been getting this error when I try to run an already-made web application: "aspnet_wp.exe could not be started. The error code for the failure is 80070545. This error...". I've tried all the possible solutions in "http://support.microsoft.com/default.aspx?scid=kb;EN-U...more >>

Data display?
Posted by Ben R. at 5/9/2006 11:26:02 AM
Hi guys, I've got a DB table of timecards with these fields in the table: ID (Int) UserID (Int) DateWorked (DateTime) HoursWorkedOnThatDate (Double) I'd like to display a grid, with Monday - Sunday across the top (in columns) and the users in rows vertically. I am not conceptually awar...more >>

Databinding 3 tables
Posted by MRW at 5/9/2006 11:13:16 AM
Hello! I've been searching and searching for an answer, so hopefully, somebody can provide a little help! [Smile] I have a database with three tables and their fields (made nice and simple): tblMain: ID, DateEntered tblSub1: SubID, ID, Title tblSub2: SubID, ID, Title ID is what binds...more >>

QUERY: Adding more JS/DOM attributes to DataGrids
Posted by Dhruba Bandopadhyay at 5/9/2006 11:00:38 AM
I know that JavaScript lets us add: ondragenter, ondragover, ondragleave, ondrop events to normal HTML table td tags. This lets us do highlighting of table cells/rows, and capture drag & drop events. So to handle ondrop we can use JavaScript: this.OnDrop = function(obj) { obj.parentEle...more >>

How do I browse a FTP directory location in C# and download?-Urgen
Posted by SDRoy at 5/9/2006 11:00:01 AM
Hi Can someone please tell me how I can browse a FTP directory location in C# and then download. I am using something like: DirectoryInfo DirInfo = new DirectoryInfo("ftp://ftp.mysite.org/myftp/MYINBOUNDTEST"); FileInfo[] Files = DirInfo.GetFiles...more >>

Formatting Datagrid Export to Excel
Posted by John Walker at 5/9/2006 10:54:02 AM
Hello, Below is my code for exporting a datagrid to Excel. It works fine, but we're hoping to format the output as well - setting the font size and type, and giving each column a specific width, possibly bolding some text. Currently we are using a macro to do this, but we would like the re...more >>

Bandwidth Testing in Asp.Net 2.0
Posted by Richard at 5/9/2006 10:44:02 AM
Our client's web app will require (or at least recommend) that users have broadband connection. Other than the myriad of web sites that one can go to test bandwidth, are there any custom controls or sample code that you can point me to for use in asp.net 2.0? I'd rather test from within our we...more >>

Ok, here is something strange I am hoping you can help with
Posted by Chris Bates at 5/9/2006 10:24:02 AM
We currently have an IIS 5 Virutal Directory setup as an application. This application is called "LogonScripting", and under it rnus a bunch of classic ASP stuff. I have been tasked with moving my ASP.NET application under a subfolder of "Logon Scripting". The folder they would "like" t...more >>

GridView Hierarchical View - Gridview in Gridview
Posted by mgonzales3 at 5/9/2006 10:19:03 AM
What is best method to create a nested gridview? Thanks...more >>

Load Profile object when session starts
Posted by ryan.mclean NO[at]SPAM gmail.com at 5/9/2006 10:14:51 AM
Hi all, Playing with this new profile stuff and I need to load the Profile object with values when the user's session starts. The profile object does not seems to be available in the session_start in the global.asax .. . . is there a good way to handle this? Thanks for any help you can offe...more >>

System.web.HttpPostedFile
Posted by MSDN at 5/9/2006 10:14:34 AM
Does anyone know why I am getting Invalid cast exception??? For Each oFile As System.web.HttpPostedFile In Request.Files ....... etc..... Next I Checked that Request.Files(0).GetType.tostring = "System.web.HttpPostedFile" So what is the issue here??? I can just use a loop but .......more >>

the resource cannot be found
Posted by Axford at 5/9/2006 10:03:02 AM
I have build a site in Vis. St.2005, asp.net 2.0. On the dev. machine everything works ok., launching via http://localhost and launching via Vis.St. I copied all files to a virtual directory of another server. All settings are te same. The ASPNET account has R&Exe on all folders. In IIS I c...more >>

Password Recovery Email Encrypted
Posted by Rick Gamble at 5/9/2006 9:56:33 AM
When the password recovery control sends forgotten passwords via email I get the message noted below. Is there a way to decrypt this to make it usable to the user who requested it? Please return to the site and log in using the following information. User Name: rick Password: =Zk2V]A10r...more >>

capture application output
Posted by George Lake at 5/9/2006 9:40:35 AM
Hi, How can I capture the text output of a console app? For example, I would like to capture the outpur of "qwinsta" Thanks. ...more >>

Refreshing web page
Posted by Joe at 5/9/2006 9:40:02 AM
Hello All: I have a business rule that says that a web page needs to be refreshed every 5 miinutes. Do any of you have expereince with this? What is the best way to implement it? TIA, -- Joe...more >>

System.Net.WebException:
Posted by zolof at 5/9/2006 9:40:02 AM
Hi, I am trying to make a simple file updload WinForm app. Here's the code: WebClient webClient = new WebClient(); webClient.UploadFile(new Uri("http://localhost/WebSite/Upload.aspx"), "c:\\bin.zip"); My IIS 5.1 Web server uses default configuration. If the file is less than 5Mo everything...more >>

datagrid to text file
Posted by CSharpguy at 5/9/2006 9:34:02 AM
I have a datagrid being populated from an XML file. The datagrid also has textboxes in it to allow the user to enter in data, now I want to be able to export the data in the grid even the text boxes into a text file. I see ways to export it to excel and a csv file, but how can i dump it to a t...more >>

How to kill a terminal server session (VB.NET)
Posted by George Lake at 5/9/2006 9:29:45 AM
Hi, Is there a way to kill a Terminal Server session from vb.net? I have to constantlly access our servers to reset ureser that get hung. I would like to have a web interfave that I can access via my PDA/Phone. It dose not have to be a wab page that does this. I could write to a queque that ...more >>

GridView problems with viewstate events overriden.
Posted by cheloman12 at 5/9/2006 9:08:02 AM
Hi, I posted this problem some days ago. I repeat it because it was no answered. If description is confused, please make me know and i'll try to explain the case better. Thanks a lot, Marcelo "I’m implementing SavePageStateToPersistenceMedium and LoadPageStateFromPersistenceMedium i...more >>

SelectedNodeStyle.ImgURL bug?
Posted by James Jefferies at 5/9/2006 9:01:03 AM
Heyas! Using the TreeView control on a website built in VS 2005, the SelectedNodeStyle.ImgURL setting doesn't seem to work. Here are my settings: ImgSet = "Custom" NodeStyle.ImgURL = 'image1.gif" NodeStyle.ForeColor = "Black" SelectedNodeStyle.ImgURL = 'image2.gif" SelectedNodeStyle...more >>

The file system has let me down (writing XML directly to the DB)
Posted by darrel at 5/9/2006 8:42:12 AM
After months of trying to track down a bug where, randomly, on rare occasions, our XML files only get half-written from our application, we're throwing up our hands and moving it into the DB. So, instead of writing our XML files to the filesystem, I'm just going to send the XML straight to ...more >>

Initiating save event in iframe from parent
Posted by jkeel NO[at]SPAM charter.net at 5/9/2006 8:26:50 AM
Here's what I'm trying to do (any opinions whether this is OK or plan stupid are appreciated): I have a parent web page that will contain a Page Title at the top and a save and probably a cancel button at the bottom. The body of this page will be an iframe that will contain an asp.net page....more >>

Int64 outside range of the Integer setting on Compare Validator
Posted by Jono Jones at 5/9/2006 8:07:02 AM
Hi there, How can I validate large numbers that are too big for int32 which Comparevalidator uses. Int64 can handle the value 9999999999999999999 (18 nines). Help! Many thanks, Jono...more >>

Reading input field from innerhtml span
Posted by Nez at 5/9/2006 6:42:09 AM
Help needed! Hello, I have looked everywhere for a solution to my problem and this is pretty much my last resource. I have created a table in a span with the innerhtml command in my code behind. In this table I have created textbox html input fields. Now I need to allow the user to chang...more >>

Variables in Global.aspx
Posted by barry at 5/9/2006 6:19:29 AM
Hi I keep username and password in Global.aspx static public string un = ""; static public string pw = ""; after a user logs in i update un and pw with the input values. but if i start another instance of the webpage in a new instance of the webbrowser eg http://localhost/default.aspx ...more >>

VS 2005 Web Application Project V1.0 Released
Posted by Bradley Bartz at 5/9/2006 6:00:00 AM
<P> <DIV><FONT size=2><SPAN class=166085112-09052006><FONT face=Arial>Scott Guthrie has just announced the release of </FONT><A id=viewpost.ascx_TitleUrl href="http://weblogs.asp.net/scottgu/archive/2006/05/08/445742.aspx"><FONT face=Arial>VS 2005 Web Application Project V1.0 Released</FON...more >>

Page.IsValid
Posted by Fetty at 5/9/2006 5:37:37 AM
if "Page.IsValid" comes up false, how can I see what controls are not valid? Dave ...more >>

HTML input type=image in ASP.NET 1.1 causing current page to reload
Posted by jon NO[at]SPAM jongianni.com at 5/9/2006 4:55:41 AM
Hi This might be an easy one to answer but I have a web form in an ASP.NET 1.1 application with a hand-rolled HTML image button as follows which opens a help guide in a new window: <input type= "image " id= " imgHelp " onclick="javascript:void(window.open('<% Response.Write(ConfigurationSe...more >>

what's wrong with this code?
Posted by huzz at 5/9/2006 4:49:01 AM
I'm trying to pass the querystring in the design view as shown below, but it doesn't work.. any suggestion? <A href="javascript:popUp('location_details.aspx?LocationID=<%#Request.QueryString["ClientID"] %>','610','440')">[View]</A> Many thanks in advance. huzz...more >>

Global.asax.cs and Session Object
Posted by C at 5/9/2006 4:37:01 AM
Hi, I want to add a an object to a Session in my global.asax.cs but am unable. I try to do below in my Application_AuthenticateRequest Session.Add("Employee", employee); and I get an error stating "Session state is not available in this context. " I have the following imports in my g...more >>

2 form element in a single aspx page
Posted by ss at 5/9/2006 3:21:02 AM
hi, can i have a 2 <form> </form> element in a Single aspx page? can anybody throw some light on it and explaining the what is the <form > </form> element doing in .aspx page? bye ss...more >>

URL
Posted by news.microsoft.com at 5/9/2006 2:50:07 AM
Hi all I am using CSS to specify image urls on my master page. As a result when I navigate to a page that is not in the website's root folder all of these images are broken. I would like to make all of my site's URLs absolute, especially within my CSS. To do this I need VS2005 to use t...more >>

syncing design and code after deployment in ASP 2.0
Posted by Dunc at 5/9/2006 2:32:48 AM
I'm pre-compiling and deploying my ASP.NET 2.0 project to a development server (I've checked "Allow pre-compiled site to be updateable") where a designer is modifying the aspx pages. Occasionally, his design requires a code change, and I need to download the ASPX files to update my project. ...more >>

Application slows down
Posted by mamin at 5/9/2006 12:46:37 AM
My application works under IIS 5.1 and is connected with oracle 9.2 database. After a few days of working it starts to work slower aned slower. I've checked connections with database if they are closed but in Enterprise Menager Console - Instance - Sessions all connections are closed. I've noti...more >>


DevelopmentNow Blog