Friday, 14 March 2014

Convert a Menu to a Dropdown

How To convert any menu into drop down ? Are You Confuse …..? We see here example how we convert menu to dropdown

We’ll create a dynamic menu that converts to a dropdown when viewed on a small screen.


In below screen you just see normal menu.


simplemenu


If your see it on 960px on your screen resolution you can see.


dropdownmenu


dropdownmenu1


 


Here we attached sample code that how it was work….Also if you understand that code you know how responsive site work


Download Sample Code


Thank You……… ;)



Convert a Menu to a Dropdown

jQuery Map Marker Plugin

jQuery Map Marker Plugin makes it easy to put multiple markers on Map using Google Map API V3.

Map Marker is very useful when you have a list of data & you want to show all of them on Map too.


Like most of the jQuery plugins, this plugin is very straight forward to setup.

It has some nice options & uses JSON formatted data for every Locations.


Also make note that you must have to pass the Location values using Lattitude & Longitude co-ordinates of the that Location (due to Google map API limitation).


mapmarker-e1375162824274


Below steps will make more sense of using this plugin.


Step-1 : Include necessary JS files in your <head> tag


<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script><script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>

<script type="text/javascript" src="js/mapmarker.jquery.js"></script>

Step-2 : Create a Map container using divtag & give it an ID in your html body


<div id="map" style="width: 550px; height: 450px; border: 2px solid red;"></div>

Step-3 : Apply the Plugin to the Map element using below code. Put the code before closing </head>tag



<script type="text/javascript">// <![CDATA[
$(document).ready(function(){

//set up markers
var myMarkers = {"markers": [
{"latitude": "31.42866311735861", "longitude":"-98.61328125", "icon": "img/house.png", "baloon_text": 'This is <strong>Texas</strong>'},
{"latitude": "35.101934057246055", "longitude":"-96.6796875", "icon": "img/castle.png", "baloon_text": 'This is <strong>Oklahoma</strong>'},
{"latitude": "38.61687046392973", "longitude":"-98.876953125", "icon": "img/house.png", "baloon_text": 'This is <strong>Kansas</strong>'}
]
};

//set up map options
$("#map").mapmarker({
zoom : 5,
center : 'United States',
markers : myMarkers
});

});
// ]]></script>

 Each locations will include 4 entities.

1. latitude – latitude of the location

2. longitude – longitude of the location

3. icon – a custom icon to display on map as marker (16 x 16 pixels size)

4. baloon_text – a Text to display in a Baloon on map when clicked on that specific Marker. You can also use this text in HTML format. Make sure you use single quotes(‘) only for HTML format baloon text.


Use below link if you want to get latitude & longitude
http://www.findlatitudeandlongitude.com/find-address-from-latitude-and-longitude.php


Additionally, there are 2 more options which you can set on Map.

1. zoom – to set default zoom level of the Map. Increase the value to zoom-in & Decrease the value to zoom-out

2. center – to specify the center location of the Map. Make sure the center location address you enter is spelled properly.

3. markers – this will be simply the Markers variable we created, here it is “myMarkers”


Step-4 : That’s All


Enjoy………………!!


Demo and Download code go to below site


http://www.welancers.com/jquery-map-marker-plugin/



jQuery Map Marker Plugin

Saturday, 22 February 2014

Best IT Comapny in Vadodara

Pace Infonet Web Solutions Pvt. Ltd. is a brand in premium IT solutions in All over the World. Pace Infonet Web Solutions Pvt. Ltd. is a leading IT Company in Vadodara.


provider with its leading presence in verticals like IT Training, Web Development & Web Hosting. The company was started in year 2007 with a vision to provide premium high quality services and since then it has succeeded to do so with 1000′s of satisfied clients and end-users.


 


With the vast industry experience gained over the years, the company has diversified and not only accumulated it but also distributed its skills & knowledge in form its IT Training vertical. The company always looks forward to contribute to the growth of the industry by offering high quality products as well as skilled workforce.


 



  • Web Designing

  • Web Development

  • Web Hosting

  • Domain Names

  • Ecommerce Development

  • Web Maintenance

  • Mobile Development

  • Outsourcing

  • SEO

  • PHP Training

  • ASP.Net Training

  • Last Sem Project Guidance (BCA, MCA, B.E, Msc. IT)



