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

Web Matrix and Visual Web 2005 Questions

P: n/a
Hello,

In Web Matrix, I am able to work on a single ASPX file and double click on a
control and it will take me to the subroutine so I can code the button.

In Visual Web Developer, if I do the same (single ASPX file, double click on
a control) it takes me to the HTML code and not the VB code.

Why is this?

Thanks,
Brian
Nov 20 '05 #1
Share this Question
Share on Google+
11 Replies


P: n/a
Webmatrix did the same thing Visual Web Developer is doing, however,
they just hid the HTML from you. They had like 3 views, HTML View,
Code View, All View. When you double clicked on the button it took you
to Code View so you only saw VB code, howver, the code was still
embedded in the aspx page. You can see that if you select All View.

You can do Codebehind in VWD, however you have to select the option to
place code in a seperate file when you go to add a page to your website.

Nov 20 '05 #2

P: n/a

"tdavisjr" <td******@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Webmatrix did the same thing Visual Web Developer is doing, however,
they just hid the HTML from you. They had like 3 views, HTML View,
Code View, All View. When you double clicked on the button it took you
to Code View so you only saw VB code, howver, the code was still
embedded in the aspx page. You can see that if you select All View.

You can do Codebehind in VWD, however you have to select the option to
place code in a seperate file when you go to add a page to your website.


Thanks..I will try this. I just find it a little easier when it creates the
SIGNATURE line automatically. This doesn't happen in single file ASPX files
in VWD. At least I can't get it to with the advice you mentioned.

This is just so silly..I am a newbie to VWD, so I hope my questions aren't
as silly.
Nov 20 '05 #3

P: n/a
You might want to consider asking VWD questions here :

http://forums.asp.net/175/ShowForum.aspx

There's quite a few developers helping each other with VWD there.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Brian" <br**********@gmail.com> wrote in message
news:uO****************@TK2MSFTNGP12.phx.gbl...

"tdavisjr" <td******@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Webmatrix did the same thing Visual Web Developer is doing, however,
they just hid the HTML from you. They had like 3 views, HTML View,
Code View, All View. When you double clicked on the button it took you
to Code View so you only saw VB code, howver, the code was still
embedded in the aspx page. You can see that if you select All View.

You can do Codebehind in VWD, however you have to select the option to
place code in a seperate file when you go to add a page to your website.


Thanks..I will try this. I just find it a little easier when it creates the SIGNATURE
line automatically. This doesn't happen in single file ASPX files in VWD. At least I
can't get it to with the advice you mentioned.

This is just so silly..I am a newbie to VWD, so I hope my questions aren't as silly.

Nov 20 '05 #4

P: n/a
I have..haven't found the answer yet. The main way to fix this is to open a
SITE.

I was just used to working with single ASPX files in Web Matrix, double
clicking on the control and it fills out the signature line for you and then
I code away. Just not sure why VWD wont do this for me in single ASPX files.

B

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
You might want to consider asking VWD questions here :

http://forums.asp.net/175/ShowForum.aspx

There's quite a few developers helping each other with VWD there.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Brian" <br**********@gmail.com> wrote in message
news:uO****************@TK2MSFTNGP12.phx.gbl...

"tdavisjr" <td******@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Webmatrix did the same thing Visual Web Developer is doing, however,
they just hid the HTML from you. They had like 3 views, HTML View,
Code View, All View. When you double clicked on the button it took you
to Code View so you only saw VB code, howver, the code was still
embedded in the aspx page. You can see that if you select All View.

You can do Codebehind in VWD, however you have to select the option to
place code in a seperate file when you go to add a page to your website.


Thanks..I will try this. I just find it a little easier when it creates
the SIGNATURE line automatically. This doesn't happen in single file ASPX
files in VWD. At least I can't get it to with the advice you mentioned.

This is just so silly..I am a newbie to VWD, so I hope my questions
aren't as silly.


Nov 20 '05 #5

P: n/a
re:
not sure why VWD wont do this for me in single ASPX files
You have to be in design mode for this to work.

The integrated VWD in VS.NET works the same way you describe.
It would be baffling if it didn't work the same way in the stand-alone version.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Brian" <br**********@gmail.com> wrote in message
news:eb****************@TK2MSFTNGP14.phx.gbl...I have..haven't found the answer yet. The main way to fix this is to open a SITE.

I was just used to working with single ASPX files in Web Matrix, double clicking on the
control and it fills out the signature line for you and then I code away. Just not sure
why VWD wont do this for me in single ASPX files.

B

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
You might want to consider asking VWD questions here :

http://forums.asp.net/175/ShowForum.aspx

There's quite a few developers helping each other with VWD there.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Brian" <br**********@gmail.com> wrote in message
news:uO****************@TK2MSFTNGP12.phx.gbl...

"tdavisjr" <td******@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Webmatrix did the same thing Visual Web Developer is doing, however,
they just hid the HTML from you. They had like 3 views, HTML View,
Code View, All View. When you double clicked on the button it took you
to Code View so you only saw VB code, howver, the code was still
embedded in the aspx page. You can see that if you select All View.

