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 > april 2006 > threads for friday april 7

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

DropDownList font size in ASP 2.0 - I can't change it
Posted by lawrence.farrell NO[at]SPAM gmail.com at 4/7/2006 9:12:39 PM
I am working with a dynamic DropDownList. It is being created in my VB code-beside. I applied a css class to it to resize the font and nothing changed. I then removed that css class and instead set the ddl.font.size to a number. That doesn't change anything. The font stays the same size no ...more >>


get the date from sql server
Posted by joe at 4/7/2006 9:08:01 PM
how to get the date from sql server in yyyy/mm/dd ...more >>

How to know whether success or not in FormView Control inserting.
Posted by yuchang at 4/7/2006 8:35:01 PM
Hi, Using the FormView control is very efficient. But I want to do some action,like showing a success message or redirect to another page, after inserting, updating and deleting. How do I get these message?...more >>

FTP
Posted by James Doughty at 4/7/2006 7:32:48 PM
Hi all, I know how FTP file from ASP.NET app, but I'm in need of doing it securly, either TLS/SFPT. Is it just over a differnt port or does the data somehow need to be encryted before sending. Thanks, James Doughty...more >>

day month year
Posted by joe at 4/7/2006 7:05:01 PM
how to get the day if 1-9 then 01-09 else 11-31 month if 1-9 then 01-09 else 10-12 year 01-99...more >>

instance of sqlDataReader - is not available to an exteranl method
Posted by Web learner at 4/7/2006 5:48:40 PM
I am trying to create a method GetDataFor(string column) becaues I have = to repeat the same statements for several columns but I get an error as = follows: The name 'dr' does not exist in the current context It seems the dr -the instance of sqlDataReader - is not becoming = available to th...more >>

'wiring-up' event handlers when creating a webform dynamically
Posted by bill at 4/7/2006 5:28:54 PM
I'm using VS2005. I am dynamically adding a Textbox control to a Placeholder control in the page_load event of the form, but the event handler isn't firing. What am I doing wrong? Thanks Bill Protected Sub Page_Load.... Dim tb as new Textbox AddHandler tb.TextChanged, Ad...more >>

Gridview Header Question
Posted by needin4mation NO[at]SPAM gmail.com at 4/7/2006 5:21:10 PM
Hi, I have a gridview with products in it. But each product is the same brand. So, say it is electronics: sony tv sony radio sony music ..... I only want to print out sony once and preferably at the top of the table somewhere. So that I would end up with sony ------- radio tv mu...more >>



Process.Start from a web service and StandardOutput
Posted by Steve B. at 4/7/2006 5:02:27 PM
Hi, I'm written a Web Service that encapsulate the call to a command line application. The command line application is run using Process.Start, and I'd like to get both standard ouput and standard error to create a log. After some searches, I finally wrote this part of code : public cl...more >>

