Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
how to set html attributes to asp.net controls
June 14, 2009
how to set html attributes to asp.net controls in asp.net application. For eg. i want to set "alt" attribute to asp.net image control.
I am using asp.net and C# as code language
Posted Date: June 15, 2009 Points: 5
Asp.net control have attributes like html attributes but some attributes name changed..
For asp.net Image control 'alt' attributes can set using 'AlternateText' just check the following example
<asp:Image ID="img1" runat="server" ImageUrl="image.gif" AlternateText="Image" />
To post reply
Related Questions Related Questions
Can we use Web form controls in window form of Windows application
Multiple controls selection in VS2008
Visual Studio .Net 2008, There are no controls in the toolbox???
About get all Controls in a form
Regarding Retrieve the Controls
ASP.NET - SQL injection and HTML injection
ASP.NET - Loading controls at one time (on application load)
HTML Line Break tag is not working in Chrome browser
ASP and HTML Form code to store User name and Password in the Access database and Retriew it
Latest Forum Questions From The Same Category
Slash(/) in Combobox
attaching the report in the web page
How do i get payment status in redirect page using bitpay?
Login with Facebook and Save details in database
Login with facebook account in my website
How to make a nested datalist control?
What class does Icon derive from?
What are the validation controls?
What''s the difference between an interface and abstract class?
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend