asp.net

How do I change the URL of my web service?

If I change the url in the web.config file will the change be reflected in the .disco, .discomap, and .wsdl files that are in the WebReferences folder? [Edit] I'm using asp.net 2005 ...

Cleaning up .NET HTML generation

I am looking to clean up some of the HTML generated by a .NET 2.0 TreeView controller. Switching to another version/model is not an available option. My first crack yielded an extended TreeView, with an overridden Render that Regex'd out the text I didn't need and output to the page. The problem was when I tried to collapse/expanded n...

"simple" installer for a web application (IIS virtual app + sql server db setup).

Hi, I need to create a web application installer. Install Shield seems like overkill, is there something that can reliably install a web application (IIS setup + sql server db setup). Suggestions? ...

Text on an Image button in c# asp.net 3.5

I have a image button. I wanted to add a text "Search" on it. I am not able to add it because the "imagebutton" property in VS 2008 does not have text control in it. Can anyone tell me how to add text to a image button?? <asp:ImageButton ID="Searchbutton" runat="server" AlternateText="Search" CssClass="bluebutton" ...

Best way to print in ASP.NET

All, I have a html string held in memory after transforming to my desired template with XSLT. What is the best mechanism to the send this to the client printer? In previous projects I have shamelessly cheated and created a print preview scree which was essentially an ASPX page stipped to a white background that I then printed using W...

Best way to temporarily take app offline during sql agent job

I've got an ASP.NET app that runs against a SQL Server 2005 database. Once a day, I need to run a series of procs & SSIS packages in a SQL Agent job to update data in the tables. The SQL Agent job will run on a schedule unattended. There are small windows of opportunity for the web app to fail when the SQL Agent Job steps are running, ...

Get Data From An Uploaded Excel File Without Saving to File System

I have a requirement to allow a user of this ASP.NET web application to upload a specifically formatted Excel spreadsheet, fill arrays with data from the spreadsheet, and bind the arrays to a Oracle stored procedure for validation and insertion into the database. I must be able to read the data from the Excel spreadsheet without being a...

Save state for DropDownList after post

Hi, i have form with one textbox and dropdownlist <%=Html.TextBox("Name")%> <%=Html.ValidationMessage("Name", "Enter name")%> <%=Html.DropDownList("Not Selected", "DomainID", ViewData["DomainID"])%> I select value from drop downlist but dont fill name, im getting validation for textbox and then i need select value from dropdown agai...

SCM for ASP.net

Hi All, As part of my overall development practices review I'm looking at how best to streamline and automate our ASP.net web development practices. At the moment, our process goes something like this: 1.) Designer builds frontend as static HTML/CSS on a network share. This gets tweaked until signed off. (e.g. http://myserver/acmesite...

Can't set FormsAuthenicationTicket.UserData in cookieless mode.

I'm trying to implement the "Writing Information to UserData" section of this article, but it doesn't work properly when the cookie is part of the URI. My code: // Create the cookie that contains the forms authentication ticket HttpCookie authCookie = FormsAuthentication.GetAuthCookie( userName, createPersistantCookie ); // Get the Fo...

ASP.net AJAX Search

I am looking for an example of using ASP.net AJAX to show a 'live' filtering of a repeater control based on what is being typed into a textbox. I have seen stuff using the Web Client Software Factory but am more interested in something that doesn't require an additional library. ...

Is it better to use Nested Master pages or User Controls for multi-sectioned website?

I am creating a website that has 5 different sub-sites each with the same overall look, but each has a different logo and added navigation. What do you feel is a better approach: Use the new nested master page capabilities to create 5 sub-master pages. Use a single master page and dynamically load user controls corresponding to each s...

IIS 6/.Net 2:How can user A get the user cookie for unrelated user B who is in a different session and on another box?

1) user A goes to the site, creates an account, and logs in 2) user b goes to the site. Rather than having to log in, user b enters as though user b is user a. User b gets access to all of user a's data and can brows the site as user a. Note: user b does not log in. User b just hits the site, and the site returns as if user b is alre...

How to determine the entire date range displayed by ASP.NET calendar?

The ASP.NET calendar always displays 6 weeks of dates in a 7x6 grid. My problem is that the first day of the target month does not necessarily appear in the first row... in some cases, the entire first row displays dates from the previous month. In other cases, the entire last row displays dates from the next row. Is there a reliable wa...

How do you show a preview image when allowing file uploads in ASP.NET?

Here is the functionality I want: User selects an image from their machine, hits an Upload button (or better yet the following fires on the onchange event of the file input), and is able to see a preview of the image they are about to upload. Here is the current workflow I am using, but it seems suboptimal: I have an image control, a ...

Gridview sorting challenge when moving from Winforms to ASP.NET 2.0 Webforms

I have a problem with Gridview sorting that is similar to others but I'm binding to a collection object as opposed to a data table. The existing business rules and data access layers of an application follow the pattern of having an object and, if you need a collection of objects of that type, to have another class inheriting Collection...

Showing too much 'skin' detection in software

I am building an ASP.NET web site where the users may upload photos of themselves. There could be thousands of photos uploaded every day. One thing my boss has asked a few time is if there is any way we could detect if any of the photos are showing too much 'skin' and automatically move flag these as 'Adults Only' before the editors make...

Sorting a GridView with an ObjectDataSource is not Sorting

I have a gridview like below: <asp:GridView DataKeyNames="TransactionID" AllowSorting="True" AllowPaging="True"ID="grvBrokerage" runat="server" AutoGenerateColumns="False" CssClass="datatable" Width="100%" <Columns> <asp:BoundField DataField="BrkgAccountNam...

SubSonic build errors

I'm trying to use SubSonic for a new project with an existing database but when I try to build the project after generating the SubSonic files I'm getting these same two exceptions on different classes: Partial declarations of 'MyData.UserCollection' must not specify different base classes Type 'MyData.UserCollection' already defines a...

Good date-picker for ASP.NET

I have always been a very big fan of the DHTML calendar http://www.dynarch.com/projects/calendar/ I was planning on using this for an upcoming project in ASP.NET, but I wouldn't mind finding a new calendar control that is specifically made as a ASP.NET user control. Does anyone know of some good ones out there that I should check out? ...