asp.net

REST on IIS

I'm wondering how many folks using the Microsoft development stack (IIS and/or ASP.NET) are actually using REST? If so, what forms of rest are being used? REST can be categorized a zillion ways, but for the purpose of this question I'll categorize it as follows: Radically REST: Using all the HTTP methods PUT/POST/GET/DELETE Moderate...

ASP.NET TextBox filter

is there a simple way to suppress certain keystrokes within a textbox? for example if i only want to allow numbers. ...

Does ASP.NET by default take advantage of multicore processor ?

Or I have to configure IIS specifically for this ? Do I have to use Web garden to take advantage of multiple cores ? ...

FCKEditor doesn't set Value property on postback!

I'm using FCKEditor on my asp.net web page. It appears beautifully, and the editor looks really good on the front end. Only problem is, the .Value property is not being set on the postback. No matter what changes the user makes to the value of the control on the page, when I click "Submit", the .Value property remains blank. I have G...

SVN Export from ASP.NET web app with ssh?

I have a setup where I want to deploy a website from our SVN repository to our staging server. In order to do this today I log in to the staging server (W2k machine) via remote desktop and run the following batch script: set SVN_SSH=plink.exe -i privatekey.ppk -l webstaging svn export --force svn+ssh://[email protected]/t...

When i use web parts and i use DesignMode why cant i drag & drop control from one webzone to another?

I am using one webpartzone for login control & second one for calender. when i use designmode of webpartmanager then it won't allow me drag & drop facility. Why? ...

data control available (in .NET) for a complex object (object with children objects)

Is there any data control available (in .NET) for a complex object (object with children objects). Something like a gridview but with hiperlinks which will take you to child object. ...

How can i Integrate PayPal with ASP.NET?

How can i integrate PayPal with ASP.NET, do you have any sites that can get me started or links to any tutorials? ...

RunTimeError in ASP.Net

I am doing .net application which is in vb.I am getting an runtime error when running in Internet Explorer,but its running in mozilla. Error as following Error:SysArgumentTypeException:Object of type 'AjaxControlToolKit.Animation.Length Animation' cannot be converted to type ;AjaxControlToolKit.Animation'.Parameter Instance...

Detecting if controls exist in a control collection

UPDATE: Apologies on lack of clarity I realise I could iterate over the controls collection, was just looking for a better/more efficient method. I am trying to dynamically add some css and js elements into an ASP.Net page at runtime, but because this code is used in mutliple controls I need to ensure that the relevant links are only in...

Classic Asp to Asp.Net urlEncoding problem

I'm using a web service for passing information from a bunch of old .asp pages to a database. Problem is that using httpGet, I need to encode the info so it can be safely passed. Everything works like a dream, save for the fact that scandinavian letters such as ä ö and å for example come out as squares. Now I don't even know whether thi...

Bound Column in ASP Grid view when invisible cannot be accessed

I have a GridView with BoundColumns. The first 2 columns are hidden and I would like to access them using gridView1.Rows[0].Cells[0].Text and gridView1.Rows[0].Cells[1].Text respectively and I get a empty string. When the columns are changed to visible, then I can access the values. I have tried changing the column width to zero as sugge...

splitting html table in asp.net

I have a html file which has a huge table with 4 columns and multiple rows. I want to display it in an asp 2.0/3.5 page, such that it's first 2 columns appear in one area and other two appear in another area adjacent to it. Some thing like splitting the table in two and displaying. Is there any way i can achieve it? ...

How (if at all) can you make an ASP.NET UserControl inherit from another UserControl?

In Windows Forms it's easy to inherit one user control from another. The inherited control contains all the controls of the parent form, and you can add some more. Can the same be done with ASP.NET? I'm talking about the .ASCX type of user controls. ...

Error while using asp.net resource files

I have som text-content that I want to be able to change without recompiling my project. I have created a resource file and put some text-content in it. I was under the impression that I could write <%$ Resources:mapLink2 %> wherever I wanted but that doesn't seem to be the case. The following code in my ascx gives me an error: <a hre...

Why is it that my cookie is not getting deleted/unset?

I have a login link that fires a javascript function that calls a logout page. This is what the logout page consists of: If Response.Cookies.Count > 0 Then Response.Cookies("aLog").Value = Nothing Response.Cookies.Clear() End If Originally I just had cookies.clear in there, but that wasn't working. Here is the javascript th...

Delete Directory from ASP.NET application returns to new session

I'm deleting a directory from within an ASP.NET application. The deletion goes fine, but when I return from it all my session data from before the delete is lost. It doesn't matter whether I use: if (Directory.Exists(folderPath)) Directory.Delete(folderPath, true); Or: System.IO.D...

Can an ASP.NET MVC View use a Model from a different project?

I've got an ADO.NET Entity Framework class called Node in a WPF project. I want to use it in a different ASP.NET MVC project within the same solution. My Node controller: Public Class NodeController Inherits System.Web.Mvc.Controller Function Display(ByVal id As Guid) As ActionResult Dim db As New WpfApplication1.Mod...

Charts for ASP.NET

What would you suggest for charts? Anyone has a preferred controls? ...

asp.net net.mail - route all emails to a different email address in debug mode

Is there anyway to have all emails go to a different address when System.Web.HttpContext.Current.IsDebuggingEnabled is true? Or do I need a new class which I use to send email everywhere? ...