473,394 Members | 1,951 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

adding web pages Dynamically to compiled Codebehind

All,
Wanting to find a way to create web pages to add to my website without
having to recompile the codebehind everytime I want to add a new one...

Here's the deal:
I have a web app that takes work orders for 7 different items, each item
gets 1 page for input specs. All works well. I want to add a new item. I
do not want to recompile and redistribute my app everytime just to add a new
input page. Can ASPX resources be compiled into a DLL that I can easily pull
in and use and/or replace without recompiling the main app? Any other
suggestions?
MTIA
wardeaux
Nov 18 '05 #1
12 2212
visual studio add an attribute to @Page - CodeBehind. this specifies the
codebehind file.
if codebehind is replaced with a src and if the files are then uploaded the
uploaded new file will be automatically compiled.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Wardeaux" <wa******@bellsouth.net> wrote in message
news:#x*************@TK2MSFTNGP11.phx.gbl...
All,
Wanting to find a way to create web pages to add to my website without
having to recompile the codebehind everytime I want to add a new one...

Here's the deal:
I have a web app that takes work orders for 7 different items, each item
gets 1 page for input specs. All works well. I want to add a new item. I do not want to recompile and redistribute my app everytime just to add a new input page. Can ASPX resources be compiled into a DLL that I can easily pull in and use and/or replace without recompiling the main app? Any other
suggestions?
MTIA
wardeaux

Nov 18 '05 #2
Why not dynamically pull the work order items from a xml file (or other data
store such as a database), then have ONE common page that asks for input
specs (this page can be dynaically created from the data in the datastore at
run-time), so all you have to do is add new entries to the datastore. Build
a little admin page that allows you to input new items into the datastore.

"Wardeaux" <wa******@bellsouth.net> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
All,
Wanting to find a way to create web pages to add to my website without
having to recompile the codebehind everytime I want to add a new one...

Here's the deal:
I have a web app that takes work orders for 7 different items, each item
gets 1 page for input specs. All works well. I want to add a new item. I do not want to recompile and redistribute my app everytime just to add a new input page. Can ASPX resources be compiled into a DLL that I can easily pull in and use and/or replace without recompiling the main app? Any other
suggestions?
MTIA
wardeaux

Nov 18 '05 #3
i Wiin
So what you're saying is put a "definition" of the input page controls in an
XML doc, then just load the "definition" from the XML into a generic page
that knows how to read the "Definitions" and create the appropriate webpage?
Cool... I've not done any XML programming, is there a sample or article I
could look at that would demonstrate this technique? Sounds like exactly
what I need...
MTIA
wardeaux
"i. Wiin" <ii****@yagoo.com> wrote in message
news:eF****************@TK2MSFTNGP09.phx.gbl...
Why not dynamically pull the work order items from a xml file (or other data store such as a database), then have ONE common page that asks for input
specs (this page can be dynaically created from the data in the datastore at run-time), so all you have to do is add new entries to the datastore. Build a little admin page that allows you to input new items into the datastore.

"Wardeaux" <wa******@bellsouth.net> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
All,
Wanting to find a way to create web pages to add to my website without having to recompile the codebehind everytime I want to add a new one...

Here's the deal:
I have a web app that takes work orders for 7 different items, each item
gets 1 page for input specs. All works well. I want to add a new item.

I
do not want to recompile and redistribute my app everytime just to add a

new
input page. Can ASPX resources be compiled into a DLL that I can easily

pull
in and use and/or replace without recompiling the main app? Any other
suggestions?
MTIA
wardeaux


Nov 18 '05 #4
So then are you saying .NET is smart enough to know that the .dll in the bin
directory is outdated and will recompile it when a .vb or .cs file has been
updated?
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:uW**************@TK2MSFTNGP09.phx.gbl...
visual studio add an attribute to @Page - CodeBehind. this specifies the
codebehind file.
if codebehind is replaced with a src and if the files are then uploaded the uploaded new file will be automatically compiled.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Wardeaux" <wa******@bellsouth.net> wrote in message
news:#x*************@TK2MSFTNGP11.phx.gbl...
All,
Wanting to find a way to create web pages to add to my website without having to recompile the codebehind everytime I want to add a new one...

