Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6891565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:25:34+00:00 2026-05-27T06:25:34+00:00

I have a User Control which renders a simple drop downList into the page.

  • 0

I have a User Control which renders a simple drop downList into the page.

By default, only certain values are returned depending on User Details, but the user may request a “full” list.

I’d like this full list to be generated by pressing a reload button.

Being new to .NET I am struggling to get this to work and not really understand the results I get when Googling or finding stuff on this site. Is Classic ASP I’d have made a page that renders this and called it using jQuery

What I want to do is:

    $('.loadMore').live('click', function () {
        $('#listContainer').load('/Controls/List.ascx');
    });

But this returns an error in Firebug saying "NetworkError: 403 Forbidden"

I don’t particularly want to use an updatepanel.

I’ve found this link: http://www.codeproject.com/Articles/117475/Load-ASP-Net-User-Control-Dynamically-Using-jQuery but am unsure exactly what it is suggesting, mainly I think, because I use VB and don’t completely understand how to convert that C# code there.

Using .NET 2.0, jQuery and VB, does anyone have any suggestions on the simplest way to accomplish this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:25:35+00:00Added an answer on May 27, 2026 at 6:25 am

    Does a conversion help you:

    Public Class jQueryHandler
        Implements IHttpHandler
        Public Sub ProcessRequest(context As HttpContext)
            ' We add control in Page tree collection
            Using dummyPage = New Page()
                dummyPage.Controls.Add(GetControl(context))
                context.Server.Execute(dummyPage, context.Response.Output, True)
            End Using
        End Sub
    
        Private Function GetControl(context As HttpContext) As Control
            ' URL path given by load(fn) method on click of button
            Dim strPath As String = context.Request.Url.LocalPath
            Dim userctrl As UserControl = Nothing
            Using dummyPage = New Page()
                userctrl = TryCast(dummyPage.LoadControl(strPath), UserControl)
            End Using
            ' Loaded user control is returned
            Return userctrl
        End Function
    
        Public ReadOnly Property IsReusable() As Boolean
            Get
                Return True
            End Get
        End Property
    End Class
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a nested user control which appears on every single page. It contains
i have user control, which i render on several views. i want to show
I have a user control which takes a Func which it then gives to
I have a user control which has a textbox on it, now this usercontrol
I have a user control which does some validation in the ValidateChildren method which
I have a user control which displays the currently logged in user's name. I
I have a user control which uses objects as inner properties (some code is
I have user control named DateTimeUC which has two textboxes on its markup: <asp:TextBox
I have developed a user-control which gets bound to an id-field and then enables
I have a wpf user control which exposes an IEnumerable ItemsSource DependencyProperty. I bind

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.