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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:54:12+00:00 2026-05-13T23:54:12+00:00

I just wrote this into my WebForms .aspx: <span id=GenerateChartButton runat=server></span> I went to

  • 0

I just wrote this into my WebForms .aspx:

<span id="GenerateChartButton" runat="server"></span>

I went to the code-behind, and typed this:

this.GenerateChartButton

and it’s not recognising that I added the span to the page. Is there something I need to do to make this happen? I have been working in MVC lately, so I haven’t had to worry about the relationship between the page & code-behind in a while, but I can’t remember any tricks that I had to perform to reference a HTML element in my code.

Can anyone remind/inform me of what I’m not doing?

Thanks

Dave

  • 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-13T23:54:13+00:00Added an answer on May 13, 2026 at 11:54 pm

    Delete the .designer file (make a backup first) and then right click on the .aspx file and select ‘Convert to Web Application’. That should make the designer file for you.

    If it does not then you either have duff HTML which you need to correct first, your header line is poitning to the wrong class or a reference to a piece of code is broken.

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

Sidebar

Related Questions

I just wrote this code to convert a GUID into a byte array. Can
I'm just starting to learn F#. I wrote this F#/ADO.NET code last night. In
I wrote this small code just to see how an iterator actually gets invalidated
I'm really confused, I just wrote this x = 0 y = 42 #Can
Just for fun, I wrote this simple function to reverse a string in Python:
I wrote a program to solve a complicated problem. This program is just a
I'm just wondering if there is a best case to write this code: $('#set_duration_30').click(function(event)
This is just a question on how to write my code for a COM
I wrote this code to do the IEEE 754 floating point arithmetic on a
I just wrote some code. It has my own custom made class. In that

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.