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 tuesday march 22

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

ASP.NET 2.0 FileUpload control
Posted by Uncle Ben at 3/22/2005 11:12:50 PM
How strong and reliable is the new ASP.NET 2.0 FileUpload control? By that, I mean is it reliable enough to accept 2-gigabyte file uploads per upload session? Also, is it possible or easy to implement an upload progress bar using this FileUpload control? Thanks. ...more >>

using itextsharp assembly with asp.net?
Posted by Patrick Olurotimi Ige at 3/22/2005 10:52:01 PM
Has anybody used the itextsharp http://itextsharp.sourceforge.net to convert asp.net pages to PDF files? Any asp.net examples? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

Populate a Listbox by using JavaScript
Posted by Devin Wood at 3/22/2005 10:49:13 PM
Hi, I have a page with a ListBox on it, and It's also have a some buttons to populate the ListBox by using JavaScript. I have no problem with populate the listbox using JavaScript. But when the page is submited / postback, the listbox is still empty. Do you have any solution for this case (...more >>

Dynamic add controls
Posted by RJDev at 3/22/2005 10:41:17 PM
Hi, I am new on adding daynamicly controls to a webpage. Can anyone point me out on how to start. The controls added are depending on the fields in an dataset. And when added how i can i retrive informatie from it after an postback. Please hand me some info or even beter some please where t...more >>

Timer in asp.net
Posted by Mr Red at 3/22/2005 10:38:59 PM
Hi all, I have one label and one button. When I click the button the label shows "Hello world". What I want to do is after 5 second the hello world is clear. How to do it with asp.net. Im using vb.net as the languages. Thanks...more >>

How to change row data when dropdownlist changes?
Posted by Luis Esteban Valencia at 3/22/2005 10:24:48 PM
Hello I have a datagrid with a dropdownlist that has the products, another column has the price of the product and when the user changes the product it also must change the price how can I achieve that. Thanks Datagrid html <asp:datagrid id="dgpedidos" runat="server" Width="100...more >>

How to add a row to a datagrid?
Posted by Luis Esteban Valencia at 3/22/2005 10:24:48 PM
Please check my datagrid and code behind code and help me if possible. I am making asingle sales system and I need to add a new row with a linkbutton that I put on the footer of the datagrid. My datagrid has a product column (dropdownlist), quanitity( the user can enter text here), price (no...more >>

Sort order Problem with datatable.select method
Posted by emailtonitin NO[at]SPAM gmail.com at 3/22/2005 9:51:10 PM
Hi, I am having a problem with the default sorting mechanism employed by the datatable.select method - I have a datatable having rows (simplified for clarity) - name ----- c a b f d e Now, if I select some rows from a datatable - datatable.select ("name in 'c,a,b'") but the r...more >>



How to use custom validators for dynamically genrated textboxes
Posted by Charith Jayasundara via .NET 247 at 3/22/2005 9:37:00 PM
(Type your message here) I have created some textboxes dynamically. I want to know how to use java scripts to validate them Thanks -------------------------------- From: Charith Jayasundara ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) <Id>6CJq6M852U2m...more >>

Can not open the aspx page in Degsign View mode?
Posted by Nicky at 3/22/2005 9:05:03 PM
hey, all This is a piece of code in my DataGrid, I just want to show a link in this column. So I do it like this: <asp:TemplateColumn HeaderText="De-active"> <ItemTemplate> <a target=_self href="ScheduleStatusCheck.aspx?<%# GetLink(DataBinder.Eval(Container, "DataItem.ID"), 0)%>">De...more >>

Exporting an ASPX's HTML to PDF
Posted by Valerian John at 3/22/2005 8:54:57 PM
I am looking for a way to sort of redirect the Page.Response content to a pdf generator component that would create a pdf file on the fly! I wonder if there is such a thing in the .net world. I see a java based product that may do this (from CORDA). This is really my problem: My asp.net ...more >>

