Q
Qwert
Hello,
I have a Webcontrol ( Inherits System.Web.UI.WebControls.WebControl, Visual
Basic ).
In this control I create and save a picture:
Dim objImgResult As Image
....
objImgResult.Save(strFilename)
It works fine, but when I don't specify the full path in 'strFilename', the
resulting image ends up in my "\Windows\system32" directory. But I want it
to end up in the directory where the main file "Index.aspx" is, or in its
"\bin" directory where the dll is with the control.
How does one do this simple task, without hardcoding the full path into the
code of the control?
Thanks.
I have a Webcontrol ( Inherits System.Web.UI.WebControls.WebControl, Visual
Basic ).
In this control I create and save a picture:
Dim objImgResult As Image
....
objImgResult.Save(strFilename)
It works fine, but when I don't specify the full path in 'strFilename', the
resulting image ends up in my "\Windows\system32" directory. But I want it
to end up in the directory where the main file "Index.aspx" is, or in its
"\bin" directory where the dll is with the control.
How does one do this simple task, without hardcoding the full path into the
code of the control?
Thanks.