Click here to Skip to main content
15,883,705 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi everybody,

please can anyone help me how to learn web design in asp.net using css classes either with master page or in to individual pages.

regards
Posted

1 solution

asp.net web designing is same as html designing.

//This is an asp.net control:
ASP.NET
<asp:textbox id="text" runat="server" xmlns:asp="#unknown" />


//This is html tag
HTML
<input type="text" />


-- CSS --
// Css class that we will be implementing in both asp.net control and html tag

CSS
.inputCss{
color:red;
}


// Implementing CSS Class

ASP.NET
<asp:textbox id="text" runat="server" cssclass="inputCss" xmlns:asp="#unknown" />


HTML
<input type="text" class="inputCss" />


you can also write simple class attribute for asp.net control.

ASP.NET
<asp:textbox id="text" runat="server" class="inputCss" />


Suggestion:-
My suggestion to you is learn html designing because all ASP.Net control first renders in HTML tags. The way you can check this is open any page of asp.net in your browser and do inspect element or press (Ctrl+Shift+I) in google chrome or F12 in firefox you will see that all asp.net control will be rendered to html tags.

Hope this helps you a bit.
 
Share this answer
 
v2
Comments
Badour alsamaraie 28-Apr-15 6:52am    
i know how to use html, i want to learn hoe to use .css and combine it with asp.net control

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900