473,386 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

vs 2008 events missing

I just started using VS 2008 and found that some of the controls events are
gone.

I was using some controls from my 2003 page and got errors on:

button.enabled
button.Text

Both say they are not members of controls.

Why is that?

Thanks,

Tom
Sep 13 '08 #1
2 883
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.

Regards

-------
Munna

www.munna.shatkotha.com/blog
www.munna.shatkotha.com
www.shatkotha.com
Sep 13 '08 #2

"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

Sep 13 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Andy | last post by:
Alright, I am beyond confused here and need some guidance. I need a C# only sample. I have a simple Page and within it i am creating a user control (ascx). The user control contains textboxes,...
11
by: Nicky Smith | last post by:
Hello, I'm studying a book on VB.net Win apps, and I'm reading a section on events and delegates and raising events. Is it just me, or is this not just subs dressed up as something else? I...
2
by: Jason | last post by:
A co worker of mine pointed out that we were missing the page level event properties icon (aka the lightening bolt). This is vs.net 2005 and if I open a web page in design mode apparently there...
3
by: =?Utf-8?B?Rmxhc2hwcm8=?= | last post by:
i have googled this question but cannot find an answer. i'm running windows vista and i'm using Visual Basic Express 2008. i know the build event button SHOULD be in under the compile tag but i...
3
by: Simone Brunozzi | last post by:
Greetings! I'm looking for conferences or events about Python, Django, Dabatases, Mysql, PHP, Ruby in Europe (or nearby locations like north africa and middle east) in 2008. Do you have any...
6
by: Lloyd Sheen | last post by:
Please is there anyone who knows where the cached info for VS 2008 is. I have had so many troubles with this IDE that it is ridicules. Now everytime I change something in the main form I get a...
1
by: Lloyd Sheen | last post by:
I add a webcontrol to a form. Then go to events. There is just a short list of events shown in the properties window of which (StatusTextChanged) is not one of them. So them I go to the code...
37
by: Prisoner at War | last post by:
Actually, it doesn't have to be a blockquote...but I'm at my wits' end: I want to make bold several lines of text which have a pair of <br /tags between them...seems like the <b></bdo not "carry...
3
by: Anane | last post by:
I get following error when i press a command button. The expression click you entered as the event property setting produced the following error: method or data member not found. It gives me...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.