asp.net

example of interactive manual for web app

I have requirement to write help(for example show description of what some button does) for my web app. Are there any good examples for doing this? ...

Why my treeview.checkednodes collection reset?

I am using a treeview control inside an update panel. The checkednodes collection reset almost every time. Can you help? ...

How can i use a Gridview efficiently in asp.net by using only the keyboard?

Hi, i need to use my gridview by using only the keyboard.My clients prefer keyboard rather than using mouse.How can i use my gridview like that?What all events should i use? ...

How do I simulate the usage of a sequence of web pages?

I have a simple sequence of web pages written in ASP.Net 3.5 SP1. Page1 - A Logon Form.... txtUsername, txtPassword and cmdLogon Page2 - A Menu (created using DevExpress ASP.Net controls) Page3 - The page redirected to by the server in the event that the user picks the right menu option in Page2 I would like to create a threaded pr...

Div over GridPanel at select

Hello, I’m not really good in JavaScript and now I’m really stuck. I have an updatepanel on a form. In this updatepanel I have a grid view. When I click over the select button, I want that Panel1 be shown over the table and his corner up-left to be positioned where I clicked. I've written a function in JavaScript which saves the mouse ...

Creating an web API in ASP.Net

Hi, I'm looking to create an API for a website I have built. The API will be built in ASP.Net - probably using VB and will need to be consumed by multiple platforms including PHP. I've read a bit about REST vs. SOAP APIs and am confused about which route I should go. I also need some examples and frameworks I can use to get started. T...

FTP server returned 500 error with ASP.NET C#

I 'm developing FTP exe ASP.NET、C#2.0 . but I FTP server returned 500 error FtpWebRequest myReq; FtpWebResponse myRes; myReq = (FtpWebRequest)WebRequest.Create("ftp://test/aaa.txt"); myReq.Credentials = new NetworkCredential("xxxx", "xxxx"); myReq.Method = WebRequestMethods.Ftp.DownloadFile; myRes = (FtpWebResponse)myReq.GetResp...

Calling a Page Method when the Browser Closes

Hi here I'm trying to call a [webmethod] on bodyunload method. But it is getting fired on page load itself only. How do i prevent it? Here's the code I am using: [WebMethod] public static void AbandonSession() { HttpContext.Current.Session.Abandon(); } <script language="javascript" type="text/javascript"> //<![CDATA[ function H...

Jquery and trigger a click on a hidden button

I have a hidden button on a form that I need to click in order to fire an asyncpostback trigger that's attached to an update panel. How is this done? ...

Returning Custom object wich implements List<> in Web Service

Hello Friends, i have been tasked to write a new web service with returns list of Addresses to do so i have created a class as bellow [Serializable] public class AddressDataCollection : List<AddressData> { private long m_ErrorCode; private string m_ErrorMessage; public long ErrorCode { get { ...

IIS App Pool

If my host automatically recycles the app pool when it reaches a certain size will this cause all users sessions to be lost and the user to be logged out? If this is the case would moving InProc sessions to SQL fix the issue? Would doing this also save much memory? Thanks Gavin ...

Strongly-typed ASCX in WebForms 3.5?

I'm looking to get rid of the code-behind for a control in my WebForms 3.5 application. Again bitten by the bug of how it's done in MVC, I'd like to get a step closer to this methodology by doing: <%@ Control Language="C#" Inherits="Core.DataTemplate<Models.NewsArticle>" %> This gives me the parser error you'd expect, so I remembered...

How to convert DateTime? to DateTime

I want to convert null able datetime "DateTime?" to DateTime. But i am getting error. I have done this like following: DateTime UpdatedTime = (DateTime)_objHotelPackageOrder.UpdatedDate == null ? DateTime.Now : _objHotelPackageOrder.UpdatedDate; But i am getting error: Cannot implicitly convert type 'System.DateTime?' to 'System.Dat...

Difference in time-taken in IIS and ASP.NET

Hello I'm developing an ASP.NET (3.5) webservice application, hosted on IIS6/Win2003. The webservice logs the timestamp of the call at start and just before the return. This allows me to query the time-taken. I've also added time-taken to the standard IIS log (W3C extended) The webservice is then stress-tested (5 threads, 200 calls per...

Update cookie expires without any change in the value

How can i simply update the expiry of a cookie on each page request without having any impact on its value ? ...

What should a .NET developer know about MSBuild?

95% of my time I program ASP.NET (MVC) web sites. Should I care about MSBuild? ...

Javascript error in getting code behind values

I have a web site released at facebook platform, i am using C# .Net 2008, the problem is that i am loading an array elements from code behind in javascript arary and i am loading elelment element using the following javascript code : ArList = new Array('<%=ListOfWords[0]%>','<%=ListOfWords[1]%>','<%=ListOfWords[2]%>','<%=ListOfWords[2]%...

List of version numbers of assemblies used by it's web site.

A simple question. I have an ASP.NET web application which contains several assemblies and I need to create a list of version information for every assembly in the web site. (And perhaps even a few others too, but the focus is mostly for the site itself.) This list will be displayed within the same application on a protected page and is...

ASP.net website compatible in all browsers

How can we make asp.net website compatible in all browser. In my case the webpage looks fine in IE 7.0 and above but in another browser like Google crome, Firefox, Netscape etc, the web page content detroy in layout. ...

Caching Resource Files

Would there be any point in adding resx files to a distributed cache? What is the overhead of accessing the resources that would be saved by either a) caching the resource file itself b) caching the individual resources in the file? One immediate drawback is that it would break the internationalisation capabilites that you get. ...