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 wednesday may 10

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

Reporting Solution Recommendations?
Posted by Spam Catcher at 5/10/2006 10:55:17 PM
Hi all, We're looking at upgrading our VS.NET Crystal Reporting solution with something more powerful and user friendly. We build distributable apps, so we're looking for a reporting solution which can be embedded within the product. The two most important criteria is ease of use and th...more >>

Problem with cookies
Posted by Patxi at 5/10/2006 10:05:26 PM
This is the first time I try to use cookies, and despite of reading some tutotials, I'm have real trouble to make it work correctly. My cookie reading code is in Master Page. When I click on a test button (in a WEb User Control inside the aspx page), cookie value is displayed in Master Page...more >>

Is there no pivot table, or horizontal mode for a gridview in 2.0?
Posted by cmay at 5/10/2006 9:53:31 PM
I am trying to make the datalist work for me in presenting data in a "pivot table" manner, but it isn't exactly pretty. I have seen some complex code examples of people trying to re arrange a datagrid to do this. Is there no easier way to get this? ...more >>

Conversion from type 'DBNull' to type 'String' is not valid
Posted by Chris at 5/10/2006 9:24:44 PM
Hi again, I want to read all the records of a table with 2 fields. The problem is that some records have null value in the second field. This code below works when all records have both fields fiilled, but gives the error: "Conversion from type 'DBNull' to type 'String' is not valid" when not...more >>

Save Byte array to file
Posted by Chris at 5/10/2006 9:11:19 PM
How do I save an array of bytes to a file? I am binding a update parameter to a fileupload control. It passes the file to my object as a Filebytes datatype. I am assuming it is just an array of bytes and I can assign it to a byte() array. Just not sure how to save it as a file. ...more >>

error: "No data exists for the row/column"
Posted by Chris at 5/10/2006 8:16:16 PM
Hi, I want to show the whole recordset. There are 42 records and 2 fields. .... comd = New System.Data.OleDb.OleDbCommand("select name,lok from pc", oConnection) dtreader = comd.ExecuteReader for i=0 to 41 for j=0 to 1 dtreader.Read() f=dtreader.ite...more >>

File Upload Posted Files Collection
Posted by Chris at 5/10/2006 7:47:33 PM
Can the files posted during an upload be accessed as a collection. I seem to remember they can but can't seem to find anything on it. ...more >>

newbie: webpart & Untitled
Posted by Jeff at 5/10/2006 7:24:30 PM
OS: XP pro IDE VS 2005 .NET ASP.NET 2.0 I've created a very simple asp.net page that contains only 1 WebPartZone. In this WebPartZone have I placed a Calendar control (webpart).... The top of this calendar have the text "Untitled".... my PROBLEM is that I don't want the text "Untitled" ...more >>



