Generate value of control's property runtime

H

Hillbilly

// example control declaration
<cc1:CollapsiblePanelExtender
ID="ControlId"
name="[value]" />

I need to learn how to generate a value in the page so the control is
configured the way that is needed at runtime. I seem to have forgotten how
to write the statement that is written into the HTML to allow me to return a
string from a method as the value of the control's name property?

Is it name="<%= GetStringMethod() %>"?

A literal example; code generates the path to an image the control needs at
runime for display in the page. I've started to write the code to get the
value and return the string to the caller tonight but I don't remember how
to write the expression in the HTML at design-time when I want to test this
tomorrow.
 
A

Aurel

// example control declaration
<cc1:CollapsiblePanelExtender
ID="ControlId"
name="[value]" />

I need to learn how to generate a value in the page so the control is
configured the way that is needed at runtime. I seem to have forgotten
how to write the statement that is written into the HTML to allow me
to return a string from a method as the value of the control's name
property?

Is it name="<%= GetStringMethod() %>"?

A literal example; code generates the path to an image the control
needs at runime for display in the page. I've started to write the
code to get the value and return the string to the caller tonight but
I don't remember how to write the expression in the HTML at
design-time when I want to test this tomorrow.


May you have to try this
<%# GetStringMethod()%>

Aurel
 
H

Hillbilly

Thanks, I used <%# but no results.

Using the string in the HTML works...
CollapsedImage="../App_Themes/FF03_SmokeyBlues/Images/smoke_Help15x15.png"


Returning the string does not...
CollapsedImage="<%# METROmilwaukee.PageStateManager.GetThemedHelpIcon() %>"


// App_Code folder...
public static string GetThemedHelpIcon()
{
return "../App_Themes/FF03_SmokeyBlues/Images/smoke_Help15x15.png";
}


Other methods in the PageStateManager class function just fine so no problem
with the PageStateManager class that is in App_Code folder.


Aurel said:
// example control declaration
<cc1:CollapsiblePanelExtender
ID="ControlId"
name="[value]" />

I need to learn how to generate a value in the page so the control is
configured the way that is needed at runtime. I seem to have forgotten
how to write the statement that is written into the HTML to allow me
to return a string from a method as the value of the control's name
property?

Is it name="<%= GetStringMethod() %>"?

A literal example; code generates the path to an image the control
needs at runime for display in the page. I've started to write the
code to get the value and return the string to the caller tonight but
I don't remember how to write the expression in the HTML at
design-time when I want to test this tomorrow.


May you have to try this
<%# GetStringMethod()%>

Aurel
 
J

Jeff Johnson

Hillbilly said:
// example control declaration
<cc1:CollapsiblePanelExtender
ID="ControlId"
name="[value]" />

I need to learn how to generate a value in the page so the control is
configured the way that is needed at runtime. I seem to have forgotten how
to write the statement that is written into the HTML to allow me to return
a string from a method as the value of the control's name property?

Is it name="<%= GetStringMethod() %>"?

A literal example; code generates the path to an image the control needs
at runime for display in the page. I've started to write the code to get
the value and return the string to the caller tonight but I don't remember
how to write the expression in the HTML at design-time when I want to test
this tomorrow.


For future reference, this has nothing to do with the C# language and is
instead ASP.NET-specific. You'd be much better served asking your question
in an ASP.NET group.
 
H

Hillbilly

Show me the link to the documentation that says that or shut the **** up.

Jeff Johnson said:
Hillbilly said:
// example control declaration
<cc1:CollapsiblePanelExtender
ID="ControlId"
name="[value]" />

I need to learn how to generate a value in the page so the control is
configured the way that is needed at runtime. I seem to have forgotten
how to write the statement that is written into the HTML to allow me to
return a string from a method as the value of the control's name
property?

Is it name="<%= GetStringMethod() %>"?

A literal example; code generates the path to an image the control needs
at runime for display in the page. I've started to write the code to get
the value and return the string to the caller tonight but I don't
remember how to write the expression in the HTML at design-time when I
want to test this tomorrow.


For future reference, this has nothing to do with the C# language and is
instead ASP.NET-specific. You'd be much better served asking your question
in an ASP.NET group.
 
H

Hillbilly

Hello Mr. Helpfulski

For future reference custom expression builder classes are written in C# not
HTML. I'm simply starting a discussion from a point of my own choosing.

Jeff Johnson said:
Hillbilly said:
// example control declaration
<cc1:CollapsiblePanelExtender
ID="ControlId"
name="[value]" />

I need to learn how to generate a value in the page so the control is
configured the way that is needed at runtime. I seem to have forgotten
how to write the statement that is written into the HTML to allow me to
return a string from a method as the value of the control's name
property?

