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 2006 > threads for wednesday may 3

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

Convert Currency-formatted string back to decimal
Posted by Ritu.Chandra.JBS NO[at]SPAM gmail.com at 5/3/2006 11:10:52 PM
Hello, I am facing a strange problem. My application formats a decimal value to a string something like this. fprice float; sPrice String; fprice = 450.77 // This value actually comes from the database sPrice = fprice.ToString("C") sprice after the above transformation looks like "$4...more >>

What you think
Posted by Stan Canepa at 5/3/2006 10:08:09 PM
I am looking for good documentation to help support rewriting a VB 6 app in Dot Net. I looking for things like VB 6 being unsupported in March 2008, general performance improvements, at what point will VB 6 just won't work on the newest version of Windows. How good is the ajax functionality in 20...more >>

Dropdown List
Posted by Chris at 5/3/2006 9:48:19 PM
I want to add a 'Please Select.....' with a blank value to a dropdown. And then remove it once a selection is made. What is the best way to do this. ...more >>

Formview Repeater
Posted by Chris at 5/3/2006 9:33:02 PM
Quite often in ASP I am asked to repeat ten rows of data but with slightly more complex formatting. Each row might have a header, image to the left, text and a few links etc. Is there an easy way to do this in .net. Sort of like the formview but repeated and paged like a gridview? Regards, Chr...more >>

Localization Globalization ASP.NET 2.0
Posted by leodippolito at 5/3/2006 8:56:04 PM
I have a resources file under App_GlobalResources in my web application ("web site project"). I can access it normally using the strongly-typed syntax. My question: I have a DAL that is separate in a different project (class library). Is it possible to access the resources file in App_GlobalR...more >>

How to find out size of Session?
Posted by Shimon Sim at 5/3/2006 8:45:51 PM
My application seems to grow over 50MB for aspnet_wp.exe and I have no idea why. I am using MS Enterprise Library 1.1 in ASP.NET 2.0 I am not sure if this could be a problem. The problem is that when I uploaded my application to provider it throws users out every 10-20s. They told me that th...more >>

moving listbox items
Posted by rodchar at 5/3/2006 8:40:02 PM
hey all, if i select an item in a listbox, how would i move that item up/down the list using upd/down buttons on my .aspx page? thanks, rodchar...more >>

finding address in browser?
Posted by perspolis at 5/3/2006 8:11:48 PM
Hi all How can I find the address that user type in address bar?? I have some subdomains that have a homepage.I want to determine which address is user typed and based on that address load properly information/ thanks in advance ...more >>



not sure about FormsAuthentication...
Posted by Daves at 5/3/2006 7:54:46 PM
I'm using an authentication (login) code of my own, completely bypassin asp.net's membership functions... Isn't it enough to just set the Session["UserName"] value on login and then erasing when user logs out? Is there any need to use FormsAuthentication.SetAuthCookie(...) unless I want...more >>

The current configuration system does not support user-scoped settings.
Posted by Trapulo at 5/3/2006 7:36:21 PM
What does mean this error? The current configuration system does not support user-scoped settings. I'm accessing a my.settings data from a DAL dll referenced by an ASP.NET app. I've a similar other application that works well. The one with the problem is an 1.1 upgraded, the one that wor...more >>

What is the Syntax for changing a DataTable column value?
Posted by keithb at 5/3/2006 7:26:58 PM
This statement doesn't change the contents of column 3 (a boolean column) to true: table.Rows[table.Rows.Count-1].ItemArray[3] = true; Can someone suggest a syntax that will work? Thanks, Keith ...more >>

Server Error in '/' Application
Posted by doomster NO[at]SPAM aanet.com.au at 5/3/2006 7:18:44 PM
Hi, Recently we upgraded our Windows 2000 servers to Windows 2003. One of our websites which was working fine previouslyis now displaying ... 'Server Error in '/' Application' along with with some details on configuring web.config I have modified the web.config to get a more detailed err...more >>

