Questions




Answers
2
disable browser back-forward button after logout in MVC

how can I disable browser back-forward button after logging out from asp.net MVC C# web application, I have tried this javascript code

...
Read More
Answers
2
change jQuery validate error position

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:

...

Read More
Answers
1
how can i validate model in asp.net web api?

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.

...

Read More
Answers
2
phone number validation in jQuery-javascript?

 How can i validate phone number using jquery-javascript? Suppose, i want to validate phone number for this textbox

...
Read More
Answers
2
how to add-remove property in Javascript Object?

Suppose I have a javascript Object

...
Read More
Answers
2
how can i create text box with side arrow?

How can I create a textbox with side arrow using HTML/CSS?

Something like the below image:

...

Read More
Answers
2
how to interchange position of two divs on mobile

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

...
Read More
Answers
3
how to convert byte array into image?

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

...
Read More
Answers
1
how to improve performance of ASP.NET MVC application?

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

...
Read More
Answers
1
how to get the Url of page which called Application_Error in ASP.NET

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?

 

...
Read More

Page 51 of 54