Is it name="<%= GetStringMethod() %>"?

A literal example; code generates the path to an image the control needs
at runime for display in the page. I've started to write the code to get
the value and return the string to the caller tonight but I don't
remember how to write the expression in the HTML at design-time when I
want to test this tomorrow.


For future reference, this has nothing to do with the C# language and is
instead ASP.NET-specific. You'd be much better served asking your question
in an ASP.NET group.
 
A

Arne Vajhøj

Jeff Johnson said:
Hillbilly said:
// example control declaration
<cc1:CollapsiblePanelExtender
ID="ControlId"
name="[value]" />

I need to learn how to generate a value in the page so the control is
configured the way that is needed at runtime. I seem to have
forgotten how to write the statement that is written into the HTML to
allow me to return a string from a method as the value of the
control's name property?

Is it name="<%= GetStringMethod() %>"?

A literal example; code generates the path to an image the control
needs at runime for display in the page. I've started to write the
code to get the value and return the string to the caller tonight but
I don't remember how to write the expression in the HTML at
design-time when I want to test this tomorrow.


For future reference, this has nothing to do with the C# language and
is instead ASP.NET-specific. You'd be much better served asking your
question in an ASP.NET group.

Hello Mr. Helpfulski

For future reference custom expression builder classes are written in C#
not HTML. I'm simply starting a discussion from a point of my own
choosing.

Well. I think you should start with some of the very basic stuff.

Jeff suggested an ASP.NET group not an HTML group.

In fact pure HTML questions would be off topic in an ASP.NET
group (but would probably be accepted since most of the readers
obviously know HTML).

C# is one of many languages supported in ASP.NET, so C# is
certainly on topic in an ASP.NET group (as long as it is
used in ASP.NET context).

On the other hand if the code you want is completely general
and can be demoed in a console app, then it is (more or less)
on topic here.

But in that case I think you need to explain the question
better, because the explanations seems very ASP.NET centric.

Arne
 
H

Hillbilly

But you both fail to know how stupid your logic sounds as it is not sound
when considering the converse. This is why people get aggravated with people
who talk like fools when they play the troll police.


Arne Vajhøj said:
Jeff Johnson said:
// example control declaration
<cc1:CollapsiblePanelExtender
ID="ControlId"
name="[value]" />

I need to learn how to generate a value in the page so the control is
configured the way that is needed at runtime. I seem to have
forgotten how to write the statement that is written into the HTML to
allow me to return a string from a method as the value of the
control's name property?

Is it name="<%= GetStringMethod() %>"?

A literal example; code generates the path to an image the control
needs at runime for display in the page. I've started to write the
code to get the value and return the string to the caller tonight but
I don't remember how to write the expression in the HTML at
design-time when I want to test this tomorrow.


For future reference, this has nothing to do with the C# language and
is instead ASP.NET-specific. You'd be much better served asking your
question in an ASP.NET group.

Hello Mr. Helpfulski

For future reference custom expression builder classes are written in C#
not HTML. I'm simply starting a discussion from a point of my own
choosing.

Well. I think you should start with some of the very basic stuff.

Jeff suggested an ASP.NET group not an HTML group.

In fact pure HTML questions would be off topic in an ASP.NET
group (but would probably be accepted since most of the readers
obviously know HTML).

C# is one of many languages supported in ASP.NET, so C# is
certainly on topic in an ASP.NET group (as long as it is
used in ASP.NET context).

On the other hand if the code you want is completely general
and can be demoed in a console app, then it is (more or less)
on topic here.

But in that case I think you need to explain the question
better, because the explanations seems very ASP.NET centric.

Arne
 
A

Arne Vajhøj

Arne Vajhøj said:
// example control declaration
<cc1:CollapsiblePanelExtender
ID="ControlId"
name="[value]" />

I need to learn how to generate a value in the page so the control is
configured the way that is needed at runtime. I seem to have
forgotten how to write the statement that is written into the HTML to
allow me to return a string from a method as the value of the
control's name property?

Is it name="<%= GetStringMethod() %>"?

A literal example; code generates the path to an image the control
needs at runime for display in the page. I've started to write the
code to get the value and return the string to the caller tonight but
I don't remember how to write the expression in the HTML at
design-time when I want to test this tomorrow.


For future reference, this has nothing to do with the C# language and
is instead ASP.NET-specific. You'd be much better served asking your
question in an ASP.NET group.

Hello Mr. Helpfulski

For future reference custom expression builder classes are written in C#
not HTML. I'm simply starting a discussion from a point of my own
choosing.

