Category Archives: Tutorials

Access master page control from content page C# asp.net

If you are using content page and want to hide some menu or row of master page as per access you can do it following way. Master Page <%– Some Code –%> <table width=”90%” border=”0″ cellspacing=”0″ cellpadding=”0″> <tr runat=”server” id=”trMenu”> … Continue reading

Add icon inside edittext view in android

Use the android:drawableLeft property on the EditText. Same way you can Use the android:drawableRight property on the EditText. Which will display icon on right side.

Reduce EditText Hint size Android

In Layout Code You can use hint property of EditText android:hint=”My Hint” but if you want to use change font style of hint text then you need to perform it programatically. You can do it by following Code EditText jtxtname … Continue reading

How to set Hint Style EditText Android

In Layout Code You can use hint property of EditText android:hint=”My Hint” but if you want to use any backcolor or style you need to perform it programatically. You can do it by following Code editTextId.setHintTextColor(Color.alpha(006666));

Get Local Computer IP Address using GetHostEntry in C#

If you are running .Net framework 4 and want to get IP address of local machine using C# code then just make following function which will return you local machine ip address. using System.Net; private string GetLocalIP() { IPAddress[] IPAddList … Continue reading

Using window.onerror How to Catch Unhandled Errors in Javascript

Client side scripting language Javascript has an event driven error handling model where you define a handler function for window.onerror to override the error handling. This method has three arguments error message, url and line number. It should return true … Continue reading

Solved : Reached End of File while parsing error in Java

This error generally comes when you are new to Java or too tired of working and then too developing something in java class.. LOL.. 🙂 In java if you try to execute following code, it will give you error. import … Continue reading

Resolved : A generic error occurred in GDI+ error in C#

Working with Copy image or Resize image. You may get error that “A generic error occurred in GDI+”. I have come across to following two codes. Code 1 : public void Resize(string oldFilePath, string newFilePath, OrgFile, NewFile) { try { … Continue reading