jQuery Plugins » ASP.Net https://jqueryplugins.info jQuery plugins, tutorials and resources Wed, 19 Oct 2011 02:13:21 +0000 en hourly 1 http://wordpress.org/?v=3.2.1 Asp.net C# Encrption/Decrption on Client and server Side https://jqueryplugins.info/2011/10/asp-net-c-encrptiondecrption-on-client-and-server-side/ https://jqueryplugins.info/2011/10/asp-net-c-encrptiondecrption-on-client-and-server-side/#comments Sat, 15 Oct 2011 05:14:20 +0000 Admin https://jqueryplugins.info/2011/10/asp-net-c-encrptiondecrption-on-client-and-server-side/ Post link: Asp.net C# Encrption/Decrption on Client and server Side

Sir i have the j query solution to encrption on the client side but it create “MD5″ only. I want Salted Md5 Encrption on the Clentside and Decrpt it at...

]]>
Post link: Asp.net C# Encrption/Decrption on Client and server Side

Sir
i have the j query solution to encrption on the client side but it create “MD5″ only.

I want Salted Md5 Encrption on the Clentside
and Decrpt it at the Server Side in Asp.net4.0 and C#

My Code for encrption are as follws :

function chn() {
var a = document.getElementById(‘txt1′);
var b = document.getElementById(‘txt2′);
var c = a.value; var d = $ .md5(c);
b.value = (d);
}

Please Help me out

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/10/asp-net-c-encrptiondecrption-on-client-and-server-side/feed/ 0
ASP.NET MVC – Validation Summary and BlockUI https://jqueryplugins.info/2011/10/asp-net-mvc-validation-summary-and-blockui/ https://jqueryplugins.info/2011/10/asp-net-mvc-validation-summary-and-blockui/#comments Fri, 14 Oct 2011 06:14:42 +0000 Admin https://jqueryplugins.info/2011/10/asp-net-mvc-validation-summary-and-blockui/ Post link: ASP.NET MVC – Validation Summary and BlockUI

So I’ve been blocking the page with a “Loading” message using the following code for a logon page <input id="submit" type="submit" value="Log On" onclick="block();"/> If there’s an error with the...

]]>
Post link: ASP.NET MVC – Validation Summary and BlockUI

So I’ve been blocking the page with a “Loading” message using the following code for a logon page

<input id="submit" type="submit" value="Log On" onclick="block();"/>

If there’s an error with the validation though, the block message will stay there forever.
What’s the best way to present the block message so it takes the validation into account?

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/10/asp-net-mvc-validation-summary-and-blockui/feed/ 0
javascript or jquery n number of contnet slider in asp.net mvc3 https://jqueryplugins.info/2011/10/javascript-or-jquery-n-number-of-contnet-slider-in-asp-net-mvc3/ https://jqueryplugins.info/2011/10/javascript-or-jquery-n-number-of-contnet-slider-in-asp-net-mvc3/#comments Fri, 07 Oct 2011 07:13:20 +0000 Admin https://jqueryplugins.info/2011/10/javascript-or-jquery-n-number-of-contnet-slider-in-asp-net-mvc3/ Post link: javascript or jquery n number of contnet slider in asp.net mvc3

I have asp.net mvc3 application. wherein index page i am having say 100 of dynamic users comes from the database. I am trying to manage the view of first 12...

]]>
Post link: javascript or jquery n number of contnet slider in asp.net mvc3

I have asp.net mvc3 application. wherein index page i am having say 100 of dynamic users comes from the database. I am trying to manage the view of first 12 users [1-12] in tiles on index page. but i need Next-Previous buttons aroud to main div control. if i clicks next , next 12 records [13-24] should be in view..so on. same in reverse for previous.

