RequiredField validator control in asp.net Part 44

  Рет қаралды 174,184

kudvenkat

kudvenkat

Күн бұрын

Text version of the video
csharp-video-tutorials.blogspo...
Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our KZbin channel. Hope you can help.
/ @aarvikitchen5572
Slides
csharp-video-tutorials.blogspo...
All ASP .NET Text Articles
csharp-video-tutorials.blogspo...
All ASP .NET Slides
csharp-video-tutorials.blogspo...
All Dot Net and SQL Server Tutorials in English
kzbin.info...
All Dot Net and SQL Server Tutorials in Arabic
/ kudvenkatarabic
Validation controls are used to ensure if, the data, entered by the user is valid. Microsoft asp.net framework, provides 6 built-in validation controls.
RequiredFieldValidator,
RangeValidator,
RegularExpressionValidator,
CompareValidator,
CustomValidator,
ValidationSummary
These validation controls can be used to perform both client side and server side validation.
Browser's understand only client scripts and HTML. In the past to perform client side validation, developers had to write themselves the required javascript code. With validation controls, we don't have to write javascript, we can use the built-in validation controls, which will generate the required javascript for us.
Client scripts can spread viruses and cause security concerns. Because of this, users may disable javascript on their browser. If this happens, client side validation is skipped. That is why, it is always a good practice to have server side validation as well.
Page.IsValid is a read-only property. This property returns true if all the validation controls has passed validation. Use this property to perform server side validation.

