bound label

  • Thread starter Thread starter rodchar
  • Start date Start date
R

rodchar

hey all,
if my label is bound in a formview,
there's no way to say
label.text = value at no point in time?

thanks,
rodchar
 
ok, the default view is readonly and when i hit the new button to go to the
formview's insert mode i'm implementing the .Text assignments insdie the
ItemCreated event. is that too soon? because when i'm going into formview
insert template i don't do a DataBind() and the .Text assignments aren't
showing up.

Eliyahu Goldin said:
Why not? Any time after databinding. The typical place is the PreRender
event.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


rodchar said:
hey all,
if my label is bound in a formview,
there's no way to say
label.text = value at no point in time?

thanks,
rodchar
 
It should. Likely, there is a problem somewhere in the code.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


rodchar said:
ok, the default view is readonly and when i hit the new button to go to
the
formview's insert mode i'm implementing the .Text assignments insdie the
ItemCreated event. is that too soon? because when i'm going into formview
insert template i don't do a DataBind() and the .Text assignments aren't
showing up.

Eliyahu Goldin said:
Why not? Any time after databinding. The typical place is the PreRender
event.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


rodchar said:
hey all,
if my label is bound in a formview,
there's no way to say
label.text = value at no point in time?

thanks,
rodchar
 
I tried the implementatioin behind the PreRender handler and it worked. But I
still
can't get it to work in ItemCreated. So you're saying it should work in
ItemCreated?

Eliyahu Goldin said:
It should. Likely, there is a problem somewhere in the code.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


rodchar said:
ok, the default view is readonly and when i hit the new button to go to
the
formview's insert mode i'm implementing the .Text assignments insdie the
ItemCreated event. is that too soon? because when i'm going into formview
insert template i don't do a DataBind() and the .Text assignments aren't
showing up.

Eliyahu Goldin said:
Why not? Any time after databinding. The typical place is the PreRender
event.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


hey all,
if my label is bound in a formview,
there's no way to say
label.text = value at no point in time?

thanks,
rodchar
 
Back
Top