0

Problem:

I change the Image url:

chartPic.ImageUrl = "~/Serieschart_pic.ashx?ID=" 
+ Series_ID.ToString() + "&IntervalFrom=" + txtDateFromf.Text;

when txtDateFromf.Text == "" it works. (and I will get this image Url: ...testbox1/monitoring/Serieschart_pic.ashx?ID=5&IntervalFrom= )

when txtDateFromf.Text is a date, (Format: yyyy-MM-dd HH:mm:ss.fff), the image URL bricks and change to somthing like that: ...testbox1/~monitoring/monitoring/Serieschart_pic.ashx?ID=5&IntervalFrom=2013-04-15%2012:30:00.000

this Url not works...! why? The only thing is an other get parameter -.-

thanks for help :)

1 Answer 1

1

I am guessing from what you have said that Serieschart_pic.ashx doesn't expect the parameter to be passed in as your doing (i.e. 2013-04-15%2012:30:00.000) but in a different format. Do you the code to the ASHX file to see what it expects?

3
  • Added this as an answer but I meant to add it as a comment. But as it is quite long I will leave it here for now so you can reply with more information.
    – Belogix
    Apr 15, 2013 at 13:35
  • hey, thx. I found out, with ./ instead of ~/ it works fine... but thats not a smart solution -.- Apr 15, 2013 at 14:30
  • Glad you found the solution to your problem!
    – Belogix
    Apr 15, 2013 at 14:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.