Express versions vs. ASP.net...shared classes?
Posted by darrel at 4/7/2006 4:58:07 PM
From my understanding the main difference between VS.net 05 and Visual Web Dev Express (or whatever it's called) is that the express versions do not compile code. As such, if I use the express editions, can I no longer access functions in custom .vb files like I often do with VS '03? -Da...more >>

VS 2003 to VS 2005 Migration Issues
Posted by Bonggoy Cruz at 4/7/2006 4:42:01 PM
We have a fairly big size ASP.NET web application that was written VB.NET. We are in the process converting the web project. We used the migration wizard included in VS 2005. I followed step by step guide outlined in here: http://msdn.microsoft.com/asp.net/reference/migration/upgrade/defau...more >>

OptionExplicit
Posted by CMM at 4/7/2006 4:34:50 PM
I just realized that strict type checking does't seem to work in ASP.NET 2.0 no matter what I do (I set "strict" in Web.Config, I set it on the WebForm level.... what, do I have to put it at the top of every code module a ala VB3.0??? Am I missing something here? I know I've been griping a...more >>

Shell-out
Posted by Jim McGivney at 4/7/2006 4:34:19 PM
I have a program C:\MyDir\MyProg.exe I would like to place a button on an aspx page to start the program (shell-out) and to pass some command line arguments. Can this be done ? Sample code would be appreciated. Thanks in advance for your help. Jim ...more >>

New Website - ASP vs .NET Question
Posted by Anthony Bollinger at 4/7/2006 4:31:33 PM
I have inherited a new website and am learning ASP.NET. The person who handed the site off to me does not know if the site is old ASP or ASP.NET. How do I tell what I am working with? Many thanks, Tony ...more >>

Loading Controls based on Postback event data
Posted by jones.jeremyp NO[at]SPAM gmail.com at 4/7/2006 3:21:43 PM
Ok, I am building a control, and it is a Calendar and a previous and next month buttons. The Calendar is build completely by hand. Now, it is using various properties such as Month, Day, Year to build the calendar itself. My next navigation buttons are manipulating these properties. When the...more >>

Need to pass a Date parameter to be empty ?
Posted by glenn at 4/7/2006 2:51:02 PM
Hi folks, I guess this question has to do with formatting dates. Seems like it should be a no brainer but have spent too much time hunting so I am posting the forum. I have a function that needs to pass a Date data-type that is empty much like a string would be empty if we were to place...more >>

Trying to add additional .aspx pages to an existing web site
Posted by dave at 4/7/2006 2:17:02 PM
I need to add additional .aspx pages to an existing web site. I was hoping to create a new web project in VS 2003, build the project, copy the .aspx files and the .dll into the virtual directory of the existing web site. The existing web site would have a page with a link to the new web page...more >>

creating a ObjectDataSource using a DataTable in Profile
Posted by Bruno Alexandre at 4/7/2006 2:05:16 PM
Hi guys, I want to create an ObjectDataSource from a DataTable in Profile web.config <profile> <properties> <add name="CartItems" type="System.Data.DataTable" /> </properties> </profile> in the aspx page <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObje...more >>

form post to a different url in a new browser window
Posted by James Coleman at 4/7/2006 1:57:02 PM
I have to send a user to a 3rd party site. Basically I am thinking I need a linkbutton with an onclick event. The even handler would populate the necessary values (userid, encryptedid, usergroup) and then I need to post this information to a 3rd party site (in a new window). From the user...more >>

Import an excel spreadsheet in ASP.NET
Posted by Uma Muthu at 4/7/2006 1:50:34 PM
Hi, I have an ASP.NET (2.0) webform. I want to import an excel spreadsheet. In that Excel spreadsheet are specific cells that I want to capture specific data from. Is it doable? Thanks, Uma ...more >>

Internal .Net Framework Data Provider error 1
Posted by Andrew at 4/7/2006 1:45:08 PM
Win2k3 IIS6 ..NET 2.0 In my ASP.NET 2.0 app I create an open an SQL connection in the page's constructor and call objSQL.Dispose() in the destructor. The SQLConnection object is a class member of the page. Here's the destructor code: /// Destructor ~Officer() { if( m_objConn != ...more >>

unit test with post request
Posted by Jasmine at 4/7/2006 1:08:01 PM
Hello, Is there a way to simulate context for POST request with some posted data in the unit test ? thanks,...more >>

Insert records on FTP server database
Posted by sparty1022 at 4/7/2006 11:59:02 AM
we are constructing a (sql 2005) database on an FTP server where we will need to insert records into the tables. At this point our ftp scripts will allow us to upload/download documents/file from the server. We will be getting comma delimited records that must be inserted into the database....more >>

Navigating to an anchor within a page
Posted by Ken Slight at 4/7/2006 11:32:01 AM
Hello. Does anyone know how to navigate to a specific anchor within an ASPX page? For example, I have <a name='Test'>Hey there</a>, and I want to direct someone to that anchor in the PageLoad using code. In other words, if someone navigates to the default.aspx page, I want to immediately ta...more >>

FileUpload and Callbacks
Posted by TCB at 4/7/2006 11:16:25 AM
I cannot get the value of the selected file in a FileUpload control when using a Callback, is there any way to acomplish this? Thanks ...more >>

How to prevent query string values from being used more than once?
Posted by keithb at 4/7/2006 11:12:15 AM
A page uses query string values to add a record to a database. The record should be added only once; however, if a user activates the url additional times, multiple records are added. Is there some way to remove the parameters from the query sting to prevent undesired activations? Thanks, ...more >>

how to make SqlRoleProvider.ApplicationName thread safe
Posted by Francis Reed at 4/7/2006 11:01:00 AM
Hi I'm currently working on a new portal for an online university, and we need write code that manages roles for multiple applications. To tell the SqlRoleProvider which Application we are currently managing I am using the SqlRoleProvider.ApplicationName Property which is not thread safe. M...more >>

Stopping ASP.NET 2.0 bulk compilation...
Posted by James at 4/7/2006 10:39:10 AM
Hi, I am migrating an enterprise application from ASP 3.0 with server-side JScript to ASP.NET 2.0. There are over 400 pages. If I try to access one of the migrated .aspx pages, the aspnet_ws process tries to compile all of the pages. This times-out the initial page request to the brows...more >>

Problem with cell with in a table
Posted by B. Chernick at 4/7/2006 10:29:41 AM
I have started using a System.Web.UI.WebControls.Table control In this table I have programmatically added web controls (mostly textboxes) to all the cells of a particular column. (The entire table is defined in the VB code.) Nothing I do seems to affect the width of the column or the tex...more >>

e.Item.Cells(x) alternative
Posted by cjburkha at 4/7/2006 9:35:27 AM
I have a datagrid with some bound collumns (<asp:BoundColumn) I would like to reference these columns and their cells(data) in code. I have found this way, and it works ok. Dim startDateString As String = e.Item.Cells(6).Text I don't like this --------------------------------------------^ ...more >>

smtp sending issue - 2.0
Posted by param NO[at]SPAM community.nospam at 4/7/2006 8:13:18 AM
Hi all, I am trying to send an email in some asp.net code and our SMTP Server (EXchange) keeps kicking back with this message:- Mailbox unavailable. The server response was: 5.7.1 Requested action not taken: message refused Any ideas? The ip address of the sending server is in the allow...more >>

Major bug in VS 2005 style builder form
Posted by William Sullivan at 4/7/2006 7:57:02 AM
There are a couple posts about this here, but no answers. The problem is when you attempt to use the style builder for a page element in VS 2k5, the form appears and then immediately disappears. If you try again ten or so times, the whole IDE freezes up. Do any of the MVPs have any info on ...more >>

off-the-shelf timekeeping system where we own the code?
Posted by xz at 4/7/2006 7:46:22 AM
I'm looking for an Asp.net (preferably asp.net 2.0) app. we can use to jump start timekeeping. Has to be able to apply hours to multiple clients / projects each day, and track the hours, allow total billable hours to be viewed by managers etc. The basic stuff. Oh yea - and web based of cours...more >>

Newbie Question
Posted by Scott at 4/7/2006 7:45:01 AM
I'm performing the ASP Quickstart lessons, where I'm trying to get a datagrid to fill with data from a SQL Server database. The code below runs, but the datagrid doesn't display on the webpage. What am I doing wrong? I can add the controls and add Conn, DA, DS, command objects from the toolbox...more >>

CS0006: MetaData file not found
Posted by CSharpguy at 4/7/2006 7:43:01 AM
I've been working an a web application for 3 months now and its been compiling and running fine when I Debug -- > start without debugging, today I come in and work on the web app and do the samething but now i'm getting the following errors: CS0006: Metadata file 'c:\windows\microsoft.net...more >>

Add a UserControl to an ArrayList
Posted by s.bussing NO[at]SPAM symax.nl at 4/7/2006 6:45:12 AM
Hi, does anyone have an Idea if it's possible to add a UserControl (containing serveral other controls like textboxes and/or dropdownlists) to an ArrayList? If I just put [Serializable] at the top of the class of the UserControl, it does not make a difference, I keep getting the error: Th...more >>

button in headertemplate of gridview
Posted by NH at 4/7/2006 6:44:02 AM
I have this peice of code in my gridview <HeaderTemplate> <asp:ImageButton ID="btnPrevious" ImageUrl="~/Images/Calendar/ico_Previous.png" runat="server" /> <asp:ImageButton ID="btnNext" ImageUrl="~/Images/Calendar/ico_Next.png" runat="server" /> ...more >>

Retain scroll-position of a listbox
Posted by the friendly display name at 4/7/2006 6:31:03 AM
I have on a site some very populated listboxes, now, when the user scrolls the listbox to chose some items, and then clicks a button, thus, a postback starts, the scoll position of the listbox is reseted. Is there a way to keep the scroll position? Is the functionality build in, or, is addi...more >>

Alpha Regex validation
Posted by Opa at 4/7/2006 6:00:02 AM
Hi, I'm trying to validate a textbox such that it only alpha characters are accepted. I have the following Regex expression [^a-zA-Z] exactly as shown in the RegularExpressionValidator control, but it does not work. Can someone help me out with this. Thank You...more >>

How to design shoping site
Posted by Sukh at 4/7/2006 5:55:46 AM
My client given me requirement to design ecommerce shopping site and his main requirement is he want to display item photo's with price and brief detail on site and he wants to change these items daily without compiling the site. Can any one help me how to approach for this. Any url/link or any ...more >>

Invoking Excel COM object with CLSID is either not valid or not registered
Posted by RJN at 4/7/2006 5:52:28 AM
Hi I'm invoking the excel object from ASP.Net application. My development machine is Windows 2000 and MS Office is installed on my m/c. I have added reference to the Excel COM object, I have given Access and launch permissions to ASPNET user in DCOMCNFG and the identity set to launch user. B...more >>

Different MD5 hashes in .NET and Classic ASP
Posted by MartyNg at 4/7/2006 5:48:53 AM
I am running a system that has both Classic ASP applications and a smattering of ASP.NET applications. We want to store passwords on a SQL Server table as their MD5 hashes. What is the safest way to get this hash value, and be able to verify it against user logins in both Classic ASP and ASP.N...more >>

Response.write and Contentplaceholder - Howto
Posted by mosscliffe at 4/7/2006 3:14:58 AM
I am an old programmer, but a newbie to Visual Web Developer 2005 - Express Edition I have an .aspx Form Page with an attached Master File and an attached css file. I have scanned a text file for various matching records and output the ones I want to display with response.write...more >>

Can't load graphics in .NET 2.0 site
Posted by iainfogg at 4/7/2006 2:00:01 AM
I had an ASP.NET 2.0 site which works fine on my PC. I have just copied it to a server, and set it up to run in a virtual folder. The web pages work fine, but the graphics won't load - if I try to open a gif from one of the folders, I get the following message. Why would an ASPX file load, but...more >>

REgular expression validation
Posted by clickon at 4/7/2006 1:53:01 AM
I am using a RegularExpressionValidator to validate against a range on specific values and it is behaving strangely. My validation expression is as follows ^001|100|101|101D|102|103|103D|110|110D|111|112|113|114|114D|115|115D|116|117|117D|118|118D|119|120|120D|121|124|126|126D|127|127D|128|1...more >>

how to compare date
Posted by joe at 4/7/2006 1:10:02 AM
e.g 4/30/2005 e.g 6/30/2007 how to compare the two string in javascript which one is bigger...more >>

Select .NET Framework between 1.1 and 2.0
Posted by Sara T. at 4/7/2006 12:00:00 AM
How can I select .NET Framework between 1.1 and 2.0? Both for Windows Application and Web Application. ...more >>

Resize Image!!
Posted by Adam J Knight at 4/7/2006 12:00:00 AM
Hi all, I am trying resize an image using the following code. //resize image System.Drawing.Image ImageUpload = System.Drawing.Image.FromFile(String.Concat(Server.MapPath(FilePath),ImageName)); // create the actual thumbnail image System.Drawing.Image ThumbnailImage = ImageUpload.GetT...more >>

Timeout not working as specified in Web.config
Posted by Felix_WafyTech at 4/7/2006 12:00:00 AM
Hello, I've set the timeout to 720 in the web.config file (see detila below). However, the page elapses after 20 minutes and the login screen is displayed again. Is there anything else that needs to be set or taken care of? Your help is appreciated. <system.web> <sessionState mode="InProc"...more >>


DevelopmentNow Blog