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 > march 2005 > threads for monday march 21

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

Special Page Parameters
Posted by Noah Coad at 3/21/2005 11:45:03 PM
I want to be able to use this notation on my site: http://coad.net/link/[idnum] Where [idnum] is some identifier, such as http://coad.net/link/31234, and have 31234 be a parameter fed into a script/aspx page. How would you go about doing this? I've seen plenty of sites use this notation ...more >>


ASP.Net Stored Password Expiring
Posted by Elroyskimms at 3/21/2005 11:11:52 PM
The form has two text fields... one called txtEmail and one called txtPassword. The username is the email address (txtEmail) and the password is txtPassword. Storing cookie using the following code: Response.Cookies("Email").Value = txtEMail.Text Response.Cookies("Email").Expires = ...more >>

Generating HTML code
Posted by cnickl at 3/21/2005 11:03:01 PM
I’m using the usual VisualStudio setup. That is to have a “Code Behind” (somename.aspx.vb) file with all the code and the actual HTML code somename.aspx) separate. I like this setup, but now I want to generate some text and HTML code output using VB code and I want it to be placed in the...more >>

.aspx page is not run(open at browser) at iis
Posted by chaudhary harshad via .NET 247 at 3/21/2005 9:04:51 PM
(Type your message here) I build a website on plateform asp.net version .net 2005 My Problem is :When i run .aspx pages from iis then error come "file or directory not found" , And when i run ".htm pages from the same websit it run no problem is come". I think i should change some code in .aspx p...more >>

An ASP.NET permission question
Posted by cnickl at 3/21/2005 9:01:03 PM
I wrote an ASP.NET script that accesses a database on a server I don’t host myself. I understand that IIS needs to give ASP.NET permission to access every single file. It’s not enough to give read/write access to the folder the file (or files) is stored in. This would mean that whenever I ...more >>

dynamic validators
Posted by Chris at 3/21/2005 8:51:02 PM
Is there a way to, based on the selection of another control, add a required field validator to another field (code behind vb.net)? I don't want the field to be required unless a checkbox or date field has been entered. Thanx....more >>

Non English ascii codes
Posted by !!bogus at 3/21/2005 8:43:44 PM
Hi, I am developing an english/arabic webpage. I have some fields that should accept only english characters and other fields that should accept only arabic. I use a custom validator for this. How can I figure out whether each one of those fields contain the appropriate values. Giving me th...more >>

simple but can't do it!
Posted by Paul W at 3/21/2005 8:42:23 PM
From VB I need to write a multi-line text into a textarea control. Do I use vbcrlf, "<BR>" urlencode or what?!?!?! Thanks, Paul. ...more >>



HttpModule & IIS settings
Posted by Priya at 3/21/2005 8:17:09 PM
Hi, In our project we use HttpModules If I specify url as www.xyz.com/eg it calls HttpModule and then redirects it to www.xyz.com/default.aspx But if I specify localhost/eg it displays resource not found, it searches for eg as a directory , but the page localhost/default.aspx works fine....more >>

Updating a Control when a (different) Composite Control Changes
Posted by Jeff at 3/21/2005 7:44:48 PM
Hi - I am developing a composite control using VB.NET. In the ASP.NET page using the control, How can I update a label text value to reflect the value of a property of the custom control whenever the composite control is changed? The label is not a part of the custom control. I've manag...more >>

Toshiba is selling bad laptops
Posted by Alejandro Penate-Diaz at 3/21/2005 7:14:25 PM
Sorry I know this is not the place but I think everybody should read this. Does anybody knows about Toshiba A75 model? I just bought one and started rebooting itself and freezeing at random times. BestBuy return policy only covers 14 days and Toshiba send customers to repairing centers, to rep...more >>

Code in HTML
Posted by Joe via DotNetMonster.com at 3/21/2005 6:49:14 PM
Hi, Within the HTML if I try to put an if statement, I get an error: BC30201: Expression expected This is a simplified example: <%# If StoreNumber = "1" Then %> <b>Store1</b> <%# EndIf %> Thanks -- Message posted via http://www.dotnetmonster.com...more >>

aspnet_wp process Question
Posted by Patrick Olurotimi Ige at 3/21/2005 6:32:03 PM
Looked into our aspnet_wp and its using up memory!!! Is there a way to reduce the memory usage some how.. Cos it was always going up and up but when the admin resets it. it went down any ideas? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET.....more >>

selective validation on specific buttons only
Posted by Kurt Schroeder at 3/21/2005 6:15:02 PM
I wish to allow a form to be canceled or go to a previous page without validation. To do this i would like to validate, say a required field, only when a specific button is hit. What is the easiest way to do this? thankss kes...more >>