Cookies question
Posted by Joe Fallon at 3/22/2005 8:28:25 PM
I use forms authentication for my app. After I log in successfully each request by the browser contains 2 cookies. One for the SessionID and one for forms authentication which contains my ticket. Can someone please explain where these cookies are stored? I think it is in memory in the browse...more >>

no write permissions
Posted by Jimmy at 3/22/2005 8:10:21 PM
Hi I trying to create a new directory "newdir" but i get the error: Exception Details: System.UnauthorizedAccessException: Access to the path "c:\inetpub\wwwroot\MakeLab4\newdir" is denied. I think i have to grant the necessary permissions. Where can i do that because in the explorer i c...more >>

Viewstate and dynamicly added controls
Posted by Anders K. Jacobsen [DK] at 3/22/2005 7:07:27 PM
Hi im creating a (or is starting but need your advise) search page for some products which has surdden charataristicas which all should be serachable. These charataristicas can be added runtime so to say and the charataristicas is stored in the database where they are decribed eg. The charatar...more >>

going crazy? files won't update
Posted by sklett at 3/22/2005 6:59:04 PM
I keep my solution on my iPod and today I made some changes at work, then I got home and opened the solution in vis studio and the changes were all there(normal) When I debug, it shows me old versions of the aspx pages! I have checked my IIS virt. dir. and it points to the exact same files ...more >>