Here's the deal:
I have a web app that takes work orders for 7 different items, each item
gets 1 page for input specs. All works well. I want to add a new item.

I
do not want to recompile and redistribute my app everytime just to add a

new
input page. Can ASPX resources be compiled into a DLL that I can easily

pull
in and use and/or replace without recompiling the main app? Any other
suggestions?
MTIA
wardeaux


Nov 18 '05 #5
the compiled file in the bin file was created by vs.net.
the framework does not need the compilation. the moment a new file is
requested (which was not previously present or was modified).. the framework
compiles the files.
from framework overview from msdn
Compiled execution. ASP.NET is much faster than classic ASP, while
preserving the "just hit save" update model of ASP. However, no explicit
compile step is required! ASP.NET will automatically detect any changes,
dynamically compile the files if needed, and store the compiled results to
reuse for subsequent requests. Dynamic compilation ensures that your
application is always up to date, and compiled execution makes it fast.
http://msdn.microsoft.com/asp.net/te...w/default.aspx

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"i. Wiin" <ii****@yagoo.com> wrote in message
news:eX**************@TK2MSFTNGP10.phx.gbl...
So then are you saying .NET is smart enough to know that the .dll in the bin directory is outdated and will recompile it when a .vb or .cs file has been updated?
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:uW**************@TK2MSFTNGP09.phx.gbl...
visual studio add an attribute to @Page - CodeBehind. this specifies the
codebehind file.
if codebehind is replaced with a src and if the files are then uploaded

the
uploaded new file will be automatically compiled.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Wardeaux" <wa******@bellsouth.net> wrote in message
news:#x*************@TK2MSFTNGP11.phx.gbl...
All,
Wanting to find a way to create web pages to add to my website without having to recompile the codebehind everytime I want to add a new one...
Here's the deal:
I have a web app that takes work orders for 7 different items, each item gets 1 page for input specs. All works well. I want to add a new
item. I
do not want to recompile and redistribute my app everytime just to add
a new
input page. Can ASPX resources be compiled into a DLL that I can
easily pull
in and use and/or replace without recompiling the main app? Any other
suggestions?
MTIA
wardeaux



Nov 18 '05 #6
Interesting. I'll have to give that a shot and see what happens.
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
the compiled file in the bin file was created by vs.net.
the framework does not need the compilation. the moment a new file is
requested (which was not previously present or was modified).. the framework compiles the files.
from framework overview from msdn
Compiled execution. ASP.NET is much faster than classic ASP, while
preserving the "just hit save" update model of ASP. However, no explicit
compile step is required! ASP.NET will automatically detect any changes,
dynamically compile the files if needed, and store the compiled results to
reuse for subsequent requests. Dynamic compilation ensures that your
application is always up to date, and compiled execution makes it fast.
http://msdn.microsoft.com/asp.net/te...w/default.aspx

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"i. Wiin" <ii****@yagoo.com> wrote in message
news:eX**************@TK2MSFTNGP10.phx.gbl...
So then are you saying .NET is smart enough to know that the .dll in the bin
directory is outdated and will recompile it when a .vb or .cs file has

been
updated?
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:uW**************@TK2MSFTNGP09.phx.gbl...
visual studio add an attribute to @Page - CodeBehind. this specifies the codebehind file.
if codebehind is replaced with a src and if the files are then uploaded
the
uploaded new file will be automatically compiled.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Wardeaux" <wa******@bellsouth.net> wrote in message
news:#x*************@TK2MSFTNGP11.phx.gbl...
> All,
> Wanting to find a way to create web pages to add to my website

without
> having to recompile the codebehind everytime I want to add a new

one... >
> Here's the deal:
> I have a web app that takes work orders for 7 different items, each item > gets 1 page for input specs. All works well. I want to add a new item. I
> do not want to recompile and redistribute my app everytime just to
add a new
> input page. Can ASPX resources be compiled into a DLL that I can easily pull
> in and use and/or replace without recompiling the main app? Any

other > suggestions?
> MTIA
> wardeaux
>
>



Nov 18 '05 #7
i unfortunately dont use this mechanism.. prefer to do a complete upload. I
have at times modified aspx files to a great extent... and in the next
request it was compiled and rendered properly. Good luck with that...

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"i. Wiin" <ii****@yagoo.com> wrote in message
news:eR**************@tk2msftngp13.phx.gbl...
Interesting. I'll have to give that a shot and see what happens.
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
the compiled file in the bin file was created by vs.net.
the framework does not need the compilation. the moment a new file is
requested (which was not previously present or was modified).. the

