skcratch Posted June 11, 2008 at 12:27 AM Report Share #190646 Posted June 11, 2008 at 12:27 AM Viva! Será que alguém me poderia indicar como posso converter um DataValueField de uma DropDown para um valor inteiro, em C#? Grato desde já pela ajuda! Cumps! 😉 Link to comment Share on other sites More sharing options...
vitortomaz Posted June 11, 2008 at 09:29 AM Report Share #190676 Posted June 11, 2008 at 09:29 AM podes usar, por exemplo, Convert.ToInt32(DropDownList1.DataValueField) dentro de um try catch http://vitortomaz.blogspot.com/ Link to comment Share on other sites More sharing options...
Tiago Salgado Posted July 31, 2008 at 01:26 PM Report Share #202084 Posted July 31, 2008 at 01:26 PM Não será mais Convert.ToInt32(DropDownList1.SelectedValue); ? Link to comment Share on other sites More sharing options...
vitortomaz Posted July 31, 2008 at 07:45 PM Report Share #202159 Posted July 31, 2008 at 07:45 PM Não será mais Convert.ToInt32(DropDownList1.SelectedValue); ? a pergunta diz DataValueField 😛 http://vitortomaz.blogspot.com/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now