Best IT Comapny in Vadodara

Tuesday, 18 February 2014

dot net and asp dotnet interview questions

Welcome to .Net  Interview Questions area. These questions are designed to provide a better understanding of Microsoft technologies such as .Net environment, .Net Framework , vb.net , c# , asp.net , sql server etc. Take time to review the common interview questions you will most likely to be asked. These Questions will often link to more detailed information.


 


 .Net Environment – Interview Questions



  • Difference between a Debug and Release build

  • Difference between normal DLL and .Net DLL

  • What is an Interface

  • Difference between Abstract Class and Interface

  • Difference between a thread and a process

  • What is .Net Delegates

  • Differences between a control and a component

  • Differences between Stack and Heap

  • What is .Net Reflection

  • Globalization and Localization

  • What is .Net serialization

  • Difference between web service and .net remoting

  • Difference between managed and unmanaged code

  • Difference between Shallow copy and Deep copy

  • Use of System.Environment Class


 


ADO.Net – Interview Questions



  • What are the advantage of ADO.Net

  • Differences between classic ADO and ADO.NET

  • What are managed providers

  • difference between Dataset and DataReader

  • How to ADO.Net Connection Pooling

  • How to Transaction in ADO.NET

  • What is ADO.Net Locking

  • Difference between SqlCommand and SqlCommandBuilder

  • Difference between Typed DataSets and UnTyped DataSets


 


.Net Framework – Interview Questions



  • Difference between NameSpace and Assembly

  • Execution process for managed code

  • What is an Asssembly Qualified Name

  • How to Assembly versioning

  • Add and remove an assembly from GAC

  • What is Native Image Generator (Ngen.exe)?

  • How to force Garbage Collection

  • Difference between CType and DirectCast

  • Obsolete or Deprecated in NET Framework

  • What is lazy initialization

  • Difference between Clone and Copy

  • Difference between Finalize() and Dispose()

  • Difference between static and constant


 


 .Net General – Interview Questions



  • Difference between a Value Type and a Reference Type

  • System level Exceptions Vs Application level Exceptions

  • Difference between sub-procedure and function

  • What does the term immutable mean

  • What does the keyword static mean

  • this.close() Vs Application.Exit()

  • Difference between a.Equals(b) and a == b

  • Difference between Hashtable and Dictionary

  • Difference between Exception and Error

  • C# Dictionary Versus List Lookup Time

  • Difference between the Class and Interface in C#


 


Asp.Net – Interview Questions



  • What is IIS – Internet Information Server

  • What is Virtual Directory

  • What is HttpHandler

  • Page Directives in Asp.Net

  • What is a postback

  • What is IsPostBack

  • What is global.asax

  • Difference between Machine.config and web.config

  • Difference between HTML control and Web Server control

  • What is Query String

  • Difference between Authentication and Authorization

  • How to secure Connection Strings

  • What is ASP.Net tracing

  • Passing values between Asp.Net pages

  • Differentiate between client side validation and server side validation



dot net and asp dotnet interview questions

Friday, 14 February 2014

Best Web Hosting Service in India

In web hosting industry, India is a vast market. So that we see many popular hosting companies set branches and support centers in this stream. With it’s powerful IT technologies, India also manages the second largest internet user country in the world. If you are an Indian customer and planning to host your business site on Indian hosting server but not sure which service to go, we’ll provide some guidance on how to choose the right Hosting service provider.


How to find the best web hosting Service in India or USA?


Best hosting services has become major important aspect these days to bring your business website online or world wide web and make visible to everyone globally. Suppose if you go to Google and you search for the best hosting services in India, plenty of hosting websites will be displayed and therefor you are sure which one to Hire.


web_hosting_services_indiaWeb-hosting-domain-services


All web hosting companies in India or USA offers a hosting server where you can store your business sites and create them available on the internet. Some do it better than others. The best and top providers give quality Hosting services great assistance and offer a variety of functions. However some are not.


