how can I disable browser back-forward button after logging out from asp.net MVC C# web application, I have tried this javascript code
...I am using jQuery Validate to validate my form, it is placing errors in a position which is not appropriate for my forms, I want to change the position of error placement in it, but not to find a solution.
My jQuery code:
$('#content form:first').validate({
rules: {
MSRP: {
number: true
},
SellingPrice: {
number: true
},
BoxDimensionHeight: {
number: true
},
BoxDimensionWidth: {
number: true
},
BoxDimensionDepth: {
number: true
},
BoxWeight: {
number: true
}
},
ignore: ':not(select:hidden, input:visible, textarea:visible)',
});
HTML Code:
<div class="row ">
<label class="control-label col-md-2 col-sm-12 col-xs-12">
Name<span class="required">*</span>
</label>
<div class="col-md-10 col-xs-12 col-sm-12" style="padding:0">
<div class="fg-line">
<input class="form-control" id="Name" name="Name" required="" type="text" />
</div>
</div>
</div>
the output of code:
...
Hi, anyone know how to make Input Validation in Web API? Data annotations do not work; I want to make it like in MVC [Required] or [RegularExpression] attributes. Any ideas?
I made something like this, but it's not working.
...
How can i validate phone number using jquery-javascript? Suppose, i want to validate phone number for this textbox
...How can I create a textbox with side arrow using HTML/CSS?
Something like the below image:
...
I have two div's on the desktop, it is fine to show first div(#div1) and then second div(#div2), but on mobile, I want to interchange the position of div's, means div2 should be placed before div1.
Here is my HTML code
...How can I convert byte array into image using asp.net C#? I need to convert model into image for rendering it on MVC view
Thank you
I would like to know methods to improve performance of asp.net MVC web application? To get better score on Google Page Insights
Thank you
...How can i get the url from where the error was originated and Application_Error was called inAsp.NET MVC C#, i have followed this link https://qawithexperts.com/questions/13/how-to-catch-all-error-in-c-mvc-error-handling , with the help of which i was able to catch all type of errors(404,500,any other) in MVC web-application but i am not able to get the original requested ur, because of which Application_Error was called.
How can i get the url, any idea?
...