Before you begin, try putting this code inside an aspx page on your web server and browse it to make sure ASP.NET is working. (Take out the spaces)
< %@ Page Language="C#" % >
< %
Response.Write("Test C#");
Response.Write(System.DateTime.Now);
% >
< %=System.DateTime.Now% >
Here is some actual code that I am using for a button:
<asp:button runat="server" width="100%" cssclass="DirButton"
id="btnFolder" OnClick="OnFolderSelected"
Text='<%# DataBinder.Eval(Container.DataItem, "FolderName") %>' />
You don't need to use all the attributes. Assuming you put the spaces in your code intentionally, it looks ok. How does the page render? Look at the html generated by looking at view source.
-Dave
>I am using .Net Beta II and created an .aspx page according to the "Walkthrough: Creating a Basic Web Forms Page" documentation.
>
>After dragging a Web Server Control (Button) on to the page as described, the following code was added to the page:
>
>< asp:button id="Button" runat="server" >< /asp:button >
>
>This is correct according to the documentation but after 'build and browse' the button does not appear on the page.
>
>Covering new ground... Wondering if its a Beta II problem.
>
>Todd