Posts

Showing posts from November, 2014

Create dynamic ASPX page in ASP.Net

Image
Here Mudassar Ahmed Khan has explained how to create dynamic ASPX page in ASP.Net using C# and VB.Net. The dynamic ASPX pages will be created from database with the help of URL Routing. In this article I will explain how to create dynamic ASPX page in ASP.Net using C# and VB.Net. The dynamic ASPX pages will be created from database with the help of URL Routing. Concept There are other articles creating ASPX pages dynamically by generating an .ASPX file, in contrast my approach is clean and makes use of database to allow users manage and control the dynamic pages with ease. Each page is given a unique name and is saved in database and then with the help URL Routing feature the same is accessed dynamically. Database Below is the schema of the Table that will be used for this article. It will be used to store the name of the page, its Title and the Content. Note : The SQL for creating the database is provided in the attached sample code. N...

Dynamically changing META Tags with MasterPages (C#)

How to dynamically change meta tags when using MasterPage in ASP.NET and C# If you have lots of dynamic pages instead of static, you could be losing out on how your pages are indexed. For example, if you use lots of querystrings, the chances are that all pages (or instances of that page) have the same meta tags (title, description, keywords). To overcome this, we can set up our site so that we can set these meta tags dynamically (upon certain actions). If using a MasterPage, this can get a little trickier, but can still be done. This tutorial shows how. Firstly, on our MasterPage, we give our meta tags and the page title an ID, and runat attribute: <title id="PageTitle" runat="server">This is the Default Page Title...</title> <meta name="Keywords" id="PageKeywords" content="default, page, keywords" runat="server" /> <meta name="Description" id="PageDescription" content=...

Google Webmaster Tools for better SEO

Image
Google Webmaster Tools is a free tool set provided by Google that helps you to understand what is going on with your website. GWT provides you with detailed reports about your page’s visibility on Google. You can use webmaster tools to : Get Google’s view of your site and diagnose problems Discover your link and query traffic. Share information about your site (sitemap) Submit your site to Google Webmaster Tools Login to  Google Webmaster Tools  with your Google account. Click  ‘Add a Site’ Button(in the right corner). Paste your site URL in the box and click ‘continue ‘. After adding your website you have to verify your site ownership . You can do this through four ways: Upload an HTML file to your server -  The ‘Recommended method ‘ is to upload an HTML file to your server. You can download this file to your desktop and upload it to your sites root folder  using a FTP client. Use your Google Analytics account –  You can ...

Windows Phone XAML Styling

Image
Welcome again! Today I’ll talk about XAML styling. How you can make your XAML controls more beautiful and customized. If you search “windows phone xaml style” you’ll get some helpful references. Styling XAML is not only for customizing your controls but also make code much clean and easily readable. So let’s get crack in Windows Phone XAML Styling. I’ll just try to explain how you can use XAML styling in you existent projects. I’m just going to modify my existing user control to show you the procedure. If you’ve read my  Windows Phone Controls – Part 1  article, then you can understand the difference between previous and current XAML code. I’ll not modify all the controls, but the “Popup Window”. I’ve used a “User Control”, I’ll just modify that page. First of take a new Project and add a new “User Control”. We’ve used these XAML code in our previous Project. <Grid> <Border BorderBrush="{StaticResource ApplicationForegroundThemeBrush}" BorderThickness=...