An industry of web hosting market sometimes encourages for free services. Keep in mind the fact that you only get what you pay for. And there no folks provide you good services for FREE. Also, you should keep in mind that Pay the very lowest and what would you get? Off course very lowest in features, support, services and assistance.


Do Check if the Hosting Website go slow/Offline Often


Keep in mind that your web host should provide 99.9 % Server Up time  Because, it may be possible that you may loose all traffic If your business web site go offline. Hence, you should make sure that your web Host should have 99.9% Server Up time.


When you are in search of a Best hosting services in India take some time to analysis the newest specialized improvements and see what the best serves are providing. The best are not actually expensive; actually they are competitive for your hosting consideration.


There are lot of web hosting sites provide free web host but of course the advantages are restricted. There are a lot of sites that provide best hosting service at a little cost and come with more advantages. This would be more better than the previous one.


About Paceinfonet Web Solution Pvt Ltd

We are a fast growing Web Development & Web Hosting company in India working in the industry since last 7 years. We have very high project completion rate and have executed websites which stand out and give our clients a competitive edge. With hundreds of eye-catching websites under our belt. We specialize in E-commerce & Custom websites, Joomla, WordPress, any and all PHP based Opensource platforms.


Please check our Web hosting and development services at -


www.paceinfonet.org
www.paceinfonetwebdesigningstudio.com
www.paceinfonet.com


You can get More information about Hosting and Domain @ http://www.paceinfonet.com



Best Web Hosting Service in India

Saturday, 25 January 2014

rich password widget for your web forms

Here is a password field widget that not only has a password strength meter but also has other essential features that your users would love to have.


password-widget-1


Mask or unmask? Do passwords really have to look like **** ?


When you type-in your password, the password field shows a mask. This mask supposedly prevents someone from observing your screen ‘over the shoulder’ .


password-widget-2Need a strong password quickly? Generate it.


For those users, it will just be good to generate a password for the web site and then let the password manager remember it for life. Having a password generator along with the password field will be handy.


Download


PasswordWidget


Usage

The usage is simple.

First, link to the style sheet and the JavaScript file:



<link rel="STYLESHEET" type="text/css" href="pwdwidget.css" />
<script src="pwdwidget.js" type="text/javascript"></script>

Instead of the password field, use the code below.



<label for='regpwd'>Password:</label> <br />
<div class='pwdwidgetdiv' id='thepwddiv'></div>
<script  type="text/javascript" >
var pwdwidget = new PasswordWidget('thepwddiv','regpwd');
pwdwidget.MakePWDWidget();
</script>
<noscript>
<div><input type='password' id='regpwd' name='regpwd' /></div>
</noscript>

Notice that noscript part makes sure that a normal password field is shown even if Java Script is disabled.


The parameters to the PasswordWidget() class are: (1)the ID of the div for the widget and (2)the name of the password field.



var pwdwidget = new PasswordWidget(id_of_div,name_of_passwordfield);

More options


The features can be turned on/off. For example, it doesn’t make sense to have a ‘generate’ option in a log-in form. Here is the code:


var pwdwidget = new PasswordWidget('thepwddiv','regpwd');
pwdwidget.enableGenerate=false;
pwdwidget.enableShowStrength=false;
pwdwidget.MakePWDWidget();

Similarly, you can modify/translate the label text :


var pwdwidget = new PasswordWidget('thepwddiv','regpwd');
pwdwidget.txtShow= 'Display';
pwdwidget.txtMask= 'Hide';
pwdwidget.MakePWDWidget();


rich password widget for your web forms

Monday, 23 December 2013

Cleaning Variable

Variables that are submitted via web forms always need to be cleaned/sanitized before use in any way, to prevent against all kinds of different malicious intent.


FUNCTION



function clean($value) {

// If magic quotes not turned on add slashes.
if(!get_magic_quotes_gpc())

// Adds the slashes.
{ $value = addslashes($value); }

// Strip any tags from the value.
$value = strip_tags($value);

// Return the value out of the function.
return $value;

}

PHP CODE


$sample = "test";
$sample = clean($sample);
echo $sample;


Cleaning Variable