FAQ

¤¤¤   FAQ’s  ¤¤¤


C# interview faqs

State/Session Related in ASP.NET

Smart Devices Related [ Very Useful ]

faqs-aspnet-ms-exam-blog.pdf

FAQ’s

 Are private class-level variables inherited?
Yes, but they are not accessible.  Although they are not visible or accessible via the class interface, they are inherited. 

– What’s the top .NET class that everything is derived from?
System.Object

the term immutable mean?
The data value may not be changed.  Note: The
variable value may be changed, but the original immutable data value was discarded and a new data value was created in memory

the advantage of using System.Text.StringBuilder over System.String?
StringBuilder is more efficient in cases where there is a large amount of string manipulation.  Strings are immutable, so each time a string is changed, a new instance in memory is created.

Can you store multiple data types in System.Array?
No

What’s the implicit name of the parameter that gets passed into the set method/property of a class?
value.  The data type of the value parameter is defined by whatever data type the property is declared as. 

What is the role of the DataReader class in ADO.NET connections?
It returns a read-only, forward-only rowset from the data source.  A DataReader provides fast access when a forward-only sequential read is needed

What is a satellite assembly?
When you write a multilingual or multi-cultural application in .NET, and want to distribute the core application separately from the localized modules, the localized assemblies that modify the core application are called satellite assemblies. 

———————- That’s all for now

One of the troubling question faced by my past students is differences between abstract class and interfaces here is the final solution as doc file

Abstract Class and Interfaces

lets continue with other questions

  1. Explain about Protected and protected internal, “internal” access-specifier?
    protected – Access is limited to the containing class or types derived from the containing class.
    internal – Access is limited to the current assembly.
    protected internal – Access is limited to the current assembly or types derived from the containing class. 
  2. Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?
    (Class constructor method is also known as type constructor or type initializer)
    Instance constructor is executed when a new instance of type is created and the class constructor is executed after the type is loaded and before any one of the type members is accessed. (It will get executed only 1st time, when we call any static methods/fields in the same class.) Class constructors are used for static field initialization. Only one class constructor per type is permitted, and it cannot use the vararg (variable argument) calling convention.
    A static constructor is used to initialize a class. It is called automatically to initialize the class before the first instance is created or any static members are referenced.
  3. What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?
    A: When a class declares only private instance constructors, it is not possible for classes outside the program to derive from the class or to directly create instances of it. (Except Nested classes)
    Make a constructor private if:
    – You want it to be available only to the class itself. For example, you might have a special constructor used only in the implementation of your class’ Clone method.
    – You do not want instances of your component to be created. For example, you may have a class containing nothing but Shared utility functions, and no instance data. Creating instances of the class would waste memory.
  4. I have 3 overloaded constructors in my class. In order to avoid making instance of the class do I need to make all constructors to private?
    (yes)
  5. Overloaded constructor will call default constructor internally?
    (no)

          —————————————————

Advertisements