Browsing control's event handlers in VS.NET
Posted by H5N1 at 5/3/2006 6:57:00 PM
Hello Is there any way to browse control's event handlers and add it's signature automatically, just like it happens when I double click on a control in design view, but with handlers other then default? It's a pain to search for them, and their syntax (arguments etc). thanks ...more >>

Could anyone explain this Yahoo! source code?
Posted by Andrew at 5/3/2006 6:50:01 PM
Hello, friends, I am implementing web app security using asp.net 1.1, and I found the following source code from Yahoo! Mail login page: <form method="post" action="https://login.yahoo.com/config/login?" autocomplete="off" name="login_form"> <input type="hidden" name=".tries" value="1...more >>

Display graphic to page
Posted by briand at 5/3/2006 6:32:01 PM
I am writting a control that paints an image to a graphic (created from a bmp). I want to be able to display the painted image directly without having to save to file and link to the saved image. I have been told this can now be done in .NET 2.0. Is this so? How? -- Thanks Brian...more >>

Known issues using 2 of the same Web User Controls on the same page
Posted by mrobins NO[at]SPAM gmail.com at 5/3/2006 6:05:49 PM
Are there any known issues about using two of the same Web User Controls on the same page? I lose state and values in one control when the other control is activated. ...more >>

ObjectDatasource
Posted by motorhead_maniac at 5/3/2006 6:00:34 PM
hi All, Iam having a objectdatasource control declared in the markup as <asp:ObjectDataSource ID="odsProperties" runat="server" TypeName="System.Collections.IEnumerable" SelectMethod="GetProperties"></asp:ObjectDataSource> Then on the code behind iam hacing a method declated like ....more >>

VIEWSTATE QUESTION
Posted by Savas Ates at 5/3/2006 5:58:35 PM
I wantto submit my form to another page without using viewstate. I used EnableViewState="false" in my page directive <%@ Page EnableViewState="false" Language="vb" AutoEventWireup="false" Codebehind="Default.aspx.vb" Inherits="DATAGRID._Default"%> <form id="Form1" method="post" runat=...more >>

Deploy problem (single dll)
Posted by yootaeho NO[at]SPAM gmail.com at 5/3/2006 5:58:17 PM
Hi Gurus, It would be appreciated if you guys give me some idea to tackle our current problem. About 10 developers in our company are working one a couple of web projects using source safe, asp.net and sql server. Say a programmer changed on sales.aspx.cs page and b programmer changed order....more >>

error:Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation
Posted by Henry Lee at 5/3/2006 4:49:01 PM
hi , all This is driving me crazy , I use msgbox method in .net 2.0 environment and it is running fine on my IIS (Windows 2000) until today. The error is like "Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation". I ju...more >>

customize button in fileupload control
Posted by Dabbler at 5/3/2006 4:43:01 PM
Is there any way to alter the look of the browse button in the fileupload control? Maybe subsitute an image? Thanks for any suggestions....more >>

How can I split database results with ExecuteReader and Split?
Posted by needin4mation NO[at]SPAM gmail.com at 5/3/2006 4:34:02 PM
Hi, thanks for any help here: SqlCommand cmd = new SqlCommand("SELECT categories FROM catalog" conn); rdr = cmd.ExecuteReader(); String temp; while (rdr.Read()) { temp = rdr[0]; Response.Write(temp.Split(":")); } Doesn'...more >>

Help: Unable to cast object of type 'System.Int32' to type 'System.String'.
Posted by keithb at 5/3/2006 3:31:18 PM
What could be causing this? this code: String Com = ""; if (Com != (String)rw.ItemArray[0]) fails at runtime with the error message: Unable to cast object of type 'System.Int32' to type 'System.String'. this code, in a different class runs without error: String Env = "";...more >>

Pass Paramter from Repeater - Can't Figure This Out
Posted by Ranginald at 5/3/2006 2:41:14 PM
Hi, I have a repeater based on a stored procedure. It pulls the following: catDesc Image The user sees the category description (catDesc) , and then clicks on the image (Image) which is bound to the catID. This catID (@catID --- an integer) is then to be passed to the next page, sculpt...more >>

