Sunday, April 29, 2012

Example for Populating Drop Down Lists using SelectLists

ASP.NET MVC 3: Drop Down Lists / SelectLists « Amadiere.com: "DropDownListFor"

'via Blog this'

Thursday, April 26, 2012

How to apply for the PAN card, in case u lost it

Lost Your PAN card or want to make changes in your PAN card?

If you lost PAN card or you want to make some changes you need to follow a very simple process.

Download the form for New PAN Card or/ and Changes or Correction in PAN Data from

https://www.tin-nsdl.com/download/pan/PAN-CR-FORM.pdf

Print the form on A4 size 70 GSM paper.

Fill your information in the form.

In case you don’t remember or don’t have your lost PAN card number then don’t worry. You can easily retrieve you lost pan card number from

https://incometaxindiaefiling.gov.in/knowpan/knowpan.jsp.


Attach a stamp size photograph and submit the form at UTIISL OR NSDL along with cash of Rs.94/-

You can find address of UTIISL OR NSDL centre from the links given below.

http://www.utitsl.co.in/pan/

https://www.tin-nsdl.com/pan.php


Check your PAN card status after 7 days from the link below.

https://tin.tin.nsdl.com/tan/StatusTrack.html

If everything is in order you will receive your PAN card within 15 days.


SHARE the INFO.

Thursday, April 19, 2012

PAN explained.......

PAN is a 10 digit alpha numeric number, where the first 5 characters are letters, the next 4 numbers and the last one a letter again. These 10 characters can be divided in five parts as can be seen below. The meaning of each number has been explained further.
1. First three characters are alphabetic series running from AAA to ZZZ
2. Fourth character of PAN represents the status of the PAN holder.
• C — Company
• P — Person
• H — HUF(Hindu Undivided Family)
• F — Firm
• A — Association of Persons (AOP)
• T — AOP (Trust)
• B — Body of Individuals (BOI)
• L — Local Authority
• J — Artificial Juridical Person
• G — Government
3. Fifth character represents first character of the PAN holder’s last name/surname.
4. Next four characters are sequential number running from 0001 to 9999.
5. Last character in the PAN is an alphabetic check digit.
Nowadays, the DOI (Date of Issue) of PAN card is mentioned at the right (vertical) hand side of the photo on the PAN card.

Wednesday, April 18, 2012

Jquery window & pop up

I was trying to hide the widow, while trying to download an exe through FTP protocol...
I was using :
window.open("ftp://10.32.138.74/DiagnosticLauncher.exe", 1, 'width=50,height=30,false');

When I used Jquery equivalent of it, I could fix that problem easily :)


$jq(window).attr("location","ftp://10.32.138.74/DiagnosticLauncher.exe");
This version works well with jQuery 1.6.2.
Or using JS we could achieve the same : 
window.location = "http://www.page-2.com";

For Jquery pop up

popup window

$(selector).popupWindow({options});

jQuery plugin (jquery.popupWindow.js) used to create popup windows.
Demo Code :
> href="http://www.yahoo.com" title="yahoo.com" class="example1demo">open popup 
 type="text/javascript"> 
$('.example1demo').popupWindow({ 
height:500, 
width:800, 
top:50, 
left:50 
}); 

Ref link : http://swip.codylindley.com/popupWindowDemo.html


Wednesday, April 4, 2012

Serialize and Deserialize an Object to an XML File in C# 2.0

The example in this tip uses an ArrayList object to serialize, deserialize, and store itself in an XML file. However, you can also use user-defined objects. First, add items to an ArrayList object:

ArrayList myItems = new ArrayList();
myItems.Add("item1");
myItems.Add("item2");
myItems.Add("item3");

Next, you need to serialize the myItems object and store it in a file named myItems.xml:

System.Xml.Serialization.XmlSerializer serializer =
new System.Xml.Serialization.XmlSerializer(typeof(ArrayList));
System.IO.TextWriter writer =
new System.IO.StreamWriter("myItems.xml", false);
serializer.Serialize(writer, myItems);
writer.Close();

Finally, deserialize the same object from myItems.xml:

System.Xml.Serialization.XmlSerializer serializer =
new System.Xml.Serialization.XmlSerializer(typeof(ArrayList));
System.IO.TextReader reader =
new System.IO.StreamReader("myItems.xml");
ArrayList ObjItems = (ArrayList)serializer.Deserialize(reader);
reader.Close();