I am creating a custom web control that uses an enum for a property
{Remote,InLine}.
If the property is set to inline then text is read from the embedded
resource and sent to the browser in the aspx page as inline java script.
If the property is set to Remote then the script tag set with the SRC
attribute is displayed <script language="javascript"
Src="MyJS.js"></script>.
Is there a way to catch an incoming request from the browser (for the
<script language="javascript" src="myJavaScript.js"></script>
And then dynamically create the file before it returns a response to the
browser that the file does not exsit
Thanks,
Ron. 10 2633
Hi,
Sleight of hand: specify an aspx file in the SRC attribute of the SCRIPT tag
and generate the script on the fly in this aspx file.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"Ron Vecchi" <rv*****@xilehdvecchi.com> wrote in message
news:eE**************@TK2MSFTNGP09.phx.gbl... I am creating a custom web control that uses an enum for a property {Remote,InLine}. If the property is set to inline then text is read from the embedded resource and sent to the browser in the aspx page as inline java script. If the property is set to Remote then the script tag set with the SRC attribute is displayed <script language="javascript" Src="MyJS.js"></script>.
Is there a way to catch an incoming request from the browser (for the <script language="javascript" src="myJavaScript.js"></script> And then dynamically create the file before it returns a response to the browser that the file does not exsit
Thanks, Ron.
Hi,
Sleight of hand: specify an aspx file in the SRC attribute of the SCRIPT tag
and generate the script on the fly in this aspx file.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"Ron Vecchi" <rv*****@xilehdvecchi.com> wrote in message
news:eE**************@TK2MSFTNGP09.phx.gbl... I am creating a custom web control that uses an enum for a property {Remote,InLine}. If the property is set to inline then text is read from the embedded resource and sent to the browser in the aspx page as inline java script. If the property is set to Remote then the script tag set with the SRC attribute is displayed <script language="javascript" Src="MyJS.js"></script>.
Is there a way to catch an incoming request from the browser (for the <script language="javascript" src="myJavaScript.js"></script> And then dynamically create the file before it returns a response to the browser that the file does not exsit
Thanks, Ron.
One problem with that is that now I would need to have an aspx file along
with my custom control.
I have recently caught notice of HttpHandlers but really don't know what
they are or how to use them.
"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote
in message news:ev**************@TK2MSFTNGP09.phx.gbl... Hi,
Sleight of hand: specify an aspx file in the SRC attribute of the SCRIPT
tag and generate the script on the fly in this aspx file.
-- Dmitriy Lapshin [C# / .NET MVP] X-Unity Test Studio http://x-unity.miik.com.ua/teststudio.aspx Bring the power of unit testing to VS .NET IDE
"Ron Vecchi" <rv*****@xilehdvecchi.com> wrote in message news:eE**************@TK2MSFTNGP09.phx.gbl... I am creating a custom web control that uses an enum for a property {Remote,InLine}. If the property is set to inline then text is read from the embedded resource and sent to the browser in the aspx page as inline java script. If the property is set to Remote then the script tag set with the SRC attribute is displayed <script language="javascript" Src="MyJS.js"></script>.
Is there a way to catch an incoming request from the browser (for the <script language="javascript" src="myJavaScript.js"></script> And then dynamically create the file before it returns a response to the browser that the file does not exsit
Thanks, Ron.
One problem with that is that now I would need to have an aspx file along
with my custom control.
I have recently caught notice of HttpHandlers but really don't know what
they are or how to use them.
"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote
in message news:ev**************@TK2MSFTNGP09.phx.gbl... Hi,
Sleight of hand: specify an aspx file in the SRC attribute of the SCRIPT
tag and generate the script on the fly in this aspx file.
-- Dmitriy Lapshin [C# / .NET MVP] X-Unity Test Studio http://x-unity.miik.com.ua/teststudio.aspx Bring the power of unit testing to VS .NET IDE
"Ron Vecchi" <rv*****@xilehdvecchi.com> wrote in message news:eE**************@TK2MSFTNGP09.phx.gbl... I am creating a custom web control that uses an enum for a property {Remote,InLine}. If the property is set to inline then text is read from the embedded resource and sent to the browser in the aspx page as inline java script. If the property is set to Remote then the script tag set with the SRC attribute is displayed <script language="javascript" Src="MyJS.js"></script>.
Is there a way to catch an incoming request from the browser (for the <script language="javascript" src="myJavaScript.js"></script> And then dynamically create the file before it returns a response to the browser that the file does not exsit
Thanks, Ron.
Ron,
In case of Http handlers I beleive you'll still have to have an additional
handler file (don't remember its extension) - or at least modify the
application's web.config file to register the handler.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"Ron Vecchi" <rv*****@xilehdvecchi.com> wrote in message
news:uD*************@TK2MSFTNGP10.phx.gbl... One problem with that is that now I would need to have an aspx file along with my custom control. I have recently caught notice of HttpHandlers but really don't know what they are or how to use them.
"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote in message news:ev**************@TK2MSFTNGP09.phx.gbl... Hi,
Sleight of hand: specify an aspx file in the SRC attribute of the SCRIPT tag and generate the script on the fly in this aspx file.
-- Dmitriy Lapshin [C# / .NET MVP] X-Unity Test Studio http://x-unity.miik.com.ua/teststudio.aspx Bring the power of unit testing to VS .NET IDE
"Ron Vecchi" <rv*****@xilehdvecchi.com> wrote in message news:eE**************@TK2MSFTNGP09.phx.gbl... I am creating a custom web control that uses an enum for a property {Remote,InLine}. If the property is set to inline then text is read from the embedded resource and sent to the browser in the aspx page as inline java
script. If the property is set to Remote then the script tag set with the SRC attribute is displayed <script language="javascript" Src="MyJS.js"></script>.
Is there a way to catch an incoming request from the browser (for the <script language="javascript" src="myJavaScript.js"></script> And then dynamically create the file before it returns a response to
the browser that the file does not exsit
Thanks, Ron.
Ron,
In case of Http handlers I beleive you'll still have to have an additional
handler file (don't remember its extension) - or at least modify the
application's web.config file to register the handler.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"Ron Vecchi" <rv*****@xilehdvecchi.com> wrote in message
news:uD*************@TK2MSFTNGP10.phx.gbl... One problem with that is that now I would need to have an aspx file along with my custom control. I have recently caught notice of HttpHandlers but really don't know what they are or how to use them.
"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote in message news:ev**************@TK2MSFTNGP09.phx.gbl... Hi,
Sleight of hand: specify an aspx file in the SRC attribute of the SCRIPT tag and generate the script on the fly in this aspx file.
-- Dmitriy Lapshin [C# / .NET MVP] X-Unity Test Studio http://x-unity.miik.com.ua/teststudio.aspx Bring the power of unit testing to VS .NET IDE
"Ron Vecchi" <rv*****@xilehdvecchi.com> wrote in message news:eE**************@TK2MSFTNGP09.phx.gbl... I am creating a custom web control that uses an enum for a property {Remote,InLine}. If the property is set to inline then text is read from the embedded resource and sent to the browser in the aspx page as inline java
script. If the property is set to Remote then the script tag set with the SRC attribute is displayed <script language="javascript" Src="MyJS.js"></script>.
Is there a way to catch an incoming request from the browser (for the <script language="javascript" src="myJavaScript.js"></script> And then dynamically create the file before it returns a response to
the browser that the file does not exsit
Thanks, Ron.
Hi Ron,
Firstly I wan to thank Dmitriy for this great help in this issue.
Based on my research and experience, we need not to create our own
httphandler or httpmoudle in this case. As my opinion, since we know when
the enum propery is equal to Remote,InLine or when it equal to another
value, we can decide whether we need to generate the js file at that time
on the fly.
If I have misunderstood your concern, please feel free to let me know.
Best regards,
Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Hi Ron,
Firstly I wan to thank Dmitriy for this great help in this issue.
Based on my research and experience, we need not to create our own
httphandler or httpmoudle in this case. As my opinion, since we know when
the enum propery is equal to Remote,InLine or when it equal to another
value, we can decide whether we need to generate the js file at that time
on the fly.
If I have misunderstood your concern, please feel free to let me know.
Best regards,
Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Yes, It took me a little while to think through it but since the enum is
known I basically check for it and then create a directory and the .js file
on the server and render my control with the <Script> tag either with the
src attribute pointed to the newly created file or with the tag and
javascript all togeather on the page.
Thanks
"Jacob Yang [MSFT]" <ji***@online.microsoft.com> wrote in message
news:Yp**************@cpmsftngxa06.phx.gbl... Hi Ron,
Firstly I wan to thank Dmitriy for this great help in this issue.
Based on my research and experience, we need not to create our own httphandler or httpmoudle in this case. As my opinion, since we know when the enum propery is equal to Remote,InLine or when it equal to another value, we can decide whether we need to generate the js file at that time on the fly.
If I have misunderstood your concern, please feel free to let me know.
Best regards,
Jacob Yang Microsoft Online Partner Support Get Secure! ¨C www.microsoft.com/security This posting is provided "as is" with no warranties and confers no rights.
Yes, It took me a little while to think through it but since the enum is
known I basically check for it and then create a directory and the .js file
on the server and render my control with the <Script> tag either with the
src attribute pointed to the newly created file or with the tag and
javascript all togeather on the page.
Thanks
"Jacob Yang [MSFT]" <ji***@online.microsoft.com> wrote in message
news:Yp**************@cpmsftngxa06.phx.gbl... Hi Ron,
Firstly I wan to thank Dmitriy for this great help in this issue.
Based on my research and experience, we need not to create our own httphandler or httpmoudle in this case. As my opinion, since we know when the enum propery is equal to Remote,InLine or when it equal to another value, we can decide whether we need to generate the js file at that time on the fly.
If I have misunderstood your concern, please feel free to let me know.
Best regards,
Jacob Yang Microsoft Online Partner Support Get Secure! ¨C www.microsoft.com/security This posting is provided "as is" with no warranties and confers no rights. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Raghuram Banda |
last post by:
Hi all,
I've created a table with Table Header and the table may or may not
contain any rows initially.
I've included a .css file in <head> section of my HTML script and I'm
creating rows to...
|
by: Ron Vecchi |
last post by:
I am creating a custom web control that uses an enum for a property
{Remote,InLine}.
If the property is set to inline then text is read from the embedded
resource and sent to the browser in the...
|
by: Patrick |
last post by:
I want to define a set of web-form templates in XML and render the equivalent
web-form with ASP.NET, then process any input server controls on the form.
Reading the XML file from Page_load is...
|
by: Dotnet Gruven |
last post by:
I've built a WebForm with a Table added dynamically in Page_Load when
IsPostBack is false. The table includes a couple of TextBoxes,
RadioButtonLists and CheckboxLists.
On postback, those...
|
by: andym |
last post by:
Dear All,
I wish to have an ASP page that displays a predetermined date in the
middle of a string. I wish this date to be set in a seperate control
panel type page. I am hoping somebody could...
|
by: SalamElias |
last post by:
I am creating several chkBoxes dynamically and assigning an event handler in
the Page_load as foillows
*****************************
Dim chkCatOption As CheckBox = New CheckBox
chkCatOption.Text...
|
by: Syoam4ka |
last post by:
My project is about jewellery. I have devided my jewelery into main types, which each one of them has sub types, and each one those sub types has the jewellery.
I have a tabcontainer. It includes...
|
by: MLD |
last post by:
PLEASE HELP!
I would like to include a UL as a menu, styled by an included CSS
Style Sheet.
The problem I am having is how do I dynamically set the "active" page
class using JavaScript to...
|
by: RichB |
last post by:
I am trying to get to grips with the asp.net ajaxcontrol toolkit, and am
trying to add a tabbed control to the page.
I have no problems within the aspx file, and can dynamically manipulate a...
|
by: Kemmylinns12 |
last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
|
by: Naresh1 |
last post by:
What is WebLogic Admin Training?
WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
|
by: WisdomUfot |
last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
|
by: Matthew3360 |
last post by:
Hi,
I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
|
by: Oralloy |
last post by:
Hello Folks,
I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA.
My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
|
by: Carina712 |
last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
|
by: BLUEPANDA |
last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
|
by: ezappsrUS |
last post by:
Hi,
I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
| |