1. Go to web site property page,
2. Now Click on Start Options.
3. Now look at server block , and select option Use custom server
And Give an local host url in base url field.
For Ex: http://localhost:2859/WebSite1/
1. Go to web site property page,
2. Now Click on Start Options.
3. Now look at server block , and select option Use custom server
And Give an local host url in base url field.
For Ex: http://localhost:2859/WebSite1/
SELECT convert(varchar,[addedat],103) as addedat FROM tblTable
var query = from q in entity.tblTable
select new
{
date = SqlFunctions.DateName("day", q.addedat).Trim() + "/" +
SqlFunctions.StringConvert((double)q.addedat.Value.Month).TrimStart() + "/" +
SqlFunctions.DateName("year", q.addedat),
};
ProviderManifestToken="2005" instead of 2008. (You need to rebuild.)1: <asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=Entities"
2: DefaultContainerName="Entities" EnableFlattening="False" EntitySetName="tblContacts"
3: EntityTypeFilter="tblContact" Select="it.[ContactCode], it.[FirstName], it.[LastName], it.[AddedAt] "
4: OrderBy="it.[AddedAt]">
5: </asp:EntityDataSource>
void FindAndReplace(ref Microsoft.Office.Interop.Word.Application WordApp, object FindText, object ReplaceText) { object MatchCase = true; object MatchWholeWord = true; object MatchWildCards = false; object MatchSoundsLike = false; object nMatchAllWordForms = false; object Forward = true; object Format = false; object MatchKashilda = false; object MatchDiacritics = false; object MatchAlefHamza = false; object MatchControl = false; object ReadOnly = false; object Visible = true; object Replace = 2; object Wrap = 1; object[] Parameters = new object[] { FindText, MatchCase, MatchWholeWord, MatchWildCards , MatchSoundsLike, nMatchAllWordForms, Forward, Wrap , Format, ReplaceText, Replace, MatchKashilda , MatchDiacritics, MatchAlefHamza,MatchControl }; WordApp.Selection.Find.GetType().InvokeMember("Execute", System.Reflection.BindingFlags.InvokeMethod, null, WordApp.Selection.Find, Parameters); }
Meta tags are very much important for you web page, search engine use
Create a web application in c#
Drag a button and one textbox on the form
Then write code on form load event
C#
protected void Page_Load(object sender, EventArgs e)
{
HtmlHead headTag = (HtmlHead)this.Header;
// Set the page title
headTag.Title = "Title of Page";
// Add a Description meta tag
HtmlMeta PagemetaTag = new HtmlMeta();
PagemetaTag.Name = "Description";
PagemetaTag.Content = "Customized Description tag of the page";
headTag.Controls.Add(PagemetaTag);
// Add a Keywords meta tag
PagemetaTag = new HtmlMeta();
PagemetaTag.Name = "Keywords";
PagemetaTag.Content = "Customized Keyword tag of the page";
headTag.Controls.Add(PagemetaTag);
}
VB
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim headTag As HtmlHead = CType(Me.Header, HtmlHead)
' Set the page title
headTag.Title = "Title of Page"
' Add a Description meta tag
Dim PagemetaTag As HtmlMeta = New HtmlMeta()
PagemetaTag.Name = "Description"
PagemetaTag.Content = "Customized Description tag of the page"
headTag.Controls.Add(PagemetaTag)
' Add a Keywords meta tag
PagemetaTag = New HtmlMeta()
PagemetaTag.Name = "Keywords"
PagemetaTag.Content = "Customized Keyword tag of the page"
headTag.Controls.Add(PagemetaTag)
End Sub
This is the simple code to change meta tags of your page dynamically.
Open IIS Manager and navigate to the level you want to manage. For information about opening IIS Manager, see Open IIS Manager (IIS 7). For information about navigating to locations in the UI, see Navigation in IIS Manager (IIS 7).
In Features View, double-click ASP.
On the ASP page, under Services, expand Session Properties.
In the Time-out field, enter a time-out value in the format hh:mm:ss. For example, enter 00:15:00 for 15 minutes.
In the Actions pane, click Apply.
Microsoft says that SQL Server Integration Services (SSIS) “is a platform for building high performance data integration solutions, including extraction, transformation, and load (ETL) packages for data warehousing.” A simpler way to think of SSIS is that it’s the solution for automating SQL Server. SSISprovides a way to build packages made up of tasks that can move data around from place to place and alter it on the way. There are visual designers (hosted within Business Intelligence Development Studio) to help you build these packages as well as an API for programming SSIS objects from other applications.
as an API for programming SSIS objects from other applications.
Though SSIS is almost infinitely customizable, Microsoft has produced a simple wizard to handle some of the most common ETL tasks: importing data to or exporting data from a SQL Server database. The Import and Export Wizard protects you from the complexity of SSIS while allowing you to move data between any of these data sources:
SQL Server 2005 redesigned the way you design data transformation packages. It now includes much more capabilities, and because of that, it features a new tool. It separates the control of the package from the data transformation portion, so you can do much more. For instance, you have the ability to read information from WMIor a web service. There is also the ability to iterate through a loop of data stored in a variable, or from a result set.
The Import and Export Wizard is easy to use, but it only taps a small part of the functionality of SSIS. To really appreciate the full power of SSIS, you’ll need to use BIDS to build an SSIS package. A package is a collection of SSIS objects including:
Step 1: Open SQL Server Business Intelligence Development Studio.
Step 2: Create a New Project
Step 3: Select Integration Services Project under Business Intelligence Projects and provide a name for the project.
Step 4: Add a new Data Source. Right Click on Data Sources and select New Data Source.
Step 5: Use the Data Source Wizard to add a new data source. Select ‘Create a data source based on an existing or new connection’ and click on ‘New’.
Step 6: Add the Server and Authentication information and click on Test Connection to test the connection. Then click OK.
Step 7: A default SSIS package is created under the solution called Package.dtsx. Rename this package with a meaningful name.
Step 8: Drag and drop Control Flow Items from the Toolbox on the left to the Control Flow diagram and create the package.
Step 9: Double Click on the Data Flow Task to edit each Data Flow and add data transformations.
Step 10: Save and Build the package.
Step 11: Run the package. On successful completion, the tasks will turn green.
Step 1: Save a copy of the package on any server.
Note: If the package is to be deployed on a different server, ensure that the Protection Level is selected as EncryptSensitiveWithPassword
Provide a Password for the package by clicking on the PackagePassword Item and enter the password.
Step 2: Select Package location as SQL Server, Server Name as destination server and Authentication Type as Windows Authentication. Click on Package Path to browse and save the package.
Step 3: Save the package under SSIS Packages.
Step 4: Open SQL Server Management Studio and connect to the Database Engine on the server where you have saved the Package.
Step 5: Go to SQL Server Agent -> Job. Right-click and select New Job.
Step 6: Provide a name for the Job.
Step 7: Go to Steps and click ‘New’.
Step 8: Provide a name for the Step and select the Type as SQL Server Integration Services Package.
Step 9: Select Package Source as SQL Server, Server as the destination server and click on Package to browse and select the package.
Step 10: Click on data Source tab. Provide a password when prompted (if saved with a password).
Step 11: Edit the Connection String to add password for OLE DB connections, or change location of Input/Output files if required. Click Ok to save the changes.
Step 12: Go to Schedules and click New to add a new schedule.
Step 13: Click Ok on the Job Schedule Properties window to save the schedule.
Step 14: Click Ok on the Job properties window to save the job.