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 2007 > threads for wednesday march 14

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

Regarding custom controls - To add align property to label.
Posted by swapna_munukoti NO[at]SPAM yahoo.co.in at 3/14/2007 11:47:09 PM
Hi all, I am new to asp.net. So, may be my question may be simple. But I am feeling hard to achieve this. I need to create a web custom label control, for which I have to assign new property called "Align". It should have center,left and right alignments. I have created a label with this pro...more >>


Splitting app into two apps
Posted by erdos at 3/14/2007 11:45:11 PM
I am adding a new domain to my site and need to take aspx pages that were in a sub folder and add them to the new site. My old site and the new one will be in sub folders off of the root. So the two sites will only be seperated by a folder. The old site is the company website and the new one ...more >>

Profile - what is wrong ?
Posted by ruthie at 3/14/2007 11:30:07 PM
Hi, I would like to use the profile - so I added the following code to the web.config file: <profile automaticSaveEnabled="true"> <properties> <add name="ReplyAddress"/> <add name="ReplyName"/> <add name="ccName"/> </properties> </profile> ...more >>

root of application A in application B dynamically in .net 2.0
Posted by loga123 at 3/14/2007 10:07:12 PM
Hi All, I have 2 web applications running on the same IIS server with different roots. Suppose, application A can be run using --> http://localhost/A application B can be run using --> http://localhost/B I have a file test.asp whose path is http://localhost/A/subfolderA/Test...more >>

Site won't compile unless DLL is in bin folder
Posted by APA at 3/14/2007 10:01:17 PM
The problem is that there is no reference to the DLL anywhere in the solution. I have other developers running this identical solution with no problems but on my machine it won't compile if I don't have this DLL in my website's bin folder. I recently formatted my hard drive and re-installed XP...more >>

logging website visits, how??
Posted by Jeff at 3/14/2007 9:36:40 PM
ASP.NET 2.0 In my webproject I want to implement some kind of functionality which logs the vistits to the website. I want it to log what pages the user requested, when he arrived at the website (session_start), when he leave the website (session_end).. if some exception occur then that shou...more >>

question about login option "remember me next time"
Posted by André at 3/14/2007 8:42:59 PM
Hi, When clicking on "remember me" when logging, the user asks for not to have to log in next time he visits the site. Now, on one side, i read it is recommended to logout properly (clicking on 'logout') when quiting the site, but then, the user looses the benefit of the option "remember...more >>

where does console output go?
Posted by David Thielen at 3/14/2007 7:55:05 PM
Hi; When my ASP.NET app is running on IIS, where does the Console.Out.WriteLine("hi there"); output go? -- thanks - dave david_at_windward_dot_net http://www.windwardreports.com Cubicle Wars - http://www.windwardreports.com/film.htm ...more >>



how to get the age from sql?
Posted by Joe at 3/14/2007 7:14:05 PM
how to get the age from sql? compare the dateofbirth field and now() ...more >>

how to dynamic assign two dimensions array size
Posted by Joe at 3/14/2007 7:13:03 PM
how to dynamic assign two dimensions array size say Dim myArray(x, y) as Integer...more >>

Cannot create ActiveX component
Posted by Administrator at 3/14/2007 6:00:44 PM
Hi, My web development server is a Windows 2000 SP4 system. Had created an aspx page with the following code which I had extracted from 1 of the Microsoft websites: Dim oExcel As Object Dim oBook As Object Dim oSheet As Object 'Start a new...more >>

Page reload initiated from server
Posted by Max at 3/14/2007 5:50:06 PM
Is it possible to reload a web page on user browser when an event occurs at server side? For example when user A places an order, user B should be notified of that and should see that order on his page. I 'd like to avoid to reload B page every nnn seconds. Or at least, I'd like to check if ...more >>

send email? only with smtp and/or exchange?
Posted by patrickdrd at 3/14/2007 5:28:10 PM
Hi guys! I'm looking for a way to send an email from the server to the user (like a newsletter). How can I do this? Does anyone know of a sample code link or something like that? Do I need smtp and or ms exchange or there is a way to send using any 'from' name (like in php)? Thank...more >>

