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

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

Loading pages content with jquery

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

Hi people

I would like to know, based on your experience, if loading every page content into a div with jquery is a good practice.





View Complete Post

More Related Resource Links

jquery not working in content pages and debugging jquery


Hey! Friends

        Please provide me some sample code to work with jquery in content pages. For example my jquery code for validating username availability works in web form but not in content page.

Thank You.

using jquery in content pages


i have found out a way to find controls on content pages by using

var txt = $('input[id$=TextBox1]'). But how to access html elements like "<p>" tag and others in jquery when the html elements are in content page only.


jquery with content pages.... ARRRGGHHH!!!


Sorry, for the subject, but this is getting very annoying... 

basically, from what i have endured from the past day and half, jquery does not work with content pages.

i currently have the main jquery script in the master page ( in header ):


script language="javascr

Application Vs. Content Pages in SharePoint

SharePoint has two types of ASPX pages. One type is the application page, also known as a _layout page. The other type of ASPX page is a content page, also known as a site page. Each of these page types is stored in a different location in SharePoint. When developers create custom ASPX pages, they must decide on the page type.

Content deployment: pages not based on a page layout

Is it possible to use content deplyoment feature when pages (in page library) are not based on a Page Layout?

SharePoint 2007 - Consolidating everything as feature into WSP [Content Type, Page Layout, Pages, Ma


Hello –


Overview – We are building a Mobile Web Site using SharePoint 2007. The big screen site has been already built and we need to integrate the mobile site into same site collection of big screen –


·         The Mobile site will use the existing content types of existing big screen site

·         We will build a new custom Master page

Developing common content pages that can be hosted at the Web application or TLS level and can be sh

We are working on a Publishing site and planning to provision each client as a sub-site under the top level site (TLS). All of these sub-sites will almost have the same web pages and based on the client specific requirement they can customize these pages if needed. To meet the above requirement: I want to develop common content pages or application pages with the publishing capabilities and host them at the TLS, making these common pages available for all sub-sites under the TLS with the following requirements. ·        Sub-sites will not have any of these pages on their own and there would be only one central copy of this common page at TLS. ·        The sub-sites should be able to access these common pages in their context that means using the sub-site specific Master page & Themes. ·        When there is a specific customization is required such as adding a different web part, or updating the HTML data on the page, the common page will be edited in the sub-site and eventually making its own copy of the common page and resulting breaking apart from the common page for any future changes. ·        When the user edits the page he should be alerted that customizing this common page will make a local copy an

How to develop Common Content or Application pages in Sharepoint 2010, with respect to the customiz

  I have a top level site and subsites (which might be around 10). Where as the top level site represents a common landing page and each sub site represents a client site to which user will be directed upon login. This is a PUBLISHING web site. I need to design to start with common pages across all clients and if there is a need let the client to customize the common page accroding to their need. This is a PUBLISHING site so all these common pages should have Web parts zones with authoring capabilities. What is the best way of achieving this?    

Im trying to print the content of a listbox1 but the printing is false so all the pages coming out f

 ManagementObjectSearcher mosPrinter = new ManagementObjectSearcher("SELECT * FROM Win32_Printer");                 foreach (ManagementObject moDiskete in mosPrinter.Get())                 {                     foreach (PropertyData p in moDiskete.Properties)                     {                           // listBox1.Items.Add(p.Value);                         listBox1.Items.Add(String.Format("{0}: {1}", p.Name, p.Value == null ? "NULL" :myprint.DocumentName=p.Value.ToString()));                      //   myprint.DocumentName = p.Value.ToString();                     

master pages - how to access content page from master page?

Hello,I have a master page setup that is used throughout my site that is basically a header with a menu. I recently added a textbox and a button to this master page which is to be a quick search box that is available anywhere in the site. When a user enters text into the search box and hits the button, I need to load the actual content page which is used to search and show search results (which also uses this same master page), and have the text entered available so the search can be triggered automatically. Again, this search text box and button is now in my master page so it could be  triggered from anywhere in the app... it serves as a convenient way to do a basic search from anywhere in my app, without having to first navigate to the actual 'search page' that already exists.  You can also navigate to the actual search page, which uses the same master page, where there is many more search options.I'm thrown off by the master page arrangement, which I have not used until this project. What do I do?

Web Developer is not loading my web pages

Hi All,   In urgent need of some help. I have been using Visual Web Developer without any problems until yesterday, when it decided that it is no longer going to load any of my web pages.  I have tried creating a very simple project with a single hyperlink on the page, but the page does not load. If I  Change the "use dynamic ports" to false and select a port number i get the following message "unable to launch the ASP.Net development Server. Port 'xxxx' is in use". Does anybody have any ideas as to what could possibly have happened to my Web Developer to cause this?   Any help is appreciated.   ThanksEddieB

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!!

Deferred Content Loading

I am having problems loading content  dynamically. The following is my situation: I created a user control that consists of common web server controls. I intend to load this control dynamically.  The gist is that I want to take the IDs of a few checkboxes on the form, pass this list of IDs to a web method and from this method load one user control per ID on the list. Everything works fine up to this point. My problems begin when I try to test events on the server controls within the dynamically-created user control. Only the events for the first user control work. The remaining N user controls fail to raise events from their web server controls. I even tried s simple JavaScript alert based on the click of a button and even that fails. Below is the code that loads the user controls. Please help me identify what I am doing wrong.   public string GetBenefitControls(string benefitIds, string contactId){ // build list of benefit IDs from input List<int> benefitIdList = new List<int>(); foreach (string item in benefitIds.Split(new string[] {"|"}, StringSplitOptions.RemoveEmptyEntries)) {  int benefitId;  if (int.TryParse(item, out benefitId))   benefitIdList.Add(benefitId); }  // build list of benefit objects from each id List<Benefit> benefitList = new List<Benefit>

Content Organizer for Pages



I am trying to use the 2010 Content Organizer feature to route documents within my Pages library.  This is actually MS's recommendation for large Pages libraries (http://technet.microsoft.com/en-us/library/ee721053.aspx).  At first I wasn't sure that this would work for me because I didn't think the content organizer feature would work on anything but document content types, however I have seen it work on a few of my pages (custom content type inheriting from Page) and Page is listed as a supported content type  (http://www.sharepointanalysthq.com/2010/05/content-organizer-routing-limitations/). However, I am seeing some inconsistent behavior of this feature.

Here is what I have set up:  Pages library with only my custom content type accepted (inherits from Page).  I created a few simple rules to route content into folders within the Pages library based on a site column used (and required) on this custom content type.  I have a few different page layouts that can be used.  For each of them, the custom content type is the only supported one.  There ar

help me on master pages & content place holders.


Hello sir, i am new to this forum, so please excuse me on my mistakes. I have a master page with asp TextBox and a Button also with 2 ContentPlaceHolders(ContentPlaceHolders1 & ContentPlaceHolders2). The project contains 2 WebForms Default.aspx & Search.asp. The purpose is to use the button click event to search records & place the results in the content page Search.aspx in ContentPlaceHolders1. The search is working fine but the problem is that the results get placed on the top(instead in the ContentPlaceHolders1) with the master page controls going down on the Search.aspx page. Please help me on this. I tried a lots of things like changing search page events to Page_LoadComplete etc etc but nothing worked.

My Default.aspx.vb code is as:

    Public Sub mySearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles mySearch.Click

        Response.Redirect("Search.aspx?nameA=" + Keyword.Text)

    End Sub

End Class

My Search.aspx page is:

Problems loading pages that require to be logged in.


So the problem is that when a user logs on the website and he tries to load a pages that requires someone to be logged in. For example to edit his profile or add a record to the database. So when I log in and try to load profile.aspx he gives me the following error.

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

Source Error:

Line 58:     Public Overridable Property Voornaam() As String
Line 59:         Get
Line 60:             Return CType(Me.GetPropertyValue("Voornaam"),String)
Line 61:         End Get
Line 62:         Set

Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\flanders_website\925da723\20319e75\App_Code.45wzfix6.19.vb    Line: 60

However if I try to do this on my local machine for testing everything works fine. (on the same da

Response.Redirect Holds Other Pages from Loading


Here's the scenario.

I've got a form with a button on it. You have to be logged in to see this form. I use this code to check if the user is logged in and act appropriatley.

Dim isLoggedIn As Boolean = CType(Session("LoggedIn"), Boolean)

        If isLoggedIn = False Then
        End If

The button runs a report that takes anywhere from 0.5 to 20 seconds. For testing it just sleeps for 10 seconds.


The problem is this. Say User1 comes to the form, logs in and runs the report. If User2 comes to the form, the page will not load until User1's report is done.

Now, the bonus is if I comment out the response.redirect line, everything works fine. But if that line is in there I will get this problem.

My quesiton is why is this happening? What's going on in the background that's causing this? Any way around it?

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