Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Custom html output with custom server control

Reply
Thread Tools

Custom html output with custom server control

 
 
DKode
Guest
Posts: n/a
 
      11-04-2005
I have developed a custom server control that displays a login page
that authenticates against AD. The server control works fine, but now I
am trying to figure out the best way to output custom html. The HTML
output for the server control changes for each application I include
the server control in. At first I thought about making an html file and
just including it, but this won't work because with the custom html I
output two textboxes and a submit button that is generated through code
so I can fire the events for the controls.

What is the easiest way to include custom html output so I don't have
to re-code my custom server control everytime I add it to a different
application. Any help would be appreciated.

thanks

Sean

 
Reply With Quote
 
 
 
 
S.M. Altaf [MVP]
Guest
Posts: n/a
 
      11-04-2005

Hi,

I'm thinking, something in the lines of a template with string-placeholders.
The template would be nothing but a text file with HTML in it, and strings
that your code can look for, like $puttextboxhere. You can parse through,
replace, and write the elements out.

Catch my drift?

-Altaf

--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com


"DKode" <> wrote in message
news: ups.com...
>I have developed a custom server control that displays a login page
> that authenticates against AD. The server control works fine, but now I
> am trying to figure out the best way to output custom html. The HTML
> output for the server control changes for each application I include
> the server control in. At first I thought about making an html file and
> just including it, but this won't work because with the custom html I
> output two textboxes and a submit button that is generated through code
> so I can fire the events for the controls.
>
> What is the easiest way to include custom html output so I don't have
> to re-code my custom server control everytime I add it to a different
> application. Any help would be appreciated.
>
> thanks
>
> Sean
>



 
Reply With Quote
 
 
 
 
DKode
Guest
Posts: n/a
 
      11-04-2005
I see what your're saying. Is there any built in template feature of
dotnet that can do this? Or should I just parse the file and output it
myself.

thanks

 
Reply With Quote
 
S.M. Altaf [MVP]
Guest
Posts: n/a
 
      11-05-2005
I am not aware of the existence of any such feature or control. I believe
you'll have to do this yourself.


--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com

"DKode" <> wrote in message
news: oups.com...
>I see what your're saying. Is there any built in template feature of
> dotnet that can do this? Or should I just parse the file and output it
> myself.
>
> thanks
>



 
Reply With Quote
 
DKode
Guest
Posts: n/a
 
      11-07-2005
I used your suggested method and it works perfectly.

thanks for your help!

Sean

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Studio 2005 html-view does not recognize the generated html-tag of a custom control Rolf Welskes ASP .Net 3 10-06-2006 06:49 PM
Help on HTML server control vs HTML control =?Utf-8?B?c2VyZ2UgY2FsZGVyYXJh?= ASP .Net 5 09-15-2005 07:51 PM
Embed 3rd Party Server Control into my Custom Web Server Control Tim ASP .Net Web Controls 0 04-15-2005 03:13 PM
HTML Client Control versus. HTML Server Control versus. Web Server Control Matthew Louden ASP .Net 1 10-11-2003 07:09 PM
ControlDesigner not invoked on custom control when control is rendered within another custom control Matt Sokol ASP .Net Building Controls 2 08-07-2003 07:13 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57