no parameters, it's c# handler to genarate captcha image. i have test it in local host work fine, How do make it work in umbraco xslt macro?
I have upload dll to bin folder, ashx file in web site root folder. not sure next step is correct or not I have added line in web.config under handerls
Sorry i had week off completely out of my code world.
i have managed to do that in a different way. I have created a class file myhander.cs and done the coding . copied .cs file in umbraco App_code folder , and add .dll to bin folder.
then in web config just one line under <system.webserver> <handlers> i have to give the name of cs class as handler name and type as <name space of project>.cs file name
if I corrected above post's line <add name="capHandler" path="capHandler.ashx" verb="*" type="icCpatchaGenerator.capHandler" />
how to call ashx handler in xslt
I have generic handler written in c# (ashx file), I need to know is there any way that I can call this in xslt.
I am generating captcha image in this ashx file, how do I make this work in my xslt <img src="myhandler.ashx"/>
so the image display in my web page.
I have test the handler localhost, I can add aspx page and call it it works fine. now I am strugle to apply this in umbraco xslt macro.
any help?
Hi Pat
Does your handler take any parameters? And where is it stored on your disk?
/Jan
no parameters, it's c# handler to genarate captcha image. i have test it in local host work fine, How do make it work in umbraco xslt macro?
I have upload dll to bin folder, ashx file in web site root folder. not sure next step is correct or not I have added line in web.config under handerls
<add name="icCpatchaGenerator" path="capHandler.ashx" verb="GET,HEAD,POST" type="icCpatchaGenerator" requireAccess="Write" />
then in xslt I have call <img src="/capHandler.ashx" alt="text to cap" />
which is not working.
Hi Pat
Do you get any error messages? Or is the captcha simply not being generated when you call it using your xslt macro?
/Jan
Sorry i had week off completely out of my code world.
i have managed to do that in a different way. I have created a class file myhander.cs and done the coding . copied .cs file in umbraco App_code folder , and add .dll to bin folder.
then in web config just one line under <system.webserver> <handlers> i have to give the name of cs class as handler name and type as <name space of project>.cs file name
if I corrected above post's line <add name="capHandler" path="capHandler.ashx" verb="*" type="icCpatchaGenerator.capHandler" />
then this work like a charm
any way thanks for your replys and efforts..
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.