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


all groups > asp.net > march 2007

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

xhtml 1.1
Posted by Luke at 3/31/2007 10:00:06 PM
hope somebody can give me an answer, why asp.net website that i designed with xhtml 1.1 target schema using visual studio.net 2005 didn't display correctly on internet explorer, firefox and opera? thanks, ...more >>

EntLib 2.0 DAAB - Where did my RowsAffected property go?
Posted by Mike at 3/31/2007 7:42:03 PM
The DBCommandWrapper class doesn't exist in Enterprise Library because it's properties/methods have been relocated to other classes. Where did the RowsAffected properties go? I can't find this property anywhere? I use this property when, for example, calling SQL 'Update' stored procedures...more >>

Formview FileUpload and ObjectDataSource
Posted by Chris at 3/31/2007 5:58:35 PM
I want do my insert to a database using a formview bound to an objectdatasource. I also want to upload a file. I'm quite new to and this is just test code but Is there any way I can pass the file as a byte array and manipulate it in my business object. Currently what I have is this, but my b...more >>

Class files and performance
Posted by Chris at 3/31/2007 3:47:55 PM
Are there any performance/general issues with putting classes in the .vb files in the app_code folder rather than compiling them into assemblies ...more >>

Dropdownlist and OnMouseover Event using Ajax
Posted by Deepa at 3/31/2007 1:32:01 PM
Hi All, I have a webform in asp.net framework 1.1 where the dropdownlist is populated with list of locations from the database. The depending on the list selected, the user will be able to see functions associated for that location. Ex: Location: Charleston Functions: Add, Delete, Ca...more >>

