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 > february 2006 > threads for wednesday february 8

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

Create GridView Column
Posted by Miguel Dias Moura at 2/8/2006 11:20:35 PM
Hello, I have a dataset with 2 fields, [Text](String) and [Approved](Boolean). I want to add, FROM the ASPX.VB Code, 2 columns: 1. Column which will display the Text field. I need this column to recognize HTML tags. The [Text] field might be something like "<h1>Heading</h1><p>Para...more >>

Provider Model : modular application design issue
Posted by Rachel at 2/8/2006 10:20:27 PM
Hi, I have created a custom provider (extending on ProviderBase) to handle Standards and I wish to package up these classes (StandardService, StandardProvider, StandardProviderCollection, SqlStandardProvider, StandardServiceSection, and related business object classes) into a separate cla...more >>

Application Block Usage
Posted by Jeff S at 2/8/2006 9:42:01 PM
Regarding the Application Blocks provided by Microsoft; are any of you using them in production systems? If no, why? If yes, what has been your experience?... would you recommend for or against their use? Here's the Application Blocks I'm referring to: http://msdn.microsoft.com/practic...more >>

HELP: Dynamic updateable checkbox list
Posted by Usenet User at 2/8/2006 9:38:17 PM
The task is simple: to display a databound list of checkboxes on a page. Each check/uncheck should cause a postback, during which an action must be taken based on which checkbox changed its value and the value itself. Oddly enough, I couldn't find a simple solution for the above problem. I tr...more >>

DataGrid displaying line breaks in bound column
Posted by Rosko at 2/8/2006 9:37:27 PM
Hello - I'm displaying a SQL Server text field in a bound column. The text field has line breaks (CrLf - 0D0A) but the text displays in a long string in the DataGrid. Anybody know how to display them? -- Rosko...more >>

SELECT TOP 12 Skips one!
Posted by David Lozzi at 2/8/2006 8:43:53 PM
Howdy, Below is my SELECT statement. The returned list is suppose to return the TOP 12 when sorted by MIN(dtDate). It sorts the records correctly and only displays 12 records, but to meet the 12 record criteria, it removes a record that should be #6. If I change the 12 to a 13, that missing...more >>

Pass XML File to web page
Posted by bdtmike at 2/8/2006 8:29:28 PM
Ok, I'm a relative web newbie here so bear with me... I need to pass an XML file to an ASP.Net web page on a remote server. The .net page will read this XML file and act upon its contents. How do I go about passing such a file? thanks in advance... -Mike ...more >>

Dynamic page Creation ASP and C#
Posted by Tex at 2/8/2006 8:27:12 PM
I am trying to build a survey application using asp.net 2.0 and c# in visual studio 2005. I am fairly new to asp. I need to find a way to dynamically create a page with all of the survey questions on it. I am able to gather question names, types, answers etc... However once I have all of th...more >>



datasource.recordcount? How to obtain this?
Posted by bernadou at 2/8/2006 8:21:27 PM
How do I (or is this even possible) get the total number of records from a datasource control in ASP.NET 2.0? I’ve messed around with getting the row count from the grid that the datasource is bound to, but, that control uses paging and it appears that the count is only for the page that ...more >>

Maximum Characters per Website
Posted by Christian Gröbner [MVP] at 2/8/2006 8:06:38 PM
Hello Friends, I'm currently sitting here and don't know how to fix this problem. I've written a webapplication where you can fill out several forms. For each form I have created a website where you can fill out this form. Some of these formulars are dynamic, so I have inserted a table, whi...more >>

OT: Dev Box Configuration
Posted by Smithers at 2/8/2006 7:09:46 PM
I have a development PC that has been working great for several years for SQL Server 2000 and .NET 1.1 development. It has a PIV 2.4G processor, 512 RAM, 7200/8MB cache RPM IDE hard drive. I have seen people in the various NGs claim that one *must* have a significantly faster box with gobs ...more >>

VS2005 Not ready for prime time
Posted by CMM at 2/8/2006 6:42:46 PM
I am so disappointed in VS2005. The "little things" wrong with it are just mind-boggling. Boy, I'll be so mad if I have to wait a year for the ".1" release that fixes all the bugs in this obvious beta product. This (received today) is just one of the many examples of why ASP.NET 2.0 was tot...more >>

