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 2005 > threads for monday may 2

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

String was not recognized as a valid DateTime
Posted by Patrick Olurotimi Ige at 5/2/2005 11:04:29 PM
I moved some projects to another server and using the code below i get the error:- "String was not recognized as a valid DateTime" <asp:Label runat="server" width="40%" text=' <%# DateTime.Parse(DataBinder.Eval(Container,"DataItem.dt").ToString()).ToSh ortDateString()%>' id="Label6"> ...more >>


ValidatorOnSubmit - Client Side Validation
Posted by deride at 5/2/2005 10:47:03 PM
For client side validation, the following code is generated by the framework <form name="Form1" method="post" onsubmit=" if (!ValidatorOnSubmit()) return false; MyFunction..."> My Problem is that, I need to call another javascript function regardless of whether or not ValidatorOnSubmit() i...more >>

How to get entire querystring
Posted by Chris at 5/2/2005 10:41:01 PM
Hi, How can I trap the entire url with querystring that is pased to a page? I want to check the values of my variables and to see the entire url. Thanks...more >>

Refresh Page. Shouldn't this be simple?!
Posted by Shapper at 5/2/2005 9:47:06 PM
Hello, I have the function changeCulture(culture As String) in all my .aspx web pages. This functions changes Threat Culture among other actions. So the new culture takes effect I need to refresh the current page preserving the URL which can contain URL parameters (query). I tried 2 sol...more >>

