Confirm Dialog box serves as a technique for confirming user action. In JavaScript Confirm dialog box display these information:
Continue reading “Conform Dialog Box in JavaScript”
Category: Web Development
Prompt Dialog Box in JavaScript
Suppose you want to require user interaction on the webpage for example if you want to display a dialog box that has some predefined message, a textbox that accepts user input and Ok and cancel button then we can use prompt dialog box in JavaScript.we know that Alert dialog box simply dislays information in a browser and does not allow any user interaction.
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.
we can use Prompt() in JavaScript as:
prompt(“message“,”default value“)
Example:
<html> <head> <title>example</title> </head> <body> <script language="javascript"> document.write("<H1>Welcome,"); document.write(prompt("Please enter your name :"," Name")); </script> </body> </html>
Alert Dialog Box in JavaScript
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.
Continue reading “Alert Dialog Box in JavaScript”
Array in JavaScript
In javaScript array is the object that is capable of storing a sequence of values. These values are stored in indexed locations within the array. Number of elements in Array is called by length of array.
Continue reading “Array in JavaScript”
See Passwords Behind Asterisks
This is one of the coolest trick which you can perform using Javascript. This trick will allow you to view passwords behind Asterisk.
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
JavaScript introduces two new operators, the strict equality operators.
The strict equality operators (=== and !==) perform equality comparisons on operands of the same type. No type conversion is performed before the comparison. They should be both Integer, String, or any other JavaScript type:
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.
Hello World
Some fragments from page that may not be useful for user.Hello World
Some other fragments from page as description.Hello World
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: