By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,851 Members | 1,121 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,851 IT Pros & Developers. It's quick & easy.

WHERE IS *.ASPX.DESIGNER.VB FILES???????

P: n/a
I am so frustrated, as is USUAL using Visual Studio.
NONE, NOOOOONE of my aspx files have associated designer.vb files available
(And yes, they all have the .vb code behind files).
All of my aspx files were created with the seperate code file option. I
never needed to access the designer files before, so I have no idea if they
were ever there. If they are not, how are events being wired up? They MUST be
present. Now that I DO need them, I cannot access them at all. I have tried
clicking the "show all files" in solution exporer, which is always dimmed out
but is clickable. And what makes it worse is I have just spent 2 hours
pulling my hair out on google with no results, as is usual when dealing with
Visual Studio issues. It's times like this that I SOOOOOOO REGRET not
learning UNIX/JAVA instead!!!!!!!!!
Please help me, if for anything, the $1,000's of dollars that I have spent
on MSDN subscriptions!
Jan 18 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hello pickedaname, if you create a new website (not a web application) then
there will not be any designer file and event wiring is through the aspx.
Can you post your page, if wiring is not event present in aspx?

Thanks,
Harshal

"pickedaname" <pi*********@community.nospamwrote in message
news:38**********************************@microsof t.com...
>I am so frustrated, as is USUAL using Visual Studio.
NONE, NOOOOONE of my aspx files have associated designer.vb files
available
(And yes, they all have the .vb code behind files).
All of my aspx files were created with the seperate code file option. I
never needed to access the designer files before, so I have no idea if
they
were ever there. If they are not, how are events being wired up? They MUST
be
present. Now that I DO need them, I cannot access them at all. I have
tried
clicking the "show all files" in solution exporer, which is always dimmed
out
but is clickable. And what makes it worse is I have just spent 2 hours
pulling my hair out on google with no results, as is usual when dealing
with
Visual Studio issues. It's times like this that I SOOOOOOO REGRET not
learning UNIX/JAVA instead!!!!!!!!!
Please help me, if for anything, the $1,000's of dollars that I have spent
on MSDN subscriptions!
Jan 19 '08 #2

P: n/a
You've most likely made an ASP .NET Web "Site", rather than an ASP .NET "Web
Application Project" (only available in VS 2005 SP1 or VS 2008).

With web "sites", there is no .designer.vb file because the code is
dynamically compiled when it is called. You'll notice that in the Page
Directives (in the .aspx source code) that the AutoEventWireUp directive is
set to true, this means that as long as your event handler names are a
combination of the control name, an underscore and the event name, along
with appropriate parameters, the event will automatically "wire up" to the
event handler.

Any controls you put on your page are created "declaratively" and so, no
..NET code actually exists for them at design-time.

What is it that you need to do that you can't do with this model?

-Scott
"pickedaname" <pi*********@community.nospamwrote in message
news:38**********************************@microsof t.com...
>I am so frustrated, as is USUAL using Visual Studio.
NONE, NOOOOONE of my aspx files have associated designer.vb files
available
(And yes, they all have the .vb code behind files).
All of my aspx files were created with the seperate code file option. I
never needed to access the designer files before, so I have no idea if
they
were ever there. If they are not, how are events being wired up? They MUST
be
present. Now that I DO need them, I cannot access them at all. I have
tried
clicking the "show all files" in solution exporer, which is always dimmed
out
but is clickable. And what makes it worse is I have just spent 2 hours
pulling my hair out on google with no results, as is usual when dealing
with
Visual Studio issues. It's times like this that I SOOOOOOO REGRET not
learning UNIX/JAVA instead!!!!!!!!!
Please help me, if for anything, the $1,000's of dollars that I have spent
on MSDN subscriptions!
Jan 20 '08 #3

P: n/a

Hi Scott,
I was trying to add a MultiMenu control to a test page (I want to test
before I move it to the production master page) within the same site. I
cannot handle events for this control. in the code behind, when I create a
sub for the multiMenu1_MenuItemClicked, the "Handles MultiMenu1.Clicked"
portion is underlined. "Handles clause requires a withevents variable defined
in the containing type or one of its base types." So what you are saying is
if I create a sub
MultiMenu1_MenuItemClicked Sub without the Handles clause and
autoeventwireup is true it will create this on the fly. The question is, am I
free to create this sub in the code behind file, where the others are, or
must I insert this into a script block in the .aspx file? Thanks.

"Scott M." wrote:
You've most likely made an ASP .NET Web "Site", rather than an ASP .NET "Web
Application Project" (only available in VS 2005 SP1 or VS 2008).

With web "sites", there is no .designer.vb file because the code is
dynamically compiled when it is called. You'll notice that in the Page
Directives (in the .aspx source code) that the AutoEventWireUp directive is
set to true, this means that as long as your event handler names are a
combination of the control name, an underscore and the event name, along
with appropriate parameters, the event will automatically "wire up" to the
event handler.

Any controls you put on your page are created "declaratively" and so, no
.NET code actually exists for them at design-time.

What is it that you need to do that you can't do with this model?

-Scott
"pickedaname" <pi*********@community.nospamwrote in message
news:38**********************************@microsof t.com...
I am so frustrated, as is USUAL using Visual Studio.
NONE, NOOOOONE of my aspx files have associated designer.vb files
available
(And yes, they all have the .vb code behind files).
All of my aspx files were created with the seperate code file option. I
never needed to access the designer files before, so I have no idea if
they
were ever there. If they are not, how are events being wired up? They MUST
be
present. Now that I DO need them, I cannot access them at all. I have
tried
clicking the "show all files" in solution exporer, which is always dimmed
out
but is clickable. And what makes it worse is I have just spent 2 hours
pulling my hair out on google with no results, as is usual when dealing
with
Visual Studio issues. It's times like this that I SOOOOOOO REGRET not
learning UNIX/JAVA instead!!!!!!!!!
Please help me, if for anything, the $1,000's of dollars that I have spent
on MSDN subscriptions!
Jan 20 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.