ASP.NET Interview Questions by topic


On this page you can see list of all ASP.NET Interview Questions by topic. In most of the interviews, these questions are very frequently asked. If you have an asp.net question that is asked in a previous interview, please post it here.


























































29 comments:

  1. can u pls provide me some design pattern interview question and answer. and pls tell me if u know some C# openigns are there,.

    ReplyDelete
  2. can u please provide me some design pattern of interview question and answer. and please tell me if u know some .net openings are there.

    ReplyDelete
  3. Plz provide ASP.PAGE life Cycles in Brif and Real Time

    ReplyDelete
    Replies
    1. MSDN quote:
      "When an ASP.NET page runs, the page goes through a life cycle in which it performs a series of processing steps. These include initialization, instantiating controls, restoring and maintaining state, running event handler code, and rendering. It is important for you to understand the page life cycle so that you can write code at the appropriate life-cycle stage for the effect you intend."

      Delete
  4. is scripting only for web application ?explain

    ReplyDelete
  5. U should add a section for Object Oriented and .Net framework type questions...like what is a class, object, encapsulation, inheritance, examples of them, what is process, what is thread, what is asynchronous programming? etc.

    ReplyDelete
  6. Great ........This is the best site i ever seen.....i get all info at one place......Good work

    ReplyDelete
  7. nice...its very helpful.........

    ReplyDelete
  8. hi venkat can i know u r details..... r u from hyderabad.... my name is jeevan sagar..... i am working as software developer from fortechsoft india ltd..since 3+years....good site yar keep going........

    ReplyDelete
  9. This site must be Oscar awarded site. Awesome blog not seen such a blog ever in my life.....

    ReplyDelete
  10. What is the name of the 2nd file that is generated in the Default.aspx ..one is default.aspx.cs..what is the 2nd one and its purpose

    ReplyDelete
  11. Sir,your videos will prove to be a turning point in my career. God bless you sir. Keep up the good work.

    ReplyDelete
  12. hi sir your tutorials are really good and helpfull
    i have a problem that in my pc iis is instald and the ui also opening but in that window asp.net category is not there all other categories such as ftp,iis,management are displaying but main category i.e asp.net is not showing please help me i want to do smtp operations in that thankyou

    ReplyDelete
  13. sir can u tel me the errors in following code?

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Data;
    using System.Data.Sql;
    using System.Data.SqlClient;

    public class Class1
    {
    public Class1()
    {
    public DataSet getinfo()
    {
    sqlConnection con=new sqlConnection("Data Source=SATISHRI\\SQLEXPRESS;Initial Catalog=satish;Integrated Security=True");
    sqlDataAdapter da=new sqlDataAdapter("select * from student", con);
    DataSet=new DataSet();
    da.fill(ds);
    return ds;
    }

    }
    }

    ReplyDelete
  14. Hello sir , first of all thank you for doing such a nice task for us,its very useful .......
    Please provide OOPs concepts also in a different section . Again thanks

    ReplyDelete
  15. hi sir your tutorials are really good and help full
    i have a small problem that is

    1) what is the main differences b/w the machine.config and web.config....

    2) configurationManager doesn't apper inspite of adding using system.configuration import statement without error? why?

    3)what is the main difference b/w writing connectionstring in appsetting and connectionstrings section?

    ReplyDelete
  16. WEB.CONFIG:- The Web.Config files specify configuration setting for a particular web application and are located in the application root directory.

    MACHINE.CONFIG:- The Machine.Config specifies configuration setting for all of websites on the web server and is located in $windowsdir$\microsoft.net\framework\version\config.

    ReplyDelete
  17. Validators in ASP.NET support which data type like int, string, both or none of these?????????

    ReplyDelete
  18. HI Venkat,

    Thanks for the videos and explanations. I have question like all the objects of same class will have same size of memory or not?
    Eg: I have emp1 and emp2 two employee objects are there of the class Employee. Is the memory size of the emp1 and emp2 are equal or not?

    ReplyDelete
  19. how to create the crystal report in asp .net..

    ReplyDelete
  20. Replies
    1. As you can store the Base64 string in Session so Convert the image in Base64 as follows.

      using (Image image = Image.FromFile(Path))
      {
      using (MemoryStream m = new MemoryStream())
      {
      image.Save(m, image.RawFormat);
      byte[] imageBytes = m.ToArray();

      // Convert byte[] to Base64 String
      string base64String = Convert.ToBase64String(imageBytes);
      return base64String;
      }
      }

      Delete
  21. Thanks for ur effort...really so useful ......could you please upload the coding part too which would generally ask in interviews

    ReplyDelete
  22. Hi Venkat, Can you please give me the answer for below question. This was one of my interview questions

    how do we retain our object in memory though we are not using it. Its memory should not be cleaned up by Garbage collector

    ReplyDelete
    Replies
    1. Call GC.KeepAlive() method.. Helps to retain object from garbage collector.

      Delete
  23. Dear Venkat Sir,

    Your tutorials are very easy and method of teaching is great, I have almost all videos you published on the website, its very good experience to learn from these tutorials.

    But there is one particular section which I am still confused
    Postback and Page Events
    Can you please explain what are these events(PRE_INT,INT,PRE_LOAD) and what are the things which we can do.

    Thank you very much again........

    ReplyDelete
  24. hi . actually i applying SqlCommandBuilder.there occur a error . i m providing the script kindly let me know the solution on email mr.tayyabrasheed@yahoo.com
    here is the script

    string CS = ConfigurationManager.ConnectionStrings["DBCS"].ConnectionString;
    using (SqlConnection con = new SqlConnection(CS))
    {
    SqlDataAdapter da = new SqlDataAdapter((string)ViewState["QUERRY"], con);
    SqlCommandBuilder bldr = new SqlCommandBuilder();
    bldr.DataAdapter = da;
    DataSet ds = (DataSet)ViewState["DataSet"];

    if (ds.Tables["STUDENT"].Rows.Count > 0)
    {
    DataRow dr = ds.Tables["STUDENT"].Rows[0];
    dr["Name"]= TextBox3.Text ;
    dr["Totalmarks"]=TextBox2.Text ;
    dr["Gender"]= DropDownList1.SelectedValue;
    }
    int rowupdate= da.Update(ds,"STUDENT");
    if (rowupdate > 0)
    {
    Label1.ForeColor = System.Drawing.Color.Green;
    Label1.Text = "Row uodated = " + rowupdate.ToString();

    }
    else
    {
    Label1.ForeColor = System.Drawing.Color.Red;
    Label1.Text = "NO Row uodated ";

    }

    Label2.Text = bldr.GetUpdateCommand().CommandText;
    }
    the error

    ExecuteReader: CommandText property has not been initialized

    Line 67: int rowupdate= da.Update(ds,"STUDENT");

    ReplyDelete

If you are aware of any other asp.net questions asked in an interview, please post them below. If you find anything missing or wrong, please feel free to correct by submitting the form below.

 
Disclaimer - Terms of use - Contact Us