Saturday, March 31, 2012
Set application variable from a class
I am trying to set an application variable from a class file in my website.
Currently, the class file inherits from System.Web.UI.Page
I also referenced all the namespaces a normal webform would.
However, when i try save my application variable like such:
Application["test"] = "hello";
I get the following error:
Object reference not set to an instance of an object
How can i set an application variable from a class
It works fine from a webform
TIA
GrantGot It
HttpContext.Current.Application[ ...
"Grant Merwitz" <grant@.workshare.com> wrote in message
news:%23hZBPQ9NGHA.3984@.TK2MSFTNGP14.phx.gbl...
> Hi
> I am trying to set an application variable from a class file in my
> website.
> Currently, the class file inherits from System.Web.UI.Page
> I also referenced all the namespaces a normal webform would.
> However, when i try save my application variable like such:
> Application["test"] = "hello";
> I get the following error:
> Object reference not set to an instance of an object
> How can i set an application variable from a class
> It works fine from a webform
> TIA
> Grant
>
Set application variable from a class
I am trying to set an application variable from a class file in my website.
Currently, the class file inherits from System.Web.UI.Page
I also referenced all the namespaces a normal webform would.
However, when i try save my application variable like such:
Application["test"] = "hello";
I get the following error:
Object reference not set to an instance of an object
How can i set an application variable from a class
It works fine from a webform
TIA
GrantGot It
HttpContext.Current.Application[ ...
"Grant Merwitz" <grant@.workshare.com> wrote in message
news:%23hZBPQ9NGHA.3984@.TK2MSFTNGP14.phx.gbl...
> Hi
> I am trying to set an application variable from a class file in my
> website.
> Currently, the class file inherits from System.Web.UI.Page
> I also referenced all the namespaces a normal webform would.
> However, when i try save my application variable like such:
> Application["test"] = "hello";
> I get the following error:
> Object reference not set to an instance of an object
> How can i set an application variable from a class
> It works fine from a webform
> TIA
> Grant
Thursday, March 29, 2012
Set Column Headertext
I have a Datagrid with a templatecolumn, where I add at design time. I also checked the "create columns automatically"
I would like to change the headertext of columns created automatically, but i don't know in which event I can do that
Can you help me
P.S. I tryied to set the headertext in the "PreRender" event of the DataGrid, but in this point the grid has still only the templatecolumn, and the others columns aren't created yet
Thank you
Alessandro RossHi, Alessandro Rossi,
If you extend the DataGrid class (inherit from it) the best place is the
OnDataBinding protected method. You should first call base.OnDataBinding(e);
of course.
If you are simply using the DataGrid class - set the headertexts after you
call DataBind() because the columns are in fact created with this call.
Hope this helps
Martin
"Alessandro Rossi" <alessandro.rossi@.areait.net> wrote in message
news:528CD483-7F36-4D2A-8760-24CD36F0BE8A@.microsoft.com...
> Hi,
> I have a Datagrid with a templatecolumn, where I add at design time. I
also checked the "create columns automatically".
> I would like to change the headertext of columns created automatically,
but i don't know in which event I can do that.
> Can you help me?
> P.S. I tryied to set the headertext in the "PreRender" event of the
DataGrid, but in this point the grid has still only the templatecolumn, and
the others columns aren't created yet.
> Thank you.
> Alessandro Rossi
Monday, March 26, 2012
Set display order of ListBox control
I have a ListBox control in my ASP.NET page. After I binding data to this
control, I would like to be able to change this display order of items in
this control. Just like change layout function of my.yahoo.com.
I tried client side approach, yes I can change display order by JavaScript,
but after clicking one of the button the display order will reverse back to
its original status. Because after PostBack, the page will try to render
this control by viewstate again.
I tried server side approach, but looks there is no way to switch two
ListItems programmatically.
Is there anybody who has some good idea?
Thanks!
--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours HardyI already solved this problem.
"Hardy Wang" <hardy_wang@.marketrend.com> wrote in message
news:upQn0K$KEHA.628@.TK2MSFTNGP11.phx.gbl...
> Hi
> I have a ListBox control in my ASP.NET page. After I binding data to this
> control, I would like to be able to change this display order of items in
> this control. Just like change layout function of my.yahoo.com.
> I tried client side approach, yes I can change display order by
JavaScript,
> but after clicking one of the button the display order will reverse back
to
> its original status. Because after PostBack, the page will try to render
> this control by viewstate again.
> I tried server side approach, but looks there is no way to switch two
> ListItems programmatically.
>
> Is there anybody who has some good idea?
> Thanks!
> --
>
> WWW: http://hardywang.1accesshost.com
> ICQ: 3359839
> yours Hardy
How?
--
Joe Fallon
"Hardy Wang" <hardy_wang@.marketrend.com> wrote in message
news:O7ZTxp$KEHA.2244@.tk2msftngp13.phx.gbl...
> I already solved this problem.
>
> "Hardy Wang" <hardy_wang@.marketrend.com> wrote in message
> news:upQn0K$KEHA.628@.TK2MSFTNGP11.phx.gbl...
> > Hi
> > I have a ListBox control in my ASP.NET page. After I binding data to
this
> > control, I would like to be able to change this display order of items
in
> > this control. Just like change layout function of my.yahoo.com.
> > I tried client side approach, yes I can change display order by
> JavaScript,
> > but after clicking one of the button the display order will reverse back
> to
> > its original status. Because after PostBack, the page will try to render
> > this control by viewstate again.
> > I tried server side approach, but looks there is no way to switch two
> > ListItems programmatically.
> > Is there anybody who has some good idea?
> > Thanks!
> > --
> > WWW: http://hardywang.1accesshost.com
> > ICQ: 3359839
> > yours Hardy
Dump content of listbox to array, sort array in memory, then clear this
listbox and add listitem from array one by one.
--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy
"Joe Fallon" <jfallon1@.nospamtwcny.rr.com> wrote in message
news:%23nd3uPALEHA.3052@.TK2MSFTNGP12.phx.gbl...
> How?
> --
> Joe Fallon
>
> "Hardy Wang" <hardy_wang@.marketrend.com> wrote in message
> news:O7ZTxp$KEHA.2244@.tk2msftngp13.phx.gbl...
> > I already solved this problem.
> > "Hardy Wang" <hardy_wang@.marketrend.com> wrote in message
> > news:upQn0K$KEHA.628@.TK2MSFTNGP11.phx.gbl...
> > > Hi
> > > I have a ListBox control in my ASP.NET page. After I binding data to
> this
> > > control, I would like to be able to change this display order of items
> in
> > > this control. Just like change layout function of my.yahoo.com.
> > > I tried client side approach, yes I can change display order by
> > JavaScript,
> > > but after clicking one of the button the display order will reverse
back
> > to
> > > its original status. Because after PostBack, the page will try to
render
> > > this control by viewstate again.
> > > > I tried server side approach, but looks there is no way to switch two
> > > ListItems programmatically.
> > > > > Is there anybody who has some good idea?
> > > > Thanks!
> > > > --
> > > > > > WWW: http://hardywang.1accesshost.com
> > > ICQ: 3359839
> > > yours Hardy
> >
Yep.
That is what my listbox sort routine does.
Just wondering if you came up with something different.
--
Joe Fallon
"Hardy Wang" <hardy_wang@.marketrend.com> wrote in message
news:uVlWuSFLEHA.3808@.TK2MSFTNGP12.phx.gbl...
> Dump content of listbox to array, sort array in memory, then clear this
> listbox and add listitem from array one by one.
> --
> WWW: http://hardywang.1accesshost.com
> ICQ: 3359839
> yours Hardy
> "Joe Fallon" <jfallon1@.nospamtwcny.rr.com> wrote in message
> news:%23nd3uPALEHA.3052@.TK2MSFTNGP12.phx.gbl...
> > How?
> > --
> > Joe Fallon
> > "Hardy Wang" <hardy_wang@.marketrend.com> wrote in message
> > news:O7ZTxp$KEHA.2244@.tk2msftngp13.phx.gbl...
> > > I already solved this problem.
> > > > > "Hardy Wang" <hardy_wang@.marketrend.com> wrote in message
> > > news:upQn0K$KEHA.628@.TK2MSFTNGP11.phx.gbl...
> > > > Hi
> > > > I have a ListBox control in my ASP.NET page. After I binding data to
> > this
> > > > control, I would like to be able to change this display order of
items
> > in
> > > > this control. Just like change layout function of my.yahoo.com.
> > > > I tried client side approach, yes I can change display order by
> > > JavaScript,
> > > > but after clicking one of the button the display order will reverse
> back
> > > to
> > > > its original status. Because after PostBack, the page will try to
> render
> > > > this control by viewstate again.
> > > > > > I tried server side approach, but looks there is no way to switch
two
> > > > ListItems programmatically.
> > > > > > > > Is there anybody who has some good idea?
> > > > > > Thanks!
> > > > > > --
> > > > > > > > > > WWW: http://hardywang.1accesshost.com
> > > > ICQ: 3359839
> > > > yours Hardy
> > > > > >
Set file name returned from ASP.NET page by URL
I have an .aspx page which returns an image. This page takes some GET
parameters, so URL looks like this:
http://localhost/page.aspx?id=1234
Now, when the user click this link, I want that his browser would receive
picture with some good looking name, like image1.jpg.
How to do this within ASP.NET code ?..
--
Pawe
www.DATAX.plWrite an HTTPHandler. Using the Handler, you can make a request for an image
file and get back whatever the handler returns. For example,
http://localhost/image1.jpg?id=1234
would return an image named "image1.jpg" - which could be anything you
generate via your Handler.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"pawel" <pawel.zarzycki@.interia.pl> wrote in message
news:#1SMC4B7DHA.1040@.TK2MSFTNGP10.phx.gbl...
> Hi!
> I have an .aspx page which returns an image. This page takes some GET
> parameters, so URL looks like this:
> http://localhost/page.aspx?id=1234
> Now, when the user click this link, I want that his browser would receive
> picture with some good looking name, like image1.jpg.
> How to do this within ASP.NET code ?..
> --
> Pawe
> www.DATAX.pl
Thanks for the answer.
Can you shortly tell me what exactly is that HTTPHandler ?.. I cant find
such topic in MSDN.
Paul
"Kevin Spencer" <kevin@.takempis.com> wrote in message
news:%23PRm1$B7DHA.2764@.TK2MSFTNGP09.phx.gbl...
> Write an HTTPHandler. Using the Handler, you can make a request for an
image
> file and get back whatever the handler returns. For example,
> http://localhost/image1.jpg?id=1234
> would return an image named "image1.jpg" - which could be anything you
> generate via your Handler.
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Big things are made up
> of lots of little things.
> "pawel" <pawel.zarzycki@.interia.pl> wrote in message
> news:#1SMC4B7DHA.1040@.TK2MSFTNGP10.phx.gbl...
> > Hi!
> > I have an .aspx page which returns an image. This page takes some GET
> > parameters, so URL looks like this:
> > http://localhost/page.aspx?id=1234
> > Now, when the user click this link, I want that his browser would
receive
> > picture with some good looking name, like image1.jpg.
> > How to do this within ASP.NET code ?..
> > --
> > Pawe
> > www.DATAX.pl
You might try something like this:
Response.Clear();
Response.AddHeader("Content-Disposition","inline;filename=image1.jpg");
Response.WriteFile("myfile.jpg");
Here's more info:
http://msdn.microsoft.com/library/d...tefiletopic.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com
"pawel" <pawel.zarzycki@.interia.pl> wrote in message
news:%231SMC4B7DHA.1040@.TK2MSFTNGP10.phx.gbl...
> Hi!
> I have an .aspx page which returns an image. This page takes some GET
> parameters, so URL looks like this:
> http://localhost/page.aspx?id=1234
> Now, when the user click this link, I want that his browser would receive
> picture with some good looking name, like image1.jpg.
> How to do this within ASP.NET code ?..
> --
> Pawe
> www.DATAX.pl
Sure. An HttpHandler is a class that handles HTTP requests. In ASP.Net a
Page class, for example, is the default HttpHandler for files with a .aspx
extension. You can map different file extensions to different HttpHandlers
in ASP.Net. What happens is, when the web server receives a request for a
file, it looks in its configuration to find out whether a special
HttpHandler has been designated for that file extension. ASP.Net provides
the HttpHandler class to extend the functionality of ASP.net to be able to
handle requests for other file types (extensions). In IIS, you make ASP.Net
the HttpHandler for the type of file that you desire, and use the web.config
file for your web to identify what DLL (Class Library) is used to handle
specific file extensions.
The HttpHandler is a clsss that handles the request. It has access to the
same HttpContext (Request, Response, Cookies, Session, Application, Server,
etc) that the Page class does.
For more detailed information, see:
http://msdn.microsoft.com/library/d...ttphandlers.asp
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"pawel" <pawel.zarzycki@.interia.pl> wrote in message
news:uLuTwUC7DHA.1052@.TK2MSFTNGP12.phx.gbl...
> Thanks for the answer.
> Can you shortly tell me what exactly is that HTTPHandler ?.. I cant find
> such topic in MSDN.
> Paul
> "Kevin Spencer" <kevin@.takempis.com> wrote in message
> news:%23PRm1$B7DHA.2764@.TK2MSFTNGP09.phx.gbl...
> > Write an HTTPHandler. Using the Handler, you can make a request for an
> image
> > file and get back whatever the handler returns. For example,
> > http://localhost/image1.jpg?id=1234
> > would return an image named "image1.jpg" - which could be anything you
> > generate via your Handler.
> > --
> > HTH,
> > Kevin Spencer
> > .Net Developer
> > Microsoft MVP
> > Big things are made up
> > of lots of little things.
> > "pawel" <pawel.zarzycki@.interia.pl> wrote in message
> > news:#1SMC4B7DHA.1040@.TK2MSFTNGP10.phx.gbl...
> > > Hi!
> > > I have an .aspx page which returns an image. This page takes some GET
> > > parameters, so URL looks like this:
> > > http://localhost/page.aspx?id=1234
> > > Now, when the user click this link, I want that his browser would
> receive
> > > picture with some good looking name, like image1.jpg.
> > > How to do this within ASP.NET code ?..
> > > > --
> > > Pawe
> > > www.DATAX.pl
> >
Thursday, March 22, 2012
Set IHttpHandler for all files in a directory?
I have tried both:
<add verb="*" path="html-image\*.jpg" type="BitmapView"/>
and
<add verb="*" path="html-image\*" type="BitmapView"/>
But neither works. In both cases I just get file cannot be found and it
never calls my code.
If I set
<add verb="*" path="html-image.*" type="BitmapView"/>
That works - but it is not what I need.
Any ideas?
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htmIn IIS, there is a wildcard application map. Do that on your virtual
directory. Then, you should be a step closer to what you want...
David Thielen wrote:
Quote:
Originally Posted by
Hi;
>
I have tried both:
<add verb="*" path="html-image\*.jpg" type="BitmapView"/>
and
<add verb="*" path="html-image\*" type="BitmapView"/>
But neither works. In both cases I just get file cannot be found and it
never calls my code.
>
If I set
<add verb="*" path="html-image.*" type="BitmapView"/>
That works - but it is not what I need.
>
Any ideas?
>
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
>
Cubicle Wars - http://www.windwardreports.com/film.htm
Er... and if the file isn't real make sure you turn OFF file existence
verification in IIS for the mapping.
David Thielen wrote:
Quote:
Originally Posted by
Hi;
>
I have tried both:
<add verb="*" path="html-image\*.jpg" type="BitmapView"/>
and
<add verb="*" path="html-image\*" type="BitmapView"/>
But neither works. In both cases I just get file cannot be found and it
never calls my code.
>
If I set
<add verb="*" path="html-image.*" type="BitmapView"/>
That works - but it is not what I need.
>
Any ideas?
>
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
>
Cubicle Wars - http://www.windwardreports.com/film.htm
Hello Dave,
As for the httphandler configuration, as far as I knew, it supports limited
wildcard mapping format. So far based on my test, as long as you've
configured the IIS extension mapping to redirect the certain document
extension to ASP.NET isapi.dll, the following wildcard format httphandler
path is supported:
<add path="test.*" verb="*" type="PPTHandler, __code"/>
<add path="*.test" verb="*" type="PPTHandler, __code"/>
<add path="*asm.bsd" verb="*" type="PPTHandler, __code"></add>
<add path="asm*.bsd" verb="*" type="PPTHandler, __code"/>
As for the test path you provided, why did you put an "\" char in the path,
is it necessary for your application?
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
I have to return bitmaps that I have stored in a database. So my plan was
that the filenames woul be html-file\1234.jpg, html-file\1235.jpg, etc. The
html-file directory would say it's a bitmap in the database and then the file
name would be it's PK in the database.
Is there another way to do this? Because it looks like I can't use the
directory for the path. This is presently on the VS2005 integrated server but
it needs to work on IIS also.
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
"Steven Cheng[MSFT]" wrote:
Quote:
Originally Posted by
Hello Dave,
>
As for the httphandler configuration, as far as I knew, it supports limited
wildcard mapping format. So far based on my test, as long as you've
configured the IIS extension mapping to redirect the certain document
extension to ASP.NET isapi.dll, the following wildcard format httphandler
path is supported:
>
<add path="test.*" verb="*" type="PPTHandler, __code"/>
>
<add path="*.test" verb="*" type="PPTHandler, __code"/>
>
<add path="*asm.bsd" verb="*" type="PPTHandler, __code"></add>
>
<add path="asm*.bsd" verb="*" type="PPTHandler, __code"/>
>
As for the test path you provided, why did you put an "\" char in the path,
is it necessary for your application?
>
>
Sincerely,
>
Steven Cheng
>
Microsoft MSDN Online Support Lead
>
>
This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
Hi Dave,
I would suggest you avoid using any particular characters (like the
backward slash ) in your custom httphandler's request url, you can use some
normal separaor char such as "-" to separate different part in your custom
handler's url and then parse them in your httphandler's code. e.g.
http://servername/appname/databasename-filename1.rpt
Also, directory path is not allowed as content in url path directly. The
correct way is to use them as a querystring parameter. I'm afraid there is
no other means for this so far.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
ok - thanks
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
"Steven Cheng[MSFT]" wrote:
Quote:
Originally Posted by
Hi Dave,
>
I would suggest you avoid using any particular characters (like the
backward slash ) in your custom httphandler's request url, you can use some
normal separaor char such as "-" to separate different part in your custom
handler's url and then parse them in your httphandler's code. e.g.
>
http://servername/appname/databasename-filename1.rpt
>
Also, directory path is not allowed as content in url path directly. The
correct way is to use them as a querystring parameter. I'm afraid there is
no other means for this so far.
>
>
Sincerely,
>
Steven Cheng
>
Microsoft MSDN Online Support Lead
>
>
This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
>
>
Set IHttpHandler for all files in a directory?
I have tried both:
<add verb="*" path="html-image\*.jpg" type="BitmapView"/>
and
<add verb="*" path="html-image\*" type="BitmapView"/>
But neither works. In both cases I just get file cannot be found and it
never calls my code.
If I set
<add verb="*" path="html-image.*" type="BitmapView"/>
That works - but it is not what I need.
Any ideas?
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htmIn IIS, there is a wildcard application map. Do that on your virtual
directory. Then, you should be a step closer to what you want...
David Thielen wrote:
> Hi;
> I have tried both:
> <add verb="*" path="html-image\*.jpg" type="BitmapView"/>
> and
> <add verb="*" path="html-image\*" type="BitmapView"/>
> But neither works. In both cases I just get file cannot be found and it
> never calls my code.
> If I set
> <add verb="*" path="html-image.*" type="BitmapView"/>
> That works - but it is not what I need.
> Any ideas?
> --
> thanks - dave
> david_at_windward_dot_net
> http://www.windwardreports.com
> Cubicle Wars - http://www.windwardreports.com/film.htm
Er... and if the file isn't real make sure you turn OFF file existence
verification in IIS for the mapping.
David Thielen wrote:
> Hi;
> I have tried both:
> <add verb="*" path="html-image\*.jpg" type="BitmapView"/>
> and
> <add verb="*" path="html-image\*" type="BitmapView"/>
> But neither works. In both cases I just get file cannot be found and it
> never calls my code.
> If I set
> <add verb="*" path="html-image.*" type="BitmapView"/>
> That works - but it is not what I need.
> Any ideas?
> --
> thanks - dave
> david_at_windward_dot_net
> http://www.windwardreports.com
> Cubicle Wars - http://www.windwardreports.com/film.htm
Hello Dave,
As for the httphandler configuration, as far as I knew, it supports limited
wildcard mapping format. So far based on my test, as long as you've
configured the IIS extension mapping to redirect the certain document
extension to ASP.NET isapi.dll, the following wildcard format httphandler
path is supported:
<add path="test.*" verb="*" type="PPTHandler, __code"/>
<add path="*.test" verb="*" type="PPTHandler, __code"/>
<add path="*asm.bsd" verb="*" type="PPTHandler, __code"></add>
<add path="asm*.bsd" verb="*" type="PPTHandler, __code"/>
As for the test path you provided, why did you put an "\" char in the path,
is it necessary for your application?
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
I have to return bitmaps that I have stored in a database. So my plan was
that the filenames woul be html-file\1234.jpg, html-file\1235.jpg, etc. The
html-file directory would say it's a bitmap in the database and then the fil
e
name would be it's PK in the database.
Is there another way to do this? Because it looks like I can't use the
directory for the path. This is presently on the VS2005 integrated server bu
t
it needs to work on IIS also.
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
"Steven Cheng[MSFT]" wrote:
> Hello Dave,
> As for the httphandler configuration, as far as I knew, it supports limite
d
> wildcard mapping format. So far based on my test, as long as you've
> configured the IIS extension mapping to redirect the certain document
> extension to ASP.NET isapi.dll, the following wildcard format httphandler
> path is supported:
> <add path="test.*" verb="*" type="PPTHandler, __code"/>
> <add path="*.test" verb="*" type="PPTHandler, __code"/>
> <add path="*asm.bsd" verb="*" type="PPTHandler, __code"></add>
> <add path="asm*.bsd" verb="*" type="PPTHandler, __code"/>
> As for the test path you provided, why did you put an "\" char in the path
,
> is it necessary for your application?
>
> Sincerely,
> Steven Cheng
> Microsoft MSDN Online Support Lead
>
> This posting is provided "AS IS" with no warranties, and confers no rights
.
>
Hi Dave,
I would suggest you avoid using any particular characters (like the
backward slash ) in your custom httphandler's request url, you can use some
normal separaor char such as "-" to separate different part in your custom
handler's url and then parse them in your httphandler's code. e.g.
http://servername/appname/databasename-filename1.rpt
Also, directory path is not allowed as content in url path directly. The
correct way is to use them as a querystring parameter. I'm afraid there is
no other means for this so far.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
Lines: 40
Thread-Topic: Set IHttpHandler for all files in a directory?
thread-index: AcbrwiA3mpAIgerrRbaY5XH7yI7/5g==
X-WBNR-Posting-Host: 207.174.201.190
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
NNTP-Posting-Host: TK2MSFTNGXA01.phx.gbl 10.40.2.250
Xref: leafnode.mcse.ms microsoft.public.dotnet.framework.aspnet:23986
ok - thanks
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
"Steven Cheng[MSFT]" wrote:
> Hi Dave,
> I would suggest you avoid using any particular characters (like the
> backward slash ) in your custom httphandler's request url, you can use som
e
> normal separaor char such as "-" to separate different part in your custo
m
> handler's url and then parse them in your httphandler's code. e.g.
> http://servername/appname/databasename-filename1.rpt
> Also, directory path is not allowed as content in url path directly. The
> correct way is to use them as a querystring parameter. I'm afraid there i
s
> no other means for this so far.
>
> Sincerely,
> Steven Cheng
> Microsoft MSDN Online Support Lead
>
> This posting is provided "AS IS" with no warranties, and confers no rights
.
>
>