confirm does not cancel postback?
Posted by JerryK at 3/21/2005 6:12:39 PM
I have a piece of asp.net code that sets up a call to a javascript function in a controls onclick event. This javascript function displays a confirm dialog and returns the results of the confirm dialog. However, of the user presses "Cancel" in the confirm dialog, which should return false and...more >>

\u00A0 in VB.NET
Posted by Jeff at 3/21/2005 5:48:08 PM
Hi - I'm using VB.NET to build an ASP.NET page with a dropdownlist control. I'm trying to insert spaces into dropdownlist listitem text values. I read that it's possible to do so with "\u00A0" to represent a non-breaking space character. How do you implement such a character in VB.NET?? Or...more >>

Hide DataDrig column at run time
Posted by ruca at 3/21/2005 5:45:02 PM
Hi, I want to set visible to false in my datagrid to all fields that are an ID. How can I do this? I'm using ItemDataBound event but it gives me an error: "Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index" I have this code: ...more >>

q: C# online reference
Posted by JIM.H. at 3/21/2005 5:43:05 PM
is there nice C# online reference with example explanations?...more >>

how to implement delete confirmation in datagrid
Posted by asilverblatt NO[at]SPAM pwdc-dot-org.no-spam.invalid at 3/21/2005 5:36:39 PM
I'm working on an ASP.Net application written in C#. On one page, there are several datagrid controls used to display, edit and delete detail records relating to the master record also displayed on that page. Each row in each datagrid includes a Delete button (added at runtime by the code-behind...more >>

Repeater control
Posted by Manny Chohan at 3/21/2005 5:33:02 PM
Hi Guys, I have a repeater control bound to a sqldataadapter. I have some rows which are quite large therefore wrapping on to second line. I want to substring the values on itemdatabound before displayed to user. Can this be done? or is there any better way to do it. Here is my code: <asp:...more >>

Instantiate/Load UserControl from DLL
Posted by Sascha at 3/21/2005 5:31:49 PM
Hi there, I searched carefully through the web before finally deciding to post this message, because I could not find a solution for my problem. Hopefully someone will have a hint or explanation for me! I apologize for the length of this posting, but I wanted to make sure that I get an answer...more >>

ASP.NET - Manual Deployment via. FTP
Posted by David at 3/21/2005 4:23:58 PM
I am attempting to deploy a ASP.NET app on a 3rd party hosting system. I only have FTP access to add files, etc. I tried using the Project copy portion and point to the FTP server, but VS did not transfer the files! Now, I need to manually FTP the files. What core files need to be sent an...more >>

IE messing up with font of web pages.
Posted by Jensen bredal at 3/21/2005 4:17:00 PM
Hello, IE is using a local .CSS file to display a number of pages i visit on my dev. machine. I'm currently working on a web application that uses the given .css file. Can somone tell me what is happening and how do i get back to a good IE on my machine. Many Thanks JB ...more >>

User information confirm
Posted by Andy G at 3/21/2005 4:12:34 PM
I have a web form that users can change their personal information and then it redirects them to a confirmation page. I would like the text of the changed field(s) to be a differenct color than the ones that were not changed. Could someone point me in the right direction with my code. Tha...more >>

Writing a text file to the file system
Posted by cwbp15 at 3/21/2005 3:07:03 PM
Using Visual Studio C# When I ran the following code: System.IO; private void Button1_Click(object sender, System.EventArgs e) { //FileStream fs = File.Create(Server.MapPath("test.txt")); FileStream fs = File.Create("C:\\MYSAVEDFILES\\test.txt"); StreamWriter sw = new StreamWriter(fs)...more >>

Quick Question
Posted by Ryan Smith at 3/21/2005 2:51:02 PM
I have a document that i'm reading from a flat text file and printing to an HTML page. I am wanting to search the document that I am writing to the page and replace say every instance of the with a text box. When the user submits the document I need to perform validation on each text box to ...more >>

<Input type variable in asp.net
Posted by venky at 3/21/2005 2:31:48 PM
Hi I have a html control <Input type="text" name="txtCallbackDate"> This control doesn't run on server. I want to set the value of this control from my code. how do i do that? venky ...more >>

q: textbox Alignment
Posted by JIM.H. at 3/21/2005 2:03:07 PM
how do you do Alignment in a textbox?...more >>

Open a new window and pass the arraylist
Posted by Steven at 3/21/2005 1:50:36 PM
I have an arraylist and I want to display all the values in the arraylist in a new window (asp.net page) using a datalist. The new window should be like a small popup window. How can I do this? Regards -- Steven ...more >>

