asp.net-4.0

How can we make the DataView Control respond to javascript events?

If I had an ASP.NET 4.0 DataView control that looked like below, how can I control javaScript events on the client side? Body tag: <body xmlns:sys="javascript:Sys" xmlns:dataview="javascript:Sys.UI.DataView" sys:activate="*"> DataView tag: <ul sys:attach="dataview" dataview:data="{{ ListOfPeople }}" class="sys-template"> ...

Entity Framework v2 doesn't support sql 2000?

I installed the beta 2 of Visual Studio 2010 today. I went to test out the new entity framework stuff (to see if my "issues" from v1 were fixed.). I started adding a new connection string, but when i put in my information for sql 2000 it said "this server version is not supported. you must have Microsoft sql server 2005 or later.". Did...

AJAX change in .NET 4: Sys.Services.AuthenticationService

I'm testing my existing apps in VS 2010, and ran into my first break. ASP.NET AJAX authentication support has changed. Sys.Services.AuthenticationService.set_defaultLogoutCompletedCallback(OnLogoutCompleted); This no longer works. "Sys" is defined, but "Sys.Services" is an undefined object. Does anyone have a quick pointer to the repl...

Html Encoded Code Expressions

In ASP.NET 4.0 should I use new syntax <%: expression %> or 2.0 <%= HttpUtility.HtmlEncode(expression) %> ...

MSBuild: Building asp.net 4.0 web sites: .metaproj -files

Hi! I have a solution-file with ASP.NET Web Sites. When I build the solution with .NET 4.0 Beta 2 using "c:\WINDOWS\Microsoft.NET\Framework\v4.0.21006\MSBuild.exe" d:\MyPath\MySolution.sln Everything works fine, no errors. Then I try to build the same solution with CruiseControl .NET task (msbuild-script ran by a service), the sa...

Request Validation - ASP.NET MVC 2

Has request validation changed for ASP.NET MVC 2, more precisely, not validating? I did the following: Web.configs (in App directory and Views directory) <pages validateRequest="false" Controller/Action Attribute [ValidateInput(false)] In @Page View Directive ValidateRequest="false" The page still gets validated an excepti...

how to use url routing in asp.net 4.0

how i can use url routing in asp.net 4.0 . how it is possible in asp.net 4.0 ; are you provide some demo code , sample project for it ...

Call a javascript function with a bound value

I am using ASP.NET 4.0 new AJAX template framework, I bind a dataview using data coming from a JSON formatted web service. I would like to call the onClientClick method of my LinkButton while passing the bound value, here is my code snippet: <asp:LinkButton onClientClick="GetCategoryDetails({{CategoryId}})" ID="lnkCategory" runat="...

ASP.NET 4 running on server with ASP.NET 3.5

Can I compile an ASP.NET 4 application, and run this on a server with ASP.NET 3.5 installed? I have seen this method for ASP.NET 3.5 MVC running on servers with only 2.0 installed: Is it possible to run an ASP.NET 3.5 MVC 1.0 application on a server that supports ASP.NET 2.0 only? ...

asp.net ajax 4.0 with MVC -externalize templates

i have created project referring to http://weblogs.asp.net/johnkatsiotis/archive/2008/07/23/asp-net-ajax-4-0-template-example.aspx this example . now i want to separate the" some data....." template to another page. with the "" remains in the same aspx page. PROBLEM : in .js file var t = new Sys.Preview.UI.Template.getTemplate($get("my...

ADO.NET EntityObject Generator

Hi there, i've just installed vs 2010 n discovered that ado.net entityobject generator exists as a new item. Do u have more docs on it? i surfed on the net, but i found only two urls' speaking about that (even if i can't understoo what actually it is) Update: What’s New in Entity Framework 4? Part 1: API Changes ADO.NET EntityObje...

use ajax 4.0 in mvc to create multiple templates

consider following code i have used ajax 4.0 with MVC framework <script type="text/javascript" src="/scripts/MicrosoftAjax.js"></script> <script type="text/javascript" src="/scripts/MicrosoftAjaxTemplates.js"></script> <div id="divdata" class="sys-template" > <p>Event Title:<asp:TextBox ID="TextBox1" runat="server">{{ title }}</asp:...

using ajax 4.0 render list of data into single template

In my project i have called method WCF service which returns a result but now i am using a method which returns a list of result which i want to append to a single template. my callback function look like this: function callbackEvent(_result){ var result=_result; var title = result.Title; var data = result.Data; var...

Using .NET 4.0 for development server

My ASP.NET application runs on IIS on my web server and uses Microsoft .NET Framework 4 Beta 2. (Its Application Pool is set to .NET Framework version .NET Framework v4.0.21006.) I debug on my development machine using the ASP.NET Development Server that comes with Visual Studio. How do I make my development machine also use .NET 4.0 ...

Can I develop for .NET Framework 4 in Visual Studio 2008?

My ASP.NET application runs in IIS on my web server and uses Microsoft .NET Framework 4 Beta 2. (Its Application Pool is set to .NET Framework version .NET Framework v4.0.21006.) It gives this new error: A potentially dangerous Request.Form value was detected from the client... This is due to a breaking change in .NET 4. To rev...

how to read data from external .htm file using ajax 4.0

i have used this example ...(with some changes ) and works fine. http://weblogs.asp.net/johnkatsiotis/archive/2008/07/23/asp-net-ajax-4-0-template-example.aspx here is code of .aspx page from my example <div id="divdata" class="sys-template" style="background-color:Gray" > <p>Event Title:<input id="title" size="150" type="text"...

What version of ASP.NET MVC 2 do I install on my Web server if I developed a solution using ASP.NET MVC 2 on Visual Studio 2010 Beta 2?

If I develop a site using the version of ASP.NET MVC 2 that ships with Visual Studio 2010 Beta 2, what do I install on my Web server to get to run correctly? From what I've gathered, there are two paths for ASP.NET MVC 2. One (the Preview 2, I believe) is included in Visual Studio 2010 Beta 2. The other one, the ASP.NET MVC 2 Beta, is...

Make URL in ASP.Net user-friendly

I'm trying to develop my first site in ASP.Net using Web Forms. I have a form with some controls and a TextBox control. While now I use GETrequest. When user submits a form his browser expects to get long URL, something like http://mysite.com/search.aspx?__VIEWSTATE=%2FwEPDwUJNTE2NjY5jMY4D2QWAgICD2QWAgIDDW8wAh4EVGV4dAUBMWRkZKthQ0zeIP5...

Can you determine the name of the route followed from your webforms page?

Hi there, I have a ASP.NET 3.5 webforms project I have enabled routing over. I also have in the project a number of controls doing different things based on what page they are currently being shown in. It would seem that the most straightforward way to control this different behavior is to discover which route was used to load the page...

A potentially dangerous Request.Form value in MVC 2 & ASP.NET 4.0

When I trying to send form containing value with xml, I get HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client All approaches I found: <%@ Page ValidateRequest="false" %> in .aspx-file. <pages validateRequest="false" /> in web.config. [ValidateInput(false)] on controller's action...