bound label

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
 
R

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
 
E

Eliyahu Goldin

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
 
R

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
 

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

Similar Threads


Top