"Munna" <mu******@gmail.comwrote in message
news:08**********************************@p25g2000 hsf.googlegroups.com...
Hi
"found that some of the controls events are
gone. "
you are talking about property right?
some events on the data controls are changed
like
itemdatabound changed to rowdatabound in case of datagrid
but primitive stuff is not changed..
please check the converted project's namespaces again.
I was playing with it and figured out what it was. In the following:
addQuestionButton.enabled = True
I was setting a button variable to passed object:
Dim addQuestionButton = e.Item.FindControl("AddQuestion")
But this wasn't setting it to a button, I guess, until I changed it to:
Dim addQuestionButton = CType(e.Item.FindControl("AddQuestion"),
Button)
And then it worked fine.
I am kind of surprised that I didn't need an "As Button" in it like so:
Dim addQuestionButton As Button =
CType(e.Item.FindControl("AddQuestion"), Button)
Thanks,
Tom
>
Regards
-------
Munna
www.munna.shatkotha.com/blog
www.munna.shatkotha.com
www.shatkotha.com