Connection pooling

September 27, 2007

Connection pooling enables an application to use a connection from a pool of connections that do not need to be re-established for each use. Once a connection has been created and placed in a connection pool, an application can reuse that connection without performing the complete connection creation process. By default, the connection pool is created when the first connection with a unique connection string connects to the database. The pool is populated with connections up to the minimum pool size. Additional connections can be added until the pool reaches the maximum pool size.When a user request a connection, it is returned from the pool rather than establishing new connection and, when a user releases a connection, it is returned to the pool rather than being released. But be sure than your connections use the same connection string each time. Here is the Syntax conn.ConnectionString = “integrated Security=SSPI; SERVER=127.0.0.1; DATABASE=test; Min Pool Size=4;Max Pool Size=40;Connect Timeout=20;”;

for my more articles read

http://www.beklo.com/rameshgoudd


Coke zero:Review

September 17, 2007

Coke zero

Sign up with Bloggerswave and they will pay you some amount  to write about this post.

Coke zeros campaign “Life as it should be”  is the one which gives the entertainment and gives us a chance to show our imagination skills on the internet.In the Coke zeros  we can direct our own small movie and afterwards we can send it to all our friends and our movie competes with other movies to be the highest rated in the Coke Zeores.And one more feature it has  the Coke has already some old movie clips and it gives us a chance to play a role as a director. Afterwards we can write “the conversation” to this clip and we can manipulate this using voice recorder .this voice recorder is available in coke zeroes.Here all the movies what ever we directed compete with other movies to be the highest rated. 

So friends compete with your friends at http://www.zeroismore.com. And prove as a director.

 I have never seen this type of site in the internet and it is a good one and which is useful to prove the director our self .It gives us a chance to prove as a dialogue writer.


 Sponsored By Bloggerwave™


Famous websites for Dotnet Programmers

September 11, 2007

Add to Technorati Favorites
Hi all,

here i mentioned the important websites for the dot-net programmers who are searching for the job and who are already doing job.

1)http://www.dotnetspider.com

this site is for dot-net interview questions,jobs,tutorials,articles and it has the demo projects.This is very useful for the freshers to read the articles and tutorials and to see the demo projects

2)HTTP://forums.asp.net

It is a dot-net forum.this is best for the experienced programmers.They can post their doubts in this forum and get their answers within a short time.

3)http://www.w3schools.com

This site is famous for the web-technologies.This is useful for the Freshers.This site consists of HTML,XML,ASP,ASP.NET,SQL,JAVA SCRIPT.

and other important sites are

4) http://www.gotdotnet.com

this site consists of with demo programs

5) http://www.codeproject.com

this site consists of total c# coding and asp.net

6) http://aspnet.4guysfromrolla.com

This site is also very useful for the experienced programmers.

Just please post the other useful sites in the comments section

for my more articles visit http://www.beklo.com/rameshgoudd


Why Dotnet?

September 11, 2007


Try AuctionAds:Increase your blog income

Some advantages that .NET has over Java are:

  1. Java is not just a platform, but a language. .NET is language independent. Adopting .NET does not force you to adopt a single, or even specific language. .NET can even support the Java language, and J# is very close to Java.
  2. Language interoperability.
  3. .NET can coexist with and even integrate with existing Win32 code.
  4. Moving to Java from Win32 is a complete paradigm shift. Moving to .NET is a more natural path for Win32 developers.

Please go through this article about the comparison between dotnet and java

http://www.codeproject.com/dotnet/WhyDotNET.asp

Here I am requesting all the users to post their comments on this article ..means Advantages and Disadvantages of Java and Dotnet.Which is going to lead the future?

for my more articles visit http://www.beklo.com/rameshgoudd


Difference between vb.net and c#.net

September 10, 2007

AuctionAds: Increase the bid on your site’s income!
There are so many differences between vb.net and c# which are given below-Here I mentioned the some important differences between vb.net and c#.


1. C# provides operator overloading and vb.net does not provide it.
2. C# supports unsigned integer and vb.net does not.
3. C# does not support optional argument and vb.net supports it.
4. C# runs slightly faster than vb.net.
5. C# inforces strict type casting and vb.net does not  enforce it.
6. Event declaration is easier in vb.net than c#.
7. vb.net is flexible of  working with arrays which can be resized using Redim statement and c# does not support Redim statement.
8. vb.net is not case sensitive and c# is case sensitive.
 

The best sites to know the difference between vb.net and c#.net are 

 1)      http://www.harding.edu/USER/fmccown/WWW/vbnet_csharp_comparison.html 

2)      http://www.codeproject.com/dotnet/vbnet_c__difference.asp


Dotnet Faqs and Interview Tips

September 10, 2007

Hi all,
AuctionAds: Increase the bid on your site’s income!
I request you to all of the bloggers who are visiting this blog can post their doubts in Dotnet and Faqs related to dotnet in this blog(post in the comments section).I will publish all the faqs in one page and i wil forward those faqs to all the members who are searching for the job.