Error message page
Posted by tshad at 2/8/2006 6:35:14 PM
On a normal error message page that asp.net generates, you have the message, the stack trace and few lines of code where the error was generated: Line 172: <asp:TemplateColumn HeaderText=""> Line 173: <ItemTemplate> Line 174: <asp:LinkButton ID="FullN...more >>

A msater page and detecting an "Enter" press
Posted by thechaosengine at 2/8/2006 6:16:46 PM
Hi all, I have a master page for my site which contains amongst other things, a text box and a button for perfroming a quick search. This appears on every page on the site. The problem is, when looking at a page with an additional form to be filled in, whenever the user presses return t...more >>

Debuging with QueryString
Posted by Tina at 2/8/2006 5:37:46 PM
How can I debug with a querystring in vs.net? Is there some place to put the querystring? thanks, T ...more >>

How to automate parameterized queries/stored procedures
Posted by mac at 2/8/2006 4:41:22 PM
I have program that modifies data from several different databases, and includes many many tables and columns. I have created stored procedures for all the updates, but how do I automate the parameters so that I don't have to write out 150 column names and their datatypes by hand? Right now ...more >>

HttpWebRequest with session cookies
Posted by john conwell at 2/8/2006 4:18:27 PM
I'm trying to programatically mine newsgroups like yahoo (among others), but need to be able to sign into the site first. my assumption is that when i sign in, a session cookie is created and is used to verify my identity for each http request after that. Does anyone have an example of usi...more >>

images not showing in Mozilla and Firefox
Posted by Alex D. at 2/8/2006 4:17:24 PM
Hi, I have a frame in one of my pages that I use to show diferent pages each time. I am experiencing an weird behaviour in Mozilla and Firefox, when the frame's source is specified in the server side it works OK, but when the content of the frame is changed in the client browser clicking over ...more >>

try/catch
Posted by tshad at 2/8/2006 3:56:06 PM
Normally, I surround my Dataset/fill or DBreader execut with a try/Catch. Something like: ****************************************************** Dim dbReader As SqlDataReader Dim ConnectionString as String =System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_Co...more >>

Do I need to close a connection after grabbing a datareader?
Posted by Alan Silver at 2/8/2006 3:35:09 PM
Hello, I have a generic method in a utility class that grabs an sqldatareader and returns it. Due to the fact that (AFAIK), you can't close the database connection before you've read the data, this method doesn't close it, it just returns the datareader. The calling code uses the dataread...more >>

Converting Guids, and using parameterized stored procedures
Posted by dew at 2/8/2006 2:16:36 PM
I have a stored procedure that retrieves the id of a client table, which is a guid To get that id, I have dim clientid as guid = GetClientID("OrgName") The GetClientID returns a string, because sometimes it's not a guid, but in this procedure it is. How do I convert the GetClientID into a ...more >>

FormView doesn't store any edits
Posted by Scott at Cedar Creek at 2/8/2006 2:09:27 PM
I've built this formview control, and it has the command buttons that came with it by default. I've got my SQL connection set up, and everything appears to work, but when I go into Edit mode, I make changes, click the Update button, and then I'm taken back to the ReadOnly mode, but none of my...more >>

Ideas needed - sending emails with "progress bar"
Posted by Daves at 2/8/2006 2:00:16 PM
Hi, I'm using a asp.net 2.0 website to send out emails to users, the amount of which can reach up to 1500 users. Obviously the code sending the emails has to let the client know the mails are being sent out and display some kind of progress indicator. How would you implement this? Back in ol...more >>

connection string syntax in page using config file
Posted by D. Shane Fowlkes at 2/8/2006 1:48:47 PM
I'm trying out a whole bunch of new (to me) techniques. Using asp.net 2 (vb), can someone correct my connection syntax. The problem seems to be that I'm not properly referening the config settings in my aspx page. Thanks! Compiler Error Message: BC30456: 'connectionStrings' is not a mem...more >>

<txt src= ...> equivalent of <img src= ...>
Posted by Steve Richter at 2/8/2006 1:41:25 PM
Is there a way to pull text from a url into a web page? Similar to how the <img> element uses a URL to access the image to display. <txt src="http:\\www....." > thanks, -Steve ...more >>