.NET Generic + MembershipUserCollection
Posted by Jeff at 3/31/2007 12:42:35 PM
ASP.NET 2.0 This is a generic class List<Contact> contacts = Contact.GetContacts(profile.UserName); Every Contact object holds info about a UserName from aspnet_Users. So Contact.GetContacts selects all users in aspnet_Users (well, it don't select everytime, it mostly uses cache, so it is f...more >>

autoscroll to bottom
Posted by MikeB at 3/31/2007 9:44:38 AM
Hello all, I am trying to get my web page (asp.net 2.0) to scroll to the bottom automatically on a post back. The code I used previously dosn't appear to work anymore. Can someone please help? Here is what I used before: ...more >>

Populating DropDownLists with AJAX - Beginner
Posted by 47computers NO[at]SPAM gmail.com at 3/31/2007 9:35:36 AM
I have a couple of DropDownLists in a DetailsView control (your classic country/state lists) and I need one to be populated based on the current selection of the other. Currently this works fine with a postback, but an AJAX solution would be a better way of doing things. I've been googling ar...more >>



IHttpModule and User.IsInRole
Posted by trullock NO[at]SPAM hotmail.com at 3/31/2007 4:50:06 AM
Hi, Ive written a URLRewriter IHttpModule which all works fine. I've come to make a change to it which involves deciding where to redirect based on what role a user is in. HttpContext.Current.User is null however in my ihttpmodule's beginrequest event :( Should it be? If so, is there a diffe...more >>

globalization settings
Posted by Krishna at 3/30/2007 11:12:00 PM
Hi, I am krishna in India.I developed Asp.net application the default culture settings is <globalization culture="en-US" uiCulture="en-US"/>.I need change globalization settings for UK.How to modify the web.config file ?.What is coorect culture for UK and India?. Pls help Thanks in Adva...more >>

forms textbox history
Posted by ThatsIT.net.au at 3/30/2007 9:50:06 PM
when you enter text into a textbox in a form and submit it, IE will keep a history of the text so that next time you do not have retype the same text. I have a page where I do not submit the page using a form but I would like the text to remember the text anyhow, is there a way to add to the t...more >>

What's the proper way of reading cookies? Request.Cookies("mycook") doesnt work
Posted by user at 3/30/2007 9:08:07 PM
Hi everyone, May I know the standard way of reading in cookies in ASP.net using VB.net? In classic asp, i can do this: If request.cookies("user") = "abc" then blah blah end if But if i were to do the same in asp.net, I would hit an ugly error. What is the proper way of detec...more >>

Protecting my code
Posted by MarkusJNZ NO[at]SPAM gmail.com at 3/30/2007 8:09:35 PM
Hi all, I have a website which I want to release in 2 versions. The first version will be freeware in exchange for a link back to my page. The second version will cost and will not need a link back to my page at all. For the freeware version how can I ensure that people do not remove my ...more >>

VS 2005 symbol file
Posted by jimmyjoe at 3/30/2007 6:39:13 PM
Hi, Couldn't find a VS 2005 group so I'll post this here. If anybody knows where a VS 2005 group is, please respond. For some reason, the VS compiler stopped producing the symbol file (.pdb). I've tried several things I found on the web and none of them worked. I've reinstalled/repaire...more >>

Custom postback code and RegsiterForEventValidation
Posted by Andreas Bergmeier at 3/30/2007 5:10:36 PM
Hi. Is there some KB article how to use EnableEventValidation when doing customized posts? Basicly we're building a post string via javascript and issue it via means of XMLHttpRequest to the server. This worked fine in .NET 1.1 Now in ASP.NET 2.0 I get an error message: 'Invalid postback or...more >>

PrintDocument Problem - Need to print locally
Posted by kiergaro NO[at]SPAM gmail.com at 3/30/2007 4:11:07 PM
I understand there is no way for the Server to see the Client printers, but I have a routine that generates a bunch of bar codes on a page and keeps it stored in a Graphics variable. Is there any way possible to take the graphics variable and put it in a printable window using windows.print() i...more >>

CheckBoxList - how to preselect checked state?
Posted by Derrick at 3/30/2007 3:35:41 PM
Is there any simple way to say "set all items to checked" after a checkboxlist has been databound? Or to specify which data column to use as the "checked" state? Thanks in advance! Derrick ...more >>

Gridview edit flashing
Posted by David C at 3/30/2007 1:54:00 PM
For some reason, when I click the Edit link button on a row, the screen just flashes, like a postback but does not go into edit mode until I click it a 2nd time. The same thing happens when I click Update or Cancel when in Edit mode. Any ideas on what might be causing this? Thanks. David...more >>

Problem with the Legacy ASP files and the Sql Server Express
Posted by Light at 3/30/2007 1:44:27 PM
Hi all, I posted this question in the sqlserver.newusers group but I am not getting any response there so I am going to try it on the fine folks here:). I inherited some legacy ASP codes in my office. The original code's backend is using the SQL Server 2000 and I am testing to use it on the...more >>

password configuration question
Posted by Tom at 3/30/2007 1:34:06 PM
Ok, I took over a web app that is using the login control provided by asp.net 2.0. In the config file the developers added a param as such: <machineKey validationkey=" and a hole mess of letters and numbers " decryptionKey= " again a mess of numbers and letters " validation="SHAI" /> ...more >>

Refresh/Back prevention?
Posted by Derrick at 3/30/2007 10:26:34 AM
Hi All - I see quite a few articles out there on preventing/catching page refresh and back actions, can anyone point me at a current "preffered" solution to this? Thanks in advance! Derrick ...more >>

Unit Testing ASP.NET 1.1 w/NUnit
Posted by Mike Hofer at 3/30/2007 10:18:19 AM
I need some advice, folks, and I'm hoping you can provide it. First off, a few disclaimers: 1.) I am an ardant advocate of code quality. Especially, my own. 2.) I am maintaining a massive ASP.NET 1.1 code base that has no unit tests built for it with NUnit or any other testing framework. ...more >>

Class Property
Posted by shapper at 3/30/2007 9:52:10 AM
Hello, I have two classes defined as follows: Public Class Parent ... Public Class Child ... End Class End Class Parent class has 10 properties which will be used in Child class. Is it possible to make those properties accessible from child class? Or do I need to create p...more >>

<customErrors mode="Off"/>
Posted by nkw at 3/30/2007 9:42:01 AM
I want to use <customErrors mode="Off"/> in the web.config file; but I want to have custom error message for database time out error message. Is it possible?...more >>

How to refer to "this" in JS event handler?
Posted by Peter Rilling at 3/30/2007 9:13:02 AM
Hi. I am using Atlas and hooking a load event using add_load(...). This is being called from the constructor of an object being created, so it is within the context of an object (where 'this' is recognized). I want the handler to be an instance method on the object instance. Sys.Applic...more >>

Doubts in Design Level. Desktop -> Web-Based conveting using .NET
Posted by John at 3/30/2007 8:14:03 AM
Hi all, We have one product. It is client/server based application. We have developed client application in VC++ 6.0. Our client is desktop based application like dialog based application. Client application will connect to server according to user requests. This is current scen...more >>

Tree View
Posted by shapper at 3/30/2007 7:47:43 AM
Hello, I am getting a list of months and years and the number of posts in each month from a database: SELECT YEAR(PublishedDate), MONTH(PublishedDate), COUNT(*) AS POSTS FROM Table GROUP BY YEAR(PublishedDate), MONTH(PublishedDate) How can I display it in a TreeView. Something as follows...more >>

How can I replace a <frameset> with an <object> aka IE6/strict box model (and hacks).
Posted by mark4asp at 3/30/2007 7:32:34 AM
According to this <http://css-discuss.incutio.com/?page=BoxModelHack> IE6 will display differently to the W3C standard. Only IE6/strict and I suppose IE 7 display correctly. IE 6 transitional and frameset are wrong. My users are still using IE 6 and I have a frameset in most of my pages - th...more >>

Bulleted List
Posted by shapper at 3/30/2007 7:05:28 AM
Hello, I have a DataSet with 3 columns: Id, Name, Number I want to display a list (maybe a bulleted list?) which display a list item where each one is an anchor. The text of each anchor is created as follows: Name (Number) The url to which the user is sent when clicking a link...more >>

Windows authentication bug?
Posted by Machuga at 3/30/2007 6:46:04 AM
My web.config contains: <authorization> <deny users="?" /> </authorization> <authentication mode="Windows" /> <identity impersonate="true" userName="" password="" /> My connection string in page.aspx.vb contains: oSQLConn.ConnectionString = "Dat...more >>

Retrive data from an client side Excel source
Posted by Peter J, Scania at 3/30/2007 6:36:00 AM
Hello I'm looking for an solution about how to retrive data from an client side located Excel document by using an ASP.Net application. I don't want to upload the file to the server. I just want to get the data and persist it in an database after that some business validation have been done...more >>

ASP.net insists on using dbo. to call aspnet_* stored procedures
Posted by Pedro Vera at 3/30/2007 6:30:50 AM
I am helping somebody setup one of the asp.net starter kits. I converted it from sql express to sql server with no real issues, and I got it running local perfectly. On my first attempt to run it remotely I noticed that a lot of the queries had dbo. hardcoded and that SQL server on the remote ...more >>

ASP.NET 2.0 - File Upload - Progress Bar
Posted by Raj at 3/30/2007 6:14:06 AM
Please let me know any approach in creating a progess bar control for file upload in ASP.NET 2.0? How can I get the transfer rate of the file, like how much bytes have been moved up... any help will be appreciated ASP.NET 2.0/C# Thanks ...more >>

About masked text box
Posted by Subhash at 3/30/2007 5:24:15 AM
Hi, I want to apply skin themes for a masted textbox. Please help me in this issue, ...more >>

InnerHTML drops leading tag in SELECT
Posted by mjpdatadev NO[at]SPAM yahoo.com at 3/30/2007 5:19:24 AM
I am relatively new to XMLRequest, DOM and Ajax but I really like the functionality. I have the DIV and SPAN changes working well but I thought that I would experiment with changing the actual innerHTML of each control rather than changing the whole control inside of a DIV. What I tried was t...more >>

Checking in code into VSS
Posted by Zeba at 3/30/2007 2:58:00 AM
Hi , I'm having problems using Visual Source Safe with my Visual Studio 2005. I have correctly connected to the VSS database with userid and set up a project in VSS comprising mySite. I set the working folder same as the place I copied the files from. I am able to check in / check out / edi...more >>

binding data to drop down menu
Posted by Eric Layman at 3/30/2007 1:04:31 AM
HI, I have a select menu <select id="country" runat="server" class="myformat "> <option value="AFGHANISTAN">AFGHANISTAN</option> <option value="ALBANIA">ALBANIA</option> <option value="ALGERIA">ALGERIA</option> The option value data are all keyed in manually Right now im...more >>

Images on server.
Posted by rcoco at 3/30/2007 12:47:01 AM
Hi all, I'm facing this problem I have images on my website but when I Deploye the website on server the Images are not there I only get the X sign. How can I go about this. Thanks ...more >>

"Could not read memory" error
Posted by news.microsoft.com at 3/30/2007 12:36:04 AM
Who knows what it means when a Windows XP Pro SP2 produces a transient error window from aspnet_state.exe saying "instruction at [address] reference to memory at [different address]. memory could not be read." every time it shuts down? Do I need to do something special with data execution p...more >>

Excel Report using ASP.NET
Posted by Rajesh at 3/30/2007 12:03:52 AM
Hi, Please help me to do an EXCEL report generation using ASP.NET. I am building an website. This should work in all machine. I need do load the data from SQL tables to excel sheet and user can modify the data in the excel sheet. Then i need to get the data from modified excel sheet and gen...more >>

Legacy HTML rendering on page level
Posted by Andreas Bergmeier at 3/30/2007 12:00:00 AM
Hi. Does anybody know whether html rendering is available on page level? I know the xhtmlConformance setting in the web.config - but I'd like such a configurability on page level because I have just 1 page that has to render in html mode....more >>

Keeping GridView Header visible
Posted by Gunawan at 3/30/2007 12:00:00 AM
Hi, If I use gridview, can I make the header keep on the top of the screen while we scroll down. and while we scroll right, some columns in the left could retain their position? Regards, Gun ...more >>

How to put custom action for commandfield
Posted by Gunawan at 3/30/2007 12:00:00 AM
Hi, I would like to execute a function when user click on a commandfield (deletecommandfield) from a gridview. How can I do that? I can not find how to put code in it. Thank you In Advance Gun ...more >>

MasterPage in Class library
Posted by Joey at 3/30/2007 12:00:00 AM
Hi, is it possible to move a MasterPage into a class library so that it can be used by multiple websites? if not, is there an alternative way? reagrds, ...more >>

c#
Posted by amantech06 NO[at]SPAM gmail.com at 3/29/2007 11:57:17 PM
Hi , i want to refresh the page and get different values from a for loop , on each refresh i m using ISPostback , and loop limit is 10 thx ...more >>

/master page.master does not exist
Posted by Kevin at 3/29/2007 10:50:22 PM
The web application runs fine on my Windows XP computer but as soon as I load it to our Windows 2003 server I get this error '/master page.master' does not exist The master page is there so am very puzzled. Any ideas as I seem to be going around in circles. ...more >>

FindControl
Posted by rodchar at 3/29/2007 8:20:02 PM
hey all, is it possible to find a label that's inside a FormView which is inside a Panel all in one statement? thanks, rodchar...more >>

How to verify file exists with asp:FileUpload
Posted by bryanp10 NO[at]SPAM hotmail.com at 3/29/2007 6:39:30 PM
How do I do a client-side check to see that a file exists before attempting to upload it? I am trying to avoid the "Access denied" error I get on form submission if an invalid name is entered in the textbox. This page does it beautifully: http://msconline.maconstate.edu/tutorials/ASPNET2/ASP...more >>

DateTime.ToString get specific time format
Posted by Grant Merwitz at 3/29/2007 5:58:25 PM
Hi, I'm trying to enter the time in the following format: HH:MM:SS AM/PM e.g. 05:33:21 PM How can i achieve this from the Date Time object? DateTime.Now.ToString("?"); I've search MSDN, and they only seem to cater for the 24 hour clock, not the 12 hour clock In the mea...more >>

Failed To load viewstate when loading usercontrols
Posted by j-in-uk at 3/29/2007 5:39:04 PM
I have linkButtons on my page, onclick of the link button I want to load the proper usercontrol, this works fine the 1st time I click but when I click the 2nd linkButton I get "Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that wa...more >>


DevelopmentNow Blog