Thursday, December 3, 2009
Tuesday, September 8, 2009
Refer the following link
The methods are called in the following order.
OnInit – Configuration values set using WebBrowsable properties and those in web part task pane are loaded into the web part. Initialize the values here.
LoadViewState – The view state of the web part is populated over here. (When its a post back)
CreateChildControls – All the controls specified are created and added to controls collection. When the page is being rendered for the first time the method generally occurs after the OnLoad() event. In case of postback, it is called before the OnLoad() event. We can make use of EnsureChildControls() - It checks to see if the CreateChildControls method has been called and if not it would call it.
User Generated Event – for e.g. button click on the web part.
OnPreRender – Here we can change any of the web part properties before the control output is drawn.
RenderContents – Html Output is generated.
SaveViewState - View state of the web part is serialized and saved.
Tuesday, August 11, 2009
Thursday, July 30, 2009
It is that time of the year again, when you have to file your taxes. For those who want to avoid the hassles of going to an agent, or standing in a long queue, here is a super tip. It takes a maximum of 30 minutes to file your IT returns using this method.
- Open the site https://incometaxindiaefiling.gov.in
- Register for user (give the user id as your PAN number)
- You will receive the registration mail
- Login to the site with the credentials provided in the mail
- Go to downloads menu. Download ITR1 for person paid salary.(You have different form for each category)
- Fill out all the details in the ITR form
- Validate each page General1, General2, TDS (fill either 21 or 23)
- Click on Generate XML
- Check the summary and click on ‘Save XML’
- Click ‘Submit return’ in the home page
- Select the file and click on Upload. (Do not select the check box here... as it requires the Java runtime updated...)
- you will see a message that it is successfully submitted.. if not error then go to (step 11)
- Go to my profile menu -> My Returns
- Select ‘2009-2010’ and click ‘Submit’
- Click on the link ‘Click here’ to get the submitted ITR form ... or they would have already sent the copy to you.
Note: If the person doesn’t have digital signature, then after submitting returns he/she gets ITR V. This has to be submitted to the nearest income tax office within 15 days of filing tax returns.
If the person has digital signature, then he/she gets online acknowledgement, and nothing more has to be done for filing.
In the online world, I say it is time now to stop encouraging consultants or brokers. Enjoy filing online and save Rs 200/- or more, that you pay to tax consultants.
Thursday, July 23, 2009
Windows Live Sync (formerly known as Windows Live Folder Share) is a free-to-use file synchronization application by Microsoft that is designed to allow files and folders between two or more computers be in sync with each other on Windows (XP and later) and Mac OS X based computers, similar to Live Mesh's data synchronization services.
It sounds a good Sync up tool for those who uses more than one machine or two different OS.
You don’t have to worry about copying the files manually (to and fro).
Its a free tool make use of it.
Once setup is complete you can visit the site by clicking the sync website from the icon in
- You should have a live account
- Internet to get things sync up
- 20k files max in the Root folder(little low this has been increased from 10k)
- Each file max of 4GB size
- Max of 20 Root shares
- Integration with the Recycle Bin
- Remote access to file system of your system.
Monday, June 15, 2009
Don’t rely on deadlines. Start soon and complete asap. have a clear vision or plan on your work.
Less Stress - More Work
If you have your 9-6 work, you have 15 hours for your life to have fun and spend time with family.
Minimize OverNight Work
The quality of work will be less compared to day.
More prone to bugs, High pressure and frustration.
Red Rabbit Technique:
If you get constant comments from the clients or the Boss
That looks great, but can you please make that line a bit thinner
Why did you choose 24px Verdana for headline? I think 25px will do much better
That green you picked is too green. Is there a way you can change it to something more yellow?
I love those icons very much. Can you move them 2px up? And make them 2% brighter
First you need do create the design in the way you think is the best. Move it around, polish it, use the fonts you like… Create whatever you think the final design should look like. Save your masterpiece and backup it.
It’s time for Red Rabbit! Basically, what you need to do now is to decrease the quality of your design. Create one simple eye catching mistake everyone will notice. Something like the sample I’ve provided above. You can do practically everything you wouldn’t do for real. Here are some ideas:
Destroy your color scheme. Add a strong color that is out of any harmony from your layout
Change your headline font to some old-school one like Times New Roman (this might be to obvious)
Replace your cool photo you’ve spent 3 days to find with something you found on Google Image Search
Saturday, May 30, 2009
Tested in the following specification
Desktop Compaq Presario (1GB +P4(2+GHz) +40GB)
Laptop IBM R52(2GB +M(1.73 GHz)+40GB)
Its seems to be like working on a windows xp machine with a Vista look and feel.
Comes with dozens of drivers and you don't have to manually install anything.
Cool features of Docking around the screen as you drag.
File transfer and installing software's are much faster.
Boots up faster and wakes in a second from sleep(not as I do snooze several times).
Minimum 1GB RAM is a good start.
Choosing different network on the fly to protect your PC with firewall.
Drag a window right and left like wiping the screen will minimize all other windows.
New Taskbar will a lot of features.
Depends a Good Graphics card and doesn't go well with the normal ones.(My PC Sub score 1.0)
Aero and other tabbed preview are disabled.
Painting issues in the desktop rarely.
If some errors are thrown after installation it will not correct (do a clean install again)
If System hangs no way of using Ctrl+Alt+Del have to do a hard reboot.
Space occupied for installation 12GB after installing all the software's it comes to 18GB
I would suggest people using Windows XP can give a try to this.Its really yet another good product from Microsoft.
(Note:Beta download is free to use till June 2010)
Thursday, May 21, 2009
I hope you will be using this.Inspect the page on the fly and change the styles and see the output immdly.
Ping all the links in the page and will show the statistics of broken links.
Resize the browser window to the dimensions used by the enduser.Mainly used for tesiting in the wide screen machines.
Render a page in FireFox with IE rendering engine.
Pick a color on the fly
Draw out a ruler to get the pixel width and height of any elements
Take the screenshot of the webpage with scrolling.
Used to test the performance of a site and tuneup things as per their suggestions.
Wednesday, April 15, 2009
string connectionString = @"Data Source=|DataDirectory|\Northwind.sdf";
Northwind nw = new Northwind(connectionString);
var DataSource = nw.Orders.Skip(0).Take(100).Select(o => o);
<add assembly="System.Data.SqlServerCe, Version=22.214.171.124, Culture=neutral, PublicKeyToken=89845DCD8080CC91">
Monday, April 13, 2009
- Check for database available or not if not create the database through SqlCeEngine object as below
if (!File.Exists(\\My Documents\\EmpDB.sdf))
SqlCeEngine empEngine = new SqlCeEngine("Data Source = \\My Documents\\EmpDB.sdf");
Note : the database file name must have .sdf extension
- After create the database is created next step is to create the required tables
empCon = new SqlCeConnection("Data Source = \\My Documents\\EmpDB.sdf");
empCom = empCon.CreateCommand();
string strQuery = "CREATE TABLE Employee (EmpID int IDENTITY(0,1) PRIMARY KEY,EmpName nvarchar(10),Salary int)";
This code snippet create a table with three columns ( empid,emp name & salary )
- Once you setup the database then further operations are store or fetch data , ii can be done through SqlCeDataReader as below
string strQuery = "SELECT * FROM Employee ORDER By EmpName ASC";
empCom.CommandText = strQuery;
SqlCeDataReader empReader = empCom.ExecuteReader();
you can use the code and fill the datas from the existing MDF to CE.