Skip Navigation Links
Novas Tecnologias
Ferramentas Adicionais
Ferramentas Adicionais

Dica No :
Assunto : ASP.NET
Titulo: Aplicando temas em custom controls

Gostou do texto ? Vote e dê sua opinião! Pontuação atual :

Translate this page now :

Adicione aos Favoritos!
BlogBlogs Rec6 Linkk Ueba Technorati Delicious DiggIt! StumbleUpon

Não é raro precisarmos criar um controle personalizado herdando de alguma classe existente, tal como a gridview ou até mesmo uma simples textbox. Porém isso nos traz um problema : Como criar temas para esses controles personalizados ?

A tag de um custom control, mesmo tendo ele herdado dos controles padrões do ASP.NET, é diferente das tags padrões dos controles e o tema não a reconhecerá.

A solução é mais simples do que parece : Os arquivos .skin aceitam a tag @Register, então podemos dentro do arquivo de skin registrar nossos controles personalizados.

Por exemplo :

<%@ Register TagPrefix="BUF" namespace="BufaloInfo.WebControls" %>

A partir dai podemos nos referir dentro do arquivo .skin a todos os controles personalizados que estejam no namespace BufaloInfo.WebControls

Nome :
Comentarios :
Os Últimos Comentários
data: 9/18/2018 1:56:00 PM
nome: Randy

My name is Randy and I was looking at a few different sites online and came across your site I must say - your website is very impressive. I found your website on the first page of the Search Engine.

Have you noticed that 70 percent of visitors who leave your website will never return? In most cases, this means that 95 percent to 98 percent of your marketing efforts are going to waste, not to mention that you are losing more money in customer acquisition costs than you need to.

As a business person, the time and money you put into your marketing efforts is extremely valuable. So why let it go to waste? Our users have seen staggering improvements in conversions with insane growths of 150 percent going upwards of 785 percent. Are you ready to unlock the highest conversion revenue from each of your website visitors?

TalkWithLead is a widget which captures a website visitor’s Name, Email address and Phone Number and then calls you immediately, so that you can talk to the Lead exactly when they are live on your website — while they're hot! Best feature of all, we offer FREE International Long Distance Calling!

Try the TalkWithLead Live Demo now to see exactly how it works. Visit:

When targeting leads, speed is essential - there is a 100x decrease in Leads when a Lead is contacted within 30 minutes vs being contacted within 5 minutes.

If you would like to talk to me about this service, please give me a call. We do offer a 14 days free trial.

Thanks and Best Regards,

data: 9/13/2018 1:40:00 PM
nome: ??
nice to know ?????

data: 9/7/2018 9:27:00 PM
nome: ??
nice to know ?????

data: 8/29/2018 11:02:00 PM
nome: WANG

data: 8/29/2018 2:42:00 AM
nome: ????
nice to know ?????

Dica do Dia
Receba Dicas Por Email
E-mail :  

Aceito receber informativos do devASPNet, informações de eventos e treinamentos

Veja Quais Informativos Você Receberá

Pesquisar Dicas
Pesquisar Artigos, Dicas e Noticias

Banco de Dados
Algumas Entrevistas
Links Importantes

Búfalo Informática, Treinamento e Consultoria
R. Alvaro Alvim, 37/920 Centro - Cinelândia - Rio de Janeiro Cep: 20031-010
Tel : (21) 2262-1368 (21) 9240-5134 E-mail :