Static is REALLY Static!
Posted by Paul W at 5/2/2005 8:54:37 PM
In a standalone module (VB) behind my asp.net application, I have a couple of utility routines that do a simple (fixed) data-retrieval (eg. "select permissions from tblusers where userid=" & thisuser. I figured I'd be smart and save multiple db calls for the same page request by doing: F...more >>

Sending HTML Newsletter question...
Posted by VB Programmer at 5/2/2005 8:50:37 PM
My client wants to make an HTML newsletter (using Word) then upload it to my website. I know how to send emails using system.web.mail. How do I make the HTML (of the file) the body contents, rather than an attachment? Thanks. ...more >>

Problem setting start page...
Posted by VB Programmer at 5/2/2005 8:18:57 PM
When I set intro.aspx as the "start page" for my ASP.NET project it works perfectly in Visual Studio.net. When I use IE and open up the website in localhost (http://localhost/MySite/) it uses Default.aspx as the default start page. Any ideas? Thanks! ...more >>

in datagrid control , how can i change the width of textbox in edit mode (on <asp:BoundColumn> ) ?
Posted by roni at 5/2/2005 7:38:48 PM
in datagrid control , how can i change the width of textbox in edit mode (on <asp:BoundColumn> ) ? ...more >>



a newby question
Posted by Bruno Alexandre at 5/2/2005 7:21:39 PM
Hi guys, I'm an ASP programmer for several month, and there's nothing I can't do in a webpage, but, I'm starting to enjoy ASP.NET more cause of the new Object in the latest version 2.0 beta2, things that take a lot of work in ASP in just a few lines... I have the company portal, that ha...more >>

Easy SQL Question
Posted by Ryan Smith at 5/2/2005 6:11:02 PM
I'm getting a syntax error on the following SQL Statement. Can anybody see something wrong here that I can't. All of the data fields are type text and i'm using Jet 4.0 to connect to an Access 2000 backend. INSERT INTO Users(FNAME,LNAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,PHONE,FAX,EMAIL,PAS...more >>

using perlASPX
Posted by manfred at 5/2/2005 6:07:56 PM
I like share some infos with perlASPX... Somebody use it ? Manfred ...more >>

I need some help with this
Posted by Chris at 5/2/2005 5:56:02 PM
Hi, What is wrong with this code? I can't figure this out. Its suppose to display ..a bunch ..of errors on my page. I am stuck for over 4 hrs now an this crap. Please assist. This is on form load Dim str As String = "a bunch|of errors" Dim errors() As String = str.Split("...more >>

making my app multi-lingual
Posted by MattB at 5/2/2005 5:11:08 PM
I have a web application that I distribute with only the aspx (and other asp_ files) but no .vb files and a compiled /bin folder. The clients then customize visual elements on those pages to make it look how they want (as much as this makes possible anyway), but I can maintain all the logic ...more >>

Open an application
Posted by mv at 5/2/2005 5:08:55 PM
Hi, Is there a possibility to open a Windows application (eg. notepad, paint, dialer, ...) using ASP.Net ? Thanks in advance ...more >>

Visual Web Developper 2005 Express Edition Beta (Built web)
Posted by xaime at 5/2/2005 5:07:49 PM
Hi friends, A little question. I want to compile my web application in order to upload the .BIN file to the work server. But when I clik "Build web Site", it don't generate any .BIN, and don't produce any error. Executing it in local mode works perfectly. I have read that the .aspx.vb fi...more >>

Can't open a blank ASP.NET solution
Posted by Leddbo at 5/2/2005 4:57:06 PM
When I try to open an ASP.NET solution in VS03 I get an error saying I don't have ASP.NET 1.1 installed. I have the .NET 1.1 runtime installed. I also installed a security update for ASP.NET 1.1, so presumably it checked for ver.1.1. ...more >>

Ordering of directory info
Posted by Martin at 5/2/2005 4:51:02 PM
Hi, I have implemeted a recursive function that basically iterate throught the entire file system and prints out the entire path of each directory that it come across. The only problem is the the directoryinfo objevy does not seem to list directories in the same order as windows explorer...more >>

Confusion Over Postback, ViewState and Dynamically Added Controls
Posted by Christian Nunciato at 5/2/2005 4:41:02 PM
Hi there: I've checked the forums, but haven't found a situation addressing my specific problem. Here's the deal: I've got a Web Form containing two Panel controls. One displays search results in a DataList comprised mainly of LinkButtons. The other's basically empty; it's intended to...more >>

tracing and dll
Posted by Joo Park at 5/2/2005 4:34:14 PM
Hello, I use a dll for an asp.net application. How do I write trace information that is generated from the dll? For controls, you would you use Context.Trace.Write("My Class","This is a sample trace statement.") What about from the dll? thx in advance! ...more >>

Paypal question
Posted by Mark at 5/2/2005 4:25:40 PM
Hi all, I have an ASP.NET application which I use to call paypal. I pass in the success URL as http://www.somedomain.com/success.aspx I go right through the paypal process and I finally get the "Return to merchant" button on the PayPal screen. If I look at the source code of the Paypal ...more >>

DataList, Repeater,...?
Posted by André_Nobre at 5/2/2005 4:09:09 PM
Hi all... I need to put 20 textbox in an aspx, but I don't want to put it manually. How can I code a Sub to do that? Something like a For. I tried using a For and puting the asp:textbox code inside a asp:label. It didn't worked. Can I use DataList ou Repeater with a fixed number os repeti...more >>

Update field in parent window that is a user control
Posted by yogib at 5/2/2005 3:31:02 PM
Got my main form test.aspx This opens a new window with window.open everything works. I now want to update the parent window with the following code window.opener.document.forms[0].lblSalesman.value = "Joe Bloggs"; Seems to work fine when the opening page is a control in an aspx page but w...more >>

Firing postback from pop-up form?
Posted by Ben Fidge at 5/2/2005 2:59:38 PM
Hi I want to provide a pop-up window a bit like the asp.net calendar, but when the user selects a value, instead of poking a value straight into a textbox on the parent page, I want to pass back a database id, and then invoke an event or postback. The scenario is that I need to provide t...more >>

Request.Browser.MajorVersion.ToString() returns null on ASP.NET 2.0 Beta 1 and Beta 2
Posted by ocn0248 NO[at]SPAM hotmail.com at 5/2/2005 2:20:35 PM
The code bellow must be executed under safari web-browser. I need to know how I can get the major version of the safari web-browser. Thanks in advance vb.net code Partial Class SafariTest Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As S...more >>

Session_End called when project is rebuilt
Posted by PCK at 5/2/2005 2:19:14 PM
Thanks in advance for any help.... I have an application that uses the Session_End to perform some data access against our database. This works as expected when a session times out. However, when the .NET project is rebuilt the Session_End is automatically called for any current sessions....more >>

Cannot access a disposed object named "System.Net.TlsStream" ???
Posted by Asaf at 5/2/2005 2:07:43 PM
Hi All, When doing HTTP POST to SSL URL I am getting the error: Cannot access a disposed object named "System.Net.TlsStream". I have found this code in the internet but it does not solve the problem. internal class AcceptAllCertificatePolicy : ICertificatePolicy { public AcceptAllCer...more >>

Editing a row in a datagrid
Posted by mareal at 5/2/2005 2:02:05 PM
I have coded an updatable datagrid and can’t seem to obtain the original value from the cell in order to run an update on the database. I can obtain the (new) value typed by the user (see DataGrid1_Update), but I also need the original/old value. How can I obtain it? void DataGrid1_Edit(o...more >>

Dataset, refresh, Cache?
Posted by wavemill at 5/2/2005 1:55:03 PM
This is my problem: I have two page: In my first page,i recover my data since my textbox where i inside in my dataset. In the second, i have a label where i insert the data of my dataset. To come back to my firts page i have a button who i insert a response.redirect. My problem is that my...more >>

TO show or NOT to show
Posted by Matt at 5/2/2005 1:50:56 PM
How do you complish to hide fields,buttons etc on aspx page when renders in asp <%if page = login%> <td><input type="text" name= login></td> <%else%> <td><input type="text" name= email></td> <%end if%> ...more >>

ASP.NET 1.1 or 2.0
Posted by James Swindell at 5/2/2005 1:35:43 PM
I'm a long-time, rich-client application developer looking to throw myself more into web development (C# and ASP.NET). My question is, does it make sense continuing to look into ASP.NET 1.1, or start anew with 2.0? James ...more >>

CSS File Requests
Posted by Jordan Richard at 5/2/2005 1:19:02 PM
Suppose two aspx or html pages. Each links to the same css file. The browser requests page1. The CSS file is requested and pulled down to the browser where I'm presuming it's cached. The second page is then requested. Are browsers generally smart enough, during the request for the seco...more >>

MultiRox TextBox
Posted by TCORDON at 5/2/2005 1:13:12 PM
How can I restric a multirow textbox's text length, Max Length doesn't seem to really do anything. I want the user to not be able to type, say more that 300 chars. TIA! ...more >>

Run external program during BUILD?
Posted by Dmitry Duginov at 5/2/2005 1:09:44 PM
My web application uses resource files to keep localized strings etc. Those resource files prepared by external console program, which extracts this stuff from the database. Is there a way to invoke that program automatically after I hit build (rebuild) button in Visual Studio, before VSS actu...more >>

How to Edit record in Datagrid
Posted by Kamal Ahmed at 5/2/2005 12:40:24 PM
Hi All, I have a datagrid that contains multiple records. I want to edit any record in grid and then Update or Cancel same record. What is short & easy way to do so. TIA. ...more >>

Req: Need suggestions for search algorithm
Posted by Ben Fidge at 5/2/2005 12:08:24 PM
Hi I'm working on a site which requires the users to specify a hotel at which they're staying in London. The complete list of hotels comes to something like 1600 records. Each record consists of Hotel Name, Street Address and Postcode. We need to make it as simple as possible for users t...more >>

SortCommand Problem
Posted by Dexter at 5/2/2005 12:07:02 PM
Hello all, I have a problem with SortCommand event. When i click at a linkbutton with commandname property as "Sort", the postback is raised, but don't execute SortCommand. Somebody have any idea? Thanks. Dexter...more >>

Basic OO question...
Posted by Bob Morvay at 5/2/2005 12:02:37 PM
I am trying to determine how far I should go in encapsulating data. As I understand it, OO practices state to create private member variables and use these variables in your publicly accessible functions. This requires the programmer to set the variables using the setters of the class before...more >>

Accessing Excel from ASP.NET
Posted by Lester at 5/2/2005 11:07:49 AM
I get an "Access Denied" exception when I try to execute the following line of code from the code behind in one of of my ASP.NET pages: m_oExcel = new Excel.Application(); This line is in an Excel Utility DLL I wrote that I use in non-ASP.NET code without any problems. What permissions ...more >>

How to setup the displayed file to be undownloadable?
Posted by david at 5/2/2005 11:03:03 AM
Foe example, I have a file (image) display application (maybe in client side) and my server application can show the path/name of the file. When I click the file in the IE, I am asked for either "save" or "open" in a popup window. How can I set some property in server side such that the "save"...more >>

how to return plain text from a httpWebRequest
Posted by Dica at 5/2/2005 10:55:59 AM
i'm trying to write a simple screen scraper for mapQuest. so far, the app is working fine, connecting to mapQuest and returning the directions i want. however, everything is coming back as html. is there a simple way to return the mapQuest query as plain text? tks ...more >>

Linked Radio buttons
Posted by dhnriverside at 5/2/2005 10:48:02 AM
Hi guys I want to created a Radio Button List, but because of the formatting I want to perform, I can't use asp:RadioButtonList. Is there a way to link asp:RadioButtons like there is with Input type="radio", or will I need to use the <input> version?! Cheers Dan...more >>

Beta Hell
Posted by Mike P at 5/2/2005 10:40:48 AM
I installed VS 2005 Beta 1 on my machine, and then uninstalled it a while ago. I was never able to reinstall it (it never manages to reinstall the Framework and just hangs forever in the install process). So I've read most of the literature on the Beta but not had a chance to actually do much p...more >>

Important please read this Thank you `°º·...·º°`°º·...·º°`°º·.†..·º°`°º·...·º°`°º·..·º°` `°º·...·º°`°º·...·º°`°º·.†..·º°`°º·...·º°`°º·..·º°` `°º·...·º
Posted by Ronald700054 NO[at]SPAM yahoo.com at 5/2/2005 10:37:58 AM
This is the most important question of your life. The question is: Are you saved? It is not a question of how good you are, nor if you are a church member, but are you saved? Are you sure you will go to Heaven when you die? The reason some people don't know for sure if they are going...more >>

Root Relative Path Injected as String Variable
Posted by Jordan Richard at 5/2/2005 10:18:20 AM
Put another way, is there any way I can tell ASP.NET to convert a path (imbedded in a string variable, "~/images/some_image.gif") to a root-relative path, that the client will understand, for the *current* page request? Here's what I'm doing: I am injecting HTML directly into ASPX pages via...more >>

Get width and height of element
Posted by Alejandro Penate-Diaz at 5/2/2005 8:34:14 AM
Hi. Is there any way of getting an element real size from javascript, when this element was previously assigned a width and height of 100%? Thanks, Alex. ...more >>

data sources
Posted by abcd at 5/2/2005 8:30:48 AM
I want to get the list of data sources on the machine using C# and ASP.NET any clues how to get that...I have done this using VB using SQLDataSources function from ODBC32.dll thanks ...more >>

Can a web control's postback be blocked?
Posted by Geoff at 5/2/2005 8:19:16 AM
I know how to add a client side event event handler to a webcontrol button using Attributes.Add, which gives me both client side and server side events. Sometimes I need to only do the client side event and not do the postback to the server at all. Is there a way to block the postback altoge...more >>

MasterPageFile problem - accessing another website
Posted by reezaali NO[at]SPAM gmail.com at 5/2/2005 7:59:33 AM
Hi All, I wanted to set up my websites like this c:\websites\intranettemplate c:\websites\app1 c:\websites\app2 Basically I wanted to have the master pages defined in the template folder and all other apps would "reference" this folder to get the appropriate master file that they need t...more >>

Can not upload large files (>2 megs) to image field. "Cannot find server" message returned...
Posted by Charlie NO[at]SPAM CBFC at 5/2/2005 7:32:22 AM
Hi: I'm using the HTML File Field control as a file picker for uploading files to a SQl Server image field. When page posts back to initiate upload, if file is small (under about two megs) all is well. However, when I select a large file, the default IIS "Cannot find server" page is immediat...more >>

Datagrid ButtonColumn only visible when criteria met?
Posted by John Mason at 5/2/2005 7:31:05 AM
Hi, I have a datagrid of invoices with a buttoncolumn that users can click on to pay a particular invoice. Once the invoice is paid, the datagrid is reloaded, however, the button to pay the invoice still appears alongside the paid invoice. During the payment process I set a SQL 'bit' column...more >>

Problems with IsolatedStorage read/write
Posted by Diana L at 5/2/2005 4:11:59 AM
Hi: I'm trying to get this isolated storage snippet to work. It's trying to write a few lines, then trying to read them and print them out to the browser. The browser prints the "Writing..." lines, and the "End of job" line, but no "Reading" lines. I've tried to debug it a bit, and t...more >>

float number problem
Posted by jmclej NO[at]SPAM hotmail.com at 5/2/2005 3:51:22 AM
Hi, I am using Sybase 12.5 dataserver and ASP.NET I am calling a stored procedure from my asp.net page, in this stored procedure, I have 2 float fields that are returned. One is directly taken from one float column of a table, and the other one is a substraction of 2 float columns of a table. Th...more >>

The active directory datatype cannot be converted to/from a native
Posted by Johan Delimon at 5/2/2005 3:23:05 AM
"The active directory datatype cannot be converted to/from a native DS datatype" I have an ASP.NET web page that uses queries to AD to identify current users. Delegation is configured in AD and works as expected. But sometimes I get an error : "The active directory datatype cannot be conv...more >>

NCrypto Encryption & Decryption
Posted by sushant.bhatia NO[at]SPAM gmail.com at 5/2/2005 2:57:56 AM
Hi All. I'm using the NCrypto dll for RSA Encryption/Decryption (http://sourceforge.net/projects/ncrypto/). My encryption code in .Net is pretty simple. The dataToEncrypt length is 1024. The returned data is 1161 in length. public static byte[] EncryptRSA(string certFilePublic, byte[] dataT...more >>

Start-up Error
Posted by Barry at 5/2/2005 2:50:18 AM
Hi Everytime is reinstall Windows XP , Visual Studio .NET and IIS all C# Web Applications stop functioning with the following error message [Message Start] Description: An error occurred during the processing of a configuration file required to service this request. Please ...more >>

Howto detect that the file as been downloaded completely from serv
Posted by Roy at 5/2/2005 1:16:03 AM
Hi, I have a problem that I have been working with for a while. I need to be able from server side (asp.net) to detect that the file i'm streaming down to the client is saved completely/succsessfully on the client's computer before updating some metadata on the server (file downloaded da...more >>

Three-state checkbox
Posted by PontiMax at 5/2/2005 1:01:04 AM
Hi, is there any ASP.NET checkbox control that supports the three states 'Off', 'On' and 'Mixed'? I intend to build a tree whose checkbox nodes are set to state 'Mixed' if some but not all child nodes are checked... Many thanks in advance, P....more >>

Creating a SQL Server Database
Posted by Barry at 5/2/2005 12:59:49 AM
Hi can anyone tell me if there if any code snippet available for creating a SQL Server Database and Table using C# web application. TIA Barry ...more >>


DevelopmentNow Blog