anishwebdeveloper.blogspot.com
Dotnet Developer Site: March 2012
http://anishwebdeveloper.blogspot.com/2012_03_01_archive.html
Simple and Easy way to implement .Net. Wednesday, March 7, 2012. On Keypress show character at load event in Asp.net. Without taking any control, this Example will show how we can print the character on webpage when any key is pressed on keyboar. Here we will use javascript. Document.onkeyup = KeyCheck;. Var KeyID = (window.event)? EventkeyCode : e.keyCode;. DoPostBack(' Page', KeyID);. Here ascii value of character will get when key is pressed. PageClientScript.GetPostBackEventReference(Me, " ). Picture...
anishwebdeveloper.blogspot.com
Dotnet Developer Site: Split and Merge File Example in asp.net
http://anishwebdeveloper.blogspot.com/2012/08/split-file-example-in-aspnet.html
Simple and Easy way to implement .Net. Friday, August 17, 2012. Split and Merge File Example in asp.net. In this example i am showing how to split the file size into more than one file. Example: suppose file size is of 200byte and i want to split this file into 2 part 100byte each and save them). Asp:FileUpload ID="FileUpload1" runat="server" /. Asp:Button ID="btnupload" runat="server" Text="find Byte". No to split :. Asp:TextBox ID="txtsayno" runat="server" /asp:TextBox. Using System.Linq;. String basen...
anishwebdeveloper.blogspot.com
Dotnet Developer Site: Built and Play Piano using Asp.net
http://anishwebdeveloper.blogspot.com/2012/07/built-and-play-piano-using-aspnet.html
Simple and Easy way to implement .Net. Saturday, July 14, 2012. Built and Play Piano using Asp.net. In this blog I am showing the example of Making piano. Built and play piano using keyboard and mouse". We can play piano only in client side. On server side this code will not be helpful. Because i am using "winmm.dll" file for making sound which is located in client computer. The script will check the keypress event by knowing their ASCII value. Document.onkeyup = KeyCheck;. Var KeyID = (window.event)?
javaghostrider.blogspot.com
Java Developer Site: Perform 10 mathematical function in Java
http://javaghostrider.blogspot.com/2012/01/perform-10-mathematical-function-in.html
Simple and better way to implement JAVA. Sunday, January 1, 2012. Perform 10 mathematical function in Java. Import java.io.*;. Public static void main(String args[]). Double a,b;. Br=new BufferedReader(new InputStreamReader(System.in) ;. A=Double.parseDouble(br.readLine() ;. B=Double.parseDouble(br.readLine() ;. System.out.println("Maximum value is:" Math.max(a,b) ;. System.out.println("Minimun value is:" Math.min(a,b) ;. System.out.println("In Radians :" Math.toRadians(a) "radians");. Perform 10 mathema...
javaghostrider.blogspot.com
Java Developer Site: Usage of 'this' keyword in preventing instance variable hiding in Java
http://javaghostrider.blogspot.com/2012/01/usage-of-this-keyword-in-preventing.html
Simple and better way to implement JAVA. Sunday, January 1, 2012. Usage of 'this' keyword in preventing instance variable hiding in Java. Import java.io.*;. System.out.println("first value is divisible by 2");. System.out.println("first value is not divisible by 2");. Class SubClass extends SuperClass. SubClass(int d,int e). If (this.a%c= 0). System.out.println(this.a ": is divisible by :" c);. System.out.println(this.a ":is not divisible by:" c);. Public static void main(String args[]). I have taken hel...
javaghostrider.blogspot.com
Java Developer Site: Find total no on capital, small letter and also digit in a given string in Java
http://javaghostrider.blogspot.com/2012/01/find-total-no-on-capital-small-letter.html
Simple and better way to implement JAVA. Sunday, January 1, 2012. Find total no on capital, small letter and also digit in a given string in Java. Import java.io.*;. Public static void main(String args[]). String s=" ;. String s1=" ;. Int a,b=0,c=0,d=0;. BufferedReader br=new BufferedReader(new InputStreamReader(System.in) ;. For(int i=0;i a;i ). If (ch =97 & ch =122). Else if(ch =65 & ch =91). System.out.println(a);. System.out.println(s1);. System.out.println("Total Small character:" b);. I have taken ...
javaghostrider.blogspot.com
Java Developer Site: Find whether given string is palimdrome or not in Java
http://javaghostrider.blogspot.com/2012/01/find-whether-given-string-is-palimdrome.html
Simple and better way to implement JAVA. Sunday, January 1, 2012. Find whether given string is palimdrome or not in Java. Import java.io.*;. Public static void main(String args[]). String s=" ;. String s1=" ;. String s2=" ;. BufferedReader br=new BufferedReader(new InputStreamReader(System.in) ;. For(int i=a-1;i =0;i- ). System.out.println("Length of String is: " a);. System.out.println("Reverse of String: " s1);. For(int i=0;i a-1;i ). System.out.println(s ":is equals to:" s1);. Make Top Rank Blog.
javaghostrider.blogspot.com
Java Developer Site: Create a custom exception class in Java
http://javaghostrider.blogspot.com/2012/01/create-custom-exception-class-in-java.html
Simple and better way to implement JAVA. Sunday, January 1, 2012. Create a custom exception class in Java. Class MyException extends Exception. Private int detail;. Return "MyException[" detail "]";. Static void compute(int a)throws MyException. System.out.println("called compute(" a ")");. Throw new MyException(a);. System.out.println("normal exit");. Public static void main(String args[]). System.out.println("caught " e);. Subscribe to: Post Comments (Atom). Instanceof operator in Java. Print following...
javaghostrider.blogspot.com
Java Developer Site: Super keyword. in Java
http://javaghostrider.blogspot.com/2012/01/super-keyword-in-java.html
Simple and better way to implement JAVA. Sunday, January 1, 2012. Super keyword. in Java. Import java.io.*;. SuperClass(int c,int d). System.out.println(a ": Greater than: " b);. System.out.println(b ": Greater than: " a);. Class SubClass extends SuperClass. SubClass(int f,int g,int h). System.out.println("For 1st two value");. System.out.println("- - - - - - - - - - - - - - - - ");. System.out.println("For three value");. If (e super.a & e super.b). Else if(super.a e & super.a super.b). Find total no on...
anishwebdeveloper.blogspot.com
Dotnet Developer Site: LINQ to Object Examples
http://anishwebdeveloper.blogspot.com/2012/08/linq-to-object-examples.html
Simple and Easy way to implement .Net. Thursday, August 30, 2012. LINQ to Object Examples. LINQ: Language Integrated Query. You’ll need to persist objects to a database, query the database and load the results back into objects. The problem is that in. E ventually evolved into a general-purpose language-integrated querying toolset. This toolset can be used to. Access data coming from in-memory objects (LINQ to Objects), databases (LINQ to SQL), XML documents. Response.Write(" h2 LINQ to Object /h2 ");.