asp.net

set labels on datapoints using mschart

I would like to customize the labels on the datapoints below so they would render as (using first datapoint on the chart as an example) : 4:10 - 4:40 yellow class ...

MSDeploy: "Leave extra files on destination" from command line?

I use MSDeploy to publish things to different servers during CI. When I publish from Visual Studio 2010 I have a "Leave extra files on destination" option, but I can't seem to find a flag for this functionality when invoking MSDeploy from the command line. Does anyone know how to do this?? ...

Error: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

I have both VS 2005 and 2008 installed on my machine. 2005 is fine. For 2008, literally any asp.net project I try to create gets this eror. I try stepping into the code, and the error occurs apparently before anything that I can trap is loaded. There is no information written to the event log. I have tried this with a "Hello World" ...

Response Object not returning Excel stream in update Panel?

I am generating an Excel file upon a click of a button in an update panel. It is throwing a parsing error. Please see below code. If I keep the button outside the update panel it is working fine. Why isn't it working in the update Panel? Response.ContentType = "application/vnd.ms-excel" Response.AddHeader("Content-Disposition", ...

Entities Framework 4 Code First: Inheritance

I am currently trialing EF4 code-first. My POCO classes inherit from an Audit class that contains CreatedBy, CreatedOn, UpdatedBy, UpdatedOn. I was hoping the framework would include the Audit properties in my Action table when creating my database, however this doesn't appear to be the case. Does anyone know how to enable this without o...

MongoDB and C# datasource

I am using MongoDB with C# driver. I managed to add/delete/update data from collections, but I dont know how to display a collection in the gridview. If it's not possible, how can I display collections as tables in asp.net? ...

Dynamic Inheritance using a factory

I think I know the answer to this but hoping someone has a neat solution. We are currently using two kinds of drop down controls (telerik and .net). I'm hoping to combine these into one control but struggling with a user friendly design. Ideally the control would be created in the design file with a bool property of say "SimpleBox", to...

Have Client-Server App, need to create a Client Simulator - ideas needed

We've got a client app which connects using TCP to a server. Additionally, the client app makes use of .NET remoting to talk to another piece of locally running code. I'm tasked with creating a "Client Simulator" to do some testing, where we'd need to have 100's of clients connected simultaneously to the server. Ideally, this would work...

Declaring a CLICK event. ASPX vs Code behind.. how are these 2 different ?

in .ASPX this is working <asp:ImageButton ID="lbHope6" runat="server" ImageUrl="~/Shared/Images/Site/ChartTypeProd.png" CssClass="chart" OnClick="lbHope6_Click" /> protected void lbHope6_Click(object sender, ImageClickEventArgs e) { EventArgs args = new EventArgs(); if (Hope6 != null) Hope6(this, args...

SubSonic: Overriding the Scaffold

Can anyone advise me on extending the out-of-the-box scaffold within SubSonic 2? When a user clicks the Save button, which triggers the btnSave_Click void, I would like to execute another stored procedure based on the record they have just updated. What's the best approach? Many thanks. ...

Session Timeout Logout user

I want my application to log out the logged in user and take them to the Loing.aspx page as soon as the Session times out. The user should be logged out without any event being triggered. I have tried making changes in authentication mode but all in vain... ...

IIS 6/7 Threading - Long running aspx page keeps other aspx pages from loading

I wrote a test page that does a bunch of busy work in a method called at page load. This process as I have it now takes around 12 seconds. If I try to load another page while the first long running page is loading, this second page doing nothing except writing out a hello world, it doesn't load until the first long running page is finis...

How to stop user from changing querystring

How do I protect the url from a user changing one of the param/value pairs? Thanks. ...

How to render a report using the ReportService2010 namespace

I'm working on a project where we will be interacting with the ReportService2010 reporting web service under SQL Server 2008 R2. In the past, I've worked with the ReportService2005.asmx, and my problem here is, I can't find any reasonable examples on how to render a report with this new (2010) reporting web service. When using the 2005...

JQuery need to clear a text box when clicking calendar button

I have a textbox with calendar button. Here my requirement is I need to clear the text box when user clicks Calendar Image control. Please provide JQuery for this. Thanks in advance. ...

Web app using the dll from Temporary ASP.NET instead of my project

I have a solution with 2 projects in it. One a web site and the other a data project that compiles into a dll. The web site has a reference to the data dll in it but when I publish the project it uses the old dll in the temporary ASP.NET folder. ...

Does a WebMethod always return XML?

ASP.NET [WebMethod] does it always return XML? I know it can only return serializable data types. ...

Redirect page when Javascript is disabled

Hi, I need to redirect to another page when the client script is disabled on the browser. Can anyone please help? Thanks ...

problem in Labels with asterisk!!

I have the following ASP.NET markup: <td align="right" valign="top" style="width: 130px"> Answer: <asp:Label ID="lblanswer" runat="server" CssClass="errorMessage" ForeColor="Red" Text="*"> </asp:Label> </td> I want it to say "Answe...

Load .NET Resources Client-Side on each request

I have the following JavaScript snippet: <script type="text/javascript"> var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_beginRequest(ajaxBeginRequest); prm.add_endRequest(ajaxEndRequest); function ajaxBeginRequest(sender, args) { $.blockUI({ message: '<h1><img src="/images/ajax_loading.gif" /> ...