Logo 
Search:

Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

Question

  Asked By: Gowthaman    Date: Dec 23    Category: Asp.net    Views: 750
  

Difference between standard control and html control in asp.net? In which Situation we want to use these controls?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Vivek Patel     Answered On: Dec 23

Asp.net Controls - should be used when you want to do server-side manipulation. (i.e. Having runat="server")
Example: Let say a simple application with input textbox for name. Based on user input you want to display greeting message to user "Welcome UserName". In this situation it is good to go for asp.net textbox control.


Html Controls - should be used when you don't want to do any server-side manipulation. (i.e. NO runat="server")
Example:
displaying horizontal rule (<hr> tag)

 
Didn't find what you were looking for? Find more on Question Or get search suggestion and latest updates.




Tagged: