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 > october 2006 > threads for tuesday october 31

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

xml to plaintext ? newbie
Posted by david.vantongerloo at 10/31/2006 11:43:12 PM
hi , How do i get hold on text in a XML file an insert it to an ASPX page. - <daily_statistics> <day>1162166400.000000</day> <user_total_credit>5859.155452</user_total_credit> <user_expavg_credit>81.830293</user_expavg_credit> <host_total_credit>491.812439</host_total_credit> <h...more >>

How to read FTP folder contents names without downloading them using Asp.net 1.1
Posted by ankita at 10/31/2006 11:13:56 PM
Hello, i am using Asp.net application to read contents of FTP folder. I just want to have names of all folders/files that are inside FTP directory. So for that i don't want to download any contents from that FTP , i just need to read it.For e.g. if i want to read names of all folders/file...more >>

Framework versions and virtual directories
Posted by jonas NO[at]SPAM vinninge.com at 10/31/2006 11:09:54 PM
I have a problem with different .NET Framework versions in virtual directories. Virtual directory /folder_a, is configured as an application running ..NET Framework 2.0 and contains an ASP.NET 2.0 app. Virtual directory /folder_a/folder_b, is configured as an application running .NET Framew...more >>

How do you download a MS database?
Posted by Mark Sandfox at 10/31/2006 10:17:28 PM
I have a need to allow an extrenal IT department to download 1 specific database. I have treid direct link and webclient methods but both get permission errors. This type of page is not served. Description: The type of page you have requested is not served because it has been explicitly f...more >>

Basic payment security
Posted by Samuel Shulman at 10/31/2006 8:56:29 PM
I designed a payment system that the actual verification is done on another server (a bank payment system) All I need is to secure the page where the credit card details are passed What is the simple way to do that? Thanks, Samuel Shulman ...more >>

Grid View Row Value
Posted by CK at 10/31/2006 8:34:11 PM
How can I get this value at runtime? I want the value of the row as it's created. Any ideas? ...more >>

GridView Column Width
Posted by Samuel Shulman at 10/31/2006 6:46:01 PM
The GridView show an image that takes say 75px in height then I set the next column to 200px wide because I don't want the text to wrap However it still wraps the text and the width of the columns remain far less than 200px Is there any way to force the width of a column Below is the ...more >>

How can I display the text <%username%>?
Posted by JJ at 10/31/2006 6:37:44 PM
I am writing instruction to accompany my 'sendNewsletter' page. In the text I want to instruct the user that by writing <%username%> in the text, this placeholder will be replaced by the recipients username. But how do I display the text '<%username%>' without the server replacing it with...more >>



How to publish my website
Posted by mrajanikrishna NO[at]SPAM gmail.com at 10/31/2006 6:33:37 PM
Hi friends, I've designed an application in my local system using VS.NET 2003. (VB.NET and ASP.NET) Its working fine. Now, I want to publish to my ISPs server. I've FTP account. How can I publish to server? Which files are needed to transfer? in classic ASP, I copied all the files(wha...more >>

Iterating images with Repeater
Posted by Daves at 10/31/2006 6:08:43 PM
I'm listing photos of people, a total of 30-50. The images are listed as "cubes inside a box" (don't know how to explain better!) that is 5x5 6x6 7x10 or whatever the size of the image is. Doing this with span elements, even using float=right, is very diffcult becase the elements over...more >>

encrypting string
Posted by JJ at 10/31/2006 6:03:24 PM
I need to encrypt credit card # and store that in a database (and be able to decrypt it). Any codes that use strong encyption algorithm like AES 256 on the web that I can copy and paste? Thanks ...more >>

should i move to .NET 2.0?
Posted by George Ter-Saakov at 10/31/2006 5:12:05 PM
I have a working website on internet written on .NET 1.1 I am thinking about moving my development to .NET 2.0 and do not want to run both versions on the same server (have only one server). Or using VS 2003 with 2005 simultaneously So I am thinking about converting my first website to .NET ...more >>

Add an attribute to the tag <body>?
Posted by Gustavo Arriola at 10/31/2006 5:04:38 PM
Hello! In ASP.NET 2.0: How I add an attribute to the tag <body> in Codebehind? From already thank you very much! Gustavo Arriola ...more >>

