Using Statement usage in C#
Answers were Sorted based on User's Feedback
Answer / nipun
The using statement allows the programmer to specify when objects that use resources should release them. The object provided to the using statement must implement the IDisposable interface. This interface provides the Dispose method, which should release the object's resources.
e.g.
using (Font font1 = new Font("Arial", 10.0f))
{
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / om shivaya namaha
Using statement is used to import the namespaces in to the
page by reading the namespace classname it will search the
class in DotNet Farame work class library and that
perticaular class is imported in to the page
| Is This Answer Correct ? | 2 Yes | 3 No |
What is the purpose of the following segment? If ( !IsPostBack) { sqldataAdapter1.Fill (dsusers1); DataGrid1.DataBind (); } a) To populate the DataAdapter the first time the web page id displayed. b) To populate the DataSet every time the web page is displayed. c) To populate the DataAdapter every time the web page is displayed. d)To populate the DataSet the first time the web page is displayed.
What are the new features added from ASP to ASP.NET?
Which method do you invoke on the DataAdapter control to load your generated dataset with data?
How to make sure that contents of an updatepanel update only when a partial postback takes place (and not on a full postback)?
diffrance between stored procedure & function in sql server?
What is difference between Server.Transfer and Response.Redirect in ASP.NET?
0 Answers Sans Pareil IT Services,
Difference between connected architecture and Dissconnected architecture?
what are the ways to improve performance in .net application?
difference between caching objects in session objects?
what is page life cycle state management postback cross page postback types of feilds in gridview gridview events their life cycle cte in sql diff truncate and delete paging concepts in gridview diff bet gridview datalist and repeater what new operations in sql 2005 compared to earlier you get
What are the types of assemblies and where can u store them and how ?
Out of ASP or ASP.NET which one is stateless?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)