Reputation: 1228
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.
Upvotes: 3
Views: 588
Reputation: 2428
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
Upvotes: 3
Reputation: 15754
An <asp:Button />
will render as an <input>
control.
If you need to style it, can't you just create a class.
.buttonStyle { whatever: style; }
Then your developer can just apply the style.
<asp:Button ID="button" CSSClass="buttonStyle" runat="server" />
Express versions of Visual Studio are also available as well.
Upvotes: 0
Reputation: 20415
Just right-click -> view source on his page and show him the actual markup of it rendering the <input />
element. Proof is in the source!
Upvotes: 0
Reputation: 3218
You're correct, an ASP Button will render to an HTML input control. Also, you might want to try out the free version of Visual Studio for web.
Upvotes: 1
Reputation: 38503
To run the project you can download Visual Studio Express, or purchase a version of Visual Studio.
In the end ASP.NET controls like <ASP:Button>
will render as HTML elements as you stated.
Upvotes: 1
Reputation: 3557
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.
Upvotes: 1