Category: Web Development
In prompt dialog box if user click on ‘Ok’ button then text types inside the textbox will be pass to the program environment otherwise if user click on ‘Cancel‘ button then it return null to the environment.
Prompt() method requires two blocks of information:
A message to be displayed as a prompt to the user
Any message to be displayed in the textbox, this is optional.
Dialog box in java script appears as separate window and their content depends on the information provided by user. Java script provide the Alert dialog box that can be used to display the string message or display some information.
See Passwords Behind Asterisks
You can use this trick on any web page which contains password hidden behind Asterisk.
To view saved passwords behind asterisk, Continue reading “See Passwords Behind Asterisks”
The Strict Equality Operators
operand1 === operand2
operand1 !== operand2
Basic SEO tips for ASP.NET website
SEO has become the most important thing for any website nowadays and as ASP.NET is growing, SEO has become a hot topic among ASP.NET developers.
The world of Search Engine Optimization (SEO) keeps on changing continuously, we can say this as for example can you imagine that last year Google published 450 updates to it’s search engine algorithms?
Though the SEO trend is continuously changing still there are some key points that have been fundamental and unchanged so far.
Here i have mentioned few points which should be kept in mind to implement proper SEO in your ASP.NET site:-
1. Page titles
One of the most important things are page titles (between tags). When somebody is searching something then these titles are shown as links in search results. One of the common mistakes is using same title for all pages. Imagine how worthless are the following search results for user.
Some fragments from page that may not be useful for user.
Some other fragments from page as description.
Almost no content, let’s show what we have. Date Modified 01/19/2008 Titles by Marc and Lewis Custom services. Continue reading “Basic SEO tips for ASP.NET website”
Adding Dynamic Meta Tags with Master Pages in ASP.NET using C #
Today each and every website is getting dynamic, every website for example have just on page and is being used to display the contents for various categories, hence the need for the dynamic meta title, meta description and meta keywords arises especially for implementing Search Engine Optimization(SEO) properly on your website having dynamic pages.
In a website what people do is create a Master Page and then this Master Page further contains a number of content or child pages, now what we want to have is having separate meta title, meta description and meta keywords for every child page, but here is the problem as once you run you run your website – preference is given to the meta title, meta description and meta keywords you have given in you Master Page and hence all the child pages will have same meta title, description and keywords.
Basically In ASP.NET you do not have any direct function to re write the title,description and keywords when you are working with Master Pages. To solve this problem I have written some sample code:
Continue reading “Adding Dynamic Meta Tags with Master Pages in ASP.NET using C #”
ASP:NET Reading XML Data into a DataSet object To GridView in C#
In ASP.NET you have a number of options by which you can easily read an XML Document and display an XML document in DataGrid, GridView, Repeater Control, DropDown List etc or any other control according to your requirements.
Here i will import an xml document using an inbuilt function of dataset and display the data in a GridView Control.
Here is the sample XML file named “country.xml” that i am using Continue reading “ASP:NET Reading XML Data into a DataSet object To GridView in C#”
MVVM- Model- INotifyPropertyChanged
Below given is the technique which is used in Silverlight MVVM Model in order to support View- ViewModel data binding: