Hello Stefan, In most events of Thttpserver you have Sender and Client arguments. Sender is the server, client is the HttpConnection. So probabley you want to do:
ClientCnx := Client as TMyHTTPConnection; --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Tuesday, May 2, 2006, 12:32, Stefan Blankenagel wrote: > Hi, > I am programming a http server with the ics components. I took the > example webserver for my software. I want to use templates with tables > and there is a function formdatagetrow. I also implemented this into my > software but every time if I call the webpage I get an exception > EInvalidCast. Type conversion is not possible. The debugger stops at > following statement: ClientCnx := Sender as TMyHTTPConnection; > In the demo it is working fine and I don't know what could be different. > thanks > Stefan -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be