ASP.NET 2.0 session availability in Global.asax?
Posted by kingski at 5/10/2006 5:57:22 PM
I have a web site created with ASP.NET 1.1. availability Global.asax: protected void Application_PreRequestHandlerExecute(Object sender, EventArgs e) { SetCulture(); } private void SetCulture() { ...more >>

e-commerce
Posted by Samuel Shulman at 5/10/2006 5:49:01 PM
Hi I want to set up my first e-commerce website. Any clues where to begin Thanks Sam ...more >>

Url.Fragment property is empty
Posted by Roman O at 5/10/2006 5:02:40 PM
Hi all, Why Url.Fragment property is always empty? ...more >>

What is the correct setting for Recycle Worker Processes in default application pool
Posted by Jordan Tan at 5/10/2006 4:24:12 PM
120 or 1740 (mins) ? The following guide suggests 120 but the default setting from installation is 1740. ms-help://MS.MSDNQTR.2006JAN.1033/cpguide/html/cpconRecyclingApplicationPoolSettings.htm ...more >>

Website Administrative Tool Error
Posted by Vishal Gupta at 5/10/2006 3:23:22 PM
Hi This is Vishal this side.I have been trying to create a new sample website using the new Membership Provider Class. Now when I try to a create a new website and then hit on the Website Administrator Tool and then hit on Security I get this error "There is a problem with your selected ...more >>

Client-side validation on user control
Posted by David Davis at 5/10/2006 3:20:01 PM
I cannot get a web user control to validation client-side using a required field validator. It only validates server side. I have a web user control in .net 2.0. I have a single text box on it. I have a public Text property defined below: <ValidationProperty("Text")> _ Partial Class ...more >>

Re: shell commands via ASP
Posted by George Lake at 5/10/2006 3:08:22 PM
Ok, I tested it in VB and returns nothing. Output is nothing. I am using impersonation (as a domain admin). Dim p As New Process ' #tells operating system not to use a shell; p.StartInfo.UseShellExecute = False '#allow me to capture stdout, i.e. results p.StartInfo.RedirectStandar...more >>

Is this secure
Posted by Gef.Mongoose NO[at]SPAM gmail.com at 5/10/2006 2:48:02 PM
I MD5 encrypt passwords in a user table of my database. I have a global application object (initiated in global.aspx) which contains a few static members (for counting users online etc). because the MD5 encrypt algorithm is used on creation of a new user, and on login of a user, I considered put...more >>

<asp:SqlDataSource>
Posted by Arne Garvander at 5/10/2006 2:47:02 PM
How do I set parameters from code for a SqlDataSource? -- Arne Garvander (I program VB.Net for fun and C# to get paid.)...more >>

asp .net 2.0 install
Posted by phaniva NO[at]SPAM gmail.com at 5/10/2006 2:38:52 PM
Hi, I have a 2.0 website. I added a web deployment project to it. I also created a setup project to generate msi file. On my IIS I have both asp ..net 1.1 and 2.0. The virtual directory created by setup is using asp ..net 1.1. I had to manually change asp .net version after install for the we...more >>

Parse Large Text File
Posted by liming at 5/10/2006 2:32:40 PM
Hi all, I have to parse two text files on a weekly basis. Each range from 300kb to 1mb in total. Each text file has 5 columns (name,id, dollar, startdate,enddate), everytime, a) I need to parse each row, extract each column 2) check if the data already exisinst in the db between startdate ...more >>

Datagrid : viewstate
Posted by Reg at 5/10/2006 2:22:02 PM
Hello, I already posted a question about a problem with a datagrid. ("Lost columns in datagrid", thanks for JohnH) I dynamically create columns in a datagrid and the user selects lines (column of checkbox created in Visual Studio) but the dynamics columns do not exist any more. I tried t...more >>

Server side Timer component in ASP.net
Posted by Neo at 5/10/2006 2:10:06 PM
Hello All, In desktop application whenever we wanted to have some code repeated running we used to have timer component in Visual Basic. I want to have same logic on serverside now. Like creating some reports every day, sending mail at certain time etc, which user access everyday. Currently, ...more >>

Creating my own webserver
Posted by Edwin Knoppert at 5/10/2006 1:50:10 PM
Afaik there was a topic that somehow invoked by a custom exe i could start the dot net framework to become a webserver *itself*. Maybe you ever heard of this? I lost the topic. The idea is that i want to run ASP.NET application *not* using the Windows webserver but via that specific featu...more >>

images nightmare
Posted by rodchar at 5/10/2006 1:31:02 PM
hey all, if i find a clip art on office site, what's the best way to get that resized so it can show up in a background of a banner? thanks, rodchar...more >>

Window Services XML Export Error
Posted by KoolAidGrrl at 5/10/2006 1:18:05 PM
Hello, Currently have a Window Services program in ASP.Net and C#. It automatically runs a procedure to export a XML file and I gave been receiving this error every time it runs System.InvalidOperationException: It is invalid to show a modal dialog or form when the application is not runnin...more >>

DataTable has now rows in it after fill
Posted by Andre at 5/10/2006 1:11:01 PM
I am ruinning this in the global.asa VIA Visual Studio VB .NET (framework 1.1) I have a access database with a table called tblCounters with a feild called Counters with on row of data in it with a number. When I run the following code Imports System.Data Imports System.Data.OleDb Sub ...more >>

