asp.net

Web-development setup

Hi I am in the process of setting up a complete web-development environment. For now, there are two developers, one dedicated to backend programming (C#, .NET) and one dedicated to frontend development (HTML, CSS, XSLT). Each have an installation of MS Visual Studio 2008 and shared source via Visual Source Safe 2005. They both checkout...

Should I distribute the Dataset XSD files when I deploy as website?

VS 2003 .NET 1.1 I know when I build a website into a DLL I do not have to distribute the cs files. When my project includes strongly typed datasets built off an XSD file, should I also distribute the XSD file, or does the generated cs file (and thus the DLL) contain all the required information to use the Dataset? Thanks! ...

When is InputStream available when uploading a large file?

When is PostedFile.InputStream available when uploading a large file? I'd like to pass a Stream to another process and I'm hoping that if a large file was being uploaded that I can pass the Stream straight to that new process w/o writing to the file system. Since the process and/or upload could take a while, I'm wondering if I can star...

ASP.NET Web App Distribution

What is the simplest way to distribute an asp.net web application? I tried to look at some of the open source asp.net projects out there to see how they distribute their apps and how they do updates and they seem rather complicated to me (not for myself to perform but for non-technical users). A lot of them entail backing up the entire i...

How to validate this scenario in ASP.NET MVC?

First, a little bit of context (cause I know you all love it!): I have a model called Note. It has a field called Type which, in the database, is an integer value that designates which type of object this note belongs to (1 = Customer, 2 = Sales Lead, etc). A second field called Source designates the ID of the specific object that this ...

Code Translation: ASP.NET Server.Transfer in PHP

How would I do this in PHP? Server.Transfer("/index.aspx") (add ';' for C#) EDIT: It is important to have the URL remain the same as before; you know, for Google. In my situation, we have a bunch of .html files that we want to transfer and it is important to the client that the address bar doesn't change. ...

ASP.net Modal Pop up extender and DropDownlist autopostback

Hi all. I have a gridview control where if the user click on the auto generated edit button. A window will pop up using modalpopup extender with a drop down list for user to select. The problem is the selectedindexchange event will not fire if autopostback is set to false but if i set the autopostback to true. the pop up will go away wi...

Data Grid in ASP.NET MVC

Is it possible to use a datagrid control in a mvc "view"? How would I bind it to a datasource? ...

CruiseControl.Net Dashboard + Apache

I'm trying to get cc.net dashboard running on a build machine that also has apache on it. I've tried installing mod_aspdotnet as described here. I can run the sample aspx page, but I am unable to get cc.net to run. Is there some magic I need to do? For what it's worth, http://localhost/ccnet manages to redirect me to http://localhost...

Best way to integrate two ASP.NET sites

I have two ASP.NET sites that are used for managing patient information. One application allows entry/edit of the patient demographics and the other allows different types of assessments to be completed for each patient. The two sites each have a distinct look and feel and both use SSL. One of our analysts wants to have a "launch page...

Disposing a static brush

Hi, I'm writing a biorhythm app. To test it i have a form with a Button and a PictureBox. When I click on the button i do myPictureBox.Image = GetBiorhythm2(); Which runs ok for the first time, but on the second click it causes the following exception: System.ArgumentException: Parameter is not valid. at System.Drawing.Graphics.Ch...

I need to change the style and control use of the asp:Login control button

Is it possible to get the source and code behind of the control so I can manipulate it myself? That way I can keep using the Membership and have the ease of functionality, but can use my own controls. I'm sure there is an easy solution to this. Thanks. ...

asp.net http server push to client

What's the best way to push info from a server to a web client? I know it's possible to setup sockets with Silverlight and Flash but I want to stay way from those two technologies. Gmail seems to do a great job of polling the servers for updated emails and even their chat programs work great (all working in my web browser). Any ideas on...

How I do to force the browser to not store the html form field data?

When typing in html forms, browsers like firefox or ie store the values, sometimes quietly. So when typing in another webforms, the browser smartly suggest the same information. Another method to show the dropdown list is double-clicking an empty textbox. In a e-commerce website, the customer type the credit card number, and another sen...

Best Practices - set jQuery property from Code-Behind

I need to set a single property in a jQuery command using a value that is calculated in the code-behind. My initial thought was to just use <%= %> to access it like this: .aspx <script type="text/javascript" language="javascript"> $('.sparklines').sparkline('html', { fillColor: 'transparent', normalRangeMin: '0', normalRang...

C#/ASP.NET Oledb - MS Excel read "Unspecified error"

We have a C#/ASP.NET (2.0) application running on IIS 6 on Windows Server 2003 Enterprise Edition. This application reads Excel files using OleDb, but there are instances when we get an "Unspecified Error" exception thrown from within the application. The file is stored in the temporary directory by our file upload code before opening...

Using PageMethods to access MultiiView Control ASP.Net

I have a multiview on my aspx page whose ActiveViewIndex I want to set using javascript. for this I have used UpdatePanel inside which the MultiView control is placed. I have enabled the EnablePageMethods="True" of the ScriptManager. Whenever I am calling the Server Method I am getting "Object reference not set to an Instance of an Obje...

In ASP.NET 2.0, Can I have a button to browse client folder and pick a path (not file)?

I already used a hidden file upload control to browse file and grab the file path, without really uploading it. My question is, is there a way in ASP.NET, create a folder browse button, when it is clicked, just to browse client file system, and user can click the path and choose that path not file? ...

coding for text file

how to generate the code for textfile in asp.net ...

Changing Databases in Crystal Reports for .NET

I have a problem which is perfectly described here (http://www.bokebb.com/dev/english/1972/posts/197270504.shtml): Scenario: Windows smart client app and the CrystalReportViewer for windows. Using ServerFileReports to access reports through a centralized and disconnected folder location. When accessing a report which was designed agai...