INamingContainer and the LinkButton...

J

Jo Inferis

(Disclaimer : I'm pretty new to .NET, so please forgive me if this isn't
100% clear)

I know Master pages are coming, but until then I've implemented a version of
the page templating solution at www.geekyfrog.com (thanks, btw).

Within it this basically combines the PlaceHolder class and INamingContainer
to give sub controls their own namespace (check the site for a better
explanation - like I said, I'm still figuring a lot of this out!)

I wanted to implement some further navigation within the global template and
was toying with the use of a series of LinkButton's to control
this....however, within the global template, the JScript which ASP.NET
generates is totally bogus. Basically, a LinkButton comes out like this :

<a id = "_PageTemplate_nphBody_btnShowRun"
href =
"javascript:__doPostBack('_PageTemplate$nphBody$btnShowRun','')">Run</a>

The id passed in the __doPostBack function appears to have gained $'s in
place of underscores. This is especially confusing since the underscore
isn't (afaik) a character that needs any kind of escaping within a JScript
string (there is one at the beginning of the string anyway!).

Can anyone shed any light on this? :/

thanks in advance,
 
C

chaw_us

I am newbie to asp.net, even i am using the geekyfrog's templating control. Problem with the control is it isn't working if i create control with the following classes provided by geeky without changing anything

NamingPlaceHolder.vb
PageBody.vb
PageBodyBase.vb
PageBodyDesigner.vb
PageTemplate.vb
PageTemplateBase.vb

i just complied the above classes into assembly "GeekyFrog.Web.Templating.dll" and placed my version into the bin directory, whats happening here is, webform doesn't recognize templatepath property if i place .ascx filename in the tag. If I try to intialize the property in a code behid file it works.
Can you please help me if i am missing something.

Thanks,
Ramu

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top