Fully qualified root URL
Posted by JJ at 10/31/2006 5:02:53 PM
I am embarrassed to ask this as I'm sure it must be easy to do, but I've looked everywhere. I just want to get the root url of my web site: i.e. http://www.mywebsite.com/ I am writing code that produces a HTML newletter that is sent out to subscribers. The images therefore need fully qual...more >>

How can I add Content Management via VWD 2005
Posted by Stephen at 10/31/2006 4:19:34 PM
Hi I am using Visual Web Developer 2005 Express Edition. Could someone give me some pointers on how to include a "Content Management" facility to a web site. When I say content management - I mean a system that enables staff (who do not know HTML etc) to change or update data held on a w...more >>

Pros and Cons - publishing vs Copying
Posted by Elmo Watson at 10/31/2006 2:05:21 PM
Since I came from the HTML world many years ago - I am just in the habit of copying/FTPing all my ASP.Net websites to the remote server However, I have a friend who says that Publishing is the only way to go and it's the 'MS' way to do it I've had nothing but trouble trying to do this, many ...more >>

Get values from Data View
Posted by shapper at 10/31/2006 1:50:04 PM
Hello, I created a DataView from a database where each record has 3 fields: ID, Title and URL. I need, in my code, to loop through each record of the DataView and get the value of ID, Title and URL. How can I do this? Thanks, Miguel ...more >>

File Server delegation
Posted by Marc Castrechini at 10/31/2006 1:40:28 PM
This is a classic double hop delegation issue, however its the first time we are setting this up so we are doing something incorrectly. If we run through the IDE or using a localhost path on the web server the command succeeds. However, if we use the servername or ip through IIS it fails. ...more >>

ASP.NET Configuration Error under Windows Server 2003 R2
Posted by deathtospam NO[at]SPAM gmail.com at 10/31/2006 1:27:39 PM
My employer is starting to take the first steps towards migrating its Classic ASP codebase to ASP.NET v2.0. We have a copy of our existing website on the new Windows Server 2003 R2 test server, and everything is running fine. However, when I create a simple "HelloWorld.aspx" file, then browse ...more >>

Link to a specified location within a page
Posted by Samuel Shulman at 10/31/2006 1:04:28 PM
I want to provide a link to a specified location within another page What is the syntax for that? Thank you, Samuel ...more >>

help with aspx and new iis config
Posted by WebBuilder451 at 10/31/2006 12:51:01 PM
i just installed dot net on a 64 bit windows iis, but i get a "The page cannot be found" when i select an aspx file from the browse list. (i set the site to allow browsing). I neve rdid a64 bit dot.net 2.0 version install before so i don't know what i did wrong. 1. installed 64 bit sql stand...more >>

Console command to launch web method?
Posted by Todd at 10/31/2006 12:36:02 PM
I need to process daily and unattended a set of records generated from an ASP.Net application (framework 1.1), and send out emails accordingly. These records are stored within a SQL 2000 database and exist for the purpose of the ASP.Net app. Right now I'm setting up a SQL job to call a sto...more >>

Page rendered in X seconds?
Posted by Tim_Mac at 10/31/2006 12:31:12 PM
hi, i would like to display a discreet message on all my pages indicating how long the server took to render the page. full tracing is not an option because it would freak out my non-technical users! i've looked around online and can find nothing to do this, or in the SDK docs. i thought ....more >>

Setting default page in deployment
Posted by QDL at 10/31/2006 12:30:54 PM
Hello everyone, is there a way to programmatically set the default document from a deployment project for ASP.NET. My default page is named default.htm and I'd like to set it as the topmost default document in IIS site properties using the deployment project, is this possible? Tried to goog...more >>

