1

I know there must be a simple answer I'm overlooking here . . . I have an ASP.NET application and I'm using an HTML template I bought. The template has CSS definitions for buttons like (note there is no class defined)

<button type="submit">

But I'm using ASP.NET buttons which render like

<input type="submit">

How can I make it so that the two buttons render in the same way? I need the input tag to have the same formatting as the button tag

2
  • And you're unable to edit your template or what exactly is the problem? What have you tried so far? Commented Apr 13, 2012 at 21:44
  • possible duplicate of How can I use the button tag with ASP.NET? Commented Apr 13, 2012 at 21:51

1 Answer 1

1

Not too trivial, but there's a way to do it (Article Here)

Basically, you need to implement a control adapter and get a .browser file to have your application render it that way. Take a look on the article.

Sign up to request clarification or add additional context in comments.

2 Comments

Oy vey! Thank for your answer, this looks like what I'm looking for. But you're certainly right, it's far from trivial like I was hoping!
.browser files and control adapters are no longer supported by Microsoft. Tag mapping maybe?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.