left nav items
Posted by rodchar at 5/10/2006 12:21:02 PM
hey all, would it be wise to make the left navigation list dynamic? i was thinking to make a .csv file that had the name,link address, etc. And then have the code read that file, load into an array, and populate a datalist to create my left navigation list on my .aspx page. Is this too much...more >>

"resource not found"
Posted by Axford at 5/10/2006 12:21:01 PM
Hello everybody, In IIS 6.0 I have a website "AppName" on tcp port 100. Forms authentication is configured with Login.aspx and the start page is Start.aspx. Now I can browse to http://localhost:88/Start.aspx but the Forms authentication is skipped...?! When I browse to http://localhost:8...more >>

Session State, Application Restarts 24*7 website
Posted by Mike at 5/10/2006 12:03:03 PM
When running a 24*7 website, we need to keep the our asp.net 2.0 web applications from restarting as much as possible. Especially during any deployments of aspx, aspx.vb files and possible .vb classes that are in the App_Code folder or classes in any other folder from our devlopment servers t...more >>

Repeater control -- Using e.Item.DataItem
Posted by Eric at 5/10/2006 11:51:03 AM
Hello, I have a repeater control bound to an XmlDataSource. Works great. Now, I want to handle the ItemDataBound event--the e.Item.DataItem object in particular. Its type is System.Web.UI.WebControls.XmlDataSourceNodeDescriptor, which contains the XmlNode needed to reference the data. ...more >>

How to get the columns width?
Posted by ad at 5/10/2006 11:43:34 AM
By default, columns in the GridView control are sized automatically. How can I get the width of each column in a GridView which render to html ...more >>

No mapping exists from object type System.Web.UI.WebControls.
Posted by aarepasky NO[at]SPAM yahoo.com at 5/10/2006 11:35:48 AM
I am getting the the message on the command: cm.ExecuteNonQuery(); Complete message is: No mapping exists from object type System.Web.UI.WebControls.TextBox to a known managed provider native type. This is with 2005 Express edition of ASP.NET using C#. The SQL connection string is:...more >>

Maintain a DataTable between postbacks...
Posted by Jason at 5/10/2006 11:33:33 AM
I have a DataTable from which I am trying to delete rows using the DataGrid control. However, I'm having trouble maintaining the changes to the DataTable between PostBacks. This is my first go 'round with the DataGrid control, so pardon me if there are glaring mistakes... public partial clas...more >>

error in exporting Crystal Report in ASP.net - URGENT
Posted by BizWorld at 5/10/2006 10:15:48 AM
I am getting this error in exporting a crystal report (having two subreports) using C# code. i got the following exception at Export statement. Exception Details: CrystalDecisions.CrystalReports.Engine.ExportException: Error in File C:\WINDOWS\TEMP\temp_015d322b-ea06-426e-92d3-656ad11ef627.rp...more >>

Debugging htm pages....
Posted by Brian Muth at 5/10/2006 10:06:45 AM
Under VS 2005, I've been quite frustrated trying to debug client-side javascript inside of HTML pages. The breakpoint "goes" transparent" as soon as I run the page. I suspect I'm doing something silly. Any suggestions? Brian ...more >>

Access to the path .... is denied
Posted by j_stus NO[at]SPAM hotmail.com at 5/10/2006 10:04:42 AM
Hi there, There was older thead i created for that question a week ago, but then I had some sort of vacations, and couldn't participate. Basically I am getting Access to the path "Path name" is denied when I execute the following code on my production server (W2003) Dim myFolder As String =...more >>

MysqlConnection is not defined
Posted by Chris at 5/10/2006 9:56:24 AM
Hi, I need to access data from Mysql database with asp.net 2.0. I installed the Mysql/Connector Net 1.1. I did this: <%@ Page Language="VB" debug="true" %> <%@ Import Namespace = "System.Data" %> <%@ Import Namespace = "MySql.Data.MySqlClient" %> <script language="VB" runat="server"> Sub P...more >>

