Tuesday, September 16, 2014

ways of writing connections in Asp.net

  • The very elementary idea is to write the connection    string in a class file. and then use it's object  on our page where ever we required.
  • The second is we can write the connection string  in web.config file.
  • And the third  idea  is to  write the connection in  class file and make the DLL of that.This one is a standard way of writing  the connection in Asp.Net . 


Thursday, September 4, 2014

some technical terms used on internet.

The Web browser :

the browser is the vital component that provides an interface between the user and the web server.
the user sends a request through the browser to the web server.  when the web server returns the HTML page ,the browser displays it for the user. browser also supports client-side scriping .
that means you can write code that can be executed  by the browser .for example, when we accept input from  the user, it can be validated at the client end before being sent to the server.



The Web Server:
 The web server bears the responsibility of servicing client browsers.A web server Processes script and sends the rusulting HTML page to the client browsers who requested it.
the server side script may be stand-alone application or embedded in active server pages
web server can do more. they can provide connections.to other server-side components and shows information stored on other servers,these may be database servers,mails etc.

importent point about .NET

.NET is an application development Platform centered around the internet.


.NET platform forms the basis of applications that are language independent and can be run from different .NET compatible devices.

the .NET platform is based on two core technologies-XML and the internet protocols.









Wednesday, September 3, 2014

.NET Questions

Q:  How to add multiple website in one folder  ?
 we have to create a blank solutions like this....

1-File -> new project->other type project->visual


studio solutions->blank solution


2-rightclick on solution explorer of blank solution ->add existing website


many more solution can be added in this one blank solution.


Q:--------How-to make  own namespace ?

  • First make a blank solution as above.right click solution explorer  and
  • Add a class library  you will get the class over there you can add more classes over there.
  • Build this class library after building we will get the dll file of this class library  in the bin folder of that blank solution.
  • Now we have to add our dll in our main required website which is also added in this blank solution.
  • Right click ->add reference->browse->dll add.