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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:05:52+00:00 2026-05-12T18:05:52+00:00

I have to keep the formatting the exact same way that I got this

  • 0

I have to keep the formatting the exact same way that I got this static html page but have to add some code to it. Right now, I’m stuck with a regular html submit button and I need to figure out a way to switch it to an asp.net button without ruining the format.

So how do I convert:

<button type="submit"><span><span>Review</span></span></button>"

To a regular ASP.NET control while keeping the span tags? The button I was hoping had some innerhtml property but it doesn’t.

  • 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-12T18:05:53+00:00Added an answer on May 12, 2026 at 6:05 pm

    Simply place the following attributes in the button :

    runat="server" id="btnSubmit" onserverclick="DoSomething"
    

    and wire it up to the code-behind

    protected void DoSomething(object sender, EventArgs e)
    {
        Response.Write("Hello world");
    }
    

    and it’s turned into a server control.

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

Sidebar

Related Questions

I keep finding that if I have nested divs inside each other, and one
We have a class library where we keep a lot of the stuff that
I keep hearing people complaining that C++ doesn't have garbage collection. I also hear
I have an alert script that I am trying to keep from spamming me
I have a button on my windows form that calls the RunWorkerAsync() method, this
I am interested to know what strategies people have to keep their code AND
I have a great deal of data to keep synchronized over 4 or 5
I have implemented VirtualPathProvider class so I can keep all my views in the
I have been using git to keep two copies of my project in sync,
I have an .asmx in a folder in my application and I keep getting

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.