Running ASP.NET 1.1 App on .net 2.0
Posted by the friendly display name at 2/8/2006 12:51:28 PM
Is it possible to run a asp.net 1.1 application on a server, where only .net 2.0 is installed? MS was quite good in the past regarding backwards compatability - A Directx 7 App ran without problems on a computer, where DX9 was installed. But I heard that .net is a different case.....more >>

Login attempt not successful after deploy???
Posted by VB Programmer at 2/8/2006 12:38:17 PM
ASP.NET 2.0 site... On my dev maching I can run my login page with no problem. After I sign in it redirects to the proper secured page. I deployed the site, with the same database. I can't loging using the EXACT SAME login. "Your login attempt was not successful. Please try again." T...more >>

Cannot load Class?? .NET2
Posted by D. Shane Fowlkes at 2/8/2006 12:30:01 PM
ASP.NET 2 (VB) I'm experimenting with MS VWD and .NET2. I'm tinkering with the Code Behind method as demonstrated on MS's tutorial at http://www.asp.net/QuickStart/aspnet/doc/pages/codebehind.aspx#codebehind . Yet, when I follow the example and apply it to my own little test, I get a ser...more >>

Web Server Controls Templates - best practices
Posted by Jim Underwood at 2/8/2006 11:38:20 AM
I am not sure if web server control templates are the way to go or not, but I would like to get some opinions on the best way to go about this. I have a web page where administrators will specify which users have access to various reports. The page will display the report name and a list of u...more >>

Exeption properties
Posted by tshad at 2/8/2006 11:24:59 AM
Is there a way to get the page that an error occurred on when looking at the Exeption from the catch phrase or from the GetLastError()? I have my program going to a general page when I get an error and getting the information from GetLastError(), but I don't know how to get the Page the ero...more >>

Delete from database in Code Behind
Posted by MasterChief at 2/8/2006 10:58:59 AM
I am trying to learn how to delete multple items in a database using the code behind file. I would just like somebody to tell me what is wrong with my code. I am new to connecting to the database through a code-behind. I have a gridview called gridview1. When the user checks a bunch of plans the...more >>

Running Asp.net 2.0 and Asp.net 1.1
Posted by Papanii Okai at 2/8/2006 10:51:49 AM
Hi Guys, I am pretty much a novice when it comes to deployement of asp.net websites. I would like to know if it is possible to run asp.net 2.0 and asp.net 1.1 websites on the same machine? If yes could someone give me a resource that explains how to acheive that. If not could someon...more >>

No default member found
Posted by tshad at 2/8/2006 10:18:12 AM
I have a collection class(exChain), for my Exception log which is getting the following error: *************************************************************************** No default member found for type 'ExceptionLog'. Description: An unhandled exception occurred during the execution of the ...more >>

