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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T17:58:39+00:00 2026-05-29T17:58:39+00:00

I have a javascript link which I need to appear in a table on

  • 0

I have a javascript link which I need to appear in a table on my aspx page. Hard coding it as a literal isn’t working right. Consultation with the script’s provider suggests I shouldn’t hard-code it, but should embed it using ScriptManager. How do I get the link as javascript into the appropriate place in my page (it goes in a table)? I have this code to register the script:

string myScript = "http://forms.aweber.com/form/85/1556724385.js";

ClientScript.RegisterClientScriptBlock(this.GetType(), "MyScript", myScript);

I want this link to appear in this table cell:

<asp:TableRow ID="TableRow3" runat="server">
   <asp:TableCell ID="TableCell4" runat="server" HorizontalAlign="Center">
   </asp:TableCell>
</asp:TableRow>

Not clear on how to do this… insert into some control inside the cell, such as a Panel? And I am unclear on how to “emit” the script.

Edited to add:

After communicating with the vendor, it is clear that trying to do what I am trying to do in an ASP.NET page will not work — at least with the current version of the product. So I’ve accepted @cccason’s answer, since it comes closest to what the answer would be if the situation were otherwise.

  • 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-29T17:58:40+00:00Added an answer on May 29, 2026 at 5:58 pm

    So, I would suggest just dropping it in there instead of using RegisterClientScriptBlock if you need it anywhere EXCEPT the start of the form tag.

    The RegisterClientScriptBlock method places the JavaScript directly after the opening element in the page.

    So I would do something like this:

    <asp:TableRow ID="TableRow3" runat="server">
       <asp:TableCell ID="TableCell4" runat="server" HorizontalAlign="Center">
           <script type="text/javascript" src="http://forms.aweber.com/form/85/1556724385.js"></script>
       </asp:TableCell>
    </asp:TableRow>
    

    So, whats happening in the script is that it writes some DOM elements out to your page. Since you are using webforms, this all sits inside of a tag. The stuff they are writing to your page is another . So you’ll end up with a form in a form. Then, when you submit the information, it is supposed to postback to http://www.aweber.com/scripts/addlead.pl.

    You should check the request that is being sent and see what its trying to do. You can use firefoxes firebug, fiddler or chrome’s tools (f12).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following JavaScript code: Link In which the function makewindows does not
I have a timer in my JavaScript which needs to emulate clicking a link
I need to dynamically set which id a JavaScript call uses, as I have
I have a PHP page which generates an HTML table. At the bottom of
I have table which has about 50 rows. Each row has link, but I
I have seen this link: Implementing Mutual Exclusion in JavaScript . On the other
I've seen (and used) code to have a link spawn a javascript action many
I want to have java script clicking a link on the page..I found something
I have the following js files in my code for EditInPlace... <?php echo $javascript->link('jquery.js');?>
I have JavaScript code which copies the value of input file and paste it

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.