messagebox in asp.net? how?
Posted by patrickdrd at 3/14/2007 5:19:11 PM
Hi everyone! Never before have I had so many problems displaying a message to the user (being a programmer for the last 4 years)! What I would like to do is show a message e.g. when a procedure fails, etc. Tried searching google, tried with divs, managed to 'implant' a div in my master p...more >>

Close User Session
Posted by Laurahn at 3/14/2007 4:17:22 PM
How can i configure my application for closing the session ? How can i use the session end for closing the session ? ...more >>

Adding new controls to upgraded pages
Posted by Alex at 3/14/2007 1:55:22 PM
I upgraded a web application into a VS 2005/.NET 2.0 Web Application Project (as opposed to a Website project), but did not set the pages to be partial classes. Looking at the code behind, you can see the declarations of all the controls as it was in Visual Studio 2003. But when I add a new...more >>

Labels - text wraps at runtime
Posted by bpd at 3/14/2007 1:40:13 PM
The text in my labels are now wrapping at runtime when they were not previously. In design mode, the text display fines. Did I accidentally change a setting? I implemented AJAX (appeared to be working fine on separate, new controls) and then I noticed the wrapping. I removed the AJAX but they...more >>

User Control and Page Events
Posted by T8R at 3/14/2007 1:39:05 PM
Ok...I've been looking for an answer to this problem and can't seem to find one...Framework 1.1 mind you. I have a base class that inherits from UserControl. I have 5 and soon to be 12 user controls that derive from this base class that represent US States with appropriate business logic a...more >>

HTTP 404 - File not found
Posted by Alex at 3/14/2007 12:14:25 PM
We're running IIS5 and I just updated a web application from 1.1 to 2.0. It runs fine on most pages, but in certain pages I get 404 errors. From what I can gather, but I may be wrong, an exception is thrown, and thats when I get the 404 page. 1. The file IS there. 2. I don't have the off...more >>

FileUpLoad Control - retrieving full pathname
Posted by marathoner at 3/14/2007 11:52:37 AM
When I use the FileUpLoadControl to select a file, I can only retrieve the filename that was selected. I want to know how to retrieve the full pathname of the filename selected. Marathoner ...more >>

clr sql server function
Posted by xke at 3/14/2007 11:47:53 AM
This is my function: <Microsoft.SqlServer.Server.SqlFunction()> _ Public Shared Function RegExMatch(ByVal pattern As String, _ ByVal matchString As String) As Boolean Dim r1 As Regex = New Regex(pattern.TrimEnd(Nothing), RegexOptions.Compiled) Return r1.Matc...more >>

UrlEncode - UrlDecode problem: not symmetric
Posted by lookaround at 3/14/2007 11:39:11 AM
Hi, I have a problem with UrlEncoding/UrlDecoding. I have two chars (=E6=9D=B1=E4=BA=AC); the HTTPUtility.UrlEncode writes in the html the text: %e6%9d%b1%e4%ba%ac The Request.Querystring.ToString() of the called page returns: %u00e6%u009d%u00b1%u00e4%u00ba%u00ac and after having Ur...more >>

TreeView caching
Posted by Leslie at 3/14/2007 10:54:20 AM
Using Visual Studio 2005 SP1 I am attempting to dynamically load a treeview control. I create an XmlDataSource and then load the data source using XmlDataSource.Data. I Load my XML string into this property using the code shown below. However if I change the values in the XML string that I a...more >>

Creating GridView from array. Adding Button Field column?
Posted by JB at 3/14/2007 9:45:43 AM
I'm dynamically creating a Gridview object and filling it with contents from an ArrayList as follows: GridView2.AutoGenerateColumns = true; GridView2.DataSource = ArrayListObject; GridView2.DataBind(); This works nicely, but i need to add a button field row onto it, as well as possibly a t...more >>

Pages from multiple assemblies
Posted by Yofnik at 3/14/2007 7:10:08 AM
Hello, We have developed a web application that provides a specific set of functionality. Our customers may want to add a few additional ASP.NET web pages to this web application to provide some additional custom functionality. We do not want to provide them with the code for our "base" set o...more >>

