tag:blogger.com,1999:blog-5199087724247829980.post9071037752393112830..comments2023-05-30T12:47:39.613-07:00Comments on asp.net interview questions: ASP.NET Interview Questions by topicUnknownnoreply@blogger.comBlogger29125tag:blogger.com,1999:blog-5199087724247829980.post-80785176907289155932018-04-30T09:32:45.091-07:002018-04-30T09:32:45.091-07:00MSDN quote:
"When an ASP.NET page runs, the p...MSDN quote:<br />"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."Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-36710515297768072762017-01-13T03:16:38.540-08:002017-01-13T03:16:38.540-08:00hi . actually i applying SqlCommandBuilder.there o...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<br />here is the script<br /><br />string CS = ConfigurationManager.ConnectionStrings["DBCS"].ConnectionString; <br /> using (SqlConnection con = new SqlConnection(CS))<br /> { <br /> SqlDataAdapter da = new SqlDataAdapter((string)ViewState["QUERRY"], con);<br /> SqlCommandBuilder bldr = new SqlCommandBuilder();<br /> bldr.DataAdapter = da;<br /> DataSet ds = (DataSet)ViewState["DataSet"];<br /><br /> if (ds.Tables["STUDENT"].Rows.Count > 0)<br /> {<br /> DataRow dr = ds.Tables["STUDENT"].Rows[0];<br /> dr["Name"]= TextBox3.Text ;<br /> dr["Totalmarks"]=TextBox2.Text ;<br /> dr["Gender"]= DropDownList1.SelectedValue;<br /> }<br /> int rowupdate= da.Update(ds,"STUDENT");<br /> if (rowupdate > 0)<br /> {<br /> Label1.ForeColor = System.Drawing.Color.Green;<br /> Label1.Text = "Row uodated = " + rowupdate.ToString();<br /><br /> }<br /> else<br /> {<br /> Label1.ForeColor = System.Drawing.Color.Red;<br /> Label1.Text = "NO Row uodated ";<br /> <br /> }<br /><br /> Label2.Text = bldr.GetUpdateCommand().CommandText;<br /> }<br />the error <br /><br />ExecuteReader: CommandText property has not been initialized<br /><br />Line 67: int rowupdate= da.Update(ds,"STUDENT");Anonymoushttps://www.blogger.com/profile/16686925077184419051noreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-87148948810674846512016-09-11T08:38:14.783-07:002016-09-11T08:38:14.783-07:00Dear Venkat Sir,
Your tutorials are very easy and...Dear Venkat Sir,<br /><br />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.<br /><br />But there is one particular section which I am still confused <br />Postback and Page Events <br />Can you please explain what are these events(PRE_INT,INT,PRE_LOAD) and what are the things which we can do.<br /><br />Thank you very much again........Anonymoushttps://www.blogger.com/profile/13327868326086126634noreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-11814702176803785042016-05-12T08:49:17.355-07:002016-05-12T08:49:17.355-07:00Call GC.KeepAlive() method.. Helps to retain objec...Call GC.KeepAlive() method.. Helps to retain object from garbage collector. Majorhttps://www.blogger.com/profile/16819473816595104604noreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-84200672084484393112016-04-02T07:41:20.335-07:002016-04-02T07:41:20.335-07:00Hi Venkat, Can you please give me the answer for b...Hi Venkat, Can you please give me the answer for below question. This was one of my interview questions<br /><br />how do we retain our object in memory though we are not using it. Its memory should not be cleaned up by Garbage collectorAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-43719679765975502016-01-27T03:00:26.475-08:002016-01-27T03:00:26.475-08:00As you can store the Base64 string in Session so C...As you can store the Base64 string in Session so Convert the image in Base64 as follows.<br /><br /> using (Image image = Image.FromFile(Path))<br /> { <br /> using (MemoryStream m = new MemoryStream())<br /> {<br /> image.Save(m, image.RawFormat);<br /> byte[] imageBytes = m.ToArray();<br /><br /> // Convert byte[] to Base64 String<br /> string base64String = Convert.ToBase64String(imageBytes);<br /> return base64String;<br /> } <br /> }Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-69963662787591242492015-11-27T05:55:46.990-08:002015-11-27T05:55:46.990-08:00Thanks for ur effort...really so useful ......coul...Thanks for ur effort...really so useful ......could you please upload the coding part too which would generally ask in interviews Mounihttps://www.blogger.com/profile/03620928605728568264noreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-48210451051252784552015-11-11T10:34:18.304-08:002015-11-11T10:34:18.304-08:00Can we store image in session??Can we store image in session??Anonymoushttps://www.blogger.com/profile/11608371939354602049noreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-81476045441779433852015-04-10T23:36:05.020-07:002015-04-10T23:36:05.020-07:00DataSet ds=new DataSet();DataSet ds=new DataSet();Anonymoushttps://www.blogger.com/profile/04700864699930382606noreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-24029635684178697522015-03-22T23:51:59.815-07:002015-03-22T23:51:59.815-07:00how to create the crystal report in asp .net..how to create the crystal report in asp .net..Anonymoushttps://www.blogger.com/profile/01802989024330847873noreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-50979911393343505012015-01-10T18:56:27.879-08:002015-01-10T18:56:27.879-08:00HI Venkat,
Thanks for the videos and explanations...HI Venkat,<br /><br />Thanks for the videos and explanations. I have question like all the objects of same class will have same size of memory or not?<br />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?Chandrashaker MCAhttps://www.blogger.com/profile/17831373653424596009noreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-20312458152124597612014-08-13T23:11:31.559-07:002014-08-13T23:11:31.559-07:00DataSet ds=new DataSet();
check this line u have ...DataSet ds=new DataSet();<br /><br />check this line u have miss dsRahul Mutrejahttps://www.blogger.com/profile/06777677993935375410noreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-79628812339216708472014-03-23T23:32:11.198-07:002014-03-23T23:32:11.198-07:00Validators in ASP.NET support which data type like...Validators in ASP.NET support which data type like int, string, both or none of these?????????Testhttps://www.blogger.com/profile/11975362640382646696noreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-78420320304786736322014-01-02T22:45:13.775-08:002014-01-02T22:45:13.775-08:00WEB.CONFIG:- The Web.Config files specify configur...WEB.CONFIG:- The Web.Config files specify configuration setting for a particular web application and are located in the application root directory.<br /><br />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.Anonymoushttps://www.blogger.com/profile/15020101254130483286noreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-38874383264570419062013-07-30T10:28:30.509-07:002013-07-30T10:28:30.509-07:00hi sir your tutorials are really good and help ful...hi sir your tutorials are really good and help full<br />i have a small problem that is<br /><br />1) what is the main differences b/w the machine.config and web.config....<br /><br />2) configurationManager doesn't apper inspite of adding using system.configuration import statement without error? why?<br /><br />3)what is the main difference b/w writing connectionstring in appsetting and connectionstrings section?Anonymoushttps://www.blogger.com/profile/14373115541640065920noreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-46902644748237086932013-06-18T19:33:55.172-07:002013-06-18T19:33:55.172-07:00Hello sir , first of all thank you for doing such ...Hello sir , first of all thank you for doing such a nice task for us,its very useful .......<br />Please provide OOPs concepts also in a different section . Again thanksyadav_babluhttps://www.blogger.com/profile/06375166710580311403noreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-67590064091513048002013-05-21T21:50:37.089-07:002013-05-21T21:50:37.089-07:00sir can u tel me the errors in following code?
us...sir can u tel me the errors in following code?<br /><br />using System;<br />using System.Collections.Generic;<br />using System.Linq;<br />using System.Web;<br />using System.Data;<br />using System.Data.Sql;<br />using System.Data.SqlClient;<br /><br />public class Class1<br />{<br /> public Class1()<br /> {<br /> public DataSet getinfo()<br /> {<br /> sqlConnection con=new sqlConnection("Data Source=SATISHRI\\SQLEXPRESS;Initial Catalog=satish;Integrated Security=True");<br /> sqlDataAdapter da=new sqlDataAdapter("select * from student", con);<br /> DataSet=new DataSet();<br /> da.fill(ds);<br /> return ds;<br /> }<br /><br /> }<br />}1https://www.blogger.com/profile/16177357622087659016noreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-16870289838688989232013-05-21T05:05:13.041-07:002013-05-21T05:05:13.041-07:00hi sir your tutorials are really good and helpfull...hi sir your tutorials are really good and helpfull<br />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<br />1https://www.blogger.com/profile/16177357622087659016noreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-56781341821500152432013-05-14T09:10:06.089-07:002013-05-14T09:10:06.089-07:00Sir,your videos will prove to be a turning point i...Sir,your videos will prove to be a turning point in my career. God bless you sir. Keep up the good work.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-60493232076698070402012-09-04T19:15:33.521-07:002012-09-04T19:15:33.521-07:00What is the name of the 2nd file that is generated...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 purposeVishwahttps://www.blogger.com/profile/17106695200459523255noreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-66255481608564016072012-07-27T03:10:01.993-07:002012-07-27T03:10:01.993-07:00This site must be Oscar awarded site. Awesome blog...This site must be Oscar awarded site. Awesome blog not seen such a blog ever in my life.....Pratiknoreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-9814827368361414112011-12-27T09:27:47.899-08:002011-12-27T09:27:47.899-08:00hi venkat can i know u r details..... r u from hyd...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........Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-24505807323361167192011-11-17T12:07:29.024-08:002011-11-17T12:07:29.024-08:00nice...its very helpful.........nice...its very helpful.........Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-34644476750592276382011-10-26T03:49:47.279-07:002011-10-26T03:49:47.279-07:00Great ........This is the best site i ever seen......Great ........This is the best site i ever seen.....i get all info at one place......Good workAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-81650230004961274342011-09-18T07:04:14.138-07:002011-09-18T07:04:14.138-07:00U should add a section for Object Oriented and .Ne...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.Anonymousnoreply@blogger.com