Compiler Error Message: CS0433:
Posted by mlcy at 5/3/2006 2:25:59 PM
hi there, i got this Compiler Error Message when i tried to access my site. all files were built in vs2005 without error. Compiler Error Message: CS0433: The type 'FrontEnd.AppConfig' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\newsearch\0d2e701c\8...more >>

visual studio 2005 - how to use grid view to change data in field ?
Posted by scott at 5/3/2006 2:24:29 PM
Hi, In visual studio 2005 I create a website project, create a new aspx page (web form), add a GridView (data populated from SQL 2000 db). I would like the user to have the ability to change the value in a status fields (values they can input should come from a preset list). Can anyone ...more >>

How to set selection in dropdownlist included in a Gridview <EditItemTemplate>
Posted by WT at 5/3/2006 2:19:48 PM
Hello, I can figure how to set selectIndex or Value, I have tried this <EditItemTemplate> <asp:DropdownList ID="DDLSector3" DataSource='<%# BindSector(this,(int)DataBinder.Eval(Container.DataItem,"wt_SectorId"))%>' OnPreRender='SetSectorIndex' DataTextField='wt_SectorName' DataValueFi...more >>

pls HELP: webpart acting as shared but should be user
Posted by arthernan at 5/3/2006 2:13:16 PM
I have an almost finished page that uses webparts. And this is the expected functionality. A logged on user hits a button and the button opens a WebPart. Then the user logs off, next time he logs on he will find the webpart already open. Now, if a different user logs on, the fact that another us...more >>

Upload Site using Crystal Report
Posted by Lou Civitella at 5/3/2006 1:54:29 PM
I created a web site that uses Crystal Reports in VS 2005. Now I want to upload the site to my web site. I did so but I get an error message when I try to view the page that has the Crystal Report viewer. What do I need to do to view this page? I know that if I setup the web locally on a loc...more >>

VS.NET 2005 Macros
Posted by MSDN at 5/3/2006 1:42:45 PM
Hello, Where do I go to learn or ask questions on how to right Macros in VS.NET 2005 I need to be able to write a macro that can comment out HTML. Thank you, SA ...more >>

Web.config javascript
Posted by André at 5/3/2006 1:29:02 PM
Hi, Can I add javascript path to a web.config file? Right now I have to add this to each page. <script src="AC_RunActiveContent.js" type="text/javascript"></script> If so, can someone give me an example? Do I need to add anything to the page if I can add this to the config file? Th...more >>

How to set a DataTable Column DataType to boolean
Posted by keithb at 5/3/2006 1:25:36 PM
The following code sets a DataTable column DataType to "String" column.DataType = System.Type.GetType("System.String"); What is the corresponding statement when the data type is boolean? I have tried both "bit', "bool", and "boolean" and all cause an error. One would think that a simple ...more >>

Localize themed label
Posted by Trapulo at 5/3/2006 1:16:18 PM
Hello, I've this problem. I need to create a web app, where some text are localized in many languages. That's ok: I can use "App_Localresources" and related features, and all works. Now, I need also to create different "skins" of this application. This is also ok: I can use themes and all wor...more >>

Emailing HTML/Hotmail problem
Posted by Ryan at 5/3/2006 1:12:01 PM
I have code that emails an html document where as the email is in html format... (and not an attachment) objMessage.From = astrEmailFrom objMessage.Subject = astrEmailSubject objMessage.Body = astrEmailMessage objMessage.BodyFormat = MailFormat.Html objMessage...more >>

training class for ASP.NET 2.0
Posted by Caspy at 5/3/2006 1:08:37 PM
Does anybody know any training class on ASP.NET 2.0 near Cleveland, Ohio? Thank you in advance. ...more >>