Encrypting connectionStrings with CustomProvider
Posted by Chuck P at 5/10/2006 9:48:19 AM
I am trying to encrypt the connectionStrings in Web.config with a custom provider. Works great for me, anyone else tries it they get errors. Note the error says "decrypt" My statements I ran on the IIS server to create the key is: aspnet_regiis -pz WebEncryptionKeys aspnet_regiis -...more >>

why "import namespace=" ..." if not necessary?
Posted by Chris at 5/10/2006 9:42:47 AM
Hi, 1) In file test.aspx, i put: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test" %> <%@ import namespace="System.Data"%> <%@ import namespace="System.Data.OleDb"%> .... In file test.aspx.vb, i put: .... Dim oConnection As System.Data.OleDb.OleDbCon...more >>

Not allow submit if data changed
Posted by David at 5/10/2006 9:23:10 AM
Using VS2005 and .Net 2.0 I want to be able to keep the user from moving to another web page if they have selected the "Edit" link button on a FormView (or any view for that matter), have changed any of the data in bound controls and do not click on the "Update" link button. Can anyone help?...more >>

ASP.NET Error 401.3 - Unauthorized Access denied due to an ACL set on
Posted by Jay Balapa at 5/10/2006 9:20:03 AM
Hello, We are setting up a new server machine. WinServer 2003/ IIS 6.0. IIS serves all static content right. But when try to load a simple aspx page I get. Error 401.3 - Unauthorized Access denied due to an ACL set on the requested resource. Internet Information Services (IIS) P...more >>

listbox question
Posted by mgonzales3 at 5/10/2006 9:09:02 AM
my bo has id, name. I'm using a datasource control to get my dataset. my listbox is returning the IDs can I change it to list only the names? thnx...more >>

how to use global.asax?
Posted by Chris at 5/10/2006 9:07:01 AM
Hi, I want to put the namespaces and the data connection into global.asax like this: <%@ import namespace="System.Data"%> <%@ import namespace="System.Data.OleDb"%> <script runat="server"> Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs) Dim oConnection As Sys...more >>

Forms Authentication and login name
Posted by yossimotro NO[at]SPAM gmail.com at 5/10/2006 8:55:12 AM
Hi guys, I'm now rebuilding my website to work in forms authentcation instead of windows' authentication as it used to be. When I had windows authentication I used the login name to perform some db operations, I retrieved it by using Request.ServerVariables["LOGON_USER"]. I know forms auth...more >>

DataGrid
Posted by johnpeter887 NO[at]SPAM hotmail.com at 5/10/2006 8:48:48 AM
i have simple question. i am trying to view a table contents in a data grid in a .aspx page, i can see the contents if i write the code in the page load function. But when i use the drag and drop approach Grid doesn't show anyting. I drop a dataadapter on the web form connect it to the datasou...more >>

ViewState v Session - Confused
Posted by mosscliffe at 5/10/2006 8:44:35 AM
I am testing for how/when a page is posted back and I decided to use a ViewState variable in PageLoad to set up a counter, but it appears, the ViewState is cleared on each PageLoad. So then I used SESSION and that worked. Am I correct in assuming ViewState is cleared on each PageLoad or is my...more >>

Session timeouts
Posted by Mantorok at 5/10/2006 8:40:53 AM
Hi I've just been told that closing your browser closes your session on the web-site you are viewing, is this true? If so, is this the browser that initiates the closure, or the server? Thanks Kev ...more >>

Anonymous Users and Profile
Posted by YC at 5/10/2006 8:18:01 AM
Hi, From the documentation I understood that when an anonymous user uses the profile, the data is saved in a cookie(or part of the URL). I see that It also writes a record to the SQL table(when using the default profile provider). Is this this correct behaviour? Thanks Yoav ...more >>

How to maintain state of a TreeView control
Posted by keithb at 5/10/2006 7:52:48 AM
I have a TreeView control with EnableViewState = True; however, the TreeView does not maintain its previous state on postback. Is there something else that needs to be set up? Thanks, Keith ...more >>

