Posts

Two Submit Button One Need validate and another no need to validate in HTML 5 Required Attributes

Step 1 Put " formnovalidate=false" in no validate button and check  

Disable .asmx file direct browse

1) Add  below configuration  in web.config file <system.web>     <webServices>              <wsdlHelpGenerator href="Deny.aspx"></wsdlHelpGenerator> // You need to create this page (simple aspx/htm to show to users)     </webServices> </system.web> OR 2) <system.web> <webServices>     <protocols>          <remove name="HttpPost" />          <remove name="HttpGet" />         <remove name="Documentation"/>     </protocols> </webServices> </system.web>

Delete All Object in SQL Server Database Query

DECLARE @name VARCHAR ( 128) DECLARE @SQL VARCHAR ( 254) SELECT @name = (SELECT TOP 1 [name] FROM sysobjects WHERE [type] = 'P' AND category = 0 ORDER BY [name]) WHILE @name is not null BEGIN     SELECT @SQL = 'DROP PROCEDURE [dbo] . [' + RTRIM ( @name) +']'     EXEC (@SQL)     PRINT 'Dropped Procedure: ' + @name     SELECT @name = (SELECT TOP 1 [name] FROM sysobjects WHERE [type] = 'P' AND category = 0 AND [name] > @name ORDER BY [name]) END GO /* Drop all views */ DECLARE @name VARCHAR ( 128) DECLARE @SQL VARCHAR ( 254) SELECT @name = (SELECT TOP 1 [name] FROM sysobjects WHERE [type] = 'V' AND category = 0 ORDER BY [name]) WHILE @name IS NOT NULL BEGIN     SELECT @SQL = 'DROP VIEW [dbo] . [' + RTRIM ( @name) +']'     EXEC (@SQL)     PRINT 'Dropped View: ' + @name     SELECT @name = (SELECT TOP 1 [name] FROM sysobjects WHERE [type] = 'V' AND category = 0 AND [name] > @name O

How to enable developer ULS log dashboard in sharepoint

Image
Step 1 : Execute below command in powershell stsadm -o setproperty -pn developer-dashboard -pv on Step 2:  Follow the process as per below snap shot .

Start Stop SharePoint timer Service using command line

net stop SPTimerv4 To start timer service net start SPTimerv4 To stop SharePoint Administration service: net stop SPAdminV4 To start SharePoint Administration service net start SPAdminV4

Use of SPMetal.exe in SharePoint

SPMetal.exe Using the tool called SPMetal, we generate our entity-classes that are needed to perform these object oriented queries toward our SharePoint server Command for Generate entity class C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN>spmetal.exe /web:http://sharepointsite /code:c:\classname.css