Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

styling an asp:button server control

Tags:

.net

asp.net

I by no means a .NET developer but I have a task to style "CSS" a .NET project. When I met the responsible developer, he told me that this:

<asp:Button ID="Button1" runat="server" Text="Test Button" />

will render as an <asp:button>

I told him no, it will render a <button> or <input>.

Is there any source of clarification about this? Can you also any help on how can I set a .NET server on my Windows machine, so I can test code?

I have WAMP installed & I want to run both, 'cause most of my work is on WAMP.

Thanks a lot everyone for the fast replies & links.

like image 638
ahmedelgabri Avatar asked Feb 20 '26 07:02

ahmedelgabri


2 Answers

To setup a .NET server I would take a look at the Microsoft Webplatform Installer as that will give you everything you need very easily including a Visual Studio Express.

As to asp.net controls they get rendered out as regular html like so

<input type="submit" name="Button1" value="Button" id="Button1">

The web forms website will give you some more tips

like image 76
Nicky Waites Avatar answered Feb 21 '26 20:02

Nicky Waites


If you want to test the code, just install Microsoft® Visual Web Developer® 2010 Express

It has a buid-in server so you will be able to test the whole thing.

like image 27
DavRob60 Avatar answered Feb 21 '26 21:02

DavRob60



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!