HowTo set DIV height in CSS
Posted by kurt sune at 3/21/2005 1:47:03 PM
How do I do to set a div height in CSS? If I create a new web page, add this in the css #header { background: #0D3D91; position: absolute; top: 0px; left: 0px; right: 0px; width: 100%; height: 2px; } links the page to the CSS the resulting page shows a header with hei...more >>

Datagrid - Conditional Buttons/links
Posted by bijoy at 3/21/2005 1:26:37 PM
My datagrid displays the following info: Date, Expected Users, Number of Events I want it to behave as follows: For each row, if the value of Expected Users is greater than 5000, then I display the value in RED and make it a link. Otherwise just display the text in regular font. The link sh...more >>

Best output cache practices?
Posted by Hadar at 3/21/2005 1:08:03 PM
Hi, We have IIS 6.0 servers and we want to take advatage of the kernel-mode caching feature by using output cache directive in certain pages. As far as I understand, IIS saves for each (unique) request the appropriate response... When the page is first loaded, followed by GET request, there i...more >>

contentType for text documents?
Posted by darrel at 3/21/2005 12:08:30 PM
I'm creating a file upload tool, and want to allow only DOC, XLS, PDF, RTF or TXT files. I am using this to check: if (contentType = "application/msword") _ or (contentType = "application/rtf") _ or (contentType = "application/ms-excel") _ or (contentType = "application/pdf") _ or (contentTy...more >>

Panels as pop-up windows (Date Time picker)...
Posted by Blue Streak at 3/21/2005 12:06:44 PM
Hello, Folks! I am using a panel instead of a JavaScript pop-up window to allow = some one to select a date and time. However, when the panel appears it = is obscured by some other Web control objects. I have attempted to give = the panel a z-index of 10 and the other contols of -1 but i...more >>

Q: search string in a string
Posted by JIM.H. at 3/21/2005 11:57:02 AM
Hello, How would you search XYZ_ in a string and if exist, return next three characters after string (so, if XYZ_001, return 001), otherwise return null in C#. Thanks, Jim. ...more >>

Handling multiple file uploads on one 'page'
Posted by darrel at 3/21/2005 11:44:06 AM
My understanding is that using the FILE form element to allow a file upload is limited to one unique file per page. Is that correct? Any thoughts on how best to design an interface to allow multiple uploads? I have a database record that will link from 2 to 4 files that have been uploaded. ...more >>

Dropdown
Posted by Chris Kennedy at 3/21/2005 11:38:10 AM
I have a dropdown. I want to trigger a function when it changes that binds a datagrid whose data source is based on the selected index of the dropdown list. When I change it, it triggers a post back but the item selected doesn't remain selected. There are three items it the drop down and it ...more >>

System.NullReferenceException raised on site
Posted by metalseb at 3/21/2005 11:18:56 AM
Hi folks. Just a client-side question to ask. Don't know if this is the right place to ask for specific help. If not, sorry for the noise ;-) Well, a friend of mine tries to access weightwatchers.fr and since a few days, the site is unreachable at her home. She gets asp.net error messages o...more >>

