asp.net

How can I get a date after 10 days ? in asp.net

Hello, This code returns today's date: Dim next10days As Date = Date.Now But how can I get the date for the 10th day from today? ...

Asp.net Webapplication on a multiple servers

I was wondering what do i need to get my asp.net web application installed on multiple server, having them working as a one piece. Thanks in advance, ...

How do I use reflection to get the nested property

I am writing a TwoWay Binding control for ASP.NET. I finally got things working. I'm rebinding using the following code: private void RebindData() { // return if the DataValue wasn't loaded from ViewState if (DataValue == null) return; // extract the values from the two-way binding template IOrderedDictionary v...

Can't get JQuery to work in Master Page

I have a sample jquery in a form with no master page, and it works fine. I am trying to use the same function inside my master page but it does not work, I am using ASP.NET. Here is my code for both: WebForm (This works): <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm3.aspx.cs" Inherits="Surfitlocal.WebForm3" %> <!DO...

IIS 7, ASP.NET: AccessViolationException

What can be the reason of the following exception in ASP.NET application under IIS 7? It is an unhandled exception that restarts the whole application. Exception: System.AccessViolationException Message: Attempted to read or write protected memory. This is often an indication that other memory has been corrupted. StackTrace: in Sy...

Web deployment project help

Where can I get a complete reference about Web Deployment Projects 2008? I have searched for it, but it appears that there are only blogs posts or forums questions about WDP specific characteristics. ...

Mapping enum values to a drop down (combobox) list in ASP.NET

I have an ASP.NET page with a drop down (asp:DropDownList) control. I also have a defined ENUM Public Enum myEnumType As Integer A B C End Enum I want to define the "value" property of each asp:ListItem with one of the ENUM value (A,B,C represented as a string of course). I also want to assign the "text" value of each to be som...

Cool UI templateing VS Jquery Templating

hi, i have read this article ScuttGu for making use of User control to make Client side templates. and this one too Ecnosia are they the same, regarding performance ? thanks in advanced. ...

Performance Comparision of linq 2sql and Ado.net Entity Framework with stored Procedure?

Hi I am devloping the a asp.net site which will have lots of user online at a time. I am writing very efficient stored procedure for it. Which ORM tool should I use? Ado.net entity framework or linq2sql? Performance is needed as our requirement is to load every page in 4 seconds. ...

How to add list in ListBox?

Hello again; i need to show X,Y,Risk in ListBoxes. But i can not do it. public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { List<TrainigSet> listtraining = new List<TrainigSet>(); TrainigSet tr = new TrainigSet(); ...

How to make SO tags autocomplete with Ajax

Can anybody tell me how can I implement something like the Stack Overflow tags autocomplete textbox, with Ajax? ...

how to call vb function from javascript

Hi guys, i am using textbox(txtFileType) with event OnFocus=("this.blur();"), so i cant use textchanged event for this textbox, i have written a vb code to calculate my FileNumber using Storeprocedures based on the value of textbox(txtFileType). can i call this vb code from javascript which can be used in clientside.. please help with a...

How to sort list type generic if more than one property?

I have a list-generic that has a property (class type). I need a sort method for Z parameters (TrainingSet): public override List<TrainingSet> CalculatedDistancesArray (List<TrainigSet> ts, double x, double y, int k) { for (int i =0; i < ts.Count; i++) { ts[i].Z = (Math.Sqrt(Math.Pow((ts[i].X - x), 2) ...

Where is the class view for a code behind file in VS 2005

I can't seem to find any of my code behind files in the class view tab. I can see other classes that I have added but none of the code behind files. Is there a reason for this? I am missing a setting or something? It is quite irritating trying to navigate my way through the code all the time. I can see all the other classes just fine ju...

How to map the root URL in an ASP.NET application?

I have the following in my Web.config: <httpHandlers> . . . <add verb="GET,HEAD" path="/" type="Vis.Web.BootHandler, Vis" /> </httpHandlers> That HTTP handler returns a static HTML page, just to see if it works. Now when I run my web application (which has no Default.aspx or the likes) I get the default directory listing inst...

RadioButtonList is unchecked after postback

When i clicked a button control on asp.net page, my radiobuttonlist is returning back unchecked after postback. <asp:RadioButtonList ID="rblSgkOzel" runat="server" EnableViewState="true"> <asp:ListItem Text="SGK Kapsamında" Value="sgk" Selected="True"/> <asp:ListItem Text="Özel" Value="ozel" /> <asp:ListItem Text="Hasta Adın...

Pushing out a PDF file to IE from an ASP.NET 3.5 site

My application pushes out a PDF file to a popup (e.g. no menu/toolbar) browser window (in response to the user clicking a button). This works for every browser out there except for IE7. In IE7, all I get is a blank window. Here is the server-side code that pushes out the PDF: private void StreamPDFReport(string ReportPath, HttpCont...

Security error in cross domain iframe

Hi All, I have a click tracker for a client. The tracker is nothing but a javascript snippet which writes an iframe(a different domain) into the page. If I have a normal iframe I am able to track clicks more accuratley(I compare the data from another tracking solution) than when the iframe is secure(the site is accessed over ssl). Wh...

Problem with ScriptManager.RegisterClientScriptBlock and jQuery in Internet Explorer 8

I want to use jGrowl plugin for jQuery (http://stanlemon.net/projects/jgrowl.html#samples) to display some messages on a page. To do this, I call the ScriptManager.RegisterClientScriptBlock method like this: ScriptManager.RegisterClientScriptBlock(this, typeof(Page), Guid.NewGuid().ToString(), "$.jGrowl('" + message + "');", true); ...

Rule of thumb for amount of usage memory it takes to make a worker process recycle?

I've got a code base with lots of this: byte[] contents = FileUtils.FileToByteArray(FileOfGartantuanProportions); I don't control my IIS server, so I can't see the system log or do instrumentation, I just get to see my request fail to return (white page of death) and sometimes YSOD with Out of Memory error. Does anyone have a rule of...