|
Home > Archive > Microsoft Content Management Server > March 2005 > accessing the default console
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
accessing the default console
|
|
|
| Hi,
I'm writing a common method that can call from any
template that can disable certain functionalities from
the default console. For instance... if a certain
criteria isn't meet during the save process then I want
the submit link set to invisible. Does that make sense?
Is that possible?
Thanks for any help you can give.
Ash
| |
| Stefan [MSFT] 2005-03-24, 8:47 pm |
| Hi Ash,
the easiest way to achieve this is to create a class library that does this.
In the console.ascx file you then have to surround the different actions
with statements like this:
<% if (libraryreference.ShowSubmit) { %>
.... save action
<% } %>
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights
Book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"Ash" <anonymous@discussions.microsoft.com> wrote in message
news:0eac01c530bd$eee3dcf0$a401280a@phx.gbl...
> Hi,
>
> I'm writing a common method that can call from any
> template that can disable certain functionalities from
> the default console. For instance... if a certain
> criteria isn't meet during the save process then I want
> the submit link set to invisible. Does that make sense?
> Is that possible?
>
> Thanks for any help you can give.
>
>
> Ash
| |
|
| Hmmm I wrote a method in a class libray but I can't
access the objects in the default console. My be I am
doing this wrong. Here's what I have...
public static void RemoveControls()
{
Console.LBDDefaultConsole.SubmitAction1.Visible =
false;
}
Am I totally off base???
>-----Original Message-----
>Hi Ash,
>
>the easiest way to achieve this is to create a class
library that does this.
>In the console.ascx file you then have to surround the
different actions
>with statements like this:
>
><% if (libraryreference.ShowSubmit) { %>
>.... save action
><% } %>
>
>Cheers,
>Stefan.
>
>--
>This posting is provided "AS IS" with no warranties, and
confers no rights
>Book: Building Websites Using MCMS:
http://tinyurl.com/6zj44
>----------------------
>
>
>"Ash" <anonymous@discussions.microsoft.com> wrote in
message
>news:0eac01c530bd$eee3dcf0$a401280a@phx.gbl...
sense?[vbcol=seagreen]
>
>
>.
>
| |
| Stefan [MSFT] 2005-03-24, 8:47 pm |
| Hi Ash,
I don't think it will work that way.
Try the way I described before.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
Book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"Ash" <anonymous@discussions.microsoft.com> wrote in message
news:04fe01c530c6$b780b310$a501280a@phx.gbl...[vbcol=seagreen]
> Hmmm I wrote a method in a class libray but I can't
> access the objects in the default console. My be I am
> doing this wrong. Here's what I have...
>
> public static void RemoveControls()
> {
>
> Console.LBDDefaultConsole.SubmitAction1.Visible =
> false;
> }
>
> Am I totally off base???
>
> library that does this.
> different actions
> confers no rights
> http://tinyurl.com/6zj44
> message
> sense?
| |
|
| Thanks Stefan!
>-----Original Message-----
>Hi Ash,
>
>I don't think it will work that way.
>Try the way I described before.
>
>Cheers,
>Stefan
>
>--
>This posting is provided "AS IS" with no warranties, and
confers no rights
>Book: Building Websites Using MCMS:
http://tinyurl.com/6zj44
>----------------------
>
>
>"Ash" <anonymous@discussions.microsoft.com> wrote in
message
>news:04fe01c530c6$b780b310$a501280a@phx.gbl...
and[vbcol=seagreen]
from[vbcol=seagreen]
want[vbcol=seagreen]
>
>
>.
>
|
|
|
|
|