Windows Vista Beta | WinVistaBeta.com - Message | viewing all source code?

November 21, 2008  
Subject: viewing all source code?
Group: microsoft.public.vstudio.general
Date: 9/7/2008 10:21:07 AM
From: "gerryR" [Email Address Protection]

Hi All

I was wondering is it possible to see the entire code of a program?

For example, I have a very simple asp.net page with a data grid in it. If I
view the source code I cannot see anything that refers to the declaring of
the data grid.

Same if I add a button from the toolbox to the page, no where can I see the
code for the creation of the button yet at the same time, in code view I can
add a button by typing a line of code.

Is everything created using VS tool boxes hidden in code view? And if so is
there anyway of seeing that code? I'm just trying to get a better
understanding of what I create.

Thanks for any help
gerryR



Back
Subject: Re: viewing all source code?
Group: microsoft.public.vstudio.general
Date: 9/7/2008 10:59:11 AM
From: Lloyd Sheen [Email Address Protection]

gerryR wrote:
> Hi All
>
> I was wondering is it possible to see the entire code of a program?
>
> For example, I have a very simple asp.net page with a data grid in it. If I
> view the source code I cannot see anything that refers to the declaring of
> the data grid.
>
> Same if I add a button from the toolbox to the page, no where can I see the
> code for the creation of the button yet at the same time, in code view I can
> add a button by typing a line of code.
>
> Is everything created using VS tool boxes hidden in code view? And if so is
> there anyway of seeing that code? I'm just trying to get a better
> understanding of what I create.
>
> Thanks for any help
> gerryR
>
>

Gerry,
if you are doing your first asp project and are used to windows apps
then the simple answer is that there is no parallel. In a windows app
there is code to add the controls. In asp there is the markup language
which can see. This is where/and how the controls are created.

You will have to open both the code and the design (markup) to see
both. If you want to you can decide not to use code behind and place
the code into the aspx page but I don't recommend that.

LS

Back
Subject: Re: viewing all source code?
Group: microsoft.public.vstudio.general
Date: 9/7/2008 11:40:03 AM
From: "gerryR" [Email Address Protection]

Hi Lloyd

The problem is I cant seem to see the markup code for anything.

I have a new site, it has default.aspx, default.aspx.vb and web.config.

When I open web.config in code view I can see all the doce (connnection
string etc)
when I open default.aspx or default.aspc.vb in code view All I see is:
Partial Class _Default

Inherits System.Web.UI.Page

End Class


Even though I have a datagrid created and in design view I can see the data
grid. Shouldn't I be able to see some code refering to that data grid when
in code view?

Thanks for any help
gerryR

PS- The data grid is working, when I view in browser it displays my data
correctly.


"Lloyd Sheen" <a@b.c> wrote in message
news:OKdT$NREJHA.952@TK2MSFTNGP03.phx.gbl...
> gerryR wrote:
>> Hi All
>>
>> I was wondering is it possible to see the entire code of a program?
>>
>> For example, I have a very simple asp.net page with a data grid in it.
>> If I view the source code I cannot see anything that refers to the
>> declaring of the data grid.
>>
>> Same if I add a button from the toolbox to the page, no where can I see
>> the code for the creation of the button yet at the same time, in code
>> view I can add a button by typing a line of code.
>>
>> Is everything created using VS tool boxes hidden in code view? And if so
>> is there anyway of seeing that code? I'm just trying to get a better
>> understanding of what I create.
>>
>> Thanks for any help
>> gerryR
>
> Gerry,
> if you are doing your first asp project and are used to windows apps then
> the simple answer is that there is no parallel. In a windows app there is
> code to add the controls. In asp there is the markup language which can
> see. This is where/and how the controls are created.
>
> You will have to open both the code and the design (markup) to see both.
> If you want to you can decide not to use code behind and place the code
> into the aspx page but I don't recommend that.
>
> LS



Back
Subject: Re: viewing all source code?
Group: microsoft.public.vstudio.general
Date: 9/7/2008 11:41:53 AM
From: "gerryR" [Email Address Protection]

Scratch that, I just found the "Source" button, I was expecting to see the
source when I went into code view but I guess code view only refers to the
VB in the project?

Thanks
gerryR


"gerryR" <gerryr@ONSAPMgerryr.com> wrote in message
news:ej5UmkREJHA.1268@TK2MSFTNGP05.phx.gbl...
> Hi Lloyd
>
> The problem is I cant seem to see the markup code for anything.
>
> I have a new site, it has default.aspx, default.aspx.vb and web.config.
>
> When I open web.config in code view I can see all the doce (connnection
> string etc)
> when I open default.aspx or default.aspc.vb in code view All I see is:
> Partial Class _Default
>
> Inherits System.Web.UI.Page
>
> End Class
>
>
> Even though I have a datagrid created and in design view I can see the
> data grid. Shouldn't I be able to see some code refering to that data
> grid when in code view?
>
> Thanks for any help
> gerryR
>
> PS- The data grid is working, when I view in browser it displays my data
> correctly.
>
>
> "Lloyd Sheen" <a@b.c> wrote in message
> news:OKdT$NREJHA.952@TK2MSFTNGP03.phx.gbl...
>> gerryR wrote:
>>> Hi All
>>>
>>> I was wondering is it possible to see the entire code of a program?
>>>
>>> For example, I have a very simple asp.net page with a data grid in it.
>>> If I view the source code I cannot see anything that refers to the
>>> declaring of the data grid.
>>>
>>> Same if I add a button from the toolbox to the page, no where can I see
>>> the code for the creation of the button yet at the same time, in code
>>> view I can add a button by typing a line of code.
>>>
>>> Is everything created using VS tool boxes hidden in code view? And if
>>> so is there anyway of seeing that code? I'm just trying to get a better
>>> understanding of what I create.
>>>
>>> Thanks for any help
>>> gerryR
>>
>> Gerry,
>> if you are doing your first asp project and are used to windows apps then
>> the simple answer is that there is no parallel. In a windows app there
>> is code to add the controls. In asp there is the markup language which
>> can see. This is where/and how the controls are created.
>>
>> You will have to open both the code and the design (markup) to see both.
>> If you want to you can decide not to use code behind and place the code
>> into the aspx page but I don't recommend that.
>>
>> LS
>
>



Back