Monday, December 3, 2012

Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive

 Two reasons

1. Application Pool for your site is configured for .NET Framework Version = v2.0.XXXXX .NET 4.
2. .net 4 not installed to your server

Wednesday, November 14, 2012

Clear FileUpload filename

We can do this using javascript. Please refer below code sample


<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<script type="text/javascript">
    function clearFileInputField(divId) {
        document.getElementById(divId).innerHTML = document.getElementById(tagId).innerHTML;
    }
</script>
    <asp:Label ID="Label1" runat="server"></asp:Label>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <div id="divFileUp3">
  <asp:FileUpload ID="fileUpload1" runat="server"   />
</div><asp:Button runat="server" Text="Remove" OnClientClick="clearFileInputField(divFileUp3)"/>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
 

Thursday, November 1, 2012

Saving Changes Is Not Permitted On SQL Server 2008 Management Studio

To allow you to save changes after you alter table, do disable prevent changes:


  1. Open Microsoft SQL Server Management Studio 2008
  2. Click Tools, then click Options
  3. Click Designers
  4. Uncheck prevent saving changes that require table re-creation
  5. Click OK
  6. Try to alter your table

Thursday, October 4, 2012

RESTORE cannot process database 'db name' because it is in use by this session.

My issue was I was restoring a database that I also was using as my default database.

So, by changing my user default database to the master db, I was able to restore.

I Built a New Kind of Number Puzzle Game (And You Can Play It Free)

 For a long time, I wanted to play a mobile puzzle game that felt genuinely strategic—something that required real brainpower, skipped the a...