Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
tools
vsnet.act
vsnet.debugging
vsnet.documentation
vsnet.enterprise.tools
vsnet.general
vsnet.ide
vsnet.jlca
vsnet.servicepacks
vsnet.setup
vsnet.vsip
vsnet.vss
vsnet.vstools.office
vstudio.development
vstudio.extensibility
vstudio.general
vstudio.helpauthoring
vstudio.setup
vstudio.sourcesafe
  
 
date: Sun, 7 Sep 2008 18:21:07 +0100,    group: microsoft.public.vstudio.general        back       


viewing all source code?   
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
date: Sun, 7 Sep 2008 18:21:07 +0100   author:   gerryR

Re: viewing all source code?   
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
date: Sun, 07 Sep 2008 13:59:11 -0400   author:   Lloyd Sheen a@b.c

Re: viewing all source code?   
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
date: Sun, 7 Sep 2008 19:40:03 +0100   author:   gerryR

Re: viewing all source code?   
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"  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
>
>
date: Sun, 7 Sep 2008 19:41:53 +0100   author:   gerryR

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us