Adding name-value pair to QueryString Collection?
Posted by Joe at 2/8/2006 9:38:27 AM
Hello All: I have a webform (WebForm1.aspx) that retrieves a value from a database (_formSessionId) the first time that it is posted. After the user filles in the form, he/she clicks a Button server control that ultimately redirects him/her to WebForm2.aspx [using Response.Redirect(Strin...more >>

Delete a folder of an IIS Virtual Directory
Posted by gralet at 2/8/2006 9:26:30 AM
Hi everyone I need to delete a folder that was the folder of an IIS Virtual Directory (the IIS Virtual Directory already was eliminated from the IIS), although the aspnet_wp.exe doesn’t let me do that. I don’t want to restart the IIS and I need to do it from the command line or .NET. Can ...more >>

showModelessDialog/showModalDialog in asp.net with VB 2005
Posted by bill at 2/8/2006 9:26:11 AM
I have a asp.net web forms page displaying customer information and a list of orders for the customer in a data grid. The user wants to click a button which will display a modal (or modeless) window for adding a new order. When the order is entered in the modal window, the new order will b...more >>

How to add "null" to a String object
Posted by rengeek33 at 2/8/2006 9:25:27 AM
I am building a SQL statement for Oracle and need one part of it to read: , myvar = null, myvar2 = "1", myvar3 = "0", myvar4 = null, etc. I am constructing this string using the String object with the following code: theSQL.Append(" , myvar = " & FormatValue(MyClass.DB_CHAR1, Me.MyVar))...more >>

Culture name 'en-securid' is not supported
Posted by joop23 NO[at]SPAM gmail.com at 2/8/2006 9:20:37 AM
Hello, I'm getting the following exception. Culture name 'en-securid' is not supported The code is below. What is 'en-securid' and why won't my browser (IE 6) pass in 'en-us?' thx in advance! CultureInfo ci; // Found in System.Globalization if((Request.UserLangua...more >>

DBNull
Posted by CsharpGuy at 2/8/2006 9:10:25 AM
I have to pass in a Null value at times from my web form, I'm calling a Stored procedure, but i forget the syntax to allow passing of NUll values and put NULL in the table, what is that syntax again?...more >>

Calculating Bandwidth
Posted by Donald at 2/8/2006 7:49:31 AM
I need to calcuate (and save) the amount of Bandwidth used by each of my customers. Any help/ideas would be appreciated(?) I have a website that is using Forms Authentication. Each customer is authenticated against a "Customers" table in a SQL server database. I was thinking about creati...more >>

T-Sql debugging and site compilation problems
Posted by Mark Olbert at 2/8/2006 7:47:35 AM
I don't know if these two problems are related or if they're independent. In moving my site to a production server I discovered that I had enabled T-SQL debugging and forgotten to turn it off (I'm deploying the debug version on the production server to continue doing some "real world" testing). ...more >>

How to set when "Check for newer versions of stored pages" happens
Posted by Ed Staffin at 2/8/2006 7:09:09 AM
In Internet Explorer under the tools/internet options menu on the general tab, there is a settings button under Temporary internet files. In there the user can specify when to "Check for newer versions of stored pages." I want to make sure that my pages are refreshed every time they visit rega...more >>

How to disable client script validation totally from page
Posted by ibiza at 2/8/2006 6:47:23 AM
Hi all, I have a quite big webform that has about ~15 validators. I found, after having looked at the generated HTML source, that the filesize is pretty big : about 65KB. Then, I added to every validator the property EnableClientScript="False", because I already have my neat client validation...more >>

Refering to web page class from another class
Posted by Nick Zdunic at 2/8/2006 6:05:31 AM
In 1.1 it was possible to refer to a web page class from another class I've just started in v2.0 and found that this code sn't working The web page class: Partial Class _Default Inherits System.Web.UI.Page End Class The class that want to refer to this: Public Class Class1 Pr...more >>

Can't Copy to Clipboard
Posted by SAL at 2/8/2006 5:55:42 AM
I have the following VB.net Class/Function that I call from an ASP.net page: Public Class MyTestClass Public Function embedHyperlink(ByVal fileID As Integer, ByVal fileName As String) As String 'Create a New Instance of the HyperLink Control Dim createHyperLink As New S...more >>

Need help with accessing control in inherited form
Posted by Joe at 2/8/2006 5:38:10 AM
Hello All: I have two webforms (WebForm1.aspx and WebForm2.aspx) that inherit from BasePage.aspx. BasePage.aspx inherits System.Web.UI.Page and has one hidden field (hdnSessionId) that I want to use to cache a value that the web app needs. I can not use Session, ViewState or QueryString t...more >>

Question regarding reading file in asp.net
Posted by archana at 2/8/2006 5:21:42 AM
Hi all, I am new to asp.net (learning phase). I have to develop application in asp.net to read file from client pc and display statistics of that file to client. So my question is that to read file from client pc do i need to upload that file on server and then start reading that file. O...more >>

httpWebResponse not being triggered
Posted by leedavies166 NO[at]SPAM hotmail.com at 2/8/2006 4:17:43 AM
Hi all, I have an asp.net web application which is used for file uploading. Upon file upload the file is: 1) validated 2) converted to xml 3) the xml is sent via a httpWebRequest to another web server 4) a response is received 5) a text box on the web page is updated with any error messages...more >>

IIS and Apache proxy
Posted by Peter_Lundb=E4ck at 2/8/2006 1:49:24 AM
Hi, Maybe this ain't the correct group for this question but i'll give it a try. We have a Apache machine acting as a front-end server to a IIS 6.0 server for security reasons. On the IIS server we have a ASP.NET 2.0 application running and some logic is based on the client IP. When w...more >>

