asp.net

How to implement timezone in a web application?

I want to implement timezone in my web application. I researched and saw most web app use a GMT dropdown, here is the link to that dropdown http://www.attackwork.com/BlogEntry/6/Time-Zone-Dropdown-Select-List/Default.aspx Then I saw this article suggesting UTC is the way to go when it comes to implement timezone. http://aspnet.4guysfro...

Using ASP.NET Forms Authentication, how do I get an image to appear on the login screen?

I am doing simple forms authentication for a small ASP.NET (3.5, C#) application and setting up my usernames and passwords in the web.config. I would like to apply the default stylesheet and include the header graphic (included on every other page) but the graphic and stylesheet won't apply, presumably because the anonymous user doesn't...

Seeking Advice: Updating a FormView Based on DropdownList Value

Greetings! I'm looking for some advice regarding an approach to displaying data in a FormView based on a selection of a DropDownList within that FormView control. For example, I have a UserControl with the following: <asp:XmlDataSource ID="xdsMyXmlData" runat="server" EnableCaching="false" XPath="Root/Membership" /> <asp:FormView ID="...

How to pass variable to SelectCommand of SqlDataSource?

I want to pass variable from the code behind to SelectCommand of SqlDataSource? I dont want to use built-in parameter types (like ControlParemeter, QueryStringParameter, etc) I need to pass a vraiable? the following example does not work <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionSt...

Connection String to Local DB file is not working.

connectionString="AttachDbFilename=C:\Documents and Settings\nmartin\My Documents\PS_Upload\TimeTrack\src\TimeTracker\TimeTrack\App_Data\ASPNETDB.MDF;Integrated Security=True; User Instance=True" providerName="System.Data.SqlClient" /> This is the connection string that is provided to me from the Server Explorer for my local MDF f...

Password protection for ASP.NET web pages?

I am trying to implement the simplest shared 'files' folder for a website but wish to have a 'reasonable' level of access control - i.e no casual multimegabyte uploads from passing hoi-polloi. Users are given a password etc. They then log-in, once credentials are successfully checked, they are given one of two possible access rights - r...

Byte Stream Unit Test

I'm utilizing the Reporting Services web service to generate a report and allow the user to download it. This is occuring via PDF, Excel, XML, etc. and working just fine. I'm trying to create some seperation between my reporting class and the implementation, but am struggling with how I can can do this in a manor that is still testable...

Speed up .net assembly load time during development

I am working on a large (100s of assemblies) asp.net application and during development it can take a couple of minutes for the first page to load after a recompile. I am told that much of the delay comes from JITing the assemblies and that this delay is proportional to the number (but not the size) of assemblies. I have not yet measur...

CMS for SharePoint

I am trying to weigh the pros and cons of several CMS alternatives. Currently shortlisted to: SiteCore MOSS 2007 Help me find a third choice.. I don't have a preference for Open Source/Free/Commercial Products, my main specifications are the need to support/connect to SharePoint for deployment across multiple servers and multi langu...

Frozen table header inside scrollable div

I've three divs. Header, central and footer. There is a table in central div (gridview) which is almost always longer than outer div. So I've made this div scrollable vertically. The question is: how can I make table header that it would be visible after div is scrolled down? I could have done this header with separate div or table and m...

Need help in login authentication using asp.net

Hello all, Simple way i am able to authenticate login page. How can i do that authentication in 3 tier architecture? please somebody send me the code that what should be in DAL,BAL,and GUI layers? Here is my simple code: Web.config: <authentication mode="form"> <form loginurl="Login.aspx"> <credential password Format="clea...

Display different header depending on page selected

I have an asp.net website with 5 items (home, products, news, about, contact) on the main horizontal navigation. The site uses a master page which splits the page into a header, body and footer using I want to be able to display a different header (which will include different colors and images) depending on which of the 5 navigation ...

ASP.NET Response.Redirect shows CDATA to browser

I recently moved a web application to a new server and every response.redirect ends up just showing the CDATA to the browser. The form did post back, the changes were made, but the browser doesn't end up loading the new page, just shows the CDATA. Any ideas? ...

ASP.Net - Multiple dynamic images. Performance issues due to too many Http Requests

Hi, I use an HttpHandler to dynamically serve images in a ASP.Net web application. I am having a performance issue (Firfox/Firebug/YSlow reports there are too many HttpRequests) I have between 50-100 images per page in some instances.. 3 treeviews (business units/categories/objects) with each node having its own image ;) Each item's i...

Image Thumbnails ASP.NET

Hi. I'm trying to genererate thumbnails from image files stored in a folder under the website root, I am currently using the built in capebilites in .NET to dynamically generate the thumbnails but the quality gets quite bad and since its an webshop thats a real problem my question is if there is any good (open source?) frameworks that ca...

how to use live search Api using window application

i have to intregate live search api, yahoo & google search together in IE -Toolbar using window application & display the combined result after search. I have already implement the toolbar where i have put one textbox, dropdownlist & search button . On click of search button it has to display result depending on search items. pls anybod...

Registering a dynamic javascript after an UpdatePanel's update

I have a page with a dynamicly created javascript (the script is pretty static really, but the value of its variables are filled based on user input). The result and the controls to take user input is inside an UpdatePanel which updates itself on certain user intputs. Some of these userinputs cause changes in the variables i spoke of ea...

Using an ASP.NET repeater with an array?

This may be a silly question but I was writing a quick test page and realised that I didn't know how to bind an array or ArrayList of strings, for example, to an ASP.NET Repeater. I experimented a bit. <asp:Repeater ID="rptImages" runat="server"> <HeaderTemplate> <h3>Items</h3> </HeaderTemplate> ...

EntiryFramework in WebApp: HowTo Store DSN

Hi, i'm using the entity framework in a asp.net 3.5 web application. What is best practice to store the database connection string in a secure (encrypted) way? (i'm using username/password to get to the database) (i have to delete the model very often, as the database designer in vs2008 does not update the foreign keys very good). ...

How do I make a property of custom control to be a generic type ?

I have created a custom ASP.NET control ( derived from WebControls.TextBox). I want to add a property to that control which will be of a type. This property will actually always be some type of enum . So when in the designer I look at the properties window of that control - I want to be able to assign value to that property by a selec...