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 5966509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:48:36+00:00 2026-05-22T19:48:36+00:00

I have an update panel in my page which runs a function and sends

  • 0

I have an update panel in my page which runs a function and sends an e-mail fine but when I added in the code below it doesn’t seem to add it correctly to the page

Page.ClientScript.RegisterClientScriptInclude("myscript", "/scripts/myscript.js")

All the other stuff in my Sub runs fine but it just seems to not run that bit?

Any ideas?

EDIT

Here’s my code

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<Triggers>
    <asp:AsyncPostBackTrigger ControlID="button1" EventName="Click" />
</Triggers>
<ContentTemplate>

    <asp:TextBox ID="textbox1" runat="server"
        Text="Name" />

    <asp:LinkButton ID="button1" OnClick="submitbutton1" runat="server"
        Text="SUBMIT" />

</ContentTemplate>
</asp:UpdatePanel>

And the Sub

Sub submitbutton1(ByVal sender As Object, ByVal e As EventArgs)
    Response.write("Test")      

    Page.ClientScript.RegisterClientScriptInclude("myscript", "/scripts/myscript.js")

End Sub
  • 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-22T19:48:37+00:00Added an answer on May 22, 2026 at 7:48 pm

    Use ScriptManager.RegisterClientScriptInclude. There is a catch, though. For each script that you want to include asynchronously, you must end it with

    if (typeof (Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an updatepanel which doesn't work. My whole code: <%@ Page Language=C# MasterPageFile=~/Master.Master
I'm using an Ajax update panel and have recently added ASP.NET tracing code to
We have an ASP.NET page which uses an update panel for partial page postbacks.
I have a panel on an aspx page which contains an UpdatePanel. This panel
I have code in an Update Panel and even though on a button click
I have an update panel on my page with some links that have onClick
I have a number of asp.net AJAX update panels on a page, that can
I have an ASP.Net 2.0 page that contains two UpdatePanels. The first panel contains
I have a ListView inside of an Update Panel and wanted to change the
Greetings all, I have a simple JQuery function which is bound to an ASP:Button

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.