Saturday, March 31, 2012
Separated DLLs for user controls
By default VS.NET generates just one DLL contains all code behinds and
userconrols.
Is it possible to have VS.NET partitione them in their own assemblies for
granular security?
Thanks,
AliYes, you can do it a few ways
1. grab the control inside the current project and compile it using the
command line compiler, specifying the \out parameter
2. Create the control in its own project then reference it back into the
original project
"A.M" <IHateSpam@.sapm123.com> wrote in message
news:%23w0S0kZ9DHA.2524@.TK2MSFTNGP11.phx.gbl...
> Hi,
> By default VS.NET generates just one DLL contains all code behinds and
> userconrols.
> Is it possible to have VS.NET partitione them in their own assemblies for
> granular security?
> Thanks,
> Ali
I think 1 project = 1 DLL. Place them in separate projects if you want
multiple dll's.
"A.M" <IHateSpam@.sapm123.com> wrote in message
news:%23w0S0kZ9DHA.2524@.TK2MSFTNGP11.phx.gbl...
> Hi,
> By default VS.NET generates just one DLL contains all code behinds and
> userconrols.
> Is it possible to have VS.NET partitione them in their own assemblies for
> granular security?
> Thanks,
> Ali
Hi Ali,
Thanks for posting in the community!
Based on my understanding, you're wondering whether its ok to make all the
compoenent classes such as page class , usercontrol classes and other
components classes separately in different dll assemblies and which are
used in the same web application , yes?
I've review the other messages and I think A Lonely Programmer has provided
the informative suggestion, you can manually compile some of the components
classes in different dlls or even make some certain separate projects for
each dll. Then reference them in the main ASP.NET web application project.
For example:
Project A:
make page classes in dllA
ProjectB:
make Control classes in dllB
ProjectC
make other non-UI components in dllC
Main ASP.NET Project?
add all the above assebmlies as referenced and use
the classes in them.
How do you think so. Please check out those suggestions, if you have any
further questions, please feel free to post here.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Thursday, March 29, 2012
Separated DLLs for user controls
By default VS.NET generates just one DLL contains all code behinds and
userconrols.
Is it possible to have VS.NET partitione them in their own assemblies for
granular security?
Thanks,
AliYes, you can do it a few ways
1. grab the control inside the current project and compile it using the
command line compiler, specifying the \out parameter
2. Create the control in its own project then reference it back into the
original project
"A.M" <IHateSpam@.sapm123.com> wrote in message
news:%23w0S0kZ9DHA.2524@.TK2MSFTNGP11.phx.gbl...
> Hi,
> By default VS.NET generates just one DLL contains all code behinds and
> userconrols.
> Is it possible to have VS.NET partitione them in their own assemblies for
> granular security?
> Thanks,
> Ali
I think 1 project = 1 DLL. Place them in separate projects if you want
multiple dll's.
"A.M" <IHateSpam@.sapm123.com> wrote in message
news:%23w0S0kZ9DHA.2524@.TK2MSFTNGP11.phx.gbl...
> Hi,
> By default VS.NET generates just one DLL contains all code behinds and
> userconrols.
> Is it possible to have VS.NET partitione them in their own assemblies for
> granular security?
> Thanks,
> Ali
Hi Ali,
Thanks for posting in the community!
Based on my understanding, you're wondering whether its ok to make all the
compoenent classes such as page class , usercontrol classes and other
components classes separately in different dll assemblies and which are
used in the same web application , yes?
I've review the other messages and I think A Lonely Programmer has provided
the informative suggestion, you can manually compile some of the components
classes in different dlls or even make some certain separate projects for
each dll. Then reference them in the main ASP.NET web application project.
For example:
Project A:
make page classes in dllA
ProjectB:
make Control classes in dllB
ProjectC
make other non-UI components in dllC
Main ASP.NET Project?
add all the above assebmlies as referenced and use
the classes in them.
How do you think so. Please check out those suggestions, if you have any
further questions, please feel free to post here.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Thursday, March 22, 2012
Serve SWF files from ASPX
Hello,
I would like to be able to allow people to link to videos on my site in the following manner (embed in their own websites):
<OBJECT CLASSID="CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000"
CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,22,0" ID="FVS" Width="720" Height="526">
<PARAM NAME="movie" VALUE="http://www.example.com/video.aspx?cid=123456">
<PARAM NAME="bgcolor" VALUE="#000000">
<EMBED NAME="FVS" src=http://www.example.com/video.aspx?cid=123456 BGCOLOR="#000000"
WIDTH="720" HEIGHT="526" TYPE="application/x-shockwave-flash" pluginspage=http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>
What I would like to do is have video.aspx choose avideo at random and serve to this particular customer ID ('videos' are all swf files). Forsimplicity's sake let's assume that I have 1000 SWF files all called1000.swf, 1001.swf etc. in the same directory as video.aspx. Is itpossible to code the page in a way that would allow me to do that? Ifso, how could I go about it, I have absolutely not idea. I can write the logic for selecting a random file, I just don't know how, once its selected, do I serve it to the end user. Any helpwould be appreciated.
M.
Hi,
You may take all files name of the directory in a arraylist. Then chose a filename from this arraylist using a random value.
and show it.
for some strange reason wherever I post this question (I did that on multiple forums) I always get the same response with suggestions how to choose a random file. I don't have a problem with that. I have a problem with the "and show it" part - I don't know how to make my object (see original code) to think that instead of aspx file I'm serving a SWF file.
I've been reading up about HttpHandlers and such, but there's got to be an easier way to do this without having to resort to configuring IIS and registering the handlers.