Basic Dot Net Interview Questions and Answers

Dot Net Questions and Answers:

1 :: What should you do to store an object in a Viewstate?

Do serialization of convert the object to string
0/5 Rating (0 vote)
Is This Answer Correct?    0 Yes 1 No
Place Your Answer

2 :: What should one do to make class serializable?

To make a class serializable is to mark it with the Serializable attribute as follows.
[Serializable]
public class MyObject {
public int n1 = 0;
public int n2 = 0;
public String str = null;
}
0/5 Rating (0 vote)
Is This Answer Correct?    0 Yes 0 No
Place Your Answer

3 :: What is Viewstate in .NET?

A server control’s view state is the accumulation of all its property values. In order to preserve these values across HTTP requests, ASP.NET server controls use this property, which is an instance of the StateBag class, to store the property values.
0/5 Rating (0 vote)
Is This Answer Correct?    1 Yes 0 No
Place Your Answer

4 :: What is the use of ErrorProvider Control in .NET?

The ErrorProvider control is used to indicate invalid data on a data entry form. Using this control, you can attach error messages that display next to the control when the data is invalid, as seen in the following image. A red circle with an exclamation point blinks, and when the user mouses over the icon, the error message is displayed as a tooltip.
0/5 Rating (0 vote)
Is This Answer Correct?    0 Yes 0 No
Place Your Answer

5 :: What is the Difference Between Response.write & response.output.Write?

In ASP.NET the Response object is of type HttpResponse and when you say Response.Write you’re really saying (basically) HttpContext.Current.Response.Write and calling one of the many overloaded Write methods of HttpResponse. Response.Write then calls .Write() on it’s internal TextWriter object:
public void Write(object obj){ this._writer.Write(obj);}
HttpResponse also has a Property called Output that is of type, yes, TextWriter, so:
public TextWriter get_Output(){ return this._writer; }
Which means you can to the Response whatever a TextWriter will let you. Now, TextWriters support a Write() method ala String.Format, so you can do this:
Response.Output.Write(”Scott is {0} at {1:d}”, “cool”,DateTime.Now);
But internally, of course, this this is happening:
public virtual void Write(string format, params object[] arg)
{
this.Write(string.Format(format, arg));
}
5/5 Rating (1 vote)
Is This Answer Correct?    0 Yes 0 No
Place Your Answer

Rate This Category:
5/5 Rating (1 vote)
Place Your Question



Top: Basic Dot Net Interview Questions and Answers
Basic Dot Net Interview Questions and Answers

Top Frequently Asked Dot Net Question
Frequently Asked Dot Net Job Interview Question


Top Frequently opened Microsoft .Net Technologies Job Interview categories
Most popular Microsoft .Net Technologies Job Interview categories

Comments About Basic Dot Net Interview Questions and Answers

Share your valuable opinions, ideas and suggestions about Basic Dot Net Interview Questions and Answers
While placing your comment your email address is required but won't be published any where else; Personal information will be kept confidential; we do not sell or release our respective visitors private information.
  1. Webmaster 20th of May 2012

    Webmaster Said

    Tell us what you feel about Basic Dot Net Interview Questions and Answers
    All comments will be published after review. No login or registration is required to post a comment on Basic Dot Net Interview Questions and Answers We offer and invite you to submit your valuable comment now; Please be respectful of others when commenting. Insulting others, self-promotional comments, website promotional comments, marketing stuff, SEO Techniques, SMS-style content and off-topic comments will not be approved at this information portal.
    So start sharing your thoughts regarding Basic Dot Net Interview Questions and Answers
    Thank you.

Leave a Comment

Leave a Comment
  1.  Enter This Verification Code  Regenerate Verification Code  



Your reply will be added to the comment above (Below any other replies to this comment) -

Top Comments About: Basic Dot Net Interview Questions and Answers
Comments on Basic Dot Net Interview Questions and Answers

 
Top of Link batk to Basic Dot Net Interview Questions and Answers
Link batk to Basic Dot Net Interview Questions and Answers