Пікірлер: 55
@JaniceXL
@JaniceXL 9 жыл бұрын
Thanks for taking the time to make this! Much appreciated!! =)
@Geek-jx3gw
@Geek-jx3gw 5 жыл бұрын
You're amazing, you explain asp.net/c# better than anyone in KZbin! thank you super programmer!!!!!!!!!!!
@Csharp-video-tutorialsBlogspot
@Csharp-video-tutorialsBlogspot 11 жыл бұрын
Thank you very much for taking time to give feedback. For email alerts, when new videos are uploaded, please subscribe to my channel. 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.
@surpreet7006
@surpreet7006 4 жыл бұрын
Thank you for sharing your knowledge and also making it so easy to understand 😊 Keep up the good work!
@RakibulHasanMozumder
@RakibulHasanMozumder 4 жыл бұрын
your teaching skill awesome bro.
@netcore81
@netcore81 2 жыл бұрын
thank you! you saved my project. Never knew about the client side and server side validation difference! thanks!
@jenishajenika5975
@jenishajenika5975 2 жыл бұрын
Thank You My Guide, clear way of understanding.
@PrasannaKumarDas86
@PrasannaKumarDas86 2 жыл бұрын
This is the perfect tutorial. Very easy to understand. Thank you
@chandankumar-vk5dj
@chandankumar-vk5dj 7 жыл бұрын
If you're having issue in VS 2015 or 17 just put this code onto web.config
@nazishayaz1312
@nazishayaz1312 6 жыл бұрын
Good explainer .Thank you so much....its very useful.
@tharindumadushan779
@tharindumadushan779 2 ай бұрын
thanks, it helped me a lot
@deftone10
@deftone10 6 жыл бұрын
Have you authored any book? You make this material very clear. Thank you!
@RahulPawar-md7gv
@RahulPawar-md7gv 7 жыл бұрын
Very Nice Tutorial...Tahnks
@christofferandersson3137
@christofferandersson3137 10 жыл бұрын
Thank you verry much!!
@edmundogriffin3448
@edmundogriffin3448 7 жыл бұрын
just applauses, thanks for shareing all this knowledge!!!
@sameerthakare5376
@sameerthakare5376 11 жыл бұрын
Thank you Venkat for this video, If we disable(Enable = false) the control dynamically, associated validation control still works on button click. Shall we dynamically disable the validation control as well to make it work? Or is there any other way to achieve this?
@irshad1889
@irshad1889 6 жыл бұрын
thanks fort the video, its very useful and the way you explains, it becomes very easy. but i want to put RED ASTERISK on required field label, can you please help me with this...
@santhathi3949
@santhathi3949 6 жыл бұрын
Thank you sir !
@veriparkgmail6820
@veriparkgmail6820 3 жыл бұрын
Thank you so much, I couldn't understand why my ddl's required field validator doesn't working. It's because i didn't set the initial value of my Required Field Validator :)
@ferrarikarthik1
@ferrarikarthik1 11 жыл бұрын
Thnx Venkat for uploading these videos....1 quick question. Is there any way by which we can select either Clientside/Server side validation. As shown in ur video, only when the Javascript is disabled in the browser the Server side validation takes place....Thnx!
@ravindramestry2975
@ravindramestry2975 7 жыл бұрын
wow great explanation.
@Csharp-video-tutorialsBlogspot
@Csharp-video-tutorialsBlogspot 7 жыл бұрын
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/order.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
@dsfdotnet
@dsfdotnet 11 жыл бұрын
excellent explanation
@kathirvelkaliyanppan1141
@kathirvelkaliyanppan1141 9 жыл бұрын
Good, thanks
@harikaaakutota7776
@harikaaakutota7776 10 жыл бұрын
hi venkat ji, could u show us how to apply requiredfield validator for a checkboxlist and also for group of radiobuttons ie radiobutton1,radiobutton2,radiobutton3 etc...the groupname for all the radiobutton1,radiobutton2,radiobutton3 is set to "xxxx" say for example and also for checkboxlist controls......
@vijayagandhimathi1049
@vijayagandhimathi1049 2 жыл бұрын
Very nice
@selwyndej3053
@selwyndej3053 9 жыл бұрын
If I understand correctly, ASP fires javascript when validation fails. Is there any place to edit this generated js,so you could for example fadein the errormessage using Jquery??
@swapnilsonsurkar2136
@swapnilsonsurkar2136 7 жыл бұрын
i am not getting "Validation failed" message when i hit enter without entering value..i am getting only "*" message to enter detailes ...sir please help me
@argelpamintuango1956
@argelpamintuango1956 8 жыл бұрын
thanks
@swagataupadhyay2679
@swagataupadhyay2679 2 жыл бұрын
Is there any way to hide lblMessage when Required Field Validator Message are showing?? Any help would really be appreciated🙏
@theakashjadhavaj
@theakashjadhavaj 3 жыл бұрын
Sir help me for i am used validation but other buttons are not working i want to only for submit button or update button others button like search or close not working
@rijipgeorge2703
@rijipgeorge2703 5 жыл бұрын
Presentation is nice.But I have one doubt ,if we enable the client side validation ,what difference can be see on the result .how can identify the difference ?.kindly give the reply .
@sagaraggarwal5991
@sagaraggarwal5991 2 жыл бұрын
I have many buttons on the same page, I want to limit this validation to only specific button. how can i achieve this.
@kirannadukula5247
@kirannadukula5247 11 жыл бұрын
Hi, venkat could you please make videos on AJAX Controls. I watched a lot of videos but could not understand any of them because they are not a match to the way you explain. So, please make some videos on Ajax controls venkat. I request please...................
@JS-kp7yh
@JS-kp7yh 10 жыл бұрын
Hi, I am little confused - why does the validation run at client side when the validator control has ' run at = "server" ' property?
@DIWLJAK
@DIWLJAK 9 жыл бұрын
validation is control of asp.net and you must first call validation then that controll call js code
@89Ssik
@89Ssik 8 жыл бұрын
If you're having issue in VS 2013 just put this code onto your page load protected void Page_Load(object sender, EventArgs e) { this.UnobtrusiveValidationMode = System.Web.UI.UnobtrusiveValidationMode.None; }
@kemour8
@kemour8 7 жыл бұрын
Ooooh thank you sooo much
@anjanisuman6428
@anjanisuman6428 6 жыл бұрын
yes it's really works
@deepakpandey1947
@deepakpandey1947 8 жыл бұрын
Hey, Kudvenkat very nice tutorial, could you make a tutorial on client side validation using jquery and server side validation in one form please..
@johnnydepp1499
@johnnydepp1499 8 жыл бұрын
+Deepak Pandey You could disable client side validation in asp .net validation, and you could use jquery for your client side and Asp .net for server side. just set EnableClientScript="false"; For Example :
@user-hf3xt5sq9t
@user-hf3xt5sq9t 4 жыл бұрын
But have error : Type 'DevExpress.Web.ASPxGridView.ASPxGridView' does not have a public property named 'RequiredFieldValidator'. Help me pls
@anannyasaxena7896
@anannyasaxena7896 8 жыл бұрын
hi, MY code is the same. But on submitting without validation it does not go to the else part, just shows the error messages. Please help.
@sokinooo
@sokinooo 3 жыл бұрын
try disabling EnableClientScript on your validator control, in order to perform validation on the server..afterwards Page.IsValid should return false and your else block will be executed
@jankiasati9774
@jankiasati9774 2 жыл бұрын
@@sokinooo thanks, I faced a similar problem and your solution worked for me.
@sandeepany8657
@sandeepany8657 11 жыл бұрын
thankyou vry much fr d video sir...i have also seen ur other vids..a gr8 help fr a learner lyk me..i hv a query fr u regarding this video..what if instead of Data saved i want to show something else..i want that when user hit submit bttn then label should show value frm name textbox and selected value frm dropdown list...eg Name is Gender....when user hit submit i want the label to fetch vaues from textbox abd dropdown list..can you plz help me..thank you..
@developernader
@developernader 10 жыл бұрын
Eng Venkat how are you, I have error, I'm using VS 2012. Server Error in '/UsingRequiredField' Application. WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive). Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive). Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
@developernader
@developernader 8 жыл бұрын
+Tarun Sharma Thank you Tarun Sharma
@saurabhgore266
@saurabhgore266 5 жыл бұрын
How to solve this?
@mdshahbazanwar
@mdshahbazanwar 5 жыл бұрын
paste this into webconfig page
@priyanka3975
@priyanka3975 6 жыл бұрын
Not show properly text
@milanlight
@milanlight 10 жыл бұрын
Hi Venkat I am Getting this Error when i use validaton controls in webform. WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive). Can u solve this
@elikihara8568
@elikihara8568 9 жыл бұрын
You may need to add this setting to the web.config file stackoverflow.com/questions/16660900/webforms-unobtrusivevalidationmode-requires-a-scriptresourcemapping-for-jquery
@sushantsahay4576
@sushantsahay4576 3 жыл бұрын
please add to your web.config only then it works
@maransanthalingam9656
@maransanthalingam9656 11 жыл бұрын
you can add below in the button click event lblMessage.Text = " Name :"+txtName.Text+ " and Gender : "+ddlGender.SelectedItem.Text + " added successfully";
Rangevalidator control in asp.net   Part 45
12:38
kudvenkat
Рет қаралды 94 М.
CustomValidator control in asp.net   Part 48
15:29
kudvenkat
Рет қаралды 116 М.
Became invisible for one day!  #funny #wednesday #memes
00:25
Watch Me
Рет қаралды 59 МЛН
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 161 МЛН
39kgのガリガリが踊る絵文字ダンス/39kg boney emoji dance#dance #ダンス #にんげんっていいな
00:16
💀Skeleton Ninja🥷【にんげんっていいなチャンネル】
Рет қаралды 8 МЛН
🤔Какой Орган самый длинный ? #shorts
00:42
ASMR Programming - Spinning Cube - No Talking
20:45
Servet Gulnaroglu
Рет қаралды 3,7 МЛН
Form Validation with JavaScript - Check for an Empty Text Field
8:35
Six Minutes. Smarter.
Рет қаралды 160 М.
Server Transfer in asp.net   Part 53
17:28
kudvenkat
Рет қаралды 131 М.
RegularExpressionValidator control in asp.net   Part 47
10:32
kudvenkat
Рет қаралды 96 М.
ASP NET Core in process hosting
9:32
kudvenkat
Рет қаралды 436 М.
Became invisible for one day!  #funny #wednesday #memes
00:25
Watch Me
Рет қаралды 59 МЛН