Embedding a web page output into asp.net webform (C#)
Posted by Skeptical at 3/21/2005 10:54:27 AM
Hello, I am trying to embed html output into my webform but could not figure out how to so far. The form will execute a Perl script with some parameters, and script will output some html code. I need to capture and render this html into my webform. Any ideas? Thanks ...more >>

Logging in asp.net
Posted by Bart Schelkens at 3/21/2005 10:34:33 AM
Hi, i have this website and my boss wants to log every click in a table in the database. It was not a problem doing that. Except now he also wants to log every click on a hyperlink. I have these <a href>-tags that open a pdf-file. He wants to have that logged as well. Does anyone know how ...more >>

login fail for User 'databaseName\ASPNET'
Posted by (daviddabwang NO[at]SPAM yahoo.com) at 3/21/2005 10:30:12 AM
Whenever use DataGrid to load database data to web form, I got the information. Any one can help to solve it? Thanks ********************************************************************** Sent via Fuzzy Software @ http://www.fuzzysoftware.com/ Comprehensive, categorised, searchable colle...more >>

nt-authority\networkservice error when opening aspx page
Posted by lightyears78 NO[at]SPAM yahoo.de at 3/21/2005 10:23:59 AM
hello our win2003 server is currently facing the following problem. no asp.net web applications are working anymore. anytime i try to open aspx-pages following error message (popup window) occurs (sometimes twice) "JIT-Debugging: access denied JIT Debugging was initiated by the user a...more >>

link on datagrid
Posted by Chris Kennedy at 3/21/2005 10:23:24 AM
I have a datagrid bound to a datareader. One of the columns contains file name. I would like a column which acts as a link and opens a link to the file (normally a pdf). How would I do this? ...more >>

Difference between bin and obj directories and difference between project references and dll references
Posted by jakk at 3/21/2005 10:21:18 AM
hello all, whats the Difference between bin and obj directories and difference between project references and dll references? thanks jack ...more >>

Website stability
Posted by TCORDON at 3/21/2005 10:14:00 AM
I have finished development of a web portal, before putting it online, is there a list of things that I should check in order to make sure there are no possible crashes when it gets 'hopefully' thousands of visits (session variable use, connections to DB, server hardware, etc.) TIA ...more >>

asp.net remote debuggin
Posted by ashish at 3/21/2005 10:11:25 AM
hi All, I have tried this question on the debugging newsgroup but without any success.. the problem is that iam trying to debug on a remote machine ( which is actually a virtual pc hosted on the same machine ), and iam unable to the problem is that both the machine are not part of the sam...more >>

XMLHttpRequest help
Posted by Steve at 3/21/2005 10:11:02 AM
I'm trying to use XMLHttpRequest with asp.net The tutorial that I have been following is based on PHP. All the client script stuff was working fine, but now I'm trying to create the asp.net page that will answer the request. For testing, I just want to return a simple string. I thought I cou...more >>

at my wits end with CR
Posted by Chris at 3/21/2005 9:41:06 AM
I'm still amazed after working with Crystal Reports (CR) for over 4 years that they are still the messiest most un-stable application around. I've been thrown back into using it just recently and need help where no help can be found. It's included in VS, which one would think as a good market...more >>

Combining 2 variables
Posted by Tom Petersen at 3/21/2005 9:33:35 AM
Brand new to .aspx, and just modifying code. I have this: writer.WriteLine("DTSTART:" & beginDate.ToUniversalTime.ToString("yyyyMMdd\THHmmss\Z") ) I am grabbing the date and time from two fields and just need to combine them into one string for the above to work and I don't know how in .asp...more >>

Making objects move along with resizing browser page ?
Posted by WJ at 3/21/2005 9:21:37 AM
What controls needed to cause the entire page moves along with the "resizing" of the web browser (left/right)? Example: Click here http://www.google.com, when Google main page is displayed in your browser, then try to resize it horizontally, notice that all the objects inside the page also ...more >>

Single Sign on Best Practice.
Posted by KeithH at 3/21/2005 9:15:04 AM
Question. Not sure if it's posted elsewhere, but here is my situation. I would like to create a Signon ASP.NET Application where the user would go to and sign in. Based on the credentials I would then transfer them to another application (on the same server in the same domain). I would like t...more >>

Help with Response.Redirect(URL,True) behavior
Posted by MikeM at 3/21/2005 9:15:02 AM
We are getting a behavior on a Response.Redirect("SomeUrl", True) that I'm hoping someone can explain. This all refers to the code snip at the end. By the way, this is all VB ASP.NET v1.0 code. So we have the Page_Load event of an ASPX page fire which in the snip you see calls "SomeMethod...more >>

DateTime picker control
Posted by venky at 3/21/2005 8:56:09 AM
Hi, Is there any good datetime picker control to use for asp.net pages? I want have a date field in my form to show, i want the behaviour like when u click the button next to text box, it shoud display the calendar control venky ...more >>

Application error
Posted by siddharthan segar via .NET 247 at 3/21/2005 8:49:48 AM
(Type your message here) -------------------------------- From: siddharthan segar dear sir/madam when i compile my java programs i get an application error(javac.exe) stating " Unhandled exception at 0x77e8f142 in javac.exe: Microsoft C++ exception: eMemoryException @ 0x0012e9...more >>

w3wp locking a text file
Posted by Doug Oliver at 3/21/2005 8:43:06 AM
I've got an intermittent problem when trying to write to a text file (used as a log). ASPNET has modify on folder, and at times logs to file, then I get a null reference exception, followed on re-attempt with a "being used by another process" exception. I then have to recycle the w3wp.exe pro...more >>

Required field validator
Posted by Srinivas at 3/21/2005 8:36:01 AM
Hi If a textbox is being validated using a required field validator then we need to key in some text before sumbmitting the form. But if we key in a space character this gets validated to true and the form gets submitted. I want to make sure that the user enters some text and submit the form, ...more >>

Q: check users in Active Directory
Posted by JIM.H. at 3/21/2005 8:17:03 AM
Hello, I need to get user name and password from our internet and check Active Directory if the user name is available in the network and password matches, how should I do this and is there a C# code? Thanks, Jim. ...more >>

dynamic webform - repeat textboxes
Posted by Boonaap at 3/21/2005 8:15:05 AM
Anyone an idea how to create a Hierarchical data webform? I was trying to figure it out with a datagrid but anyone a better idea? should be C# thx...more >>

Datagrid Column Width
Posted by Chris at 3/21/2005 7:56:04 AM
Is there a way to autosize the Datagrid column widths to just a bit larger than the data. I know how to manually size the column in code but I have a dynamically created datagrid and it work except the data is all squeezed together. I'd like a way to measure the text in the column and then ...more >>

Handle HttpRequestValidationException gracefully
Posted by Mark at 3/21/2005 7:27:08 AM
Hello, I'm trying to handle HttpRequestValidationException. If a hacker enters certain values into a textbox, like "<script>", it will trigger this error. I understand why .Net has this, but I need a way to gracefully handle it. Ideally the app would catch it as invalid input, and then retur...more >>

Problem with databinding expression
Posted by Roshawn Dawson at 3/21/2005 7:20:52 AM
Hi, I have a repeater control. This control will render a number of textboxes on the page. Each textbox has its onblur event wired to a JScript function. Here's a sample: <asp:textbox onblur="blip(this,<%# Container.ItemIndex %>)" text="<%#Container.DataItem("Quantity")%>" /> The b...more >>

Q: C# for windows and forms authentication
Posted by JIM.H. at 3/21/2005 7:19:04 AM
Hello, Is there a sample application in C# for windows and forms authentication, I need to create a login screen on the internet for our employees? Thanks, Jim. ...more >>

Nesting Literal Control in anchor tags
Posted by Spondishy at 3/21/2005 6:32:23 AM
Im running the following html snippet in my page... <a href='<asp:Literal id="litSubRegionCode" runat="server"></asp:Literal>'>Test</a> When I flick back to designer view I get the 'Could not re-format page' message. How do I correctly nest the literal inside the anchor tag... Thanks. ...more >>

Q: datagrid column fit
Posted by JIM.H. at 3/21/2005 6:23:04 AM
Hello, How can I get data grid column width fit the data automatically? Thanks, Jim. ...more >>

FCKeditor implementation in ASP.NET
Posted by ronald_rosier NO[at]SPAM yahoo.co.uk at 3/21/2005 5:06:40 AM
Hi, I'm am trying to implement FCKeditor in my webapplication, but unfortunatly, I haven't succeeded in doing this. After almost a week, I finally got an compiled application, but now I get some new faults. Can anyone help me please with this problem? This is my configuration of the applica...more >>

asp.net, OWC and excel
Posted by richi at 3/21/2005 4:47:02 AM
Hello I would be grateful if somebody could give me some advice on the best practice. I am using OWC, VBScript and HTTP handlers to populate OWC Pivot tables and everything works fine. I transform my dataset into XML and persist this to the browser where VBScript manipulates the display...more >>

DirectorySearcher - whats wrong with this?!
Posted by dhnriverside at 3/21/2005 3:35:05 AM
Hi I'm getting the following error in my code... "Exception Details: System.Runtime.InteropServices.COMException: The server does not support the requested critical extension" Here's the function... int listc; string cs; DirectoryEntry entry = new DirectoryEntry("LDAP://" + Confi...more >>

Problems with Update and MySqlDataAdapter
Posted by Kenneth P at 3/21/2005 2:41:01 AM
Hi, I've been using MSSQL2k as the DB for several years now and I have a few apps where I do some changings in the dataset and need to update the underlying db and that I do with the sqlcommandbuilder object and the sqldataadapter. I have a sqlconnection object, a sqldatadapter object an...more >>

aspNetEmail with Asp.net
Posted by yew chong at 3/21/2005 12:47:43 AM
Hi, Not sure if this is the right place to post this. Anyway, currently am using MCMS (Microsoft Content Management Server) and Asp.Net to program my application. My program needs to send emails, and I am using aspNetEmail as the third party software to help me handle the sending of emails. ...more >>

Howto load a file BEFORE showing a htm object ?
Posted by Alex Nitulescu at 3/21/2005 12:27:20 AM
Hi. My site has a splash screen which, to look its best, really depends on the synchronization between animation and sounds. My question is - how to load the small mp3 file (about 350k) BEFORE showing the splash screen ? I'd like to show it only when I can be sure that the mp3 has already been...more >>


DevelopmentNow Blog