Repair SQL Suspect or Corrupted databse 2008

We have taken 'test' as a databse name

EXEC sp_resetstatus 'test'
ALTER DATABASE test SET EMERGENCY
DBCC CheckDB ('test')
ALTER DATABASE test SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DBCC CheckDB ('test', REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE test SET MULTI_USER

Fix Sorting,Paging events of GridView does not work in browser chrome

1) Create webkit.js file

Sys.Browser.WebKit = {}; //Safari 3 is considered WebKit
if (navigator.userAgent.indexOf('WebKit/') > -1) {
    Sys.Browser.agent = Sys.Browser.WebKit;
    Sys.Browser.version = parseFloat(navigator.userAgent.match(/WebKit\/(\d+(\.\d+)?)/)[1]);
    Sys.Browser.name = 'WebKit';
}
2) Source Page

Use below code insted of <asp:ScriptManager>
<cc1:ToolkitScriptManager ID="scripts" runat="server" ScriptMode="Release" EnableHistory="true"
    EnableSecureHistoryState="false" EnablePageMethods="True" CombineScripts="true">
    <Scripts>
        <asp:ScriptReference Path="~/js/webkit.js" />
    </Scripts>
</cc1:ToolkitScriptManager>
Hop this code work for you!!

Mark the stored procedure to automatic execution?

Use the sp_procoption system stored procedure to mark the stored procedure to automatic execution when the SQL Server will start. Only objects in the master database owned by dbo can have the startup setting changed and this option is restricted to objects that have no parameters. USE master EXEC sp_procoption ‘indRebuild’, ’startup’, ‘true’)

What is the Difference between view and stored procedure?

Views can have only select statements (create, update, truncate, delete statements are not allowed) Views cannot have “select into”, “Group by” “Having”, ”Order by

Explain what is the top .NET class in c#?

System.Object.

Explain the Advantage of using System.Text.StringBuilder over string

StringBuilder is more efficient in the cases, where a lot of manipulation is done to the text. Strings are immutable, so each time it is being operated on, a new instance is created.

Does System.Array store multiple data types?

No.

Can C# support multiple inheritance?

No, use interfaces instead.

Can multiple catch blocks be executed?

No, once the proper catch code fires off, the control is transferred to the finally block (if there are any), and then whatever follows the finally block.