Profile in ASP.Net 2 - How does it works?
Posted by Saber at 2/8/2006 1:40:11 AM
I'm looking for a way to get a unique identification from users who visit my website. I thought getting visitor's computer name is not a bad idea, But I noticed Profiles in ASP.Net 2, I'm curious how does profile recognize each visitor? Does it uses cookies? If yes, what if visitor disables co...more >>

Strange issue in aspx pages
Posted by Joneleth at 2/8/2006 1:40:07 AM
Hi I was writing some aspx pages when i experimented a strange issue. I have a div tag like this: <div id="divCourses1" style="<%=GetDisplayStyle(eidlevel, arrIdLevel[0])%>"> Now, as long as i don't switch the page to HTML into Design everything works fine. But if i switch the page into Des...more >>

Open file of client's pc in read mode.
Posted by archana at 2/8/2006 1:25:49 AM
Hi all, I am new to asp.net. I heard somthing like we can't open file which is there on client pc without uploading that file onto out server. Is it right? If i am wrong then please correct me. One more thing if it is possible to open file which is there on client's pc in read mode, then ...more >>

Change Web Access Method in VS.NET 2005
Posted by Bob Boffin at 2/8/2006 12:34:31 AM
I have a web project that I started to develop in VWD 2005. I now have a copy of VS.NET 2005 Professional and I want to add my solution to source control. The web project is on my own development PC using the local IIS (I think). When I try to do this VS tells me Quote: Microsoft Visu...more >>

Openning WAT does NOT reate aspnetdb.mbf
Posted by te goody at 2/8/2006 12:32:28 AM
Problem summary: Web Site Admin Tool is not generating the application services database (aspnetdb.mdf); i.e. The DB is not found under the app_data directory. The Question: What configuration am I missing to allow WAT to create the application services database? Scenarios I tried: On a...more >>

Why it would show errors when I used ASP to connected to SQL2005.
Posted by Benny Ng at 2/8/2006 12:29:56 AM
The error is shown by the following connection string.£¨But it can be runs properly in SQL2000£© PROVIDER=MSDATASHAPE;DRIVER={SQL SERVER};SERVER=ibmdept;DATABASE=CY_20060208;UID=sa;PWD=111111; The following is the error message: <<<<<<<<<<<<< Microsoft OLE DB Provider for ODBC Drivers er...more >>

Another problem
Posted by Lloyd Dupont at 2/8/2006 12:12:54 AM
Something which, again, works perfectly when I run in the VS.NET embeded server but not on my webserver provider. (I use the embeded server as, since a computer crash I only have XPHome and I didn't bother buy the professional edition) I have a (home made) dll named "WebUtils.dll" which cont...more >>

Shared Properties disappearing
Posted by Simon at 2/8/2006 12:00:00 AM
Hi all, We have an ASP.NET 1.1 application running on IIS6 on Server 2003. Most of the base objects we are using in this application are taken from a windows application also written by us. We have used shared properties on some of these objects to enable caching of frequently used objects, ...more >>

Does ASP.NET in .NET 2.0 now have a front controller architecture?
Posted by Kunle Odutola at 2/8/2006 12:00:00 AM
WebForms used to be a Page controller architecture (in .NET 1.x) which severely limited (prevented?) true MVC designs with WebForms. Any ideas? -- Don't talk unless you can improve the silence. ...more >>

re-ordering rows/records in datagrid
Posted by Patrick.O.Ige at 2/8/2006 12:00:00 AM
I would like to re-order my rows in the datagrid. So on each row i want to have up and down images to go up one row or down Whats the easiest way to tackle this? Any sample guides are welcome. ...more >>

System.NullReferenceException: Object reference not set to an instance of an object.
Posted by Adam Knight at 2/8/2006 12:00:00 AM
Hi all, I have the following peice of code: Esssentially, a querystring containing a comma separated list of values is used to populate the appropriate intSectionID property of a user control. <% If Not(Request.QueryString("SectionID") Is Nothing) Then %> <% arrSectionID = Split...more >>


DevelopmentNow Blog