Global.asax beginner question
Posted by ^MisterJingo^ at 5/3/2006 12:58:49 PM
Hi all, I'm attempting to create a login/role system for an application i'm building. My idea is to store an instance of a 'webapp' object in global.asax. This object stores login (username, ID) and role information (user, admin etc) which is set on a successful login. Would it be ok to put...more >>

Binding Treeview to Sitemap - Adding dynamic items
Posted by Ray Booysen at 5/3/2006 12:53:47 PM
Hi all I have a treeview bound to a sitemap. Once the user is logged in, I'm wanting the menu to expand to include additional items from a database while retaining the items in the sitemap. Is this possible. For example. My menu has an item called "Books" defined in the sitemap. Once...more >>

Retrieve Server Name
Posted by Lyners at 5/3/2006 12:42:03 PM
What I need - To retrieve the server name that the ASP application is running on. Why - Our current intranet is on a network where we have users that are on a domain and some that are not. Using I.P. addresses all the users can access the ASP pages. Using I.P. addresses, no one can use our ...more >>

httpwebrequest problems
Posted by Tyler at 5/3/2006 12:30:01 PM
I am using httpwebrequest to do a screen scrape. This works great on my development box, but does not on the production box. Here is the code. Dim webRequest As HttpWebRequest = CType(webRequest.Create(LOGIN_URL), HttpWebRequest) webRequest.Proxy = System.Net.GlobalProxySelect...more >>

