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

  • Home
  • SEARCH
  • 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 have some conditional formatting styles. I don't want to keep creating new rules
Let's say I have some HTML like this: <ol><li>a knock at the door, I'll
I have some strings that contain line breaks, and I would like to keep
How do many of the websites that have logins keep the username in the
In my implementation of JTable . I have to keep some columns editable and
I have used the Keep-Alive control of Upgrade Pack 1, and I have this
I have JSON that keep changing , I need in android to keep updating
I have some content (some from an external source, some specially written) that is
I have a textarea and I want to support some simplest formatting for posted
I have a macro that add hundreds of lines of data to an excel

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.