Dynamically changing .vb and .aspx pages...

  • Thread starter Thread starter Tascien
  • Start date Start date
T

Tascien

I was able to build an asp page dynamically depending on the question
that the user answered through the online wizard...

I think i can dynamically also create '.vb' or '.aspx' dynamically
depending on the answers that users entered in the online wizard...

the only issue here, is that, once the wizard created the asp page,
the online visitors could then request the page, and execute it w/no
problem, and be able to use embended dynamic content...

with aspx and vb, aspx is compiled, when the user access the page,
but, .vb is not. it needs to be compiled using visual studio.

can anyone tell me how to dynamically through web interface, compile
..vb so when my admin users make changes to the pages, the .vb is
compiled as well?

I can use src="" but, i can't seem to access the component class
through the <script> tag. and i really prefer code behind...

Thanks in advance.
 
Thank you for your answers,

one more question,

what is the relationship between the following things:

- CodeBihind page
- <script src="" runat="server"> or <script runat="server"> page
- or the code contained within <% %> tags on the presentation page...
- or just simply the component added to the VS.NET project using 'Add
component'

* sometime when i try to access the component within <script> tags, i
get object not declared...

* sometime when i try to access a variable defined in <script> tag
through the codebihind page, i get the same error...

* etc, etc... I am left wondering about variable scope...

also, how does a page know that a new class component was added? I
never see it included at the top like we did in ASP...

this is all i need to know before, i am comfortable in .NET

T.
 
Hi Tascien,

I did some time nothing with non compiled code behind pages.
(And with compiled it is not intresting, it is predefined)

But probably you can get your answer in the newsgroup

microsoft.public.dotnet.framework.aspnet

There are a lot of questions discussed about what you now are asking.

I hope this helps,

Cor
 
with aspx and vb, aspx is compiled when the user access the page,
but, .vb is not. it needs to be compiled using visual studio.
You may wish to check the ASP.Net groups, but I believe that you don't need
to compile the code behind page. If the .aspx page directive includes the
src= attribute and points to the source file, it will be compiled for you
dynamically on the first access to the page. This requires that you put
the source file on the web server, however.

HTH
 
Back
Top