270 Comments Add yours

  1. RASHMI Singh says:

    I want to join asp. Net and Mvc batch when will start new batch?

    Like

  2. ajay Kumar singh says:

    Hi Sir,
    I have 2 to 4 friend all are interested to join MVC with angular 2/4 online batch. we can join only online batch because we are form delhi. my contact no. “09650368725” and mail id “ajayit105@gmail.com”. kindly please plan and share details for new online new batch.

    Like

    1. Nagaraju says:

      Tomorrow we will post the details

      Like

  3. sindhu says:

    Sir i am one of your mvc student . After i learn MVC in work lot of improvement is there…it there any chance to get your videos / notes for c# , asp.net … IT will helps me a lot please provide

    thank u sir

    Like

  4. Mohamed says:

    when are you going to start mvc batch

    Like

  5. Swapna says:

    when will be next AngularJs batch starting…

    Like

    1. Nagaraju says:

      1stweek or 2nd week of october

      Like

  6. Rameshwari says:

    Sir when are you going to start .net classes.

    Like

    1. Nagaraju says:

      Next Month I will be starting

      Like

  7. safwan says:

    hi sir,
    when the start mvc and wcf new batch.

    Like

    1. Nagaraju says:

      Very Soon it will be announced

      Like

  8. Kovvada Hari says:

    Hi Sir,

    Is their any way to bind asp.net ObjectDatasource controle like updatemethod,InserMethod etc.. using web API.

    Thanking you,
    Hari Kovvada

    Like

    1. Nagaraju says:

      not binding but you can do with code

      Like

  9. AJAY JAIN says:

    sir I am interested in free lancing work. may i know detail about projects.

    Like

    1. Nagaraju says:

      Good Just build a small module using angular api and demonstrate as your work and you will be getting development work continuously a sample app like housejoy.in,zimber.com etc

      Like

  10. swati says:

    Hi sir,
    I am your last batch MVC student, sir please provide TTD, Security injection and MVC Security material in your blog.

    Like

    1. Nagaraju says:

      ok swati i’ll upload and intimate you

      Like

  11. Ashish says:

    Hey sir,
    I want to do certifications in .net. my preferences are C# and Asp.Net MVC
    I chose 70-486 & 70-483 , please suggest are they okay ?

    Like

  12. Pravin S says:

    Hi Sir ,

    MVC questions faced my friend during Interview
    ———————————————————-
    . diiference between mvc and asp.net.

    . mvc page life cycle.

    . in view under form tag, i have 2 buttons, how to call different action for each button under single form.

    . how to create multiple url for same controller and action (hint : using routeConfig.cs)

    . difference and scope of ViewBag, ViewData and Tempdata.

    . performance wise what is better viewBag or viewData.

    . difference between @html.partial and @html.renderPartial

    . difference between @html.action and @html.renderAction

    . how to apply an attribute to all controller globally.

    . what is bundling and minification.

    . how to pass model object to action from view in jquery ajax call on button click.
    (suppose i have form with some fields and submit button. On click of button i raise an ajax post and i want to pass model object from ajax post to action. how u will achieve this.)

    . difference between mvc4 and mvc5

    . Enable bundling and minification in debug mode

    . what is actionMethodSelector attribute in mvc.

    . what is _ViewStart.cshtml file in mvc

    . execution order of view
    => Renderview (view which is called by action)
    TemplateView(master view which is applied in Renderview – just like master page)
    _ViewStart.cshtml (default view provided by mvc)

    in which order the above view gets executed.

    . what is partial view and use of that.

    . how to avail Tempdata value after 2 request.

    . difference between Peek and Keep method of tempdata.

    Like

    1. Nagaraju says:

      Good Pravin we will discuss them in class

      Like

  13. A.ramesh says:

    Hi sir I am your old student Ramesh from 2009 batch. Could you let me know when will new angular js online training classes start? Are there any share point classes also available?

    Like

    1. Nagaraju says:

      AngularJS will be announced in 2 weeks as there are 2 batches already going on and sharepoint will take more time.

      Like

  14. vjsurya says:

    hi sir,
    i have attended a workshop on ADO.NET on Jan 2016 but didn’t received any materials to my email. So kindly send me the materials to the below mentioned email sir.
    vijaysurya15@gmail.com
    Thanks and Regards
    vijay surya

    Like

    1. Nagaraju says:

      OK I’ll send

      Like

  15. Kovvada Hari says:

    Could you please start WCF batch, i have been waiting for your batch from last 3 months.

    Like

    1. Nagaraju says:

      I’m starting new batch – tomorrow ill announce

      Like

      1. Kovvada Hari says:

        Thank you for your reply sir

        Like

  16. Rahul jha says:

    As you have showed a demo in current mvc batch about how to access files and to display its contents , I have tried it and I am able to show the product list but which i have commented under .cshtml but when i write the code to display the data in chart format , I am not able to display the chart . I reuest you to plz identify where I am making mistake.

    public ActionResult ShowProducts()
    {
    DataSet ds = new DataSet();
    ds.ReadXml(Server.MapPath(“~/Data/Products.xml”));
    var x = ds.Tables[0].DefaultView;
    ViewBag.Products = x;
    return View();
    }

    1001
    10
    Laptops

    1002
    20
    Laptops

    1003
    30
    Laptops

    1004
    40
    Laptops

    @* @foreach (var item in ViewBag.Products)
    {

    @item[2] sold are @item[1] units

    } *@

    @{
    var chart = new Chart(500,600);
    chart.AddTitle(“Products Sales”);
    chart.AddSeries(“C1″,xValue:ViewBag.Products,xField:”Desc”,yValues:ViewBag.Products,yFields:”sold”);
    }

    Like

    1. Nagaraju says:

      I think we solved in your laptop

      Like

  17. Dear Sir,
    My name is Sudhir and I am one of your .net batch ex-student. Sir, presently I am working in a company where I am facing a problem in my project for which I need your help to solve it.
    Sir, we are developing a VSTO addin for outlook where the functionality of outlook is to be replicated like sending a new mail, reply, forward, etc and the mails should be stored in our database for further reference. Sir, the main problem is that we want to sent a mail out by using smtp and mailmessage object. During this the mail is reaching the recipient but it is not seen in the sent items folder of the outlook. we don’t want to do this by using outlook mailitem object as it does not allow me to change the senders addess. Sir, during this process my mail should be seen in the outbox of outlook after sending a mail using my addin.
    So, far I got this code for sending a mail using smtp.
    public void SendMail()
    {
    try
    {
    MailMessage mail = new MailMessage();
    SmtpClient SmtpServer = new SmtpClient(“smtp.xyz.com”);

    mail.From = new MailAddress(“abc@companydmn.com”);
    mail.To.Add(“hij@companydmn.com”);
    mail.Subject = “Test Mail”;
    mail.Body = “Mail Body”;

    SmtpServer.Port = 587;
    SmtpServer.Credentials = new System.Net.NetworkCredential(“username”, “password”);
    SmtpServer.EnableSsl = true;

    SmtpServer.Send(mail);
    MessageBox.Show(“mail Send”);
    }
    catch (Exception ex)
    {
    MessageBox.Show(ex.ToString());
    }
    }

    Sir, Please try to help me how to make the mail go through outlook outbox and gets sored in sent items folder of outlook.

    Sudhir
    tsudhir08@gmail.com

    Like

  18. Anand says:

    Hi Sir,

    I have learned MVC in one of your batches.

    I want to learn WCF and I am waiting from past few months. Could you please start classes for WCF.

    Like

  19. Sunny Malvi says:

    Hi sir i have to work in windows store app can you please tell me how can i getting started wit window store app using c# in visual studio 2015 community

    Like

    1. Nagaraju says:

      you need to install SDK in windows 8.1 minimum and start creating new projects – Store option (or) take-up some training and start

      Like

  20. ksuvarnakar@gmail.com says:

    sir i want to known about free online services .i want to use them in my project

    i am one of your student

    Like

  21. luckey says:

    sir,can you provide me the interview faq book link

    Like

  22. saroj kumar swain says:

    hi sir, This is saroj Kumar swain I face a interview he ask me that What is tuple in mvc ?
    please consider my question sir

    Like

  23. Prabhakar says:

    Hello Sir,
    My name is Prabhakar Changala, I am working as dotnet developer. I need a your help (reference) to complete the below tasks sir.

    1. I want to create a signature from textbox of webform using C# coding.
    2. I want to save the signature in image/ bit formate in to Database(SQL Server).

    Please assist and refer me if any third party tools/ dlls available to complete above tasks.
    my emailId: prabha.uu3@gmail.com.

    Thanks sir…..

    Like

  24. khansaba0021 says:

    hye sir i hav ea small question related to gridview
    i want that when i select a particular row in gridview i want to pass all the selected data to another page in the textbox ? how can i do
    in second page of page_Load Event i have write this code………….
    if (PreviousPage != null)
    {
    GridView grid = (GridView)PreviousPage.FindControl(“grdMail”);
    txtARFrom.Text=(grid.SelectedRow.FindControl (“Label1”), Label).Text;
    txtARTo.Text=(grid.SelectedRow.FindControl (“Label2”), Label).Text;

    }
    grdMail= is my gridview id
    i am getting errror

    plz solve this………
    thanku

    Like

  25. Varma says:

    Hello Sir,
    This is Varma, I have small doubt on Data Reader, Why Data Reader is Forward sequence Only and One more thing When we go for “Data Reader” and “Data set” While we are building the program, Please send the clarification to this mail.

    rajsiruvuri2@gmail.com

    Like

  26. madhu says:

    Hi Sir,
    Iam madhavulu your old student and prasent iam facing big issue what it is my webservice is down on Every weekend(Saturday) and i have SITERESTART.BAT file when i run this file problem is solve,but client want’s it should be automatic when the service is down.service running under iis7.0….please help me sir.

    Like

  27. kartik jain says:

    Hello sir ,
    I am student of your recent mvc batch.Sir how to disable implicit validation in some place;if using filters like “rangevalidator” “or” any other validation attribute in mvc.

    Like

    1. Nagaraju says:

      @{
      ViewBag.Title = “Edit”;
      Html.EnableClientValidation(false);
      }

      Like

  28. Hi sir,

    Can i know how to consume the web services(WSDL) in Windows Phone 8 app, and the WSDL url is encrypted i’m a bit confused to do this can u help me out to solve this please.

    Thanks & Regards
    Siva Krishna.

    Like

  29. Alok Singh says:

    Hi Sir,

    How to create cookie and pass it to different views in mvc. please sir share any link from where i should read this.

    Like

  30. Alok Singh says:

    hi sir,

    I want to learn more about entity framework, please sir share the link from where i should learn entityframework

    Like

    1. Nagaraju says:

      Use the below link and explore

      http://msdn.microsoft.com/en-us/data/ee712907

      Thanks
      Nagaraj

      Like

      1. Alok Singh says:

        Thank you sir

        Like

  31. Raju says:

    Hi sir, i got a job because of u.. i am ur recently completed asp.net student. in interview i was asked questions on asp.net and sql server.. i didn’t answer perfectly even one in sqlserver.. but when he asked about authentication, caching,session i answered 100% perfectly. the flow(diagramatically) which u told us is hlped me. and i never forget those concepts. thank u sir..

    Like

  32. Kalyan says:

    Hi sir,

    I am a ex student of your’s. I have interview question like “How can we expose different service contracts to different client with same endpoint”. Can you please give me the solution. I tried much but didn’t get answer.

    Regards,
    Siva Kalyan(HCL Technlogies)
    9866404030

    Like

  33. ramdeo angh says:

    Respected Sir,

    I am Ramdeo Angh from 2012 batch of WCF.sir i want to upload video on YouTube using API through ASP.NET.i am tired.i tried lot’s of time.but my code works sometime but sometimes not.please help…..

    Like

  34. Nagarjuna Indukuri says:

    hi sir,
    I am Nagarjuna Indukuri your ex-student, I need to learn WF4.5, can you suggest me some source.

    Regards,
    Nagarjuna Indukuri

    Like

  35. ANS Srinivas says:

    Dear Sir,

    This is Srinivas ANS, evening batch WCf, who requested you to prrovide some information regarding MongoDb. Please help me with some informational sites and docs or any other references who are already working on MongoDb.

    Thanks& Regards

    ANS Srinivas
    9866363905

    Like

  36. sanket says:

    How to add large size of video files(i.e. mp4 or .avi or all video formats )in a web page & how to control that video in a web page ?

    Like

  37. prakshith says:

    Dear sir, when i was using on grid view “item type=’job'” and assign the value if after compilation i get this type of error Please give me solution sir..

    Like

  38. Sandeep Kumar Reddy P says:

    Dear Sir,
    I am your old student,now i what to do certification. can you guide me which papers to choose.

    Thanking You Sir,
    Sandeep

    Like

  39. Chinmaya Sahu says:

    As in a website per user a session is created & a session id is sent to that user as a cookie.But in a website we can create any numbers of application variables which is shared by every user & no application id is created .So per user how many session variables we can create as i am thinking per user a session id is given to user.

    Like

    1. Nagaraju says:

      Qn not clear

      Like

  40. Dear sir I have one query

    I have data in MS Excel like shown below

    Index /Time /CURRENT TEMP /SET TEMP /CURRENT CO2 /SET CO2
    1/ 2014-04-01 00:00:08 /22.6 /25.9 / 318 / 550
    2/ 2014-04-01 00:00:16 /22.6 /25.9 / 318 / 550
    3/ 2014-04-01 00:00:24 /22.6 /25.9 / 318 / 550
    4/ 2014-04-01 00:00:32 /22.6 /25.9 / 318 / 550





    450/ 2014-04-01 01:00:08 / 22.6 / 25.9 / 318 / 550
    451/ 2014-04-01 01:00:16 / 22.6 / 25.9 / 318 / 550
    452/ 2014-04-01 01:00:24 / 22.6 / 25.9 / 318 / 550
    453/ 2014-04-01 01:00:32 / 22.6 / 25.9 / 318 / 550



    10770/ 2014-04-01 23:58:56 /37.4 / 39.3 / 207 / 550
    10771/ 2014-04-01 23:59:04 /37.4 / 39.3 / 207 / 550
    10772/ 2014-04-01 23:59:12 /37.4 / 39.3 / 207 / 550
    10773/ 2014-04-01 23:59:20 /37.4 / 39.3 / 207 / 550

    like this I have the data from 0 hour 0 minute to 23:59:59 I want average of 0 hour, 1 hour, 2 hour like that up to 24 hour that means hourly base average, MIN and Max so how to write C# code in C#.NET please help me on this my mail ID razzaq.cs@gmail.com
    thanks

    Like

    1. Nagaraju says:

      For this you have 2 write logic

      Like

      1. razzaq shaik says:

        I dint get please give me logic and do u have any project asp and wcf please give me I want projects and extra income thanking you

        Like

      2. razzaq shaik says:

        please can u give code of logic please helpme

        Like

  41. vanadna says:

    Sir i am your old student from 2011 batch..I am currently working in one software company from last one year in c#.net,asp.net, wcf, wpf,silverlight etc.
    ..Now i want move/focus my career in those technology Sharepoint Server 2013 or ASP .NET MVC4 .So can u plz suggest me which course i do for better getting better job and salary in mnc,,,plz reply sir

    Like

  42. Ramu vemula says:

    Sir, can I use jquery and ajax combination. But it is not working for me…..

    Like

  43. Amit Choudhary says:

    Hi Sir,
    I am amit your student at naresh institute, actually i have doubt about following Questions

    1.How can we use Grid view in MVC?
    2.How we Sync Local Database With Cloud Database?

    Like

    1. Nagaraju says:

      we cannot use gridview in MVC application – we need to use webgrid,kendogrid, jqgrid
      we sync local db with migration tool or with sqlscripts

      Like

  44. Aryan says:

    Sir i am ur old student from 2013 batch..I am currently working in one software company from last one year in c#.net,asp.net
    ..Now i want ot do some other course like mve or ruby or rails or other latest course..So can u plz suggest me which course i do for better getting better job in mnc,,,plz reply sir

    Like

    1. Aryan says:

      plz reply as soon as possible..plzz sir

      Like

    2. Nagaraju says:

      MVC is better choice for .net developers

      Like

  45. RAJASEKHAR says:

    dear sir i am not getting MSGOBJ.ToAdd() METHOD IN MAIL MESSAGE EXAMPLE THAT U GIVEN IN OUR CLASS CAN ANYONE HELP ME WHY I DIDN’T GET IT?

    Like

    1. Nagaraju says:

      It is msgobj.To.Add. Correct it

      Like

  46. srinivasa reddy says:

    Hi sir
    Please check the bellow code .problem is dialog box opened when we open this page.

    @model IEnumerable

    @{
    ViewBag.Title = “Index”;
    }

    Index

    function function1() {

    $(“#divTarget”).dialog(“open”);
    }
    $(document).ready(function () {
    $(“#divTarget”).dialog({ autoopen: false, width: “800”, height: “auto”, model: true, show: ‘blind’, hide: ‘explode’ });
    });

    @Html.ActionLink(“Create New”, “Create”)

    Loading …

    @Html.DisplayNameFor(model => model.DepName)

    @Html.DisplayNameFor(model => model.DepImage)

    @foreach (var item in Model) {

    @Html.DisplayFor(modelItem => item.DepName)

    @Ajax.ActionLink(“View Employees”,”Emp”,new{id=item.DepId},
    new AjaxOptions{UpdateTargetId=”divTarget”,LoadingElementId=”DivLoad”,OnSuccess=”function1″,InsertionMode=InsertionMode.Replace})
    @Html.ActionLink(“Edit”, “Edit”, new { id=item.DepId }) |
    @Html.ActionLink(“Details”, “Details”, new { id=item.DepId }) |
    @Html.ActionLink(“Delete”, “Delete”, new { id=item.DepId })

    }

    Like

    1. Nagaraju says:

      need complete page code

      Like

      1. srinivasa reddy says:

        SIr i posted it again but its removing js file and script tags

        Like

  47. dasariuma48U says:

    Hai Sir……….Iam your old MVC 4.0 batch student.
    I want JQGrid practical example….Please give me.

    Like

  48. Hi Mr.NagaRaju Garu,
    I have a scenario like this:
    I’m trying to create a set of views to gather a lot of information. I say set because I have broken up this information across several pages, organized by the type of questions. I want the user to be able to leave and add, remove, update data as they wish, but I also need them to be able to cancel their changes. Seems simple enough.

    But conceptualizing this from a code point of view, I’m having issues.

    At first I wanted to preserve the model across multiple pages. So I would have a controller that redirects to different views depending on the step they have and pass the model around until they saved. However, unless I store all the information they aren’t currently working on in hidden fields, the model I return from the view to go to the next step is half empty.

    I then considered working with session variables. I then figured that if I pressed the back button or left the “workflow” without clicking cancel to clear the session variable, then I risk a user reopening the same object and their changes still be there.

    I don’t really see an elegant way of doing this. I assume this is my lack of ASP.NET\MVC experience.

    Pleaes provide me a suitable solution for this.

    Thanks & Regards
    Nagendra.Ch

    Like

  49. kumar says:

    sir which HTML language is used in VS 2012

    Like

    1. Nagaraju says:

      HTML 5

      Like

  50. A.venkata Reddy says:

    hi sir,
    i want update the gridview using gridviewupdate event but without using any linkbuttons.So please kindly send the code to my mail
    Thanks & Regards

    Like

    1. Nagaraju says:

      just take button and use commandname=”edit”, delete etc they will work

      Like

    2. A.venkata Reddy says:

      Thank u for u r Reply sir

      Like

  51. Bikram Panda says:

    Hi Sir,
    Why u r not provided ur video tutorial.We all professional are waiting u only.Please consider it as benefit for all .net guys those are not attending your class.

    Thanks and Regards,
    Bikram Panda

    Like

  52. balachandar says:

    Hi sir,
    I was student of wcf, I developed a duplex server application and hosted ,started successfully.
    The problem is contracts are coming as errors like.”This operations are not supported in wcf”. This coming for all contracts ,but if I remove callbackcontract field in serviceContract attribute it is coming(i.e it is a case of non duplex type).
    I followed all your steps provided in class.
    Please suggest me in right way sir.

    Thanking you sir.

    Like

    1. Nagaraju says:

      show me the project get it in laptop – I will correct it

      Like

  53. harish says:

    Hi Sir,
    i am your previous batch student.
    I need a small help,
    can u send me the code “how to send sms to a mobile in ASP.NET” to my mail id which is harishg@proarchitsolutions.com.

    Thanks,
    Harish.G

    Like

  54. mayur kumar says:

    Hello sir, I know u answer only valid questions but consider this Q valid and please Answer me.
    Sir I am working asp.net programmer I want to make my career in cloud computing please give
    me some guidance of yours and related to azure. my id-mayurmahajan4@gmail.com
    please sir do not ignore.

    Like

    1. Nagaraju says:

      what help you want just put your queries as questions and mail me @ nbende@gmail.com

      Like

  55. Deepak Singh says:

    why wcf is more secure then web service ?

    Like

    1. Nagaraju says:

      with its infrastructure it combines all bindings and distributed support which also includes message and transport level security

      Like

  56. Deepak Singh says:

    Can you plz tell how to identify whether the code is managed / unmanaged. and if i use unmanaged code in .net application. it will give error or not?

    Like

    1. Nagaraju says:

      when we use any pointer or com libraries they are exec by COM runtime instead of CLR – we call such code as unmanaged code. unmanaged code will not give any error and infact today every .net app relies on unmanaged code

      Like

  57. Bibhu Ranjan sahoo says:

    dear sir,my doubt is when to go for a URI and URL? actually what is the purpose of its URI?

    Like

    1. Nagaraju says:

      A URL is a kind of URI

      Like

  58. Chita Ranjan Tripathy says:

    hi sir,
    my program has a factorial function “fact” inside a class “factorial”. And the main function is in the class “Program”. i want to call the “fact” function inside main function using an object of “factorial” class like “factorial obj = new factorial();” and then “obj.fact(input);”. But it’s not calling the fact function at all. could you please help me to find out the problem. Below is my whole code. please have a look on it.

    /*****************************************************************************************************************************************/
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    namespace ConsoleApplication2
    {
    public class factorial
    {
    public int fact(int n)
    {
    int buf = 0, flag = 0;
    while (n != 0)
    {
    if (flag == 0)
    {
    buf = n;
    flag++;
    }
    buf = buf * –n;
    }
    return buf;
    }
    }
    public class Program
    {
    public static void Main(string[] args)
    {
    Console.WriteLine(“Enter n No”);
    int input = Convert.ToInt32(Console.ReadLine());
    int temp = 0, result = 0;
    factorial obj = new factorial();

    while (input != 0)
    {
    temp = obj.fact(input);
    result += temp;
    input–;

    }
    Console.WriteLine(result);
    Console.ReadLine();
    }
    }
    }
    /*****************************************************************************************************************************************/

    Like

    1. Nagaraju says:

      fact is working but your logic is wrong last it is multiplying with 0 – so the result is 0 – plz check with breakpoints

      thanks
      Nagaraj

      Like

    2. Chita Ranjan Tripathy says:

      Thanks a lot. I made changes to the fact function as per you and it’s working fine. And also i got the problem why the control was not going to the fact function during debugging. it was not going because i was using step over key during debugging though i need to use step into. So thanks a lot for your wise information. i am obliged. Thanks a lot again.

      Like

  59. mahesh shimpi says:

    Hello Sir
    I m big fan of you.
    I m your 6pm Asp batch student
    my Que is —
    what is deffrent betwn Web site And Web Application

    Like

  60. mahesh shimpi says:

    Hello Sir
    I m big fan of you.
    I m your 6pm Asp batch student
    my Q is what is deffrent between web App and web site

    Like

  61. Amit Mishra says:

    Hello sir, I want to ask if there is any fast track batch for WCF and WPF on weekends. If it is possible do start the same for the working newbies like us. Thanks Amit

    Like

  62. Amit Mishra says:

    Hello sir I want to know is there any fast track batch which can complete topics like WCF and WPF on weekend?
    We want to learn these new technology if possible please do the needful. Thanks Amit

    Like

  63. Subbu says:

    Hi Sir,
    Pls upload a n-tier architecture sample with MVC3.0 or 4…

    Like

  64. Bikash Pattanayak says:

    Hi Sir,

    I just want to ask you a a favour, in between Stord procs and LINQ which one is the better ?? Can we substitute the the use of Stored Procs with LINQ. I mean can i build any kind of asp.net websites using LINQ ???
    Im eagerly waiting for your reply.
    Thanks,
    Bikash Pattanayak

    Like

  65. kavya says:

    What’s the solution for my question sir……….?Plese Respond

    Like

    1. Nagaraju says:

      what question

      Like

  66. kavya says:

    Good evening sir,How to Impersonate a website

    Like

    1. Nagaraju says:

      Use identity tag in config or from IIS features view

      Like

      1. kavya says:

        Thank you sir

        Like

  67. kavya says:

    Hai sir im kavya,while im uploading file using fileupload control im getting ERROR MESSAGE AS….ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via , the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

    Please tell solution for this …………..Sir

    Like

  68. kavya says:

    hi sir im kavya, while iam Uploading a file to server using FileUpLoad Control im getting error as………….ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via , the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.Please help me sir……

    Like

    1. Kavya says:

      Hii sir whats the answer

      Like

  69. Chandranshu says:

    Hello Sir,

    I want ur help in how to convert dataset values in json..
    pls let me knw the dll or any other process if possible

    Like

    1. Nagaraju says:

      use json.net

      Like

  70. Ashokkumar says:

    Hello Nagaraju sir I am N.ashokkumar one of your student .I Have one problem with “Rad Grid ” control ,I want to disable the sorting functionality for particular column but i dont know which property do i use .please help me sir….

    Like

    1. Nagaraju says:

      you have to get the control and show me for help

      Like

  71. shree says:

    gud evng sir.. i’m from your 11a.m asp student.
    sir u said to download pubs but i’m unable to find it. can u please provide link. many of my friends also searching for this. if u provide we will b very thankful to you.
    thank u sir

    Like

    1. Nagaraju says:

      https://nbende.wordpress.com/for-nit-students/

      in that page click on “sample db” – u will get it

      Like

      1. shree says:

        thank you sir

        Like

  72. P.Dash says:

    Respected Sir, I’m a Student of Urs.
    Sir just yesterday when I tried to Add An .edmx file in Add New Item under VS2010 then I’m getting the following error:

    ” Could not resolve mscorlib for target framework
    ‘.NETFramework,Version=v4.0,Profile=Client’.This can happen if the
    target framework is not installed or if the framework moniker is
    incorrectly formatted. ”

    Also Sire I’m getting Same type of Error when I’m trying to add Service Reference in My Project.
    Sir I’ve Uninstalled & again installed VS.Also formatted my system….But No Use.

    Sir plz Provide Me Solution ASAP.

    Like

  73. Raghu says:

    Hi Sir,
    I would like to have your suggestion for learning Cloud Computing. Kindly guide me in this aspect.

    Like

  74. Raju K says:

    Hai sir,

    I am your student … Sir is it possible to do GPRS tracking system in asp .net like Android it will show the route map of the road ..same can we implement in asp .net..
    please suggest me sir….

    Thanks In advance.
    RAJU.K

    Like

    1. Nagaraju says:

      Yes we can do using windows phone

      Like

  75. Subrahmanyam.P says:

    Hi,
    I display a pop up window using java script.In that i have added some controls.
    I add ajax calender extender in that popup window source and gave text box as target control id but when the cursor comes to text box there calender not displaying.
    Outside of that javascript pop up window it’s working good. What am i suppose to do to display calender over there in that window itself.

    Thanks in Advance,

    Like

  76. Gaurav Wasnik says:

    Dear sir,
    please tell me, How to create autocomplete textbox using javascript in asp.net ?

    Like

    1. Nagaraju says:

      use autocompletextender it will generate js only

      Like

  77. Dharmendra Kumar Kashyap says:

    Respected Sir

    How to add Sub-menu in ASP .NET MVC3.0.?

    how to gotted beautiful design in MVC?

    Like

  78. Praveen says:

    Sir,
    I completed .NET..I heard that .NET is going to die in a few years. So many people suggesting me to learn something else like PHP. Is it true sir?

    Like

  79. Nageswararao says:

    hi sir, i am ur student ,my problem
    is i know subject sir but my problem is i am poor in explain my points please help me sir to develop my skills

    Like

  80. ashok says:

    Hello sir,I am ashok .Your Asp.net student coming to 7.30 pm bactch .Sir I have a prolblem with SMSTO INDIA webservice .

    when I am clikcing that link button it gives bellow message .I wont message to any mobile please clarify my doubt.

    Provider:Status:Please enter correct from email address to send this message

    Like

  81. Raveendra says:

    Hi Sir,

    How r u? I’m one of your WCF batch student. I’ve a WCF service developed as Service Library. This needs to be hosted in IIS7.0. Can you please let me know how can we achieve this. Please let me know good resource to explore more information on this.

    Thank you sir.

    Like

  82. biswakesan swain says:

    A page can have only one server-side Form tag

    Like

  83. Ashok says:

    Hello sir,I am Ashok,coming to your 7.30 pm batch .I got an error in Mail Program smtp

    SmtpClient serverobj = new SmtpClient();
    serverobj.Credentials = new NetworkCredential(TextBox1.Text, TextBox2.Text);
    serverobj.Port = 587;
    serverobj.Host = “smtp.gmail.com”;
    serverobj.EnableSsl = true;

    msgobj = new MailMessage();
    msgobj.From = new MailAddress(TextBox1.Text, “MyInfo”, System.Text.Encoding.UTF8);
    msgobj.To.Add(TextBox3.Text);
    msgobj.Subject = TextBox4.Text;
    msgobj.Body = TextBox5.Text;
    msgobj.Attachments.Add(new Attachment(MapPath(“freshersfn 040.jpg”)));
    msgobj.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure;

    serverobj.Send(msgobj);//error In this line
    Label1.Text = “Mail Sent Successfully”;

    Error:Service not available, closing transmission channel. The server response was: Cannot establish SSL with SMTP server 173.194.79.108:587, SSL_connect error 336031996

    please verity my program & give solution

    Thanking you sir

    Like

  84. Ashok says:

    Hello Sir,

    I am N.ashokkumar,coming to your 7.30 pm batch.I am fresher so may i required to do Microsoft certification to get job?
    Can you give any reference to me .Please help me sir

    Thanking you sir.

    Like

  85. Ashok says:

    Hello sir,

    I have a problem with GridViewDemo ie to Edit,Delete ,Update and cancel .When i am going to delete record it giving an error:
    “The object cannot be deleted because it was not found in the ObjectStateManager.”
    Mycode:

    pubs1Model.pubs1Entities p = new pubs1Model.pubs1Entities();
    var x = (from n in p.jobs select n.job_id == id).First();

    p.DeleteObject(x);//Getting error in this place —-
    p.SaveChanges();

    please calrify my doubt

    Thanking you sir

    Like

    1. Nagaraju says:

      var x = (from n in p.jobs select n.job_id == id).First();
      change the above line to

      var x = (from n in p.jobs where n.job_id == id select n).FirstorDefault();

      Like

      1. Ashok says:

        Thank you sir,Its working

        Like

  86. brahmanaidu says:

    respected sir,
    i was your student of wcf class in 2010.now i am working for ZOLT INFO SOLUTION.in my project requirement of download the zip file.i tried for that but file stream is not retrieving from the service.will please guide me how to retrieve that datastream.i tried bellow code.
    server side code:
    [ServiceContract]
    public interface IService2
    {
    [OperationContract]
    classobject Download(objectcalss fils);

    }
    [MessageContract]
    public class classobject
    {
    [MessageBodyMember]
    public System.IO.Stream Data;
    }
    [MessageContract]
    public class objectcalss
    {
    [MessageBodyMember]
    public string filename;
    [MessageBodyMember]
    public string filepath;
    [MessageBodyMember]
    public string vancode;
    }

    public class Service2 : IService2
    {

    #region IService2 Members

    public classobject Download(objectcalss fils)
    {
    classobject obj = new classobject();
    string path1 = “C:\\DataToUpload\\26-02-12”;
    string filename = “Data#2012#26-02-12Zip”;
    string both = Path.Combine(path1, filename);
    obj.Data = new FileStream(both, FileMode.Open, FileAccess.Read);
    return obj;
    }

    #endregion
    }
    client side code:
    ServiceReference1.Service2Client proxy = new WindowsFormsApplication3.ServiceReference1.Service2Client();
    private void Form1_Load(object sender, EventArgs e)
    {
    string filename = “naidu”;
    string vancode = “987dks”;
    FileStream fs = null;
    string filepath=”jflsj”;
    proxy.Download(filename, filepath, vancode);
    }
    }
    Thank you sir.

    Like

    1. raju says:

      plz sir once tel me the brief idea of “web and windows “application,what is the major difference ,, and where is it use and so like plz tel me sir.. i am 5.45-7.30 batch student…
      in one of my interview they were asked me about that perticular point .. but i am selected ..they were asked the list view,grid view control and generics,?tag,and fundamental….
      thanq u very much for sir..

      Like

  87. ram says:

    Hi Nagaraj Sir,

    i am ASP.Net developer and got information from your students about you & this website. i am facing below issue. please help me to find the root cause for this.

    The code “System.Threading.Thread.CurrentPrincipal.Identity.Name” returning null / empty some times so that web service is using app pool service account instead of domain user account.

    Can you please tell me when and in which scenario the above code will return null / empty string.

    When and in what scenario the Web (WCF) service will use app pool instead of domain user account.

    Please help us to resolve the issue.

    Like

    1. Nagaraju says:

      need code to check this

      Like

  88. ANUDEEP says:

    hello sir,

    I am a old student of asp.net..I want a sample database(pubs).It Got deleted in my system..so please provide

    Like

    1. Nagaraju says:

      it is there in my download – nit students

      Like

  89. sankarnath says:

    Hi Sir,
    Hope you are doing well.It is a great point that your english pronounce is very effective for me.give some .net idea to develop my skills.

    Thanks & Regards,
    sankarnath

    Like

  90. satya says:

    hello sir
    while developing the application for sending an email im encountered with the following error plz help me
    The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.

    Like

  91. karthik says:

    Hi sir , downloads are not working please check once

    Like

    1. Nagaraju says:

      they are working just right click and select save as

      Like

  92. Rahul Ranjan says:

    Hi Sir..
    I was one of your recent student and am in Bangalore right now.Sir,The Knowledge that You gave us wre exceptional..When I show my notes or tell my team leader and my colleagues, the concepts that u used to tell us in the class,they look gaped in astonishment….

    Now,actually I am Using Generic Handlers in one of my project pages with FileUpload controls to view images
    before uploading..I am able to do that with Single FileUpload and Single Handler.But with Multiple FileUpload controls,I get a problem..wat happens is,when I select image through 2nd fileupload control,My 1st image that I selected using the First Upload coNTrol vanishes after the postback..I even used 2 updatepanels ,where 1 update panel has 1fileupload and 1 asp:image..But still the output is the same..

    So,would you please take some time out of your busy schedule to just have a glance to my problm..I have been searching all through the internet but no such scenarios has been discussed as i found..also I have posted my question on many Forums from where also I have not received any response yet…..

    If possible,Please let me know where can I post my code and details so that U can have a better understanding of the situation..

    Thanks anyway for all your support throughout,sir….

    Like

    1. Nagaraju says:

      send me the program as zip i will check and revert back to you

      Like

  93. Farid says:

    Hi Sir,

    When you are starting EDM model in your morning .net 9-10 am batch.
    I am your presently going on WCF at 7.45 pm batch student ,it would be so grate if I go thru the EDM model concept which I am not aware of.

    Thanks,
    Farid.

    Like

  94. Akshay says:

    Hi sir,
    Sir i was your student of asp.net of December 2010 batch. Sir i am doing a academic project and i need to develop a video conferencing app in my project. What shall i do now? Can you plz help me?

    Like

    1. Nagaraju says:

      you can do provided you must have good knowledge in C#.NET applications.

      Like

  95. sir
    i am a student of nit attending your wcf batch at 7.30pm. i just need to know that VisalStudio.net-4 and all its feature will it work in windows 7 professonal

    Like

    1. Nagaraju says:

      yes they will work

      Like

  96. suresh reddy says:

    sir iam ur old student please give me .net interview questions book.

    Like

    1. Nagaraju says:

      I don’t have pdf of the book – you need to buy online or purchase from any computer bookstore

      Like

  97. suresh says:

    sir i am cuming 7:30 to 9 pm batch sir, sir i ma not getting images in the child class pages. i wrote the resolve url also error is cumming sir ,resolve url is not found telling the error. sir pls help me how to get images sir.

    Like

    1. Nagaraju says:

      ResolveUrl is the right one don’t give any spaces and all – it will work – still getting error post the line that you have written in your program

      Like

      1. suresh says:

        src=”%=ResolveUrl(“~”)%>images/India.png” />.i wrote like tis but iam not getting sir

        Like

      2. suresh says:

        sir i got the images in child pages also sir thank u very much sir, u r teaching very nicely sir i ma getting gud subject also sir ,sir i am interested to write certification exam sir pls give me sugeestion to me sir ,

        Like

  98. Mahesh Ghodke says:

    Hello Sir
    I am ur student .
    I will be developing application to get the question from text book and saving data in gridview but i will get some error
    register tag priffix in configuration file. i was try in web .config file but i will never get any solution .
    plz give me rply argently…………..

    Like

  99. Mallikharjuna says:

    Sir,

    I am ur old batch student.
    Please post .Net interview questions book written by you sir,
    We shall be evergrateful.

    Like

    1. Nagaraju says:

      there is no pdf with me – u have to buy this online/shop.

      Like

  100. Supriya says:

    Its an amazing post……makes concepts very clear….please keep em coming

    Like

  101. Sindhu says:

    sir i am sindhui am ur student can i get information about microsoft certifications and how to prepare for them and what books to follow approach to exams

    Like

  102. ashish says:

    Dear sir, i am nit student. I want to know about URL Rewriting.Please post some useful data about it.
    thanks

    Like

  103. madhuri says:

    sir,i am attending wpf classes at 7.30pm.
    1.how to deploy a database into u r windows applications.
    2.how we restore a video into db;
    can u plz help me sir

    Thanking You Sir,
    Madhuri.

    Like

  104. vollala sravankumar says:

    Hai sir,
    this website is very usefull to all .Net Family so Iam feeling is very happy.

    I was trying to run a website then it was given one error that is “Unable to connect to ASP.NET web development server” and I didn’t have any other running .NET systems so please tell me website name to download a webdev.webserver.exe.

    thanking you sir
    Rgards
    sravan kumar

    Like

  105. Krishna Reddy says:

    Hello Sir,
    i have practiced with Data Binding with LINQ using ADO.NET Entity Data Model, sir can you please provide the information using LAMBDA Expressions?

    Like

  106. Praveen says:

    Dear Sir,
    I completed my mca-2008. i am not employed anywhere. I have to learn .net. how is the opportunities in .net. What is the microsoft dynamics and siebel is there any openings for it. plz sir give me an advice.
    thanking u sir.

    Like

  107. manjunath says:

    Sir,

    Pls guide me which is the best method and
    world wide folow method that to write business class.

    Like

  108. Bhanu says:

    Hi Sir. Could you please add an article on Asp.net MVC?

    Like

  109. dln says:

    Sir,

    How to get current rowindex in Rowcommand of Gridview?

    Like

  110. adi lakshmi says:

    please reply this sir ,its very urgent…..

    sir ,
    iam adilaxmi,ur student in naresh institute.at present iam in bangalore,working in ‘bluechip computer consultants pvt ltd’.this company has its own product for which i have 2 work on asp 6.0 and vb 3.0.now iam in training,iam getting so many doubts.so can u please give me ur pesonal number..plz sir,its very much needed 4 me sir…hope u responde 2 this mail positively sir…..

    Like

  111. sujani says:

    Hello sir,
    I just want to know
    are you conducting any classes in Naresh Technology
    if so please let us know thru reply
    i am one of ur students i just want to learn about .net 3.0/3.5

    Like

  112. VijayaBhaskar says:

    Hi Sir
    I am a 9-11am batch student of you and this is very helpful site for us sir. Thank you sir. You did a great job.
    Your way of teaching & realworld scenario examples are superb sir.

    Like

  113. Gaurav says:

    Hello Sir
    I m big fan of you.
    I m your 6pm Asp batch student,i want to get some information regarding the microsoft recruitment process and what is the criteria required.and pls inform me when the new wcf batch will start.

    Like

  114. T.ANAND says:

    SIR ,
    I WANT TO SAY FEW MORE WORDS,… EVERY .NET DEVELOPER( NOVICE) MUST HAVE A TRINER LIKE U) FOR US .NET IS UNIMAGINABLE ,HORRIBLE WITHOUT A SIR LIKE NAGARAJ,.. PLZ DONT STOP TEACHING IN ANY CASE,…LAKHS ARE OWED FOR U FOR UR SERVICES,….
    REGARDS
    UR STUDENT AND FAN
    ANAND.

    Like

  115. T.ANAND says:

    HI SIR,
    IM GREAT FAN OF U,..I WANT TO ASK U A SMALL DOUBT REGARDING DYNAMIC BUTTON,…

    “I DRAGGED A SERVERCONTROL BUTTON AND GAVE BUTTON_CLICK EVENT,IN DAT CLICK_EVENT I WROTE CODE FOR CREATING DYNAMIC BUTTON DYMBTN,AGAIN FOR DAT DYMBUTTON I GAVE CLICKEVENT, NOW I WANT TO CREATE DYNAMIC GRDVIEW WHEN I CLICKED DYNAMICBUTTON, THEN IN DAT DYNAMIC GRID, I WANT DATA FROM DATASOURCE,.. ALL IS WELL I WROTE ALL CODE BUT,..FOR DYNAMCI BUTTON WHEN PAGELOADED , THIS DYNBUTTON IS DISAPEEPEARING,SO DYNBTN_CLK EVENT IS NOT GETTING FIRE,..PLZ GIVE SOME SUGGESTION,…
    REGARDS,
    UR STUDENT,
    ANAND

    Like

  116. G.Naresh Babu says:

    Hi sir this is naresh
    I have a doubt
    Q)what are the providers in 1.0,2.0, i want seperatly and differ them ?

    Like

  117. Hello Sir,
    Thanks for giving good support on .net,wcf and wf.
    Regards
    Sudhir.M

    Like

  118. rosa says:

    Hello Sir,

    I’m very much happy to be a student of u sir, the way u teach is really too good n i’m waiting for ur new batch of ajax/wpf classes sir .plz start asap as i need to go uk.

    Thanking u in advance

    roja

    Like

  119. Sagar says:

    Hi sir…we all wish you a very happy ‘Teacher’s Day’.

    Like

  120. balaji says:

    firstly, thanks for responding to me sir.
    iam sorry to say sir that i was absent to those classes due to ill health,
    i know that is not a good reason but i have to desperately learn ‘state management’ as it is
    a very important topic.though i attended class from middle i could not understand it better as did not attend the basics.
    thanking you sir

    Like

  121. Kishore says:

    Hello Sir,

    I’m kishore one of your old student. With the knowledge given by you in .Net my career is running in a software company. Once again my heartful thanks to you sir.

    Sir, i have a doubt need to rectify from your side while using Master Page in web application “can we update/refresh only the ContentPlaceHolder instead of full page postback”.

    Hope you will advise me

    Thanks in advance
    Kishore

    Like

  122. Naved says:

    Hello sir,
    I am a big fan of yours ,the way you teach is mind blowing.I really feel proud to be your student…tanx for being my teacher.
    sir i am working on one ASP.Net application,wat i wanted to do is that upload a media(video only) file into chunks so that it gets uploaded in quick time.
    As i can simply upload the file but dont know how to divide the file into chunks and integrate it again at the receiving end.
    I hope you will help me.
    Thanks In Advance

    Thanks & Regards
    Naved

    Like

  123. mahesh says:

    Hello sir,
    I am your old student,If there is someone who feels .NET is a bit hard to learn….your teaching will make him feel like “It’s ok, go on do it now” that’s all that I can say you about your teaching sir since this is what I felt in your class..now c# become my passion to find ways of magic.

    But sir though I could develop several apps, I’m having several doubts in concept.

    Now I’m taking this as an advantage to ask you about “Threads”,My requirement is like this my app should be alive though some operation is being performed …I used thread and could call the method in separate thread but, coz of updating statusstrip as a part of the operation it shows a error like”Cross threading” ,I know this is due to crossing CLR thread..but I want to know how to overcome this….besides when I run the same app excluding status strip the execution time is considerablly high than running without thread ,profiler shows this is due to thread blocking so sir can you plss help me to overcome these probs? These makes me sleepless…no googling could direct me properly….

    Thanks in advance sir.

    Like

  124. pradeep says:

    Hello sir….
    really proud to be your student….
    ur slow,steady nd depth in teachng approach really rocks…

    Like

  125. ram says:

    hi sir when are you taking ajax/silverlight classes and plz do take in morning section.

    Like

  126. ram says:

    hi sir, i have taken 2 validations Rangevalidator and RequiredFieldValidator for ProductId and set the Properties for RangeValidator as Controltovalidate, errormessage, minimumvalue, maximumvalue,type and Display dynamic property for both Rangevalidator and requiredfieldvalidator.
    but the problem is that if i am giving more than min and max value displaying in rangevalidator and if i m not enering anything error msg i coming on requiredfieldvalidator…its not displaying in a proper row order do i need to set any other property please suggest me sir..

    Like

  127. savithri says:

    sir,please inform us when u will take ajax and silverlight classes…we all are waiting for that sir..

    Like

  128. vijay says:

    sir

    this is vijay…sir let me know that when ur going to start silverlight sessions sir…my self and my friends 20 members are eagerly waiting to join in that sir,,,,

    Like

  129. Hello sir,
    I have been developing a desktop application for sending SMS.This project has a local database(MS-Access).After publishing its setup and when i am using this application in another computer , its gives error about Database path.
    so plz sir, tell me what will be the “Data source” and how can i use the Database in another computer?
    Good day sir….

    Like

  130. Srujan says:

    Hi sir,

    I’m with your ASP.NET 6 PM batch. I’m eagerly waiting to learn Ajax and SilverLight. when could probably the classes start?? As I could not get an expected date from the office.

    Like

  131. Krishna chandar says:

    Sir,
    Again sorry to disturb u atlast we tried and we got it if there is any doubts we will inform u again.
    Thank you….

    Like

  132. Krishna chandar says:

    Sir another request is kindly please give exercises for every class and for every topic that should be doable by us………

    thank you ….

    Like

  133. Krishna chandar says:

    Sir,Can u please suggest us how to load all the table names in a single database into a dropdownlist control…….

    we are asp.net 6:00pm batch at present we are at the topic Databinding……

    please help us as early as possible………….

    Like

  134. siva sateesh says:

    Hi Sir,
    I visited website first time sir,it is very nice.With ur training i selected one small company recently(3 months)in bangalore.I compleated DOt net course in Dec-May 2008 batch.And my qualification is MCA.Here work is very less,if u give any task i willing to do sir.plz give any tasks or any information.

    Thanks and Regards
    Siva Sateesh

    Like

  135. K Mehar says:

    hi,
    I am Mehar I am working in Q3 Technologies as a Software Engineer. Currently i am working with Excel Addins for Excel 2003 and .net 2005. I have created one excel project. What are the Steps for making a setup for Excel Addin. I am using VSTO tool for office. I searched my web sites but i did’t get any exact solution could send the solution for making a setup.

    Thanks and Regards
    K Mehar
    S.E

    Like

  136. pavan says:

    Hello sir,there is an oppurtunity for me i.e CMC Job Enabled Training (CJET ) is a placement program offered by CMC Ltd.wheather it is helpfull for me..i want ur advice regarding to this sir.plz send ur advice sir..

    Like

  137. Venkat says:

    Hai Sir How r u U r Teaching was very Nice

    Like

  138. srinivas says:

    hi sir,
    my name is srinivas belongs to c# batch(11am).we all are expecting ajax from u.so kindly tell ajax in this batch at same timings. thank you sir,

    Like

  139. Rupa says:

    Sir,

    I am Rupa,your student for the previous batch of asp.net. Sir will you be starting a new batch for C# in the near future? Please let us know.

    Thanks & Regards,

    Like

  140. shilpa says:

    sir
    am shilpa am your previous asp.net batch student
    sir am doing one web based project with xml back end in that project i need show the records to gridview depending upon the gender there i need to show all the records who are male or female using xml back end sir amd xml file contains 50 records. sir please help doing this

    Like

  141. NandaKumar says:

    Sir,

    We are very much comfortable with your teaching.
    Now Iam working on a project with my friends,in which my task is to convert the GridView Data into Excel,and Pdf formats.
    I completed the task of Exporting to Excel.But i need how to export to Pdf with out using third party tool.
    So,I request you to please help in this regard.
    Thanks in Advance.
    NandaKumar K,
    kumarkln@aol.com

    Like

  142. sumith says:

    1)after hearing a c#.net classes of urs,i really feel the depth of knowledge u have and also i can assume how hardwork u have done.so i like to know abt ur way of approach in learning c#.net at ur beginning days.i mean i like to know the way getting knowledge in each topic in c#.net so that i can be best in c#.net,so pls send me ur reply to follow the way in learning topics in c#.net so that i can be best in that?i hope u understand my feelings and send me some really good tips to me.

    Like

  143. sumith says:

    i like to know about the way of learning c#.net in a professioal way,when i listen ur classes,i know things well but after that i am not able to do …so inorder to do best in c#.net,in which way can i start learning and on what can i focus more?

    Like

  144. sumith says:

    1)sir,i am getting trouble with media element in wpf.when I use this control on a form,after executing, no element is seen there…its blank form ……..what will be the reason?

    2)I want to start a project in .net using win forms or wpf but i dont know what type of projects can we do using wpf,pls name some of them and also how to start a project(ie., its a stand alone project)

    Like

  145. pawan says:

    Helllo Sir,where i can get the information and tutorials of
    Mobile programing and PDA programming.
    why because in my company i got a requirement to develop PDA programming.
    Thank You Sir.

    Like

  146. nanda says:

    happy teachers day to a TRUE teacher

    Like

  147. Padmanabha Rao says:

    Hai Sir,
    With your excellent attitude and constant guidance u have made my job really easy n my confidence really boosted. I have no words to express my gratitude other than to say ‘Thank you’ for all the classes..Finally our C# ended.

    As you mentioned Saturday is our last class iam expecting some topics from u,

    1.Crystal reports.(as u mentioned)
    2.C# 3.0 Features(just overview of all the features)
    3.Entity Framework

    It would be very helpful if u tell these

    coz now a days in most of the interviews they are expecting some awareness on the 3.0 features(Query Expressions,Lambda expressions etc etc)

    Thank you n keep going on with ur gud job sir….

    Like

  148. sujatha says:

    sir,
    i am attending to asp.net morning 8.30 batch.when i was working with gridview i am getting error that myds_tables[0] doesnot exist. i created database bjjobs, i created tables with name myds.sorry sir i did not attend ur class on aug15 .please suggest me what to do.sir please help me.

    Like

  149. Venkateswara Rao says:

    HAi sir,

    This is venkat ,i had listen u classes .net when u r going to start a new batch for ajax .that date pls keep in this site and provide Java script slides also for us

    Like

  150. Zafi says:

    Sir,

    I am your student of ASP.NET(morning 6.45 batch).
    I have written the code for global chat program.

    The code is as follows:
    (in button click event after entering the message)
    Session[“sessionMsg”] = TextBox2.Text;
    if (Application[“appMsg”] == null)
    Application[“appMsg”] = Session[“sessionMsg”];
    else
    Application[“appMsg”] = Application[“appMsg”].ToString() + “\n” + Session[“userName”] + “:” + Session[“sessionMsg”].ToString();
    TextBox1.Text = Application[“appMsg”].ToString();
    TextBox2.Text = “”;

    Textbox2 is for entering the message and Textbox1 is for displaying all the messages of all users.
    (I have written other code also to take the user’s display name and stored that name in Session[“userName”])

    It is working fine, but I want the global text to be refreshed as soon as any user enters some text. Is page auto refresh the only option for it? or is there any other method that I can use to get the text updated as soon as the user in other session enters some text. And one more thing, in the chat box I am displaying the user’s display name also beside the text he types in. I want the user’s display name to be in bold letters whereas the remaining text in normal font. Is it possible to have two types of fonts in the same text box which displays the contents dynamically? I mean like using \n for new line, is there any way to make some part of the text bold?

    Sir, if you have time please try to clear these doubts.

    Thanking you, Sir

    Like

  151. Sri Harsha says:

    Sir
    Please send me some information about
    How to publish a site in to internet from ASP.NET application.
    Please sir its very helpful for me and realtime employees of your students……………
    Thanking you sir

    Like

  152. murali says:

    Sir,
    I have completed ASP.Net in this week.
    Sir, i am developing Mobile Banking using ASP.NET2.0.
    Actually its my Academic Project developed using JSP.
    Is is possible to develop Mobile Banking?
    and after developing how we get Bank Web Services which provide their DataBase. and is it possible to publish my project in Windows Live Space ?

    Like

  153. Venkateswara Rao says:

    Hi sir,

    your way teaching is excellent.Pls provide us Java Script Notes also in this blog means uses and limitations like that

    Like

  154. P.satheesh Kumar says:

    Hi sir,
    This is satheesh.your way teaching is excellent.

    Like

  155. Nagaraju says:

    For questions posted above please refer the interview questions in FAQ section of page. u will get answers.
    Thanks
    Nagaraj

    Like

  156. arun says:

    hi sir ur way of teaching is excelnt

    thanking for ur feeding the classes r going well and sunday classes r nice chatroom,caring for students is also
    nice

    Like

  157. Nagaraju says:

    Murali Check the posts data, every month they are updated, don’t look at the pages, surf the posts in the page.

    Thanks
    Nagaraj

    Like

  158. Murali Krishna.M says:

    Hello sir,

    It’s pleasure to me that as i am giving the comment.
    The Data palced in u r site was osam.
    But as u see that there are some links those not opened…
    and please update the data in u r site the same data as i am watching from the past 4 Months…… pls it should be helpful for me if update the data in ur site as soon as possible……

    These are some Of the Intervies Questions i had faced in Ventech Solutions in Chennai, a CMM level5 Company

    1.What is .Net?
    2.DIff btw java & .Net?
    3.Diff btw ASP & ASP.NET?
    4.what is Webservice?
    5.What is Dataset?
    6.Diff btw Dataset and DataReader?
    7.Diff btw ExecuteReader() & ExecuteNonQuery()
    8.What are the Validation controls available?
    9.Situations where we can use valdation controls
    (Have toexplain each and every control with example)
    10.What are WebUserControls?
    11.Diff btw WebUserControls & WebCustomControls?
    12.what is Disconnected Object?
    13.JavaScript in Validations?
    14.Difference btw Authentication and Authorization?
    15.what is Global.asax?

    thats all i had remembered

    Around 50 Min Technical interview all questions are from basics no problem ……… i had cleared the Technical round as well as H.R now i am employee of
    VENTECH SOLUTIONS…
    Chennai…

    Thank u for u r Excellent Guidence sir.
    And expect the same support from u sir.
    send me mail for Gmail id sir.
    please maintain a good contact with me sir.

    Regards,
    Murali Krishna.M

    Like

  159. Ranjith says:

    Hello sir,

    Sir how to create a report services in sql server 2005 can you please give steps for it ,even though
    my question is not related to .net languages ,plz give solution for it.Bcoz i am trying with 2 plus over experience, mainly companies asked report service only. Please help me to do that application by your valuable reply.

    Like

  160. G.Nageswara Rao says:

    sir,

    i attended for valuelabs .In technical they asked me some questions like this,
    1.is code behind and business layer are same?
    2.what business layer contains?
    3.what extra controls added in .net3.5?
    4.about custom validation control?
    5.about regular expression validator?
    6.different types of directives with explanation?
    i was confused about first two.so plz give brief about those two.
    thanks,
    Nageswara Rao.garine

    Like

  161. Rajitha says:

    Hi Sir,

    Iam your c# and ASP.net student morning batch. I have 3yrs of experience. We are working on 1.1 right now. Thats why i am coming to your classes. Your way of teaching is excellant sir. i referred some people also to join your class.

    Sir, i want to write MCTS exam. Please guide me, how to approach. I saw your posts. but still i need some help

    If i want to write MCTS exam , i need to prepare both windows and Web app? and what else i need to cover ?

    could you please guide me then i will go in to the right path.

    Thanks,
    Rajitha

    Like

  162. mahesh says:

    what is diff b/n pagedirective & controldirective

    Like

  163. Nagaraju says:

    1) Usually, String is immutable which means once you have the content there you cannot change it. While StringBuilder is mutable because it allows you to change the content you have already placed.Notice that a string allows you to change the content but offcourse it creates a new string reference. For example, all string methods return a new string and don’t update the same string variable.When you have huge ammount of concatination, best recommendation to go for StringBuilder.

    2) Yes we can goto website and in properties click on configuration.
    3) To store page level state for variables/objects
    4) there is no .net 2.5. if it is 3.5 no need in standalone case.
    5) Refer SQL Server Query Select Top 5…
    6) Boxing – converting val to reference type
    UnBoxing – converting reference type to val type
    7) .master
    8) foreach ( x in (typecast) ){……. }

    All the Best
    Thanks
    Nagaraj

    Like

  164. Radhakrishna says:

    Dear sir

    on 8 th july i attended the valuelabs 1+ written test in that they asked below qstns
    1 what is the diff between string class and string builder class
    2 can we modify the web.config file through iis
    3 what is the use of view state?
    4 is iis necessary to run the app in .net2.5?
    5 write a query to get the top 5 price list in table which is having onle the name , price in the table , data is not sorted
    6 diff between boxing and unboxing
    7 what is the extension for master page
    8 how to read the contents in arraylist using for loop

    Like

  165. Nagaraju says:

    1) using Javascript mouse event we have to stop
    2) Environment.Version will give and also somewhere in ASP.NET request object we can try
    3) Request.Url will give
    4) EventArgs is the second argument which is actually class through which the parameters are passed.
    5) For <form DefaultButton=”button1″ … will do
    6) Assign DataView as source to Datacontrol. No need to write any additional code
    7) ConfigurationManager.ConnectionStrings[]
    8) using Javascript Open with ClientClick event of ASP.NET Button.
    ——————–
    Why u are unable to answer these questions atleast few of them should be answered by u. Take Care

    Thnx

    Nagaraj

    Like

  166. sithara says:

    sir, i am attending for c# and ASP sessions n one of the my friend previously attend interview. The Questions are as follows : if you have time please send the answers to my mail.

    1)HOW TO DISABLE A RIGHT CLICK OPTION IN A WEB PAGE?
    2)HOW DO U FIND OUT WHAT VERSION OF ASP.NET I AM USING ON MY MACHINE?
    3)HOW DO U GET URL WITHOUT QUERY STRING?
    4)WHAT IS XXX (SCR AS OBJECT, E AS I:WHEN ARGS [ ] ?
    5)HOW CAN I TRIGGER A SUBMIT ON MY FORM WHEN THE ENTER KEY IS PRESSED?
    6)HOW TO ENTER DATA IN THE DATAVIEW AND DISPLAY THE SAME IN DATACONTROL IN C#?
    7)HOW TO BUILD CONNECTION STRINGS FROM WEB.CONFIG FILE?
    8)HOW TO OPEN A NEW WINDOW WITHOUT IE MENUS AND TOOLBARS ON THE CLICK OF A BUTTON?

    Like

  167. Naveen . K says:

    very goodsite useful every student

    Like

  168. naresh says:

    Hi sir! this is naresh of ur previous batch i.e feb 2008
    i recently got recruited in a company with (1+ exp).which is product based and that deals the Bio-metric projects like finger print detection,face detection for that they are providing me a MEGA MATCHER SDK . i dont know how to use this third party library. can u suggest me valuable information on that SDK.

    Like

  169. Ravindra Reddy says:

    Hi sir,
    when using login page ,once i login again it will go to login page when i click back button how to disable that.
    In the same way once i sign out iam able to move to secured pages by clicking back button, how to avoid this….. please help me
    regards,
    Ravindra Reddy

    Like

  170. Abitha says:

    Sir,
    your teaching is good,
    I am understanding the things taught by u,

    Like

  171. Ravindra reddy says:

    Hi sir,
    last weak u kept some materials for download .can u place it again.if possible xml material

    Like

  172. suma says:

    Gud afternoon sir,

    I am student of NIT.

    First of all thank you for your guidance for al kinds of solutions. Sir am getting a problem while uploading multiple files into database using stored procedures. And also how to retrieve the data (text or image) from database.
    pls send us the code for this using fileupload control.

    thank you sir

    Like

  173. Rajesh Yeleti says:

    Dear sir,
    I am ur student,learnig .Net Pack. Ur way of teaching is excellent. Its very impressive.This site is very useful for us. And it would be be better if its up to date…(I know u r very busy scheduled,even though please keep up to date.)Thank u sir,

    Like

  174. gopinath says:

    hello sir
    i am ur student sir i want some projects using asp.net so please add some more projects in u r project block thanx sir

    Like

  175. subba reddy says:

    what is the difference between Anchor and Dock?

    Like

  176. Mohammed Sayeed says:

    Dear sir,

    Please suggest me best books for AJAX and WEBSERVICES.

    Thank you for your valuable guidance

    Like

  177. M.Manjula says:

    hello sir,
    Good Afternoon
    This is Manjula,i am ur student n i am 2005 b.tech passout student. Sir my question is suppose if i kept 1 or 2 years experience(fake) then on which .net version interviewer going to ask question.

    – plz forward interview questions with answers(+1)n(+2) to my mail id.
    – can i get information about microsoft certifications and how to prepare for them and what books to follow approach to exams

    Like

  178. krishna chaitanya says:

    Sir i am ur mor 8.30 asp batch student sir.I have one basic doubt.Can u explain the duties of compiler ,assembler,and interpreter Or compilation and execution process of C program.In the compilation process is assembler come into picture

    Like

  179. ranganadh says:

    sir,
    can u teach AJAX Controls for evening 6:30 batch?
    or we had to join seperately for AJAX?

    Like

  180. pradeep kumar Mithinti says:

    sir,
    I am pradeep Kumar taking .net course..I would like to know about ILDASM…

    Like

  181. dheeraj says:

    what is the difference between inline and code behind page model?

    Like

  182. Pawan says:

    sir,
    I am pawan attending ASP.NET and C#.Net class.
    I have one doubt in ASP.NET. How to make fixed header gridview like excel.Which have both scroll bars(I got) and fixed gridview headers i.e when i scroll vertical or horizontal scroll bar columns should be fixed(I have 23 columns and 15000 rows. i want without paging).if you can send some code or link it will be helpful.

    Regards
    Pawan

    Like

  183. rahul says:

    respected sir,
    sir ur class is too good to learn real time concepts ur teaching is exlent sir
    sir yesterday we learned mailing concept,if i run in local smtp server(iis) what id i will give to send mail to my system i gave serverhost was local host
    thanking you sir,

    Like

  184. Sudha says:

    Hi,
    How to receive my Oracle Database SMS message from PDA.
    pls give me solution

    Like

  185. prasad says:

    sir,

    good morning,

    i have a problem in ms.net i.e,

    In Dotnet we run the program automatically dll file is created.but i will run the program output is coming but dll files are not created.why?

    please give me the answer,

    Thank u,
    Prasad.

    Like

  186. sir,
    iam doing my ASP.net program ,when it starts .net shows a message like “ASP.net failure to configure ur website”.In proper way iam creating my website sir ,So how to solve it sir,thanking u sir .

    Like

  187. rahul says:

    sir,
    iam doing one project my project theme is administrator
    provide diffrent styles of id crads,and users used them for id cards but this is required runtime controle which is used to set picture box and all requierd filds but i dont how it implement like .net controls plz help me sir
    thankyou sir

    Like

  188. jyothi m says:

    thanq

    Like

  189. jyothi says:

    Hi sir

    plz forward interview questions(+1) to my mail id.

    Like

  190. Rekha sri says:

    Hi Sir,
    First of Very thankful to u for given immediate reply and for this notes.Plz update some more notes on this site.Aswell plz update that comment no.18 questions.
    Thank u sir……….

    Like

  191. Haribabu says:

    sir, i am attending for c# and ASP sessions n one of the my friend previously attend to exensys(Previously known as Holool India) interview. The list of Questions are as follows : try to answer all the questions and please send the answers to my mail.

    1. Use of Enable view state ? if turn off what happen ?
    2. Response.write,server.transfer difference which one is used when ?
    3. server.transfer limitation ?
    4. how can i kill user session ?
    5. wild card character in sql ?
    6. can aspx page contains two pager tags ?
    7. can aspx page have multi language declarations ?
    8. readonly syntax ?
    9. which control is used to compare two controls?
    10. two common propertys for any validation contro ?
    11. what is an assembly ?
    12. what is inheritancy where u required ?
    13 polymorphism and advantage ?
    14. what is the method while we are using adapter and dataset ?
    15. what are the things we generally declare in session_start , application_start ?
    16. .net class library to find unique key?
    17. can Array contains different datatypes ?
    18. ACID properties ?
    19. which tag i need to use manually to bind columns in a datagrid ?
    20. throw exception and rethrowing difference. ?
    21. when garbage collector come into picture. ?
    22. what is code behined and an aspx files are for?
    23. how u maintain data while navigating one page to another

    Please send the answers……………..

    Like

  192. naveen says:

    hi sir,
    ur teaching is really excellent. im doing successfully the xercises u r giving in class but i missed ur introduction classes. my doubt is what is difference between doing a project n web form (i mean y c sharp is for and asp is for?)
    though my doubt is silly plz answer me
    -naveen

    Like

  193. kasthuri kedharnadh says:

    hello sir iam your c# and ASP.net student o morning batch
    your way of teaching is very good please carry on in that way only dont consider anybody iam grasping more and more subject from u your way of explanation is very very good and please give one example for each and every concept through that we gain more

    thanking you sir…………….

    Like

  194. Revati says:

    Good Afternoon sir,
    Iam ur old student.I need a help from u sir.we are using 3rd party software(worldpay.com)for payments.This is my task in my project.I dont know how to start.iam not getting any idea how to do but iam much interested to do.
    i gathered some information from worldpay.com ,but still i want some more information from you sir.
    Thanking You sir

    Like

  195. harini1827 says:

    sir,

    we r not able to see the second project(consultancy project) please help us and proceed us to do the project

    Like

  196. prasadparuchuri says:

    sir i am prasad i am ur student can i get information about microsoft certifications and how to prepare for them and what books to follow approach to exams
    i never miss ur classes i like them very much
    i have already got placed in wipro and also got trained in .NET but to get sitll perfection i am very sure i can get perfection but i need to do still better in .NET

    Like

  197. Haritha says:

    Sir,
    Your teaching was really excellent.
    We are really thankful to you sir.

    Like

  198. sk.moulali says:

    sir,
    i have one problem with my pc. when i open IIS in settings
    it opens but there is no tree to expand on left hand side. sir plz kindly tell me what was the problem in it.

    Like

  199. swapna says:

    Respected Sir,

    I have querry on openings. Right now im a student in ur class, i came to know regarding the openings(value labs etc..). After completing my course how do i get the information regarding the openings
    Waiting for ur reply..
    Thanking u,
    Swapna

    Like

  200. mahesh says:

    Thank u sir for providing this notes

    Like

  201. chiranjeevi says:

    Respected sir,

    Firstly i am a big fan for ur teaching and the topics that u have covered in ASP.NET and C#.NET.

    sir, a small doubt, when i am running my ASP.NET program using HTTP then my program is not renderring on the browser automatically but after building(running success) my program, if i open a new window (browse) and giving the path as shown the here ” http://localhost/websitename/default.aspx” it is renderring.

    note: my program is not throughing any errors , i am doing it windows vista and if it is with INTERNET EXPLORER OPTINS ,please specify those in detail.

    Like

  202. pavan says:

    hi Sir,
    This is ur student pavan .ur teaching is excellent.so i now many to u

    Like

  203. mohanababu.sompalle says:

    verygood sites in .net slides is very usefull
    very thankfull sir

    Like

  204. praveen says:

    hi sir,
    this blog is really very useful for us,especially for interview going guys.we will be very thankfull to you if you post more interview questions in this blog.
    ok sir have a nice day.waitingfor your post.

    Like

  205. prasanth says:

    hai sir,
    thanking you sir because this kind of opportunites to given for the students. these are very helpful for the students

    Like

  206. gayathri.Tanikella says:

    Sir,
    Iam Gayathri Your student at naresh institutes, i was little bit scary to raise doubts at class but i do conform them at labwork and your way of conceptual teaching is really excellent and we gain alot from these websites so keep on encouraging……………………….

    Like

  207. srinivas.m says:

    Dear Sir,

    Thanking you sir providing these questions

    the questions are very useful.

    thank you sir,
    srinivas.m
    nit student

    Like

  208. praveen says:

    hi sir,
    we are eagarly waiting for this post from you,please post interview questions,so that we can prepare for it.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s