Can i perform with default jquery files given by template in VS2010 mvc 3 ? what code i need to do ? which functions i need to use. or pease suggest any open source plugin…

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/10/javascript-or-jquery-n-number-of-contnet-slider-in-asp-net-mvc3/feed/ 0
Making the List object compatible with post data from frontend in ASP.NET MVC3 https://jqueryplugins.info/2011/09/making-the-list-object-compatible-with-post-data-from-frontend-in-asp-net-mvc3/ https://jqueryplugins.info/2011/09/making-the-list-object-compatible-with-post-data-from-frontend-in-asp-net-mvc3/#comments Fri, 30 Sep 2011 23:14:02 +0000 Admin https://jqueryplugins.info/2011/09/making-the-list-object-compatible-with-post-data-from-frontend-in-asp-net-mvc3/ Post link: Making the List object compatible with post data from frontend in ASP.NET MVC3

I have the following controller that I am posting to in a form via AJAX: [HttpPost] public ActionResult Create(List<int> listOfSTuff) { try { service.Create(listOfSTuff); } catch { return null; }...

]]>
Post link: Making the List object compatible with post data from frontend in ASP.NET MVC3

I have the following controller that I am posting to in a form via AJAX:

[HttpPost]
public ActionResult Create(List<int> listOfSTuff)
{
    try
    {
        service.Create(listOfSTuff);
    }
    catch
    {
        return null;
    }
    return Json(new { gid = g.ID });
}

I am having a hard time with my jQuery AJAX post making the datatypes compatible. Here is my jQuery/JavaScript code:

var listOfStuff = [1, 2, 3];

$  .ajax({
    type: 'POST',
    url: '/MyController/Create',
    data: listOfStuff,
    success: function(data) {
        alert(data.gid);
    },
    error: alert(':('),
    dataType: 'json'
});

I know that the AJAX post to the controller is working because I get a gid but I do not see the array elements 1 or 2 or 3 saved in the database. It does not appear that the controller likes my JavaScript array that is being passed over. Can anyone suggest how the data structure should look like from the frontend?

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/09/making-the-list-object-compatible-with-post-data-from-frontend-in-asp-net-mvc3/feed/ 0
Load a view using AJAX in ASP.NET 3 RAZR https://jqueryplugins.info/2011/09/load-a-view-using-ajax-in-asp-net-3-razr/ https://jqueryplugins.info/2011/09/load-a-view-using-ajax-in-asp-net-3-razr/#comments Thu, 29 Sep 2011 11:13:16 +0000 Admin https://jqueryplugins.info/2011/09/load-a-view-using-ajax-in-asp-net-3-razr/ Post link: Load a view using AJAX in ASP.NET 3 RAZR

When using MVC you are calling actions that then load a view and a parent layout/masterpage. When you wish to load a view using AJAX though and then stick that...

]]>
Post link: Load a view using AJAX in ASP.NET 3 RAZR

When using MVC you are calling actions that then load a view and a parent layout/masterpage. When you wish to load a view using AJAX though and then stick that content say inside a div with an id of content you would end up loading all the layout and stuff as well as you are just calling the action.

How do I get around this? Is their some way to say if calling this action using AJAX then don’t bother with the layout and just shove the view inside the div?

Any code examples would be much appreciated. Thanks

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/09/load-a-view-using-ajax-in-asp-net-3-razr/feed/ 0
How to use jquery method in asp.net https://jqueryplugins.info/2011/09/how-to-use-jquery-method-in-asp-net/ https://jqueryplugins.info/2011/09/how-to-use-jquery-method-in-asp-net/#comments Sun, 25 Sep 2011 13:17:40 +0000 Admin https://jqueryplugins.info/2011/09/how-to-use-jquery-method-in-asp-net/ Post link: How to use jquery method in asp.net

Q: I wanna to know how to use this jquery in asp.net.(steps) $ (...).scollTo( $ ('<%= txt_evaluateWeights.ClientID %>') ) My original question is How to prevent the Focus() method from...

]]>
Post link: How to use jquery method in asp.net

Q:

I wanna to know how to use this jquery in asp.net.(steps)

$  (...).scollTo( $  ('<%= txt_evaluateWeights.ClientID %>') )

My original question is How to prevent the Focus() method from scrolling the page to the top

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/09/how-to-use-jquery-method-in-asp-net/feed/ 0
Custom asp.net mvc 3 jquery.validate.unobtrusive https://jqueryplugins.info/2011/09/custom-asp-net-mvc-3-jquery-validate-unobtrusive/ https://jqueryplugins.info/2011/09/custom-asp-net-mvc-3-jquery-validate-unobtrusive/#comments Thu, 22 Sep 2011 18:13:44 +0000 Admin https://jqueryplugins.info/2011/09/custom-asp-net-mvc-3-jquery-validate-unobtrusive/ Post link: Custom asp.net mvc 3 jquery.validate.unobtrusive

I am converting a site from asp.net mvc 2 to asp.net mvc 3. I am wanting to use the built in validation in mvc 3 which uses the jquery.validate and...

]]>
Post link: Custom asp.net mvc 3 jquery.validate.unobtrusive

I am converting a site from asp.net mvc 2 to asp.net mvc 3. I am wanting to use the built in validation in mvc 3 which uses the jquery.validate and the jquery.validate.unobtrusive. However on my old site I was already using jquery.validate and added custom method for validation that I would then call when a drop down was changed.

I need to be able to
1. Register this method.
2. Call only when the dropdown is changed.

Here is my code for this on my asp.net 2 site.

            //add class to the html element
            $  ("#ClientId-input").addClass("validClient");

//create the method "validClient"
$  .validator.addMethod("validClient", function(value, element) { 

                //get the actual value in the input box
                var _value =  $  ("#ClientId").data('tComboBox').value();

                //get all the items in the list
                var _items = $  ("#ClientId").data('tComboBox').data;

                //set the value to return
                var _retVal = false;

                //loop through the items if the selected value equals a value we are valid
                $  .each(_items, function(index, value)
                {
                    if(value.Value == _value){
                            _retVal = true;

                            //return false in the loop to break.
                            return false;
                        }
                });

                return _retVal;

            }, "Please choose a Client from the list.");

            //Assign the rule to the validator
               $  .validator.addClassRules({
                validClient:{validClient:true}
            });

//this is called when dropdownchanges
function ClientsChanged(e)
        {

            if($  ("#ClientId-input").valid())
            {
                 //do work here
            }
        }

Thanks in advance.

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/09/custom-asp-net-mvc-3-jquery-validate-unobtrusive/feed/ 0
JQuery Try it yourself Editor – Asp.net Controls https://jqueryplugins.info/2011/09/jquery-try-it-yourself-editor-asp-net-controls/ https://jqueryplugins.info/2011/09/jquery-try-it-yourself-editor-asp-net-controls/#comments Tue, 20 Sep 2011 02:15:17 +0000 Admin https://jqueryplugins.info/2011/09/jquery-try-it-yourself-editor-asp-net-controls/ Post link: JQuery Try it yourself Editor – Asp.net Controls

I have created JQuery Try it yourself editor. Here is the link for that http://www.jquerydemo.syntax-example.com/OnlineDemo.aspx?qsSourceCode=DefaultExample Things are working good as i want it to be, but i am unable to...

]]>
Post link: JQuery Try it yourself Editor – Asp.net Controls

I have created JQuery Try it yourself editor.

Here is the link for that

http://www.jquerydemo.syntax-example.com/OnlineDemo.aspx?qsSourceCode=DefaultExample

Things are working good as i want it to be, but i am unable to figure out how i can able to display asp.net server control and actually do JQuery manipulations with asp.net server control.

Your suggestions and explanation will be much more appreciable.

Thank you.

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/09/jquery-try-it-yourself-editor-asp-net-controls/feed/ 0
jQuery, onBeforeUnload and ASP.Net form https://jqueryplugins.info/2011/09/jquery-onbeforeunload-and-asp-net-form/ https://jqueryplugins.info/2011/09/jquery-onbeforeunload-and-asp-net-form/#comments Sun, 11 Sep 2011 19:24:41 +0000 Admin https://jqueryplugins.info/2011/09/jquery-onbeforeunload-and-asp-net-form/ Post link: jQuery, onBeforeUnload and ASP.Net form

I have the following solution for stopping the users from accidentally leaving my registration page: var warning = true; function CheckExit() { if (warning) { return "Changes done. Remember to...

]]>
Post link: jQuery, onBeforeUnload and ASP.Net form

I have the following solution for stopping the users from accidentally leaving my registration page:

var warning = true;

function CheckExit() {
    if (warning) {
        return "Changes done. Remember to save, blah blah.";
    }
}
window.onbeforeunload = CheckExit;

addToPostBack = function (func) {
    var old__doPostBack = __doPostBack;
    if (typeof __doPostBack != 'function') {
        __doPostBack = func;
    } else {
        __doPostBack = function (t, a) {
            if (func(t, a)) old__doPostBack(t, a);
        }
    }
};

$  (document).ready(function () {

    $  ('#aspnetForm').submit(function () {
        warning = false;
        return true;
    });

    addToPostBack(function (t, a) {
        warning = false;
        return true;
    }); 

});

Most of this code is from different questions here on StackOverflow, and works just fine on my local debugging page; all ASP.Net controls (linkbuttons, buttons) can be clicked without a warning, but as soon as the user tries to close the window or navigate away, the warning is displayed.

However, when deployed to my server, the warning pops up when I click ASP.Net controls too (and I really do not want to warn the user that his changes isn’t saved when he clicks the “Save” button). Now, there is a difference between my local debugging page and the server: the server uses a different MasterPage with some ads in it, but after debugging with Firebug (see next paragraph), I can’t see how that should make a difference.

I have tried running different parts of the Javascript code by using Firebug to confirm that everything is loaded correctly (my first guess was that the section containing $ (‘#aspnetForm’) wasn’t being loaded, since this seems to be the difference), but there is no improvement at all. The warning still pops up on every click of a link or a button.

My main problem is, I think, that I do not fully understand what the addToPostBack function does, and as such, I cannot properly debug it.

Is there anybody here who has any idea what might be wrong?

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/09/jquery-onbeforeunload-and-asp-net-form/feed/ 0
Jquery datetimepicker in asp.net? https://jqueryplugins.info/2011/09/jquery-datetimepicker-in-asp-net/ https://jqueryplugins.info/2011/09/jquery-datetimepicker-in-asp-net/#comments Fri, 09 Sep 2011 19:26:43 +0000 Admin https://jqueryplugins.info/2011/09/jquery-datetimepicker-in-asp-net/ Post link: Jquery datetimepicker in asp.net?

I am trying to implement the Jquery datetimepicker in my asp.net webpage.The following steps are what i have done so far Followed the link http://www.projectcodegen.com/JQueryDateTimePicker.aspx I am trying to implement...

]]>
Post link: Jquery datetimepicker in asp.net?

I am trying to implement the Jquery datetimepicker in my asp.net webpage.The following steps are what i have done so far

  1. Followed the link http://www.projectcodegen.com/JQueryDateTimePicker.aspx

  2. I am trying to implement the sample in my code.

  3. I did add the js and the css files to my application.

Here is my code
but the pop up calender with time is not displayed when i run the application.

<head runat="server">

 <link rel="Stylesheet" href="jquery.ui.datetimepicker.css" type="text/css" />

 <script src="Scripts/jquery.ui.datetimepicker.js" type="text/javascript"></script>

<script src="Scripts/jquery.ui.datetimepicker.min.js" type="text/javascript"></script>
<script type="text/javascript">
    $  (function(){

        $  ('TextBox1').datetimepicker();

    });

   <input type="text" id="TextBox1" />

</div>
</form>

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/09/jquery-datetimepicker-in-asp-net/feed/ 0