Beep in browser
Posted by Arne Garvander at 10/31/2006 12:04:02 PM
How can I create a simple beep in the browser when an error occured? -- Arne Garvander (I program VB.Net for fun and C# to get paid.)...more >>

Date format strings not being applied?
Posted by Alec MacLean at 10/31/2006 11:58:10 AM
Hi, Tools and target: VS2005 Pro, SQL server 2000, ASP.NET (GridView). I am trying to get a date field inside a GridView to display without the time element. The date field is coming from a SQL DateTime column. I have set the <asp:BoundField DataField="DateClose" DataFormatString="{0...more >>

URGENT: Process html pages as aspx pages.
Posted by jainamber NO[at]SPAM gmail.com at 10/31/2006 11:57:01 AM
Hi, We are in the process of launching a new asp.net site for our client, the old site was pure html. In order to preserve the search engine rankings of the html pages, I am trying to implement 301 redirects for the individual html pages by adding the redirect code (it has to be done on...more >>

ASP.NET [NEWBIE]
Posted by DaBrain at 10/31/2006 11:30:24 AM
[ASP.NET / C# / V2 Framework] I am making the move to ASP.NET from CGI and ASP pages. I have noticed that when building WebForms that they always use the POST method, but this makes the page expire when leaving the page. Example: User changes the sort order of a page using a Drop Down lis...more >>

Suppress Form Action
Posted by rn5a NO[at]SPAM rediffmail.com at 10/31/2006 11:30:23 AM
A custom server control has a Button. Namespace Confirm Public Class ShowConfirm : Inherits Button Private strConfirmMsg As String Public Property ConfirmMessage() As String Get ConfirmMessage = strConfirmMsg End Get S...more >>

Bind Text File To GridView
Posted by David at 10/31/2006 10:46:41 AM
Is there a way to bind a comma-delimited text file to a GridView? I want to be able to output rejected records that I am importing from a comma-delimited text file. Thanks. David ...more >>

What is the difference between......
Posted by Angel Of Death at 10/31/2006 10:20:15 AM
A postback and a callback. Does a callback always avoid a page being re-sent in it's entirety back to the client and does a post-back always force a browser to reload an entire page? Is this my right understanding? If so, why is it that people say that a callback is a postback....more >>

[NEWBIE]try .. catch .. not continuing on server error
Posted by Beemer Biker at 10/31/2006 10:18:10 AM
I put in a database operation in a try .. catch .. but I continue to get a server error. try { Sql_psg.SelectCommand = "DROP TABLE \"##TEMP\""; } catch { } The above runs fine if ##TEMP exists. If not (the table does not exists) then I get a server error. If running VS2005 ...more >>

showing date on ashx page (rss)
Posted by sck10 at 10/31/2006 10:17:23 AM
Hello, I created an ashx file for my rss feed (rss.ashx). I notice on the site (http://rss.msnbc.msn.com/id/3032091/device/rss/rss.xml) that the date (Yesterday, October 30, 2006, 3:02:37 PM) is shown above the "description" tag and in front of the green arrow. My question is, what tag sh...more >>

how to output a number like "20.00"
Posted by Stimp at 10/31/2006 10:07:06 AM
I want to output a number, say 20, as 20.00 i.e. I want to always have 2 decimal places I don't want any currency information, therefore String.Format("{0:c}") doesn't work for me. Can't seem to find a way to do this. Any ideas? Thanks, Peter -- fiddlewidawiddum...more >>

IE progress bar never stops incrementing...
Posted by Adam Sandler at 10/31/2006 10:01:16 AM
Hello, I'm able to reproduce my problem but I haven't been able to figure out why it is happening. MS does have an article about such behavior in http://support.microsoft.com/default.aspx?scid=kb;en-us;Q320731 but the workaround prescribed in the KB isn't particularly helpful. The project ...more >>

Membership with asp 2.0
Posted by Coder at 10/31/2006 9:20:49 AM
I am not sure if I should use the new membership and roles feature in ASP.NET 2.0. My user information is large, and does not fit in the default implementation tables. I don't know if it is worth coding my own provider. Linking the my user table to the ASP user table might not be protected wi...more >>

Dynamic controls losing values
Posted by Raj at 10/31/2006 8:13:26 AM
Hi there, I am trying to get this work but I can't figure a solution. I have a table on a web page (.aspx) and creating the table contents dynamically. I have two cells for each row of table. First cell is a label field, and second is a radiobuttonlist. Table looks some thing like Your fav...more >>

Hide Master Page During Edit
Posted by pagates at 10/31/2006 8:13:01 AM
Hi All, Perhaps its something obvious that I'm just overlooking, but is there a way to hide the Master Page in the IDE when editing a content page? It's hard to get a feel for how the content page will really look because the master page uses a lot of the real estate in the edit window. ...more >>

Help - Failure sending email
Posted by NW Technicals at 10/31/2006 7:21:53 AM
I am trying to send email using this fucntion can you guys help me please finding the mistake I am using my Gmail Credentials and the only exception error I get is Failure sending email Any help is greatly appreciated ===================== MailMessage mailMessage = new MailMessage();...more >>

OOP relationships. Advice needed!! PLEASE
Posted by Nemisis at 10/31/2006 7:11:17 AM
Hi all, I am trying to work out whether my objects whould contain child objects or just an ID property to the linking object. I have the following table in my SQL database tblCompany ID Name SalespersonID Then a have tblSalesPerson tblSalesPerson ID FirstName LastName If i a...more >>

XPath if statement and GridView <ItemTemplate> Problem
Posted by Opa at 10/31/2006 6:28:03 AM
Hi, I have and XMLDataSource which I am using in a GridView control and am customizing the grid with <ItemTemplate>. My XML datasource has an element with an attribute called "private". I want to check the value of the private attribute and if is is true, I DON'T want to display this row ...more >>

Referencing Page Controls from the Codebehind's Base Class in ASP.NET 2.0
Posted by matt at 10/31/2006 5:39:37 AM
Hi, I have two very similar pages, whose codebehind I'd like to derive from the same base class so I can reuse the controller logic. For (hopeful) clarity I'll try and draw this in ASCII-UML! PageBase ^ ^ PageA PageB ^ ^ PageA_aspx PageB_aspx What I find...more >>

url rewritting with no extension in url
Posted by rapiddata at 10/31/2006 5:14:02 AM
Is there a way to rewrite urls that have no extensions in the url, i.e. no ..aspx or no .html like http://www.mywebsite.com/username to be rewritten as http://www.mywebsite.com/pages/username.aspx This is currently done in myspace.com where you can type http://www.myspace.com/username S...more >>

q; how to replace
Posted by JIM.H. at 10/31/2006 4:57:02 AM
How can I replace a ‘ (one quote) with a _ (underscore) in a string in c#?...more >>

back button
Posted by JIM.H. at 10/31/2006 4:55:01 AM
How can I realize back button in IE in my c# asp.net code in a web application?...more >>

Closing the Open Save Dialog when user selects Save
Posted by BusyBoy at 10/31/2006 3:53:41 AM
Hi All I am using two aspx pages The first aspx page loads the second page in a popup window. The second aspx page has no html and I change its content type to download a particular file. When I get the 'Open Save Cancel' dialog box in case I click on Cancel or Open the box performs pe...more >>

Access denied...
Posted by Kagamoto NO[at]SPAM gmail.com at 10/31/2006 3:06:19 AM
Hello everybody! I'm developing an ASP.NET (v1.1) web application which includes a reference to the "Microsoft Word 11.0 Object Library". When I try the following code: .... .... Microsoft.Office.Interop.Word.Application app = new Word.ApplicationClass(); .... .... I get an ASP.NET...more >>

Button & TextBox Custom Control
Posted by rn5a NO[at]SPAM rediffmail.com at 10/31/2006 2:27:36 AM
I want to create a custom control that encapsulates a Button & a TextBox. When the Button is clicked, the user is asked a question using JavaScript confirm (which shows 2 buttons - 'OK' & 'Cancel'). Till this point, no problem. Initially, the TextBox is empty. The Button has a property named 'Co...more >>

session variables incrementing with a master page
Posted by TheAmes at 10/31/2006 1:18:18 AM
Hi VB.net 2.0 website developed with VWD 2005 Express one masterpage one content page aspx and a global.asax in the session start event of the global.asax file i declare a session variable: session("ItemCount") = 0 in the masterpage there is an asp:label in the masterp...more >>


DevelopmentNow Blog