tag:blogger.com,1999:blog-6082652835152798567.post3331229605338324637..comments2024-03-28T00:58:12.736-07:00Comments on Sql server, .net and c# video tutorial: Controllers in an mvc application - Part 4Unknownnoreply@blogger.comBlogger23125tag:blogger.com,1999:blog-6082652835152798567.post-44179467798074242942019-03-04T09:47:24.492-08:002019-03-04T09:47:24.492-08:00home is a child class of parent class controller s...home is a child class of parent class controller so index fuction is the method of home class whose inherit to controller class <br />Anonymoushttps://www.blogger.com/profile/06709329535843798010noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-6759082477438857222018-07-11T19:14:11.713-07:002018-07-11T19:14:11.713-07:00It seems that you have not configured web.config f...It seems that you have not configured web.config file correctly.<br />Open web.config file.<br />Under tag add below tag<br /><br /><br /><br /><br /> <br /> .<br /> .<br /> .<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-18213831884243153132017-06-29T05:04:02.423-07:002017-06-29T05:04:02.423-07:00Hello
I having to some exception to convert xml da...Hello<br />I having to some exception to convert xml data file into web and i want to import that file in .xlsx format please post this solution as soon as possible.<br />thanksPrem Sharan vermahttps://www.blogger.com/profile/14354614409034487466noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-40407953482584015602017-05-30T01:28:59.559-07:002017-05-30T01:28:59.559-07:00
I am getting the below trace error even though i ...<br />I am getting the below trace error even though i have written a trace element in the web.config file.<br /><br />Trace Error <br /> Description: Trace.axd is not enabled in the configuration file for this application. Note: Trace is never enabled when Anonymoushttps://www.blogger.com/profile/10754110712655177582noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-71242105874057924592017-05-16T02:06:37.127-07:002017-05-16T02:06:37.127-07:00How to pass three paramaeters in to url?
public ...How to pass three paramaeters in to url?<br /> public string Index(string id,string name,double salary)<br /> {<br /> return "Your id : =" + id+"<br>"+<br /> "Your name is :"+name + "<br>" +<br /> "Your salary is :"+salary;<br /> }<br /><br />url::http://localhost:23105/Home/Index/10?NaMe=suresh&&salary=1000<br />Anonymoushttps://www.blogger.com/profile/17256873810033901305noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-62582695247454697362017-05-16T02:05:15.928-07:002017-05-16T02:05:15.928-07:00its work fine.I think ur controller name might be ...its work fine.I think ur controller name might be wrong.plz check your controller....<br />Otherwise plz post error message Anonymoushttps://www.blogger.com/profile/17256873810033901305noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-85993422917976824382016-04-15T12:44:57.927-07:002016-04-15T12:44:57.927-07:00That piece of code does't work proper..please ...That piece of code does't work proper..please clarify<br />public string Index(string id, string name)<br />{<br /> return "The value of Id = " + id + " and Name = " + name;<br />}Anonymoushttps://www.blogger.com/profile/05179586263377114657noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-90829567378436546022016-01-30T00:28:24.437-08:002016-01-30T00:28:24.437-08:00It is not required to pass id. We can send variabl...It is not required to pass id. We can send variables to action method through URL also like query strings in asp.net.littlestepshttps://www.blogger.com/profile/13566322493145480733noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-84206307747858964332016-01-30T00:24:25.436-08:002016-01-30T00:24:25.436-08:00We wont use pass id specifically. What it means is...We wont use pass id specifically. What it means is we can pass variables into action method through URL of the request littlestepshttps://www.blogger.com/profile/13566322493145480733noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-21390421748219914582016-01-30T00:16:51.958-08:002016-01-30T00:16:51.958-08:00You can use viewdata or viewbag to get the value o...You can use viewdata or viewbag to get the value of that variable in the view.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-78343865234724292352015-10-26T03:52:08.060-07:002015-10-26T03:52:08.060-07:00Why we r passing id and when it needs. I don't...Why we r passing id and when it needs. I don't understand actually why we r passing id here.. what is advantage of it.Anonymoushttps://www.blogger.com/profile/04306681735883906103noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-87891377545164922032015-07-26T08:11:50.271-07:002015-07-26T08:11:50.271-07:00Hello,
As you mentioned the URL should not include...Hello,<br />As you mentioned the URL should not include the project name then how should we access multiple projects on same system using loclhost/controller/action name.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-91835294084926725912015-06-03T02:32:10.433-07:002015-06-03T02:32:10.433-07:00hi sir,
can u tell me about routes.IgnoreRoute...hi sir,<br /> can u tell me about routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); <br /><br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-62712371352809983202015-01-30T04:44:54.518-08:002015-01-30T04:44:54.518-08:00string is nullable type, but int is not if you cha...string is nullable type, but int is not if you change data type of name parameter you will see exceptionAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-22745944468690591752015-01-21T21:20:05.061-08:002015-01-21T21:20:05.061-08:00Controller is Auto Included in the Name so when we...Controller is Auto Included in the Name so when we enter /Home MVC search for HOME controller am i right @venkat <br />#jawadahmed Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-16064106441078376952014-06-06T05:21:54.295-07:002014-06-06T05:21:54.295-07:00Hi Anudeep ,Just you remove project name from url ...Hi Anudeep ,Just you remove project name from url <br />localhost/controlname/actionmethod(localhost/home/index)<br /><br />try this it will workrupalhttps://www.blogger.com/profile/02585071385774450821noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-5338237928195115412014-04-21T04:24:24.484-07:002014-04-21T04:24:24.484-07:00Why we take return type string instead of ActionRe...Why we take return type string instead of ActionResult and how will i get value in view by using ActionResult return type ?<br />Mukesh Dutthttps://www.blogger.com/profile/18250428788982875774noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-76064642125499819122014-03-23T00:07:54.477-07:002014-03-23T00:07:54.477-07:00Hi you don't have to pass HomeController if yo...Hi you don't have to pass HomeController if you want to point to 'Home' action.....<br />Routing Engine will take care of appending Controller on ur behalf(as a browser client). Its a 2 step process that happens after you specify the url in the browser & hit enter.<br />First is appending 'Controller' to the controller information(in ur case 'Home') in the url and Second is search for the HomeController within the MVC application that's executing... rj 007https://www.blogger.com/profile/17404973608033048287noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-89101141854450335322014-01-28T01:27:53.444-08:002014-01-28T01:27:53.444-08:00Hi Pragim
If I, pass HomeController in url insted...Hi Pragim<br /><br />If I, pass HomeController in url insted of Home, it give an error, why?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-23403265905501951992014-01-06T02:30:22.937-08:002014-01-06T02:30:22.937-08:00Hi,
In this chapter, we have written Index method...Hi,<br /><br />In this chapter, we have written Index method of Home Controller as below<br /><br />public string Index(string id, string name)<br /> {<br /> return "ID = " + id + "Name = " + name ;<br /> } <br /><br />We made only "id" parameter as optional in Global.ascx but not "name" parameter right. Even though, we are aren't passing any value to "name" parameter, how its taking empty string as its default value.<br />Anonymoushttps://www.blogger.com/profile/14658107862629951549noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-75876257790957420412013-10-06T07:22:43.776-07:002013-10-06T07:22:43.776-07:00hello
I have already tried your first Mvc applica...hello <br />I have already tried your first Mvc application.but the fact is that localhost//MVCDEMO/ is showing resource not found.I cant figure it out plz help.<br />Anudeepnoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-957359799716030622013-09-01T02:34:49.375-07:002013-09-01T02:34:49.375-07:00That is by convention in MVC. All controllers will...That is by convention in MVC. All controllers will have Controller suffix. This suffix is not required in the URL. So, if you want to invoke Home controller, you specify /Home and not /HomeController. Hope this clarifies your question.Venkathttps://www.blogger.com/profile/11295753737388828672noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-56921627759501652013-08-31T22:27:58.486-07:002013-08-31T22:27:58.486-07:00hi,
You said by default it will look for "Ho... hi,<br /> You said by default it will look for "Home" Controller which is provided in defaults values. But you named it as "HomeController" in your demo. How it can know that "HomeController" is "Home"?Anonymoushttps://www.blogger.com/profile/18151505893586271600noreply@blogger.com