how to configure web from HTTP to HTTPS
Posted by david at 5/10/2006 7:44:02 AM
I have developed web forms including login by using ASP.NET via HTTP. Now I want to secure the connection from client to the server via HTTPS. How can I configure the server or something else to make the change? Thank you David...more >>

MasterPage shows blank page in IE browser???
Posted by K B at 5/10/2006 7:15:25 AM
Hi, I have a basic master page with a title bar and two content placeholders. Then I created a new aspx page with that MasterPage. I added one label control to the content holder as a test. When I run the page it is BLANK. Any ideas please??? Thanks, Kit Here is my simple aspx: <%@ P...more >>

exception in page_load
Posted by JIM.H. at 5/10/2006 7:07:01 AM
Hello, This is a button click event and it works: private void btnSubmit_Click(object sender, System.Web.UI.ImageClickEventArgs e) { string myPar = txtBox.Text; SwitchToPage(myPar); } I needed to switch the page if there is a parameter provided in the URL. The following does not wor...more >>

What is 'Runat" and what does it do?
Posted by mscurto NO[at]SPAM gmail.com at 5/10/2006 7:05:53 AM
I wrote an ASP Web App in Visual Studio and I want the user entered data to go to a specific server. This runat looks like it is trying to post to the asp page. If I remove all instances of it, it looks like it works but it screws up my page. What does this command do and can I work around...more >>

ListBox Event - How Do I
Posted by mosscliffe at 5/10/2006 6:30:27 AM
I have a listbox, with a code behind on SelectedIndexChanged This works well, except for one condition. On returning to the listbox after PostBack, the previous selection is still highlighted. This is how I want it as it tells the user, which was his previous selection. The problem i hav...more >>

Reading HEAD section META tag (name / content).
Posted by Rick at 5/10/2006 6:23:26 AM
I have a base class that inherits from System.Web.UI.Page that I need to include the ability to read the inheriting class/page meta tags. I can't find any methods in the System.Web.UI.Page members that provide access to do this. What is the practice to read meta information from the head secti...more >>

Machine Config
Posted by TARUN at 5/10/2006 6:12:46 AM
Hello All I need to ask about the configuration file in .NET, There are Two config File 1. Web Config 2. Machine config I understand the the usage of Web config , but not able to understand the usage of Machine config. I read in the article that you can also write your database connection ...more >>

q: pass password in the url
Posted by JIM.H. at 5/10/2006 6:07:01 AM
Hello, Can I pass password in the url encrypted? Any example to encrypt and decrypt will be appreciated. ...more >>

How to Render a Webform in Memory?
Posted by Sushi at 5/10/2006 5:47:11 AM
Hi. I need to render a webform in memory to sent it by email, without a http request (on Winforms, by example...). How can I do this? Thanks. ...more >>

Javascript and Postback
Posted by Jon at 5/10/2006 5:22:02 AM
Hello. If i emit some JavaScript on an items databind, is it persisted if the page does a postback and the ItemDataBound is NOT called? Thanks, JY...more >>

Displaying External Web Site via Intranet
Posted by John Daly at 5/10/2006 3:42:02 AM
We have approximately 90 computer users, but only 13 have internet access, the rest are not configured to browse the internet. We want to display certain web sites to all users without reconfiguring their pcs. Is there a way to have our intranet web server retrieve the external page and then ...more >>

error when connecting to database
Posted by Paul Watt at 5/10/2006 1:47:42 AM
Hi, I cant seem to connect to my sql express db's using the "connect to database" option in WVD. http://www.paulwatt.info/error.gif for a screen shot of the error Many thanks -- Paul Watt http://www.paulwatt.info ...more >>

Modifying the "Update" object in ObjectDataSource?
Posted by JDC at 5/10/2006 1:37:53 AM
Hi all, I'm using ObjectDataSource to select & update records. I have a "RecordDetails" class which encapsulates the row I want to update, and so it contains the fields I want to update and also the key fields that limit the update. The runtime automatically fills in the updatable fields in...more >>


DevelopmentNow Blog