Ram


How to read a data from txt file using c#

September 10, 2007

AuctionAds: Increase the bid on your site’s income!

StreamReader: streamreader is nothing but file pointer.and here i used the stream reader to read the data from the text file(.txt) and displaying that it is in a label. System.IO.this is the name space required to deal with the files. To read a text file we need to create the instance of the object,StreamReader The instance will be the file pointer for us. Once we have a File Pointer, we need to invoke the method, OpenText method of the object, File. The method, OpenText takes a string as an argument. The string is nothing but the path of file that is going to get created. Now, let us see an example.

                                                             
String filename=Server.MapPath("new.txt");//here in the string we are storing the filepath 
StreamReader strrr;
strrr=File.OpenText(filename);//here streamreader pointing the files..means stream reader is nothing but a file pointer 
lbltxt.Text=str;//here we are displaying the txt file data in the label. 
strrr.Close();..
 fstring str=strrr.ReadToEnd(); 
 

Page Smart Navigation In Asp.net

September 10, 2007

AuctionAds: Increase the bid on your site’s income!
It enables you to retain the browser current position during postback.and it is used to maintaining the screen position fixedly . We can give the smartnavigation property at two levels.They are
1)Page level..
In the page directives ..write the code like this

Or
Set the form properties i .e  smartNavigation=True2)Application level

This is for total project instead of writing the code in each page write like the following code in web.config
pages smartNavigation=”true”/


Disable the backbutton using javascript in asp.net

September 10, 2007

AuctionAds: Increase the bid on your site’s income!

If we  want to disable the back button in the browser for that in the first page..
means think that we are redirecting the page from login.aspx to welcome.aspx..in the login.aspx write this following scripting to disable the back button in the welcome.aspx.

<script type=”text/javascript” language=”javascript”>           javascript:window.history.forward(1);   </script>


Sql Joins With Examples

September 10, 2007

Joins:

1)These are used to retrieve the data from more than one table.

2)To retrieve the data from more than one table the datatypes of fields which related to different tables need not be same while using the joins

Types of joins:

1):Inner Join

2):Cross Join

3)OuterJoin

     a)Left Outer Join

    b)Right Outer Join

    c)Full Outer Join

4)Natural Join

5)Equi Join

Examples and Description:

1:Emp

         EmployeeID  EmployeeName               
    1                Ramesh
    2                Sukumar
    3                Ravi                                                       
    4                Kalyani           

                                         

2.Products:

   ProductID            EmployeeID        Productname
  1 1                                  2                     Pen
  12                                   3                    Pencil
  1 2                                  3                    Eraser
  1 3                                  6                   Book

1):Inner Join:This join returns all the rows from the both the tables where there is a match.The result set consists of only matched rows.

Syntax:

select E. Employeeid,E.EmployeeName,P.ProductName from Employees E inner join Products on E.EmployeeID=P.EmployeeID

Result:

1)       EmployeeID   EmployeeName          Productname     
    2                  Sukumar                       Pen
    3                   Ravi                             Pencil                          
    3                   Ravi                             Eraser                            

2)Cross Join:Cross join is nothing but retrieving the data from more than one table with out using the condition.

Here two cases are there:

a)select E.EmployeeID,E.EmployeeName,P.Productname from Employees E,Products P

Note:(here we are using the cross join defaultly.Means we have not mentioned the any condition here.)

b)select E.EmployeeID,E.EmployeeName,P.Productname from Employees E cross join Products P

Note:this is the syantax of cross join..both queries(a &b)returns the same result) only the difference is Synatx but the o/p is same.

3)Outer Join:In outer join the resulting table may have empty columns.

a)Left Outer Join:Here left means first table.it reurns all the rows from the first table even though it does not have the matchs in Second table.But it returns only the matched rows from the second table.

Syntax:

select E. Employeeid,E.EmployeeName,P.ProductName from Employees E left join Products on E.EmployeeID=P.EmployeeID

Result:

1)       EmployeeID   EmployeeName          Productname     
    2                  Sukumar                       Pen
    3                   Ravi                             Pencil                          
    3                   Ravi                             Eraser        

           1                  Ramesh                        null

           4                  Kalyani                          null

a)Right Outer Join:Here Right means Second table.it returns all the rows from the second table even though it does not have the matchs in First table.But it returns only the matched rows from the First table.

Syntax:

select E. Employeeid,E.EmployeeName,P.ProductName from Employees E right join Products on E.EmployeeID=P.EmployeeID

Result:

1)       EmployeeID   EmployeeName          Productname     
    2                  Sukumar                          Pen
    3                   Ravi                                Pencil                          
    3                   Ravi                                Eraser        

            6                   null                                  Book   

5)Natural JOIN:it eliminates the duplicate values from the output.

6)Equi JOIN:An inner join is called equi-join when all the columns are selected with a *, or natural join otherwise

for more details see http://www.beklo.com/rameshgoudd