Layout: Divs or Tables?
Posted by NH at 3/14/2007 7:10:06 AM
Hi, What do you recommend for defining the layout of an asp.net 2.0 page? Leaving masterpages and user controls aside for the moment is the use of tables or Divs the best approach? I have been using tables so far to define the layout and use % based sizes so things stretch or shrink to f...more >>

Email regular expression
Posted by shapper at 3/14/2007 6:49:01 AM
Hello, I have a regular expression to validate email addresses: "\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Now I need to force all emails to be from a given domain, for example, accept only: john@MyDomain.com andrew@MyDomain.com marysmith@MyDomain.com .... How should I changed by r...more >>

class design question
Posted by rodchar at 3/14/2007 5:45:03 AM
hey all, i have an employee class that's part of an employee management system. If I want to expose the employee's Leave time details (or any details of the employee that's one-to-many) would I expose that as a property or a method? Or does it matter? thanks, rodchar...more >>

MCSD-An Excellent Resource
Posted by Jeff at 3/14/2007 5:08:31 AM
If you intend to be MCSD and a part of the growing vast trends in technology, then you should not leave behind to take the advantage of the material provided. http://it-techexperts.com/MCSD/MCSD229.asp ...more >>

image button rollover
Posted by smokeyd at 3/14/2007 3:25:46 AM
i am trying to create a simple image button rollover.. i have searched this forum and found a number of solutions but none seem to work. i am just trying to get the onmouseover to swap the image then restore when rolled out on a web page in vb.net. please can someone help? ...more >>

Save object to Session. Unable to cast MyClass to MyClass.
Posted by jamesb457 NO[at]SPAM gmail.com at 3/14/2007 3:08:33 AM
I'm getting this error a lot, it was working reasonably well, but then for no apparant reason, it stopped. I have a class, basically: public class ShoppingBasket { int count; String[] Items; public AddItem() } Im trying to save this objectto a session so i can use it after post...more >>

How to count huge amount of files in folder
Posted by MichiMichi at 3/14/2007 2:49:03 AM
My asp.net application has a directory which is filled up with over 17 files (email) a second. After a while this sums up into a huge amount of files. I usually count files with the GETFILES method. This works perfectly of there are only a few hundert files in the folder ********* ..... ...more >>

Store multiple records at once in SQL database
Posted by Pim75 at 3/14/2007 2:20:22 AM
Hello, I want to store multiple records at once in a SQL database with a For..Next instruction like the sample code below: For counter = 0 To 100 Dim dbInsert As New SqlCommand( _ "INSERT INTO table (Field1, Field2) VALUES ('" & Field1 & "', '" & Field2 & "')", _ myConnection)...more >>

following of thread: "Adding namespaces to code behind automatically"
Posted by Jedufa at 3/14/2007 1:08:31 AM
following of thread: "Adding namespaces to code behind automatically" Hello, I had quite the same problem and got further in the right direction with your suggestions, thanks. Nevertheless, I have a newer problem which seems to come from the fact that the assembly which contains my "Simple...more >>

Usercontrol with ajax update panel causes null reference exception.
Posted by Wayne Brantley at 3/14/2007 12:26:02 AM
If you expose a public property of a usercontrol that accesses an object on the user control it will give a null reference exception when you wrap that in an update panel. Others are having the same problem. Here is a complete example: http://forums.asp.net/thread/1555836.aspx Related to...more >>

SqlDataSourceControl and AdventureWorks database
Posted by Amir at 3/14/2007 12:08:03 AM
Hello I am trying to use the SqlDaaSource wizard to populate my GridView. If I let the wizard generate the SQL, then I get an "Invalid object name" error - the obbject being the table name (Prodcuts) in my case. This error happens because the AdventureWorks tables belong to Schemas that ...more >>

question about theme
Posted by Ben at 3/14/2007 12:00:00 AM
Hi, I'm testing theme and dtylesheettheme properties of 'Page' like this: ('test' is a directory of App_Themes). Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit 'Page.Theme = "test" Page.StyleSheetTheme = "test" End S...more >>


DevelopmentNow Blog