HTTPModules vs Global.asax
Posted by tshad at 5/3/2006 11:48:56 AM
I am setting up Authentication that I want to put in multiple Web Sites on my server. I found a good article on this and am looking at moving my code from my Global.asax file to an HTTP Module. This works fine. But I was curious about what would happen if I left the Global.asax code in (wh...more >>

Regular Expressions replace !!
Posted by maverick1611 at 5/3/2006 11:30:41 AM
Hi, I'm fairly new t oregular expressions. I am struggling with the following problem. I have a big text file that I want to parse for the following text: <x:ConnectionString>sometextwithin</x:ConnectionString> once found I want to replace it with <x:ConnectionString></x:ConnectionString...more >>

how to access rows in a memory table
Posted by keithb at 5/3/2006 11:04:16 AM
Without using foreach, what is the syntax for accessing a given row in a memory table? Thanks, Keith ...more >>

image not rendered when expected
Posted by Bruce at 5/3/2006 10:37:13 AM
Although I have quite a bit of WinForms experience, I am new to ASP.NET. So don't be surprised by the elementary question. :) I am creating a webpage with a dropdown list that allows the user to select an image from the list. Based on that feedback, the page calls a web service to gra...more >>

Best way to use/keep XML data from file
Posted by phl at 5/3/2006 10:28:16 AM
Hi, I have some data in an xml file which I need to use in my web form. The data in the xml file needs to be shown in maybe a repeater, grid or data control. I will need to parse the data make sense of it and maybe place it in a data structure. Once I have a meaningful representation of this ...more >>

Application_Start Event does not fire
Posted by Steve at 5/3/2006 10:27:02 AM
Looking for some help on this one... I have three servers (development, staging, production), each running the same code. All three computers are running Windows 2003 Server, IIS 6.0. I have some code in the GLOBAL.ASAX file, which writes out a message to a database indicating that the even...more >>

link to open txt file in notepad
Posted by Daves at 5/3/2006 10:26:50 AM
a simple aspx page just needs to send a particular .txt file to stream so that it opens up in Notepad on client side. Using ContentType = "text/plain" it still opens in IE browser as a html file, what trick is needed? ...more >>

HTMLTable and CssClass
Posted by motorhead_maniac at 5/3/2006 10:20:21 AM
Hello, Iam trying to apply a css class while creating a html table in a server control. Iam using the HtmlTable class to generate table, the HtmlTable class has a Style property which takes name,value pairs for all the styles i want to apply, but how can i apply a class name directly ? ...more >>

good server controls for displaying Finanical data(income statements etc)
Posted by phl at 5/3/2006 10:17:58 AM
hi, Does anyone have any experience in displaying spreadsheets(from XML file) in ASP.NET2.0? I figure that a repeater is good for this, as it seems to be able to handle the formatting needed for this. If you have done this before, can you please let me know how you have done this. Man...more >>

IE modifying filename specified in content type response
Posted by AC [MVP MCMS] at 5/3/2006 9:53:03 AM
I've got an page used for downloads that acts similarily to the MSFT downloads.... page displays and refreshes itself which causes a XML file to be streamed to the client. The streaming of the file is working fine, however, IE is mucking the the filename I specify. For example, I'm specifyi...more >>

Exception Handling Techniques for ASP.NET Application with Multiple Layers
Posted by metsys at 5/3/2006 9:17:35 AM
We have an ASP.NET 2.0 (C#) application that is divided into multiple layers. The multiple layers come from having a web project and 2 different class library projects in the same solution. I'm having difficulties figuring out the best way to handle (catch) exceptions in the different layers ...more >>

Dynamically adding Web User Controls to ASP page
Posted by Jason at 5/3/2006 8:49:48 AM
I am trying to dynamically add a web user control - ctrlBlogEntry.ascx - to a page - default.aspx - (via an ASP:PlaceHolder). This web user control has two ASP:Label controls and I'm accessing their "Text" properties via public properties. However, after I have instantiated the ctrlBlogEntry c...more >>

Callback not working following a postback
Posted by ozy at 5/3/2006 8:42:28 AM
Hi All, I have a aspnet page that collects some simple data from the user. I have implemented 1 of the fields as a "cascading combo box" (a pair of drop down lists, where the second is populated based on the selection made on the first). In ASP1.1 this was implemented using a postback which o...more >>

Help: App won't run.
Posted by Michael at 5/3/2006 8:07:01 AM
Hi Everyone, I just put a app on a server that is already running sharepoint. The admin had put the app under the c:\Inetpub\wwwroot\PurchaseOrder dir. When I try and run the app I get the following error message: Server Error in '/' Application Description: An application error occurred on t...more >>

Request.Form values returned from AllKeys not what I want.
Posted by hazz at 5/3/2006 7:54:57 AM
Form: ItemsGrid$ctl02$CheckBox1 is the value printed from the Response.Write for the row below. How would one obtain the other cell values in that row? The first value (<td>1</td>) is the one I want. That is the primary key in the table that will be updated with the changed checkbox value. Tha...more >>

String split and index [0]
Posted by dotnettester at 5/3/2006 7:17:03 AM
Hi, I need to split a string and then take the 0th element of the resultant array. what could be a good shortcut? like 1 statement instead of 3,4 Thnx ...more >>

RGB code
Posted by nemo at 5/3/2006 7:06:47 AM
Hi, I want to find out the RGB code of the default background color of any window created in VS.Net. The properties panel shows the name of the color as "control" but does not display the RGB code. Can someone pls. help. thanks Nemo ...more >>

I don't know in advance how many textboxes will appear. How do I get their values?
Posted by BLACKDOG157 NO[at]SPAM LYCOS.COM at 5/3/2006 6:59:18 AM
I've made a form with a variable number of textboxes. The user fills them out, and then I need to pick up the values he has filled in. The number of textboxes vary depending on a value that the user filled in in another page. But suppose there were 3 values. In that case, I know the names of...more >>

ASP.NET 2.0 Newbie - Data Access!
Posted by Pablo at 5/3/2006 6:34:44 AM
Hi, just trying to get to grips with data access in ASP.NET 2.0. I may be missing a huge point here, and please forgive if I am, but in ASP 1.x and OO applications best practice suggests abstracting our various logic into distinct layers - we would have the UI in one layer, business logic in a...more >>

format number field
Posted by Carrie at 5/3/2006 6:07:03 AM
I have a number field with some numbers containing a decimal and some numbers with no decimal. In the code behind I put it into a decimal variable and to show this on a label I have the text of the label equal to this "Text='<%# DataBinder.Eval(Container, "DataItem.Num") %>'" SO, what comes t...more >>

download an image file to local...
Posted by Erphan Rajput at 5/3/2006 5:58:04 AM
Hi! Kindly tell me how to download/copy an image to local system using C#. for instance my application that is running on local network which is connected to internet... wants to download the logo of Google on this url (http://groups.google.com.pk/groups/img/groups_medium.gif). how can i ...more >>

How many .xsd datasets for a site?
Posted by H5N1 at 5/3/2006 5:48:33 AM
Hi there Is it OK to use one big xsd dataset (using Table Adapter Wizard) for whole site, and just to include there all tables used on each page, or should I keep those datasets as small as possible (for example if on each update the whole dataset must be updated, and not only specific tabl...more >>

small question
Posted by Mr. Murad Jamal at 5/3/2006 5:26:01 AM
I have a bound field set to visible="false". I have a custom command button, which posts back and I want to get the value of this field that is set to visible="false" and this field is an ID field, and I don't want to show it up in the gridview, but I want to be able to access the value. HOW...more >>

Logging Application Block vs. System.Web.TraceContext
Posted by Dick at 5/3/2006 4:59:02 AM
How do I integrating ASP.NET Tracing with the Enterprise Library Logging Application Block? I guess this should be possible and in a similar way to the way ASP.NET Tracing is integrated with System.Diagnostics Tracing as described in http://msdn2.microsoft.com/en-us/library/b0ectfxd(VS.80)....more >>

What is the best way of keeping a server-side object alive between page refreshes?
Posted by damian.jolly NO[at]SPAM sageautomation.com at 5/3/2006 3:46:25 AM
Is persisting objects to the SESSION the best way to prevent an object from being created every time a page is refreshed? It's a bit complicated but I'll try to be brief... I am using a guage from Fusion Charts Instrumentation Suite to show the speed of machinary in a factory. The guage upda...more >>

Empty window after file download with Content-Disposition
Posted by gluggi NO[at]SPAM bigfoot.com at 5/3/2006 2:53:08 AM
Hi, I have a small problem when I try to save a file. In an ASPX page in the Page_Load method I do something like that: (VB) Response.ClearHeaders() Response.AddHeader("Content-Disposition", "attachment; filename=foo.jpg") Response.Clear() Response.ContentType = "application/octlet-stream" ...more >>

Import CSV
Posted by benoit at 5/3/2006 2:38:03 AM
Hi, when I load a CSV file into a DataSet, and try to display it in a gridView, it clearly only displays the first column. what am i forgetting? this is my code OleDbConnection ExcelConnection = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + pathName + ...more >>

Access Master Pages from Ascx directly
Posted by xs at 5/3/2006 1:12:01 AM
Hi, Is it possible to access Master Pages from Ascx directly? In an Aspx, by entering the following , <%@ MasterType VirtualPath="~/Pages/Master.Master"%> , I can easily access its property using this.Master. But can I do that using Ascx controls? What can I do to access it directly? Tha...more >>

Calling Class in ASP.Net
Posted by mac at 5/3/2006 12:00:00 AM
Hi! Please help me on this, What is the code when calling or referencing a class in ASP.Net just like for example in windows forms. the coding is just like this. Dim frm as new form1 form1.showdialog Please help me on this topic, Thanks and regards ...more >>

Disable auto input for password in a login form !!
Posted by moi at 5/3/2006 12:00:00 AM
Hello, I have make a login form with an active directory membership. The trouble is that Internet Explorer may keep in memory the login/password of the user. Is there a way to disable it from the server ? Thanks a lot .. ...more >>

Email Sent Verification
Posted by sa at 5/3/2006 12:00:00 AM
Hi, Is there a way to get email sent or not with C#. I can understand if I get error message in my yahoo account. But is there a way to get this after SMTPClient.Send method? Regards, Salim ...more >>


DevelopmentNow Blog