Well. I think you should start with some of the very basic stuff.

Jeff suggested an ASP.NET group not an HTML group.

In fact pure HTML questions would be off topic in an ASP.NET
group (but would probably be accepted since most of the readers
obviously know HTML).

C# is one of many languages supported in ASP.NET, so C# is
certainly on topic in an ASP.NET group (as long as it is
used in ASP.NET context).

On the other hand if the code you want is completely general
and can be demoed in a console app, then it is (more or less)
on topic here.

But in that case I think you need to explain the question
better, because the explanations seems very ASP.NET centric.
But you both fail to know how stupid your logic sounds as it is not
sound when considering the converse. This is why people get aggravated
with people who talk like fools when they play the troll police.

arguments = 0
name calling > 0

what can we conclude from that?

Arne
 
H

Hillbilly

That you are in denial of the facts as they are; hence a nitpicking pain in
the ass.

Arne Vajhøj said:
Arne Vajhøj said:
On 22-03-2010 20:17, Hillbilly wrote:
// example control declaration
<cc1:CollapsiblePanelExtender
ID="ControlId"
name="[value]" />

I need to learn how to generate a value in the page so the control is
configured the way that is needed at runtime. I seem to have
forgotten how to write the statement that is written into the HTML to
allow me to return a string from a method as the value of the
control's name property?

Is it name="<%= GetStringMethod() %>"?

A literal example; code generates the path to an image the control
needs at runime for display in the page. I've started to write the
code to get the value and return the string to the caller tonight but
I don't remember how to write the expression in the HTML at
design-time when I want to test this tomorrow.


For future reference, this has nothing to do with the C# language and
is instead ASP.NET-specific. You'd be much better served asking your
question in an ASP.NET group.

Hello Mr. Helpfulski

For future reference custom expression builder classes are written
in C#
not HTML. I'm simply starting a discussion from a point of my own
choosing.

Well. I think you should start with some of the very basic stuff.

Jeff suggested an ASP.NET group not an HTML group.

In fact pure HTML questions would be off topic in an ASP.NET
group (but would probably be accepted since most of the readers
obviously know HTML).

C# is one of many languages supported in ASP.NET, so C# is
certainly on topic in an ASP.NET group (as long as it is
used in ASP.NET context).

On the other hand if the code you want is completely general
and can be demoed in a console app, then it is (more or less)
on topic here.

But in that case I think you need to explain the question
better, because the explanations seems very ASP.NET centric.
But you both fail to know how stupid your logic sounds as it is not
sound when considering the converse. This is why people get aggravated
with people who talk like fools when they play the troll police.

arguments = 0
name calling > 0

what can we conclude from that?

Arne
 
A

Arne Vajhøj

Arne Vajhøj said:
On 22-03-2010 20:17, Hillbilly wrote:
// example control declaration
<cc1:CollapsiblePanelExtender
ID="ControlId"
name="[value]" />

I need to learn how to generate a value in the page so the
control is
configured the way that is needed at runtime. I seem to have
forgotten how to write the statement that is written into the
HTML to
allow me to return a string from a method as the value of the
control's name property?

Is it name="<%= GetStringMethod() %>"?

A literal example; code generates the path to an image the control
needs at runime for display in the page. I've started to write the
code to get the value and return the string to the caller tonight
but
I don't remember how to write the expression in the HTML at
design-time when I want to test this tomorrow.

For future reference, this has nothing to do with the C# language and
is instead ASP.NET-specific. You'd be much better served asking your
question in an ASP.NET group.

Hello Mr. Helpfulski

For future reference custom expression builder classes are written in C#
not HTML. I'm simply starting a discussion from a point of my own choosing.

Well. I think you should start with some of the very basic stuff.

Jeff suggested an ASP.NET group not an HTML group.

In fact pure HTML questions would be off topic in an ASP.NET
group (but would probably be accepted since most of the readers
obviously know HTML).

C# is one of many languages supported in ASP.NET, so C# is
certainly on topic in an ASP.NET group (as long as it is
used in ASP.NET context).

On the other hand if the code you want is completely general
and can be demoed in a console app, then it is (more or less)
on topic here.

But in that case I think you need to explain the question
better, because the explanations seems very ASP.NET centric.
But you both fail to know how stupid your logic sounds as it is not
sound when considering the converse. This is why people get aggravated
with people who talk like fools when they play the troll police.

arguments = 0
name calling > 0

what can we conclude from that?
That you are in denial of the facts as they are; hence a nitpicking pain
in the ass.

But you have not provided any facts.

You have just demonstrated that you know some words that
10 years old think are cool.

Arne
 

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