You can do Codebehind in VWD, however you have to select the option to
place code in a seperate file when you go to add a page to your website.

Thanks..I will try this. I just find it a little easier when it creates the SIGNATURE
line automatically. This doesn't happen in single file ASPX files in VWD. At least I
can't get it to with the advice you mentioned.

This is just so silly..I am a newbie to VWD, so I hope my questions aren't as silly.



Nov 20 '05 #6

P: n/a
I am in design mode. I add a control in a single ASPX file, double click on
it and it takes me to the HTML and doesn't create the event handler for,
say, Button1_Click.

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ud**************@TK2MSFTNGP09.phx.gbl...
re:
not sure why VWD wont do this for me in single ASPX files


You have to be in design mode for this to work.

The integrated VWD in VS.NET works the same way you describe.
It would be baffling if it didn't work the same way in the stand-alone
version.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Brian" <br**********@gmail.com> wrote in message
news:eb****************@TK2MSFTNGP14.phx.gbl...
I have..haven't found the answer yet. The main way to fix this is to open
a SITE.

I was just used to working with single ASPX files in Web Matrix, double
clicking on the control and it fills out the signature line for you and
then I code away. Just not sure why VWD wont do this for me in single
ASPX files.

B

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
You might want to consider asking VWD questions here :

http://forums.asp.net/175/ShowForum.aspx

There's quite a few developers helping each other with VWD there.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Brian" <br**********@gmail.com> wrote in message
news:uO****************@TK2MSFTNGP12.phx.gbl...

"tdavisjr" <td******@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
> Webmatrix did the same thing Visual Web Developer is doing, however,
> they just hid the HTML from you. They had like 3 views, HTML View,
> Code View, All View. When you double clicked on the button it took
> you
> to Code View so you only saw VB code, howver, the code was still
> embedded in the aspx page. You can see that if you select All View.
>
> You can do Codebehind in VWD, however you have to select the option to
> place code in a seperate file when you go to add a page to your
> website.

Thanks..I will try this. I just find it a little easier when it creates
the SIGNATURE line automatically. This doesn't happen in single file
ASPX files in VWD. At least I can't get it to with the advice you
mentioned.

This is just so silly..I am a newbie to VWD, so I hope my questions
aren't as silly.



Nov 20 '05 #7

P: n/a
Thats strange. Never heard of that happen before. I don't know what is
going on.

Nov 20 '05 #8

P: n/a
Glad I am not crazy. Some have told me this wont happen when in a single
ASPX file and that I have to open a "web site" and then work on the ASPX
file.

Any other suggestions?

"tdavisjr" <td******@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Thats strange. Never heard of that happen before. I don't know what is
going on.

Nov 20 '05 #9

P: n/a
re:
I have to open a "web site" and then work on the ASPX file.
So, is what you're saying that the problem only occurs
when you open a "miscellaneous" file not inside a solution,
but that if you open an aspx file within a solution, it works OK ?


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Brian" <br**********@gmail.com> wrote in message
news:uo**************@TK2MSFTNGP14.phx.gbl... Glad I am not crazy. Some have told me this wont happen when in a single ASPX file and
that I have to open a "web site" and then work on the ASPX file.

Any other suggestions? "tdavisjr" <td******@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Thats strange. Never heard of that happen before. I don't know what is
going on.

Nov 20 '05 #10

P: n/a

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
re:
I have to open a "web site" and then work on the ASPX file.


So, is what you're saying that the problem only occurs
when you open a "miscellaneous" file not inside a solution,
but that if you open an aspx file within a solution, it works OK ?


Yes...if I go up and choose new FILE and then choose NEW FILE (without being
in a web site or solution) and then when I go to add a control to that file,
double click on it, it goes to the HTML code and NOT the event handler
(signature line) of that control. This only happens on a single ASPX file
and not one within an solution. This is what is confusing me compared with
Web Matrix, where you can open single files, double click and go to event
handler.

Nov 20 '05 #11

P: n/a
Not much I can say to that.

If you want to bug it at the MSDN Product Feedback Center,
http://lab.msdn.microsoft.com/productfeedback/ (you'll need a Passport acct)
maybe something can be done about it, although I doubt it.

To work around it, you could create
a solution to hold all your miscellaneous files.

That way, all your miscellaneous files would be inside a
solution and they would work the way you want them to.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Brian" <br**********@gmail.com> wrote in message
news:eh*************@TK2MSFTNGP10.phx.gbl...

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
re:
I have to open a "web site" and then work on the ASPX file.


So, is what you're saying that the problem only occurs
when you open a "miscellaneous" file not inside a solution,
but that if you open an aspx file within a solution, it works OK ?


Yes...if I go up and choose new FILE and then choose NEW FILE (without being in a web
site or solution) and then when I go to add a control to that file, double click on it,
it goes to the HTML code and NOT the event handler (signature line) of that control.
This only happens on a single ASPX file and not one within an solution. This is what is
confusing me compared with Web Matrix, where you can open single files, double click and
go to event handler.

Nov 20 '05 #12

This discussion thread is closed

Replies have been disabled for this discussion.