Monthly Archives: June 2012

AMD Radeon™ HD 7900 Series Graphics Real-Time Demos Tag

You can watch the movie or play the demo. Download them from: http://developer.amd.com/samples/demos/pages/AMDRadeonHD7900SeriesGraphicsReal-TimeDemos.aspx You can pick up all the GPU demos here: http://developer.amd.com/samples/demos/Pages/default.aspx

Posted in Computers and Internet | Tagged | Leave a comment

Simple sample on how to use backbone.js for ASP.NET MVC3

I have created a strip down version of http://www.codeproject.com/Articles/369821/Simple-CRUD-Using-Backbone-js-in-ASP-NET-MVC-Razor. Look at the View folder there is another folder named StoreManager. Genres.cshtml is inside this folder. There is a line to include the backbone file.   <scriptsrc=”@Url.Content(“~/Scripts/StoreManager/Genre.js”)”type=”text/javascript”></script>   When you look … Continue reading

Posted in .Net | Tagged , , | Leave a comment

Set ASP.NET Label text with Javascript

The ASP label id is Label1 and the ClientID in javascript is just need to be there. You cannot do   document.getElementById(“Label1”).innerHTML = SelValue;   it just won’t work.   What you need is   document.getElementById(‘<%= Label1.ClientID %>‘).innerHTML = SelValue; … Continue reading

Posted in .Net | Tagged | Leave a comment

ASP.NET Web Form template is back in VS 11

Web Form template has been removed in VS 2010. Because of the need and friendliness VS 11 put back the Web Form template. You can create it by choose File from pull down menu then New -> Project…. Select Web … Continue reading

Posted in .Net | Tagged , | 1 Comment

Access is denied in MVC 4 Intranet Application in VS 11

When you are creating MVC Intranet Application like below in VS 11.   You run the application by pressing Internet Explorer then you will hit the Access in denied error as below.   Open the Wen.config file and comment out … Continue reading

Posted in .Net | Tagged | 4 Comments

‘Spring.Objects.Factory.Xml.XmlObjectFactory.XmlObjectFactory(Spring.Core.IO.IResource)’ has some invalid arguments

This article of injection is one of the good one. Somehow if you download the code the you will have error on this line of code.   XmlObjectFactory xmlObjectFactory = newXmlObjectFactory(stream);   The error as below.   The best overloaded … Continue reading

Posted in .Net | Tagged | Leave a comment

Response redirect does not redirect to external url

I have seen a lot of this issue in forum people is asking why   Response.Redirect(“http:////www.google.com&#8221;);   Or   Response.Redirect(www.google.com,true);   is not redirected to the web site or external web site. The right syntax should be   Response.Redirect(“http://www.google.com&#8221;);

Posted in .Net | Tagged , , | Leave a comment

Object reference not set to an instance of an object in MVC

This is the common error in MVC when you navigate to a View, “Object reference not set to an instance of an object”.   When you right click go to the controller then you will see the code like below. … Continue reading

Posted in .Net | Tagged | 1 Comment

Add a button to ASP.NET MVC View

I have seen many users struggle in how to put the button and add the handle to it in MVC. The following steps are doing this.   1. Add html input button into the View Page.   <inputid=”Button1″type=”button”value=”button”/>   2. … Continue reading

Posted in .Net | Tagged | 1 Comment

Updating using SqlCommandBuilder

This is no longer something new. It is still one of the very handy ways to update the data in SQL database, despite it is SyBase, MS SQl or Oracle. You need no to implicitly specify InsertCommand, UpdateCommand, or DeleteCommand … Continue reading

Posted in .Net | Tagged | Leave a comment