Can cookie store non-ascii?
Posted by Paul W at 3/22/2005 6:45:33 PM
Hi - I'm doing simple XOR encryption on a password before storing it in a cookie. I use the same 2-way encryption/decryption routine at each end (before writing/after reading). Something is getting screwed up because this doesn't work as expected. Can cookies store any non-ascii characters? (I...more >>

User Controls
Posted by jack-b NO[at]SPAM humlog.com at 3/22/2005 6:23:46 PM
Hi, If I just say have a user control which contains a datalist that displays information about different companies. The datalist contains an image for the company logo and some text describing the company. Now this is fine if each company template is the same BUT what if I want each company ...more >>

Exporting asp.net pages to PDF files
Posted by Patrick Olurotimi Ige at 3/22/2005 5:52:51 PM
How can i export an asp.net page that sucks data from a databse and export it to PDF file or MS word? I want the user to be able to select the adat from the page and on that basis export to PDF file. Any ideas? *** Sent via Developersdex http://www.developersdex.com *** Don't just partic...more >>

urgent help with menu
Posted by Bart Schelkens at 3/22/2005 5:26:18 PM
Hi, I'm looking for a menu, that i can position at the bottom of the page and for which the submenu-items open upwards instead of downwards. I hope you can understand what I mean. On this site you can see what kind of menu I'm talking about : http://www.fosterandpartners.com/InternetSite/Fl...more >>

GAC and FileNotFoundException Can someone help?
Posted by Prodip Saha at 3/22/2005 5:22:21 PM
I am trying to load a shared component like DataAccess from GAC and not been able to successfully get it working for my asp.net application. The dll is loading from the GAC with correct version and I can verify it from Output window of VS.Net IDE. I can change the policy and it works because I ca...more >>

btnSubmit.click not firing when another control does postback
Posted by walesboy at 3/22/2005 5:17:02 PM
greetings - I have a btnSubmit button with a Handles btnSubmit.click which works great if all the user does is click that button. But, if the user ALSO changes a text box on the page (which has it's own event and autopostback=true) before clicking submit then it fires the text box event ...more >>

File Upload Control
Posted by Jon Natwick at 3/22/2005 4:52:47 PM
I would like to limit the file types that users can upload. <input id="tbFileUpload" type="file" runat="server"> This setting looks like it should it work, but it's not working for me. tbFileUpload.Accept = "gif,bmp"; Any suggestions? ...more >>

text size setting in VS.Net
Posted by Tina at 3/22/2005 4:47:51 PM
As I design my page, I want to make sure it looks good if the Text Size is set to largest in the I.E browser. How can I set my design view so object appear that way as I build my page? Thanks, T ...more >>

Intermediate Class between HttpApplication and Global
Posted by Fernando Arámburu at 3/22/2005 4:30:37 PM
Hy everybody, I´m working on an ASP.NET framework and and I need to extend System.Web.HttpApplication. I mean, I need to put some intermediate class between System.Web.HttpApplication and Global class on Global.asax file. What I need, in code, is the following: public class Myht...more >>

DataSet Disposal
Posted by TCORDON at 3/22/2005 4:25:01 PM
Should I Dispose a DataSet immediately after binding a control to it's data? cbox.DataSource=DS etc... etc... cbox.DataBind() DS.Dispose TIA ...more >>

getting web page - control and class to talk to one another is hard...
Posted by Support at 3/22/2005 4:15:15 PM
Hello: I have a aspx web page - let's call it main.aspx It contains a placeholder: Myplaceholder. I have a web control, lets call it webcontrol which has a code behind class called webcontrolclass and a label called mycontrollabel In the webcontrolclass, I have a private sub called: Sub wr...more >>

design for different browser & Settings
Posted by Tina at 3/22/2005 4:02:28 PM
We have a very attractive web application that uses grid layout and various grid layout pannels to simulate a windows look on in a browser. The application looks great when viewed with IE 5.5 with font size set to normal. But with other browsers and other font settings in any browser every...more >>

set absolute position on panel
Posted by Kurt Schroeder at 3/22/2005 3:57:02 PM
How can the absolute position be set when a button is hit. I have a help pannel that i want to appear next to the "?" button that is selected. thanks any ideas would be appreciated kes...more >>

Updating From Text Boxes
Posted by enrique at 3/22/2005 3:39:03 PM
Hi, I apologize for a newbie question, but my books/research have yielded me no examples and my time is now short. I simply want to update data from text boxes (fields). I'm not using a datagrid or datalist I found plenty of examples of how to do that and can get that to work. I simply want...more >>

Losing state on bound controls in user controls
Posted by Josh at 3/22/2005 3:14:03 PM
I am trying to move some of my more common controls into user controls. However, I seem to have problems maintaining state of databound controls that are contained within user controls. On postback the controls still display correctly. However, trying to access the controls programatically ge...more >>

Formatting string data : basic question
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 3/22/2005 2:51:45 PM
Hi All, I am sending an email containing the string data for eg . string subject ="New client"; from my web service. I want that string data to be appearted as bold in the email. I know this is a very basic question I am asking. I really searched a lot but I did not find a solution. Pr...more >>

how to toggle the visibility of large chunks of a page
Posted by Dica at 3/22/2005 2:23:23 PM
i want to set up my aspx page with a hierarchical navigation system. first the user has to select to "-- Select An Action --", which could be either "Add Item" or "Edit Item". If the user selects "Edit Item", i show a list of items they can select. once selected, i show the input form, which has ...more >>

Email Help
Posted by chuckdfoster at 3/22/2005 2:04:45 PM
I am getting this message - "Could Not Access CDO.Message Object" when trying to use SmtpMail from my ASP.NET site. Does anyone know why I might get this message? I didn't think anything needed to be installed/configured to use this. -- Chuck Foster Programmer Analyst Eclipsys Corporation...more >>

unicode characters in web form aspx pages, utf-8
Posted by ray well at 3/22/2005 1:38:13 PM
hi, i need to include some non english text in some web from aspx pages, in which i used unicode characters and saved them with unicode encoding (without signature). in regular html only pages i add the following line to the <head> section to make the text show up properly, otherwise it sho...more >>

Where does the image go?
Posted by dgk at 3/22/2005 12:56:05 PM
Basic image control question. How do I set the imageurl property? I tried relative and I just get the red X, I tried absolute and that returns a redX (works fine locally, just not over the web). The actual address (say http://www.mysite.org/theimage.jpg) should point to an image in the virtual I...more >>

Runing Client-side code
Posted by Nikolay Petrov at 3/22/2005 12:14:36 PM
How to run client-side code. I have an asp .net page for uploading files. What I need is a way to run code at client which compresses the files and the uploads them to server. I have .NET compression library and it works great in WinForms apps. How to make it run in Browser? Thanks ...more >>

web application security
Posted by Stephen at 3/22/2005 12:06:50 PM
I have my intranet setup on our web server. It contains multiple applications, but none are set up in the default application pools. In other words, I create a webform and plop it into a directory on the web server. My question revolves around security models for the applications. I have bee...more >>

How can i share asp session data with asp.net session data
Posted by far asl via DotNetMonster.com at 3/22/2005 11:51:21 AM
I have developed my site admin pages some in asp while others are in asp.net. I have problem that i cannot share session variables of both alternatively. Actually i save my userid in session variable.Index page is in asp.After login page a details page is in asp.net. Now thsi details page can b...more >>

When would null pointer exception occurs ?
Posted by Tony Cheng at 3/22/2005 11:37:11 AM
for (int i=0; i<_request.Form.Count; i++ ) { string key = _request.Form.GetKey(i); if ( !key.Equals("formCode") && !key.Equals("formLanguage") && !key.Equals("__VIEWSTATE") && !key.Equals("__EVENTARGUMENT") && !key.Equals("__EVENTTARGET") && key.IndexOf("s...more >>

Download & Javascript
Posted by Marc Ris at 3/22/2005 11:34:10 AM
Hi, Following problem, and I can't find any solution for that: I have an aspx page, which will (finally) generate an XLS-File which must (can) be downloaded from the user. After that, the window should close automatically. Well, the first part for itself is easy with Response.WriteFile()....more >>

Urgent help needed in Regular expressions
Posted by Raghu Raman at 3/22/2005 11:32:28 AM
Hi, I have to validate the amount field which may have 0 to 6 digits and a decimal point followed by 2 digits. I have picked the following expression from 4guysrolla.com ,but it allows many digits before and after the decimal point. Positive Number --- ^\d*\.{0,1}\d+$ example: 12...more >>

Intranet/Internet portals
Posted by dw at 3/22/2005 11:28:38 AM
Hi, all. We're choosing tools for developing intranet and Internet portals for our university and want to know what options are available. Don't laugh, but we're still using ASP for our Web apps! We're vaguely familiar with ASP.NET 2.0's portal tools, but need info. We'd like to know: - H...more >>

detecting empty 'input type=file' fields?
Posted by darrel at 3/22/2005 11:23:53 AM
I have some INPUT TYPE=FILE fields on a page. There are four of them and I'd like to validate them. They can either be empty, or need a certain filename. This is what I am doing: if (fileUpload_instDOC.PostedFile.FileName.length = 0 OR lcase(right(fileUpload_instDOC.PostedFile.FileName, 3)) ...more >>

GridView with BusinessObjects
Posted by Robert Warnestam at 3/22/2005 11:16:57 AM
Hi, When switching from using a DataGrid to a GridView a run into a problem. I want to show a list of users which I receive from a business object.=20 void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { // Get a list of all users. (a dataset with fields; UserID, = ...more >>

dynamically adding validation controls
Posted by Jack at 3/22/2005 11:11:06 AM
Hi, I have a page with a repeater control that contains textboxes. I'm trying to create a validation class that is called by my page. A method in this class iterates through all the controls on the page. On encountering a TextBox control, it looks at the ID to discern the field the TextB...more >>

Pop up window
Posted by Manny Chohan at 3/22/2005 10:57:03 AM
Hi Guys, I have a column in table changepassword in users table. Possible values Y and N. I want the user to login at the login.aspx page and when redirected(based on successfull login) to default.aspx page, they should recieve a pop up window to change password if the value is set to Y in da...more >>

DropDownlist Control Defailt
Posted by I am Sam at 3/22/2005 10:11:03 AM
I have set up some DropDownlist controls successfully on my web site and successfully databout them to a table in Sql Server. But I need to set up a static empty value selection listItem. How do I go about this without interfering with the dynamically bound list items?...more >>

how do i find what page is causing my performance prob?
Posted by kevin goff at 3/22/2005 10:07:06 AM
I am seeing that our CPU spikes for several minutes at 100% for the asp.net process. This happens several times a day and seems to last for 10 min or so and use a lot of memory. I'm trying to find out what page it is that is causing these problems. How can i find out what pages are executin...more >>

Javascript not working when part of asp.net page.
Posted by tshad at 3/22/2005 10:00:07 AM
This is from my previous post, but a different issue. I have the following Javascript routine that opens a popup page, but doesn't seem to work if called from an asp.net button. It seems to work fine from a link. The button does bring up the popup window, but when I press the links on the...more >>

mandatory text fields
Posted by Srinivas at 3/22/2005 9:59:42 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 >>

SmtpMail.Send - "Could Not Access CDO.Message Object"
Posted by chuckdfoster at 3/22/2005 9:47:49 AM
I am getting a "Could Not Access CDO.Message Object" Error when I try to use the following code to send an email via ASP.NET. When I run this on one machine it works, on another one it doesn't. Both have VS.NET installed and both have MS Outlook installed. What do I need done to the machine th...more >>

Style sheets and XML Strict
Posted by Dylan Thomas at 3/22/2005 9:45:20 AM
I'm using this doctype in my ASP.NET application: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> The "old" way of referencing an external style sheet using <link....> is not valid. At least I don't think it is. Can anyone tell ...more >>

port a page
Posted by Chris Calzaretta at 3/22/2005 9:05:31 AM
Hello guys, I am using vb.net along with asp.net so I will post this in both areas. I need to take an internal intrnet page and redisplay it to the internet. Where would I look to start to do this. It is possible to read Http stream and redisplay it? if you have a sample or a good link to...more >>

Selecting Dataset records
Posted by rodchar at 3/22/2005 9:01:06 AM
Hey all, Is there a way to get similar functionality as the SELECT DISTINCT records in a SQL Statement when selecting records from a dataset? thanks, rodchar...more >>

Reading xml
Posted by rodchar at 3/22/2005 8:57:03 AM
Hey all, If I wanted to read only certain records from an xml file, where do i begin my search to find out how to do that? thanks, rodchar...more >>

Dynamically Add text input in client script.
Posted by Alien2_51 at 3/22/2005 8:47:04 AM
I have a report parameters page that currently accepts an invoice number to generate an invoice report. The user would like to process many invoice reports, rather than having 10 or 15 textboxes ready for input I'd like to have a button that will add a textbox using client script, has anyone s...more >>

Open new project from web not compiling
Posted by LU at 3/22/2005 8:23:01 AM
I open new project from web (Created from another computer). I add new web form to project, build/rebuild etc and I get Parse error below. (If I change codebehind = to src=) it works. How do I get it to complie ? What setting should I look into? Server Error in '/census' Application -------...more >>

Embedding Classic ASP in ASP.NET page.
Posted by John Bankhead at 3/22/2005 8:05:02 AM
In the past in my company we have used the following to place the company banner at the top of the page. In an attempt to be expedient and lazy, I placed it immediate after the body tag in my template aspx jsut as we did in classic ASP. Two questions -- why didn't it work and what should I h...more >>

When will the Temporary ASP.NET files be cleaned
Posted by Srinivas at 3/22/2005 7:51:10 AM
Every ASP.NET applications is placing lot of files in Temporary ASP.NET Files location. C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\sgtesting1\ddd57924\8b1dde87 When and where these files will be deleted? -- Srinivas...more >>

Site as virtual directory
Posted by lintie NO[at]SPAM mytrashmail.com at 3/22/2005 7:38:36 AM
Hi, I have 2 websites. Now I want to run one site as a virtual site of the other in IIS 5 (Win 2000). Like this : Website 1 \--Website 2 (Virtual directory) 1) If I create the virtual directory and don't create an application on it, I get the following error: Description: An error...more >>

Read XML Data from a Page ?
Posted by WJ at 3/22/2005 7:35:08 AM
**: I m doing a cross-post here. it seems that XML folks does not deal with Asp.Net form ** When you click on a link from a web site, it gives you a page exactly like the following. How can I extract the data using code-behind without requiring user to perform a "Save As" to an XML file ? I w...more >>

dynamic generated buttons
Posted by benoit at 3/22/2005 7:23:07 AM
I heve this webform with a checkboxlist and a button. Based on which checkboxes are checked, several textboxes and Buttons are generated. When I click one of these buttons, the page goes in postback, and everything has disappeared from the form All the help I can find is about a predefine...more >>

Q: prevent the source code from being viewed
Posted by JIM.H. at 3/22/2005 7:17:03 AM
Hello, I am using asp.net c#, when users login into my application through mixed windows-form authentication, is there a way that they can see the source code, if yes, how can I prevent that? I need to prevent the source code from being viewed by users since there is a user and password decla...more >>

Linking ASP.Net page to CSS
Posted by vinu thomas at 3/22/2005 6:47:05 AM
Hi all, How do i link an asp.net page to a CSS file, so to standerdise the control.. Regards Vinu...more >>

Website as virtual directory
Posted by lintie NO[at]SPAM mytrashmail.com at 3/22/2005 6:21:09 AM
Hi, I have a website that I want to use as a virutal directory in another website. But when navigating to this stite I get the error below. The site is located in 'C:\Inetpub\wwwroot\Waverunner\BoekenB2C\Default\NL' Is there a solution to this? Directory 'C:\Inetpub\wwwroot\Waveru...more >>

Regular Expression to Split Text with \r\n
Posted by Raed Sawalha at 3/22/2005 4:53:03 AM
I havea regular expression to text as pairs key:value (?<Keyword>\w+):(?<Value>.*)((?=\W$)|\z) when enter the text as following: x-sender: raed_sawalha@hotmail.com x-receiver: teacher1@eLearning.jo ....blah blah ( I'm using expresso regular expression utility) I successfull get the resu...more >>

Is this possible
Posted by Nikolay Petrov at 3/22/2005 4:48:09 AM
How to run code at Client-side in .NET Like ActiveX controls. I would like to make an upload page where the data is compressed client-side, and then uploaded as streams(maybe in XML as binary type). So how to run the compression code at client. I want to use 100% .NET solution. Thanks ...more >>

Intermittent SQL Server login problem
Posted by pvl at 3/22/2005 2:01:12 AM
Hi We have the following scenario: 1. SQL server 2000 on Windows 2003 Server 2. Web server 1, running web service 1 on Windows 2003 Server 3. Web server 2, running web service 2 on Windows 2000 Server 4. Client application. 1, 2 & 3 are all on the same Windows 2003 domain. Client applic...more >>

Cannot use 'jscript' because another language has been specified e
Posted by perper at 3/22/2005 1:29:04 AM
Cannot use 'jscript' because another language has been specified earlier in this page I tring to# include an JScript file into a ASp.net in order to use functions declared in ti on the server side....more >>

Proposed MSDN Subscription Changes - VERY BAD!!!
Posted by news.microsoft.com at 3/22/2005 1:22:08 AM
I urge every developer who has an MSDN subscription (Universal) to petition MS to change their proposed ideas on Visual Studio Team Suite (VSTS). Depending on what you read, they are proposing to not include it or raise the price to between $5,000 and $10,000. Every developer who has helped M...more >>

Response.write is asynchronous?
Posted by Buddy Ackerman at 3/22/2005 1:01:46 AM
I am creating a ZIP file on the fly and streaming it out to the client using Response.WriteFile(FileName, StartPos, FileSize). Because this ZIP contains files that are on my server and I don't really want a bunch of duplcate data filling up my server I need to delete the ZIP file after it's str...more >>


DevelopmentNow Blog