framework
compiles the files.
from framework overview from msdn
Compiled execution. ASP.NET is much faster than classic ASP, while
preserving the "just hit save" update model of ASP. However, no explicit
compile step is required! ASP.NET will automatically detect any changes, dynamically compile the files if needed, and store the compiled results to reuse for subsequent requests. Dynamic compilation ensures that your
application is always up to date, and compiled execution makes it fast.
http://msdn.microsoft.com/asp.net/te...w/default.aspx

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"i. Wiin" <ii****@yagoo.com> wrote in message
news:eX**************@TK2MSFTNGP10.phx.gbl...
So then are you saying .NET is smart enough to know that the .dll in
the bin
directory is outdated and will recompile it when a .vb or .cs file has

been
updated?
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message news:uW**************@TK2MSFTNGP09.phx.gbl...
> visual studio add an attribute to @Page - CodeBehind. this specifies the > codebehind file.
> if codebehind is replaced with a src and if the files are then uploaded the
> uploaded new file will be automatically compiled.
>
> --
>
> Regards,
>
> Hermit Dave
> (http://hdave.blogspot.com)
> "Wardeaux" <wa******@bellsouth.net> wrote in message
> news:#x*************@TK2MSFTNGP11.phx.gbl...
> > All,
> > Wanting to find a way to create web pages to add to my website
without
> > having to recompile the codebehind everytime I want to add a new

one...
> >
> > Here's the deal:
> > I have a web app that takes work orders for 7 different items,
each item
> > gets 1 page for input specs. All works well. I want to add a new

item.
> I
> > do not want to recompile and redistribute my app everytime just to

add
a
> new
> > input page. Can ASPX resources be compiled into a DLL that I can

easily
> pull
> > in and use and/or replace without recompiling the main app? Any

other > > suggestions?
> > MTIA
> > wardeaux
> >
> >
>
>



Nov 18 '05 #8
One easy way: use Dataset.Readxml and Dataset.Writexml. Populate your
dataset in code one-time with the schema and data, then do writexml to get
your xml file. If you look at the resulting xml file you'll see it's easy to
add your rows by hand later. When your programs runs for real, use readxml to
create your dataset from the xml file, then you'll traverse that dataset and
build your controls on the fly.

One other way, depending on how wildly different the geometry of the input
controls is for each item: You could create a user control for each item, use
a naming convention to match user control to item id, and then use
"loadcontrol" to load the appropriate user control at run time.

Going the data-driven way is a whole lot cleaner and definitely a
best-practice, but sometimes the templates are so different for each you'll
spend longer trying to create the "generic" mother of all data structures to
handle each variation than just banging out a few controls. Mostly depends on
how many item variations you expect to have and how different the geometry of
the screens is.

Bill

"Wardeaux" wrote:
i Wiin
So what you're saying is put a "definition" of the input page controls in an
XML doc, then just load the "definition" from the XML into a generic page
that knows how to read the "Definitions" and create the appropriate webpage?
Cool... I've not done any XML programming, is there a sample or article I
could look at that would demonstrate this technique? Sounds like exactly
what I need...
MTIA
wardeaux
"i. Wiin" <ii****@yagoo.com> wrote in message
news:eF****************@TK2MSFTNGP09.phx.gbl...
Why not dynamically pull the work order items from a xml file (or other

data
store such as a database), then have ONE common page that asks for input
specs (this page can be dynaically created from the data in the datastore

at
run-time), so all you have to do is add new entries to the datastore.

Build
a little admin page that allows you to input new items into the datastore.

"Wardeaux" <wa******@bellsouth.net> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
All,
Wanting to find a way to create web pages to add to my website without having to recompile the codebehind everytime I want to add a new one...

Here's the deal:
I have a web app that takes work orders for 7 different items, each item
gets 1 page for input specs. All works well. I want to add a new item.

I
do not want to recompile and redistribute my app everytime just to add a

new
input page. Can ASPX resources be compiled into a DLL that I can easily

pull
in and use and/or replace without recompiling the main app? Any other
suggestions?
MTIA
wardeaux



Nov 18 '05 #9
Dave,
this is good... I've loaded a new aspx page which displays correctly
without compiling, but the code behind does not seem to work (just setting a
value in a text box on button press)... any tricks to get this to work?
thanks!
wardeaux

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:eO**************@TK2MSFTNGP11.phx.gbl...
i unfortunately dont use this mechanism.. prefer to do a complete upload. I have at times modified aspx files to a great extent... and in the next
request it was compiled and rendered properly. Good luck with that...

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"i. Wiin" <ii****@yagoo.com> wrote in message
news:eR**************@tk2msftngp13.phx.gbl...
Interesting. I'll have to give that a shot and see what happens.
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
the compiled file in the bin file was created by vs.net.
the framework does not need the compilation. the moment a new file is
requested (which was not previously present or was modified).. the framework
compiles the files.
from framework overview from msdn
Compiled execution. ASP.NET is much faster than classic ASP, while
preserving the "just hit save" update model of ASP. However, no explicit compile step is required! ASP.NET will automatically detect any changes, dynamically compile the files if needed, and store the compiled results to
reuse for subsequent requests. Dynamic compilation ensures that your
application is always up to date, and compiled execution makes it
fast. http://msdn.microsoft.com/asp.net/te...w/default.aspx

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"i. Wiin" <ii****@yagoo.com> wrote in message
news:eX**************@TK2MSFTNGP10.phx.gbl...
> So then are you saying .NET is smart enough to know that the .dll in

the bin
> directory is outdated and will recompile it when a .vb or .cs file has been
> updated?
>
>
> "Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in

message
> news:uW**************@TK2MSFTNGP09.phx.gbl...
> > visual studio add an attribute to @Page - CodeBehind. this specifies the
> > codebehind file.
> > if codebehind is replaced with a src and if the files are then

uploaded
> the
> > uploaded new file will be automatically compiled.
> >
> > --
> >
> > Regards,
> >
> > Hermit Dave
> > (http://hdave.blogspot.com)
> > "Wardeaux" <wa******@bellsouth.net> wrote in message
> > news:#x*************@TK2MSFTNGP11.phx.gbl...
> > > All,
> > > Wanting to find a way to create web pages to add to my
website > without
> > > having to recompile the codebehind everytime I want to add a new
one...
> > >
> > > Here's the deal:
> > > I have a web app that takes work orders for 7 different items, each item
> > > gets 1 page for input specs. All works well. I want to add a new item.
> > I
> > > do not want to recompile and redistribute my app everytime just

to add
a
> > new
> > > input page. Can ASPX resources be compiled into a DLL that I can
easily
> > pull
> > > in and use and/or replace without recompiling the main app? Any

other
> > > suggestions?
> > > MTIA
> > > wardeaux
> > >
> > >
> >
> >
>
>



Nov 18 '05 #10
http://it.maconstate.edu/tutorials/A...pnet15-01.aspx

http://support.microsoft.com/default...b;EN-US;313105
The support article refers to UNC share which in turn means the rest should
work.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Wardeaux" <wa******@bellsouth.net> wrote in message
news:uz**************@TK2MSFTNGP12.phx.gbl...
Dave,
this is good... I've loaded a new aspx page which displays correctly
without compiling, but the code behind does not seem to work (just setting a value in a text box on button press)... any tricks to get this to work?
thanks!
wardeaux

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:eO**************@TK2MSFTNGP11.phx.gbl...
i unfortunately dont use this mechanism.. prefer to do a complete upload.
I
have at times modified aspx files to a great extent... and in the next
request it was compiled and rendered properly. Good luck with that...

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"i. Wiin" <ii****@yagoo.com> wrote in message
news:eR**************@tk2msftngp13.phx.gbl...
Interesting. I'll have to give that a shot and see what happens.
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl...
> the compiled file in the bin file was created by vs.net.
> the framework does not need the compilation. the moment a new file is > requested (which was not previously present or was modified).. the
framework
> compiles the files.
> from framework overview from msdn
> Compiled execution. ASP.NET is much faster than classic ASP, while
> preserving the "just hit save" update model of ASP. However, no explicit
> compile step is required! ASP.NET will automatically detect any

changes,
> dynamically compile the files if needed, and store the compiled results
to
> reuse for subsequent requests. Dynamic compilation ensures that your > application is always up to date, and compiled execution makes it

fast. > http://msdn.microsoft.com/asp.net/te...w/default.aspx >
> --
>
> Regards,
>
> Hermit Dave
> (http://hdave.blogspot.com)
> "i. Wiin" <ii****@yagoo.com> wrote in message
> news:eX**************@TK2MSFTNGP10.phx.gbl...
> > So then are you saying .NET is smart enough to know that the .dll in the
> bin
> > directory is outdated and will recompile it when a .vb or .cs file has > been
> > updated?
> >
> >
> > "Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in
message
> > news:uW**************@TK2MSFTNGP09.phx.gbl...
> > > visual studio add an attribute to @Page - CodeBehind. this specifies the
> > > codebehind file.
> > > if codebehind is replaced with a src and if the files are then
uploaded
> > the
> > > uploaded new file will be automatically compiled.
> > >
> > > --
> > >
> > > Regards,
> > >
> > > Hermit Dave
> > > (http://hdave.blogspot.com)
> > > "Wardeaux" <wa******@bellsouth.net> wrote in message
> > > news:#x*************@TK2MSFTNGP11.phx.gbl...
> > > > All,
> > > > Wanting to find a way to create web pages to add to my website > > without
> > > > having to recompile the codebehind everytime I want to add a
new > one...
> > > >
> > > > Here's the deal:
> > > > I have a web app that takes work orders for 7 different items,

each
> item
> > > > gets 1 page for input specs. All works well. I want to add a

new > item.
> > > I
> > > > do not want to recompile and redistribute my app everytime just to
add
> a
> > > new
> > > > input page. Can ASPX resources be compiled into a DLL that I

can > easily
> > > pull
> > > > in and use and/or replace without recompiling the main app? Any other
> > > > suggestions?
> > > > MTIA
> > > > wardeaux
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 18 '05 #11
Dave,
thank you so much!! You have been super helpful... it's working great!! I
just have one last issue... I create my ASPX form in VisualStudio, and set
the "src" attribute save and it loads fine, but when I reload the project I
get a Visual Studio error that "Src" is not supported in the @Page
attributes and the "Design" view is not loaded... is there a way to get
around this? I really like being able to design/program my page in VS and
then just upload to website for distribution, but this error doesn't let me
view the "Design" screen so that I can add new controls etc... any other
hints?
wardeaux

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:eA*************@TK2MSFTNGP14.phx.gbl...
http://it.maconstate.edu/tutorials/A...pnet15-01.aspx

http://support.microsoft.com/default...b;EN-US;313105
The support article refers to UNC share which in turn means the rest should work.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Wardeaux" <wa******@bellsouth.net> wrote in message
news:uz**************@TK2MSFTNGP12.phx.gbl...
Dave,
this is good... I've loaded a new aspx page which displays correctly
without compiling, but the code behind does not seem to work (just setting
a
value in a text box on button press)... any tricks to get this to work?
thanks!
wardeaux

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message news:eO**************@TK2MSFTNGP11.phx.gbl...
i unfortunately dont use this mechanism.. prefer to do a complete upload.
I
have at times modified aspx files to a great extent... and in the next request it was compiled and rendered properly. Good luck with that...

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"i. Wiin" <ii****@yagoo.com> wrote in message
news:eR**************@tk2msftngp13.phx.gbl...
> Interesting. I'll have to give that a shot and see what happens.
>
>
> "Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
> news:%2****************@TK2MSFTNGP09.phx.gbl...
> > the compiled file in the bin file was created by vs.net.
> > the framework does not need the compilation. the moment a new file

is > > requested (which was not previously present or was modified).. the
> framework
> > compiles the files.
> > from framework overview from msdn
> > Compiled execution. ASP.NET is much faster than classic ASP, while > > preserving the "just hit save" update model of ASP. However, no
explicit
> > compile step is required! ASP.NET will automatically detect any
changes,
> > dynamically compile the files if needed, and store the compiled

results
to
> > reuse for subsequent requests. Dynamic compilation ensures that your > > application is always up to date, and compiled execution makes it

fast.
> > http://msdn.microsoft.com/asp.net/te...w/default.aspx > >
> > --
> >
> > Regards,
> >
> > Hermit Dave
> > (http://hdave.blogspot.com)
> > "i. Wiin" <ii****@yagoo.com> wrote in message
> > news:eX**************@TK2MSFTNGP10.phx.gbl...
> > > So then are you saying .NET is smart enough to know that the ..dll in
the
> > bin
> > > directory is outdated and will recompile it when a .vb or .cs
file has
> > been
> > > updated?
> > >
> > >
> > > "Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote
in > message
> > > news:uW**************@TK2MSFTNGP09.phx.gbl...
> > > > visual studio add an attribute to @Page - CodeBehind. this

specifies
> the
> > > > codebehind file.
> > > > if codebehind is replaced with a src and if the files are then
> uploaded
> > > the
> > > > uploaded new file will be automatically compiled.
> > > >
> > > > --
> > > >
> > > > Regards,
> > > >
> > > > Hermit Dave
> > > > (http://hdave.blogspot.com)
> > > > "Wardeaux" <wa******@bellsouth.net> wrote in message
> > > > news:#x*************@TK2MSFTNGP11.phx.gbl...
> > > > > All,
> > > > > Wanting to find a way to create web pages to add to my

website
> > > without
> > > > > having to recompile the codebehind everytime I want to add a

new > > one...
> > > > >
> > > > > Here's the deal:
> > > > > I have a web app that takes work orders for 7 different items, each
> > item
> > > > > gets 1 page for input specs. All works well. I want to add
a new
> > item.
> > > > I
> > > > > do not want to recompile and redistribute my app everytime

just
to
> add
> > a
> > > > new
> > > > > input page. Can ASPX resources be compiled into a DLL that I

can > > easily
> > > > pull
> > > > > in and use and/or replace without recompiling the main app? Any > other
> > > > > suggestions?
> > > > > MTIA
> > > > > wardeaux
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 18 '05 #12
referring you to a msdn link
http://msdn.microsoft.com/library/de...msdesigner.asp

looks like src is not supported by vs.net. which means you will have to keep
your project files without src with just the code behind. when you want to
upload the files. copy them to a seperate location. edit the aspx file and
upload the files.

i know its a pain in the neck..
--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Wardeaux" <wa******@bellsouth.net> wrote in message
news:uk*************@TK2MSFTNGP12.phx.gbl...
Dave,
thank you so much!! You have been super helpful... it's working great!! I just have one last issue... I create my ASPX form in VisualStudio, and set
the "src" attribute save and it loads fine, but when I reload the project I get a Visual Studio error that "Src" is not supported in the @Page
attributes and the "Design" view is not loaded... is there a way to get
around this? I really like being able to design/program my page in VS and
then just upload to website for distribution, but this error doesn't let me view the "Design" screen so that I can add new controls etc... any other
hints?
wardeaux

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:eA*************@TK2MSFTNGP14.phx.gbl...
http://it.maconstate.edu/tutorials/A...pnet15-01.aspx

http://support.microsoft.com/default...b;EN-US;313105
The support article refers to UNC share which in turn means the rest should
work.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Wardeaux" <wa******@bellsouth.net> wrote in message
news:uz**************@TK2MSFTNGP12.phx.gbl...
Dave,
this is good... I've loaded a new aspx page which displays correctly
without compiling, but the code behind does not seem to work (just setting
a
value in a text box on button press)... any tricks to get this to work? thanks!
wardeaux

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message news:eO**************@TK2MSFTNGP11.phx.gbl...
> i unfortunately dont use this mechanism.. prefer to do a complete

upload.
I
> have at times modified aspx files to a great extent... and in the next > request it was compiled and rendered properly. Good luck with that... >
> --
>
> Regards,
>
> Hermit Dave
> (http://hdave.blogspot.com)
> "i. Wiin" <ii****@yagoo.com> wrote in message
> news:eR**************@tk2msftngp13.phx.gbl...
> > Interesting. I'll have to give that a shot and see what happens.
> >
> >
> > "Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in
message
> > news:%2****************@TK2MSFTNGP09.phx.gbl...
> > > the compiled file in the bin file was created by vs.net.
> > > the framework does not need the compilation. the moment a new file is
> > > requested (which was not previously present or was modified)..
the > > framework
> > > compiles the files.
> > > from framework overview from msdn
> > > Compiled execution. ASP.NET is much faster than classic ASP, while > > > preserving the "just hit save" update model of ASP. However, no
> explicit
> > > compile step is required! ASP.NET will automatically detect any
> changes,
> > > dynamically compile the files if needed, and store the compiled
results
> to
> > > reuse for subsequent requests. Dynamic compilation ensures that

your
> > > application is always up to date, and compiled execution makes it fast.
> > >

http://msdn.microsoft.com/asp.net/te...w/default.aspx
> > >
> > > --
> > >
> > > Regards,
> > >
> > > Hermit Dave
> > > (http://hdave.blogspot.com)
> > > "i. Wiin" <ii****@yagoo.com> wrote in message
> > > news:eX**************@TK2MSFTNGP10.phx.gbl...
> > > > So then are you saying .NET is smart enough to know that the .dll
in
> the
> > > bin
> > > > directory is outdated and will recompile it when a .vb or .cs

file has
> > > been
> > > > updated?
> > > >
> > > >
> > > > "Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in > > message
> > > > news:uW**************@TK2MSFTNGP09.phx.gbl...
> > > > > visual studio add an attribute to @Page - CodeBehind. this
specifies
> > the
> > > > > codebehind file.
> > > > > if codebehind is replaced with a src and if the files are then > > uploaded
> > > > the
> > > > > uploaded new file will be automatically compiled.
> > > > >
> > > > > --
> > > > >
> > > > > Regards,
> > > > >
> > > > > Hermit Dave
> > > > > (http://hdave.blogspot.com)
> > > > > "Wardeaux" <wa******@bellsouth.net> wrote in message
> > > > > news:#x*************@TK2MSFTNGP11.phx.gbl...
> > > > > > All,
> > > > > > Wanting to find a way to create web pages to add to my
website
> > > > without
> > > > > > having to recompile the codebehind everytime I want to add
a new
> > > one...
> > > > > >
> > > > > > Here's the deal:
> > > > > > I have a web app that takes work orders for 7 different items, > each
> > > item
> > > > > > gets 1 page for input specs. All works well. I want to
add a new
> > > item.
> > > > > I
> > > > > > do not want to recompile and redistribute my app everytime

just
to
> > add
> > > a
> > > > > new
> > > > > > input page. Can ASPX resources be compiled into a DLL that

I can
> > > easily
> > > > > pull
> > > > > > in and use and/or replace without recompiling the main
app? Any
> > other
> > > > > > suggestions?
> > > > > > MTIA
> > > > > > wardeaux
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 18 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Thomas Connolly | last post by:
I have 2 pages referencing the same codebehind file in my project. Originally the pages referenced separate code behind files. Once I changed the reference to the same file, everything worked...
2
by: Eric | last post by:
I'm trying to dynamically load a user control using on the .NET framework (not Visual Studio). The control was designed in Visual Studio and is named: Disable.ascx The first line is: <%@...
2
by: Dan | last post by:
hi ng, in my asp.net application, users dynamically can create aspx files and codebehinds (and other source files). how can i enforce .net to add these sources to the .dll? til now, the user...
21
by: Sandy | last post by:
Hello - I am using Visual Studio .Net. I need an example of how to construct a class that can be used throughout a project where I can include its subs and functions in various pages in the...
29
by: John Rivers | last post by:
Hello, What good reason there is for not allowing methods in ASPX pages I can't imagine, but here is how to get around that limitation: (START) <body MS_POSITIONING="FlowLayout"> <form...
3
by: Ankit Aneja | last post by:
I have a strange situation and I have no idea how to solve this. Its a Recruitment Search Page,in the Admin Page, for every button click event the Admin Person has to create a checkbox on the users...
6
by: Piz | last post by:
Hi all.... That's my question. I'm developing a web site in asp.net 2. This website will run in the intranet of my customers. Is there any way to block the reading of my aspx pages? In other words...
5
by: Tascien | last post by:
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...
2
by: Gerry | last post by:
Without bothering with the details (though if you are curious, I'll be glad to explain!). This code functions perfectly under ASP.NET 1.1, but randomly fails under ASP.NET 2.0. More details after...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.