When you modify a table in SqlServer and this change requires the table to be dropped and recreated, it’s necessary that SSMS is configured to allow this.

Go to SSMS/Tools/Options designers and uncheck this option.
See below

You may wonder why you would create a view for the delete action

One reason is to prevent webcrawlers interfering with your data, so create those delete views!
The cool hip thing these days is MVC, hang ur head in shame if you are still plodding along with plain old asp.net.
Actually that’s not quite right, in fact it couldn’t be further from the truth, asp.net is alive and strong and will be for a long long time, don’t mind those people complaining about
- Not having direct (easy) control over what html gets rendered
- Testing lets a little to be desired
- You can’t get ur grubby little hands on the @razor (at least i’m not currently aware if it can be used outside MVC3);
ASP is alive and strong and Microsoft are actively working on it, what’s more you’ve most likely already have some pretty good controls that you slaved over or bought ready made…
I’m a bit partial to Telerik controls and tonight I wanted to use the RadScheduler in a webportal i’m working on, and here it is in action


So how did I manage to do this?
Well I started out with a HtmlHelper extension and then realized it was even easier.
Telerik RadScheduler works directly with webservices (please read their documentation for full info (because my posts are more pointers then full working samples)
The View contains the following (apologies in all my talk I didn’t use razor
)
1: <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
2: <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
3: <asp:Content ID="HeaderCnt" ContentPlaceHolderID="TitleContent" runat="server">
4:
5: </asp:Content>
6:
7: <script runat="server">
8: public override void VerifyRenderingInServerForm(Control control)
9: {
10:
11: }
12: </script>
13: <asp:Content ID="BdyCnt" ContentPlaceHolderID="MainContent" runat="server">
14: <h2>Index</h2>
15: <telerik:RadScheduler runat="server" ID="SampleRadScheduler" EnableAdvancedForm="false">
16: <WebServiceSettings Path="~/Models/FeedWebService.asmx" />
17: <AdvancedForm Modal="false" />
18: </telerik:RadScheduler>
19: </asp:Content>
That’s pretty muich it, I’m using a plain old .net 2.0 style Webservice as outlined in Telerik help samples but expect I can use WCF too (another post maybe).
enjoy..
Lets say you have simple UPDATE command
UpdateCommand="Update SEC_USERS SET FirstName=@FirstName, Department = @Department, Gender = @Gender”
Now, lets assume that two end users of your system have already requested information for SEC_USER Bill whose a male janitor.
End user 1 updates Bills Department as he’s been promoted to CEO (hey it not impossible!).
End user 2 changes Bills Gender to female.
What actually ends up happening is the End user 2 overwrites the promotion and Bill (or maybe billie now ) ends up as a female janitor.
So how can we solve this problem assuming we are using a SqlDataSource.
Here’s how:

- Set the ConflictDetection property to CompareAllValues
- Set the OldValuesParameterFormatString to xxxx_{0}
- Update your command with a WHERE restriction for XXXX_{0}
UpdateCommand= "Update SEC_USERS SET FirstName=@FirstName, Department = @Department, Gender = @Gender FROM SEC_USERS WHERE FirstName=@read_FirstName
AND Department=@read_Department AND Gender=@read_Gender"
That’s it, the SqlDataSource manages the read_xxx parameters so you don’t have to.
Joseph Cooney had a brilliant idea for a new application certification program. But Vista's bland white-on-gray badge, in my opinion, doesn't properly communicate the.. authoritative.. nature of said program. With the help of Jon Galloway, we zazzed things up a bit:

You might think attaining such a prestigious, rigorous level of certification would be far too challenging. But fear not! Participating in this innovative new application certification program is as simple as pressing the F5 key on your keyboard. Just follow the four easy steps Joseph outlined:
- Compile your application code. Getting the latest version of any recent code changes from other developers is purely optional and not a requirement for certification.
- Launch the application or website that has just been compiled.
- Cause one code path in the code you're checking in to be executed. The preferred way to do this is with ad-hoc manual testing of the simplest possible case for the feature in question. Omit this step if the code change was less than five lines, or if, in the developer's professional opinion, the code change could not possibly result in an error.
- Check the code changes into your version control system.
Congratulations! You're fully certified. Brand your app with your shiny new Works on My Machine badge. You'll certainly want to show it off to your fellow team members and key stakeholders. But please-- do try to keep your ego in check. Not everyone is capable of such an epic commitment to quality in software engineering.
source: codinghorror.