Part 13 FormCollection in mvc

  Рет қаралды 358,501

kudvenkat

kudvenkat

Күн бұрын

Пікірлер: 78
@Csharp-video-tutorialsBlogspot
@Csharp-video-tutorialsBlogspot 11 жыл бұрын
Thank you very much for taking time to give feedback. In the description of this video, I have included the link for ASP .NET, C#, and SQL Server playlists. All the videos are arranged in logical sequence in these playlists, which could be useful to you. Please share the link with your friends who you think would also benefit from them. If you like these videos, please click on the THUMBS UP button below the video. For email alerts, when new videos are uploaded, you may subscribe to my channel.
@robertosterberg
@robertosterberg 8 жыл бұрын
Thank you Venkat for making MVC understandable and Fun to learn. I think that building on what you previously showed in your videos is a great way to learn. Keep it up!!
@samirayusifova4518
@samirayusifova4518 9 жыл бұрын
Perfect as always!! Venkat, you are the best of the best!!
@PedroGirona
@PedroGirona 4 жыл бұрын
Thank you very much from my heart for your tutorials. They are PERFECT!
@bheesham1985
@bheesham1985 11 жыл бұрын
how can i connect throgh entitity framework
@vityamv
@vityamv 5 жыл бұрын
yeah, the tutorial starts with EF and then this ADO coming from nowhere :(
@theZINGcollection
@theZINGcollection 9 жыл бұрын
I don't get it.. Why are you still using ADO.NET when you're working with EF?
@ashvinbhuttoo
@ashvinbhuttoo 8 жыл бұрын
+Visovan Iuliu Yep exactly my thoughts.. Also i am getting the index command separated in the gender field, weird.. like "Male,3", had to strip it off with split(). public ActionResult Create(FormCollection formCollection) { Employee employee = new Employee(); // Retrieve form data using form collection employee.name = formCollection["name"]; employee.gender = formCollection["gender"].Split(',').First(); employee.title = formCollection["title"]; employee.departmentid = Convert.ToInt32(formCollection["departmentid"]); using (var ctx = new EmployeeContext()) { ctx.Employee.Add(employee); ctx.SaveChanges(); } return RedirectToAction("/Index"); }
@ahmadahsan5146
@ahmadahsan5146 8 жыл бұрын
+Visovan Iuliu You are right why ADO.NET when Entity Framework is there. Is it not possible to use enitiy framework with business logic objects?
@theZINGcollection
@theZINGcollection 8 жыл бұрын
+ahmad ahsan Entity framework can do anything.
@ahmadahsan5146
@ahmadahsan5146 8 жыл бұрын
Thanks for your answer. Yep you are right, actually part 16 of this series also clear my confusion.
@arianitonline8748
@arianitonline8748 8 жыл бұрын
I think cuz this Asp.Net MVC series are a bit old
@mohsinnaveed9082
@mohsinnaveed9082 8 жыл бұрын
Great Work Man, very informative Thanks.
@CheeseBae
@CheeseBae 10 жыл бұрын
Wow, Venkat, I had no idea you were so young.
@dsingh3205
@dsingh3205 11 жыл бұрын
Thank you sir once again for uploading two more videos on MVC. HAVE A GREAT DAY.
@nataliaps
@nataliaps 11 жыл бұрын
is there anything like ModelState.IsValid for the formcollection?
@jautrsezis
@jautrsezis 11 жыл бұрын
Can someone tell me why at top of the posted values i see also the "Key_pbkY4ddM...?"
@N3PatHYA
@N3PatHYA 9 жыл бұрын
jautrsezis i had the same issue. Have u solved it?
@BrettStrife
@BrettStrife 9 жыл бұрын
jautrsezis N3PatHYA You need to set the primary key to auto-increment, or else if you have a non-nullable column, with no default value, if you provide no value it will error.To set up auto-increment in SQL Server Management Studio:Open your table in DesignSelect your column and go to Column PropertiesUnder Indentity Specification, set (Is Identity)=Yes and Indentity Increment=1 But I had to make a new table to set this property..
@ivandiazToti
@ivandiazToti 8 жыл бұрын
great work pal... thanks for the tutorial
@Csharp-video-tutorialsBlogspot
@Csharp-video-tutorialsBlogspot 8 жыл бұрын
Thank you very much for taking time to give feedback. This means a lot. I am very glad you found the videos useful. I have organised all the Dot Net & SQL Server videos in to playlists, which could be useful to you kzbin.infoplaylists?view=1&sort=dd If you need DVDs or to download all the videos for offline viewing please visit www.pragimtech.com/kudvenkat_dvd.aspx Slides and Text Version of the videos can be found on my blog csharp-video-tutorials.blogspot.com Tips to effectively use my youtube channel. kzbin.info/www/bejne/r2ibYYCtnb5qZtU If you want to receive email alerts, when new videos are uploaded, please subscribe to my youtube channel. kzbin.info If you like these videos, please click on the THUMBS UP button below the video. May I ask you for a favor. I want these tutorials to be helpful for as many people as possible. Please share the link with your friends and family who you think would also benefit from them. Good Luck Venkat
@AbhishekTiwari-sg7bd
@AbhishekTiwari-sg7bd 6 жыл бұрын
Can i send Form Collection value from the Focusout Event to Controller ?
@orcunozdil8227
@orcunozdil8227 9 жыл бұрын
Hello Mr.Venkat, thanks for your videos. could you give please an example with a datetimepicker as a htmlhelper?
@vityamv
@vityamv 5 жыл бұрын
why is the con string ["DBCS"] ??
@gustavodanielpalmaestrada6614
@gustavodanielpalmaestrada6614 2 жыл бұрын
"DBCS" is the connection name in web.config
@gurunathrao2985
@gurunathrao2985 5 жыл бұрын
Great tutorials Venkat !!! Keep up the good work
@jaswantrajput437
@jaswantrajput437 10 жыл бұрын
Excellent Work Venkant !!!!!!!!!! Excellent efforts
@gustavodanielpalmaestrada6614
@gustavodanielpalmaestrada6614 2 жыл бұрын
Hi, I'm using VS2017 and when I execute the foreach formcollection I get this key above Key = Name Venkat: Key = __RequestVerificationToken Lj8X4XJWGmvHQxflmEK0te..... What is this for?
@karananeja8054
@karananeja8054 4 жыл бұрын
I've followed the same steps mentioned in the video! but i'm not able to save any data to Db! Any idea what might be wrong?
@gustavodanielpalmaestrada6614
@gustavodanielpalmaestrada6614 2 жыл бұрын
maybe your connection string
@SanjayKumar-ij9pe
@SanjayKumar-ij9pe 5 жыл бұрын
I am not able to see bcoz of subtitles. Please make it transparent or remove. Your voice is clear, every one can understand
@Csharp-video-tutorialsBlogspot
@Csharp-video-tutorialsBlogspot 5 жыл бұрын
Hello Sanjay - Thank you for the feedback. Those are automatic subtitles and you can turn them off using the CC button that you find on the bottom right hand corner of the KZbin player. Hope this helps.
@SanjayKumar-ij9pe
@SanjayKumar-ij9pe 5 жыл бұрын
@@Csharp-video-tutorialsBlogspot thanks
@sayalichopade1270
@sayalichopade1270 5 жыл бұрын
what all controls values can we get from FormCollection, like Textbox, textarea ?
@divewithshubham
@divewithshubham 8 жыл бұрын
Sir I get output together with that i get request verification code and set characters printed along with it.. i dont know y?
@rishavraj3127
@rishavraj3127 4 жыл бұрын
Sir all r running but showing exception in datetime textbox,that date is out of range
@narendarsingh4672
@narendarsingh4672 6 жыл бұрын
Great Sir,I am grateful to you.
@wweprince5074
@wweprince5074 3 жыл бұрын
Sir your get code not seen means what you write within a get
@humairasyed
@humairasyed 7 жыл бұрын
Hello sir, I am getting error when I change the 'Gender' field to DropDownList. If I keep it as textbox(as the default) I am able to insert data. I followed everything in your videos. Here is the error I m getting: Error: Procedure or function 'spAddEmpData' expects parameter '@Gender', which was not supplied. Why is it getting? Help is appreciated. Thanks.
@Amodarling
@Amodarling 6 жыл бұрын
is it possible to get table value through form collection in controller ?
@shivaprasad1968
@shivaprasad1968 7 жыл бұрын
hi everyone im getting following error can anyone help me please Procedure or function 'spAddAllEmployees' expects parameter '@Name', which was not supplied.
@allanantony1039
@allanantony1039 7 жыл бұрын
Check Your code in the addemployees method while adding parameters of stored procedure.You must be giving the same name parameter to rest of the parameters. E.g: Your first parameter code: SqlParameter paramname=new Sqlparameter() paramname.ParameterName="@name" paramname.value=employee.name; cmd.parameters.Add(paramname) Your second parameter code: SqlParameter paramgender=new Sqlparameter() paramname.ParameterName="@name" paramname.value=employee.name; cmd.parameters.Add(paramgender) change the second and third lines paramname to paramgender.I hope this works.
@shabdalisangale4894
@shabdalisangale4894 5 жыл бұрын
Plzz anyone can tell me where he written that ado.net code .Is it in separate class or somewhere else
@shivanshrawat3617
@shivanshrawat3617 3 жыл бұрын
where can we get Source code for the project?
@sushantbaweja424
@sushantbaweja424 7 жыл бұрын
It is displaying key:__RequestVerificationToken with its value aswell i don't want this to get displayed what to do ?
@larabsteve3350
@larabsteve3350 8 жыл бұрын
can anyone help me here?? I didn't get the posted data on my procedure???
@muratalalmis
@muratalalmis 11 жыл бұрын
this video is not streaming. Should you make control it?
@deeppachehra9962
@deeppachehra9962 9 жыл бұрын
Sir if you see this message Please do reply Actually am encountering an error "That I have already have an Action Result with name Create " and i have decorated both with [HttpGet] and [HttpPost] still getting the error. Please Reply.
@kavishpahade1337
@kavishpahade1337 9 жыл бұрын
DEEP PACHEHRA You should have different parameters for both the methods..
@PrashanthOlekar
@PrashanthOlekar 7 жыл бұрын
all working fine sir, when i clicked on create button, page redirect to Index page and it will not show newly created row, i have got this error in console. "[Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience."
@roshanchaturpale5431
@roshanchaturpale5431 5 жыл бұрын
Error converting data type nvarchar to datetime when we adding(creating) the data how to fix this error??? sir
@romangavrilov3745
@romangavrilov3745 11 жыл бұрын
Hi, Great Tutorials! But why are you don´t using Entity Framework any more ?
@gurunathrao2985
@gurunathrao2985 5 жыл бұрын
For the DataAccess, I was getting an error like (the parameter @Name required for the stored procedure was not provided .) So instead of using 4 lines to attach a parameter to the SqlCommand, we can use: cmd.Parameters.Add(new SqlParameter("@Name", emp.Name)); Just in case someone encountered a similar kind of error.
@nvnvashisth
@nvnvashisth 10 жыл бұрын
are you trying to make json?
@shanmugam85
@shanmugam85 6 жыл бұрын
Really Nice and Easy for learning. Thank you very much. But I have one doubt. Is there any special reason for using StoredProcedure for simple read or insert record into the table?
@joseantoniosanchez4364
@joseantoniosanchez4364 8 жыл бұрын
Firstly, congratulation for this complete tutorial. I have a problem in this part. I have an error when execute the app. The error is of type System.NullReferenceException in AddEmployee method. The error appear in the line of string connectionString = ConfigurationManager.ConnectionString["DBCS"].ConnectionString, and i can't fix this problem. Can you help me?. Also the error is: Object reference not set to an isntance of an object. I complete all steps in this part, and try to fix the problem but at this time it's imposible for me. Thank you in advance.
@bmonye854
@bmonye854 8 жыл бұрын
it's because you doesn't defined the "DBCS" connection on web.config, back to part 8 on this tutorial to see more details
@joseantoniosanchez4364
@joseantoniosanchez4364 8 жыл бұрын
+belizmon i cheked the file web.config and it is correct. I have solved the problem. Thank you for your collaboration.
@moeenhasan9600
@moeenhasan9600 11 жыл бұрын
great videos on MVC
@divewithshubham
@divewithshubham 8 жыл бұрын
While recieving data from form to controller an error is showing "Input string was not in a correct format." when it has to convert from string to integer. Help someone!!
@raysunqi
@raysunqi 10 жыл бұрын
Thank you, very useful
@tejamachineni
@tejamachineni 11 жыл бұрын
u r awesome....
@kushagrakhandelwal8867
@kushagrakhandelwal8867 3 жыл бұрын
can anyone please paste ADONet interview blog From venkat
@armanx2
@armanx2 9 жыл бұрын
hi Friend, i think your videos are awesome to watch and learn stuff you are making great tutorials well explained etc. however what i think is kinda confusing is when you call name buissnesLayerEmployee which seems to me is more like DataAccesLayer and class itself to me looks like more a repository of the Employee class in my personal experience. maybe you have a reason to call it so but so far i do not see the point ? would you like to explain it if possible. thx very much in advance ! ps. thx for all the hard work for creating and posting these tutorials really AMAZING job !
@kapamagicman
@kapamagicman 11 жыл бұрын
Can you make more SQL videos on advanced topics?
@dreamcanvas71
@dreamcanvas71 8 жыл бұрын
Thanks, all in one solution
@joseperez-lf7if
@joseperez-lf7if 7 жыл бұрын
very usefull!!!
@MrVibhore1989
@MrVibhore1989 5 жыл бұрын
Thanks Sir :)
@shrinaveen4508
@shrinaveen4508 11 жыл бұрын
nice tutorials
@mauroldanr
@mauroldanr 6 жыл бұрын
Thank you
@mohamadalibrahim2995
@mohamadalibrahim2995 7 жыл бұрын
thanks
@guleye
@guleye 5 жыл бұрын
Skip BusinessLayer, coudnt understand about that.
@wweprince5074
@wweprince5074 3 жыл бұрын
In employeeBusinessLayer
@ihorfedorchuk
@ihorfedorchuk 9 жыл бұрын
лучшие уоки
Part 12  Creating a view to insert data using mvc
10:40
kudvenkat
Рет қаралды 458 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Part 11  Using business objects as model in mvc
16:21
kudvenkat
Рет қаралды 468 М.
Part 10  Working with multiple tables in mvc
19:46
kudvenkat
Рет қаралды 585 М.
Part 16  Difference between updatemodel and tryupdatemodel
14:51
kudvenkat
Рет қаралды 236 М.
Part 8  Data access in mvc using entity framework
13:29
kudvenkat
Рет қаралды 948 М.
Part 28   Customizing the autogenerated edit view
15:11
kudvenkat
Рет қаралды 129 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН