.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

problems with using jQuery for reordering groups on an ascx page

Posted By:      Posted Date: October 14, 2010    Points: 0   Category :ASP.Net

Hi all. im making a page that has its header, its footer, and its side menus all in seperate controls (ascx pages).  The reason is so i don't have to rewrite that code for every single page when only the inner content will be different.

In my Menu control there is a list of items that gets populated when the page loads from a database.  The items have an order in the database and i want to be able to reorder them by dragging and dropping.  I am using jQuery and the actual physical drag and drop is working but i am having trouble getting the new order to save in the database... atleast when it is on the ascx page.

It works when the menu is on the aspx page.

In my events.aspx page i have

<div id="contentLeft">
<asp:Repeater ID="FormGroupList" runat="server">           
        <li id="<%#Eval("FormGroupID")%>" class="itemStyle">                   
            <a class="active" href="fields.aspx?fg=<%#Eval("SectionHeading")%>"><%#Eval("SectionHeading")%></a></li>           

View Complete Post

More Related Resource Links

Accessing ASPX page elements from ASCX'S jquery function


Hi Friends, I need your help.

I have aspx page and in that page i registerd ascx page. i want to access the aspx page <div id = "idofdiv"> from ascx page jquery function. i have jquery function in ascx page. i want to access idofdiv in that function. how could i achive this?



jquery validation in ascx page


Following on from my post about using ascx pages for the content of the jquery tab panels.


Can I use jquery validation on each ascx page before submitting to move to the next tab panel?

I've been trying the following way, but when I click the submit button I get the error 'Object doesn't support this property or method'.


<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
    <div id="tabs">
            <li><a href="#tab1">Your Details</a></li>
            <li><a href="#tab2">Course Details</a></li>
            <li><a href="#tab3">Education & Employment</a></li>
            <li><a href="#tab4">References</a></li>
            <li><a href="#tab5">Submit Application</a></li>
        <div id="tab1">
            <asp:PlaceHolder ID="plhApp" runat="server"></asp:PlaceHolder>

Using jQuery to directly call ASP.NET AJAX page methods

Here I am looking to explain how to call page methods using jQuery. Using jQuery to directly call ASP.NET AJAX page methods

Reduce ASP.NET Page size and complexity using JQuery

This is my first post on asp.net blog. ASP.NET Ajax and JQuery are two different ajax framework. In this post I will show, how we can enhance gridview using ASP.NET Ajax and JQuery. I also compare the implementation of these frameworks. In next posts i will explain more about JQuery and ASP.NET Ajax and also tell you "How to combine the power of both framework". My Future post will related to ASP.NET and related frameworks.

JQuery Treeview plugin is not working with Ajax page load in ie8


Hi there,

I developed a page where i m using jquery treeview plugin to generate tree. It worked fine on FF, IE8 with out ajax.

But when my page loads thro' ajax call in IE8, it is not collapsing or expanding tree.

Any idea?

Thanks in advance.

JQuery causing problems with CustomGrid



I have a Jquery QuickSearch in my aspx page which sorts the data in my GridView(Custom Grid).QuickSearch is working fine,but when i sort the columns in the Custom Grid, the Footer row  is coming next to the header row before the items rows in the Grid. I just want the Footer row not to involve in the sorting. can anyone help me.

Thanks in Advance.

How to Pass UserName & Password to codebehind page using jquery

here is login form I would like to use.
Right now it is not communicating with my codebehind page.
How do I modify the jquery  login code to post the username and password to the codebehind?
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" type="text/css" href="styles/chop1.css" />
<script type="text/javascript" src="js/chopjs/jquery-1.3.2.min.js"></script>

<script type="text/javascript" src="js/chopjs/three.js"></script>
<!--[if IE 6]>
<script type="text/javascript" src="js/ie_png_fix.js"></script>

Is there a function in Jquery which run only one time no matter load page or PostBack

In asp.net, I can use Method A to run somethings A one time, and somethings A will nor run when page is postback but In JQuery, I hope to run something B one time when the page is loaded, but if I use Method B, the "Somethings B" always run even the page is pastBack, how can I do? Thanks! ------------------Method A------------protected void Page_Load(object sender, EventArgs e){    if (!IsPostBack)    {       //Do Somethings A    } }   ------------------Method B------------$(document).ready(function () {   //Do Somethings B})

Can I write a wcf endpoint to communicate with JSON from Jquery on page?

Hi Guys,I need to be able to expose information to a page, and I need to write the information in xml on my webserver which will be dynamically created from the database. I need to use json to pass the data from the screen back to the server two way communication xms back and forth. Is it actually any good using a wcf endpoint to serve the json back to the page and use query with wcf? Is this possible?Or is it easier to use standard pages .aspx and just do a call to a url and get the json with jquery....We will probably want to send this information to other locations at some point in the future too....Cheers,Pete

Problems passing parameters to SSRS report from ASP.Net web page

I have a web page that displays some data.   When they click a submit button, I want to run a report.  But I would like to pass the start year/month and end year/month values that the user already entered on the web page to the report.  Here is what my url looks like when the report is displayed: http://xyzserver/Reports/Pages/Report.aspx?ItemPath=%2fReports%2fDevicesAllNew&rs:Command=Render&StartYYMM=201007&EndYYMM=201008 But my report displays the 2 textboxes for my StartYYMM and EndYYMM parameters as empty.  What am I doing wrong?  I did a google search and I saw something about using ReportServer instead of ReportManager.  I notice at the top of the browser when I run my report, it reads "Report Manager - Windows Internet Explorer".  Is this correct? Bob     Bob

How to Access Parent Page (.aspx) control (IDs) from its child User Control (.ascx)

I have a parent .aspx page that has a asp:panel control in it, and this parent .aspx is also referencing a user control that I registered in that .aspx. Lets just call it usercontrolA.ascx for this post.The user control has a radiobuttonlist itself.Based on a selection from the radiotbuttonlist in the user control, I want to be able to hide the asp:panel in my .aspx (parent) but unfortunately I cant' get it to work:parentPanel.visible = true;  <<< I trried this in usercontrolA.ascx.csBut the user control doesn't know about the panel in the parent .aspxSo do I need to expose that somehow from the parent so that I can access it from the code behind of the child .ascx?  How?

Survey: Add sentences, titles, groups, page breaks?

Hi community I want to add different things to a sharepoint survey. - Title between questions - create question groups - add a finishing sentence like "Thank you for your time...". - choose the page break manually Does anybody know if it is possible and how? Thx

JQuery(Effects problem) With Master Page

HI friends, My project is old one it is bulit in VS2005 now i want to add the features of JQuery I m new to JQuery.I started working with simple hide and show functionality on div . It works fine with simple aspx page but  it does not work with MASTER PAGE when I apply hide and show functionality with toggle('slow'),slideup('slow'),slidedown('fast')  etc effects . I have set the property of div as runat server. Any help appreciated Regards, Chandrakant            

Problems with FileUpload _only_ on a second page of wizard

 Hi, I have a wizard wrapped in UpdatePanel.  Second page of the wizard contains FileUpload.  I have a button on the page that causes a full post-back.  The weird thing is that the first post back triggered by the button results in empty FileName of FileUpload on the server side (HasFile is false).  The second and following clicks on the same button work as expected (i.e. FileUpload contains a valid FileName). Also, if I move the FileUpload control to the first wizard page then everything works fine. Could someone please let me know what might be causing this strange behaviour? Thanks. Sample code: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestAjax.aspx.cs" Inherits="TestAjax" %><%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> xmlns="http://www.w3.org/1999/xhtml"><head runat="server">    <title></title></head><body>    <form id="form1" runat="server">    <div>          <asp:ToolkitScriptManager ID=&qu

Problem running jquery script in Content Page

Hi!! I have a master page in asp.net and a content page with some basic asp.net controls like textbox,buttons,treeview....i have a jquery script in the content page and reference set to the jquery file..The script changes the text property of a button on the keydown event set for the textbox...the script works fine if i copy and paste it in a normal page...the script only ran once when i worte it for the first time the next day when i tried to run the script it was not working..i m facing this problem for running the script in content page and i a m not aware of how to write jquery script for the content page.. i m really not finding any solution where i am wrong i have even tried setting the internet explorer security setting to low..plz plz plz plz plz plz help me on Thanks!!

Jquery Overlay in aspx page

Hi,     I am new to the forum. I am not a hardcore asp.net programmer. I am an absolutly beginer in C#. Now to my problem. I try to impliment Jquery Tools overlay in my webapplication as the demo in this page. When the user click on the hyperlink, It will pass a variable to another aspx page (like view.aspx?id=3265) and the result will be displayed as a overlay using Jquery Tools. It works perfectly. But the problem is, when I click any serverside control after getting the result in the overlay window,  it will throw an error showing the view state of the is currupted. This only happening in the case of IE. The application works flawlessly in Chrome. Hope experts in this site can help me.

problems with page refresh

Ok here is the situation.I have an aspx page that 'ticks' using an ASP timer. In the code behind i have told the page that 'ontick' to redirect back to itself but with a different querystring value.The querystring values represent a base for the information (It is a sales page displaying monthly, quarterly and yearly values).The problem I have is that my backend code produces 2 graphs saved as BMP files. The problem I have is that these bmps do not update when the page ticks.All of the information does, but the images don't. I have so far attempted the following to try and irradicate the problemredirecting to another page, and then redirecting back immediately;using Response.Cache.SetCacheability(HttpCacheability.NoCache) in various (and multiple) placesusing html meta to stop caching.All has currently failed as the pictures do not update. I have tested the actual files themselves and they are updating. So it appears that the page is showing cached data rather than the new image.Any help to get my images to update will be greatly appreciated.Kind Regards
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend