473,396 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

bound label

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
Jun 27 '08 #1
4 1264
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" <ro*****@discussions.microsoft.comwrote in message
news:A4**********************************@microsof t.com...
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

Jun 27 '08 #2
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" wrote:
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" <ro*****@discussions.microsoft.comwrote in message
news:A4**********************************@microsof t.com...
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


Jun 27 '08 #3
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" <ro*****@discussions.microsoft.comwrote in message
news:56**********************************@microsof t.com...
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" wrote:
>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" <ro*****@discussions.microsoft.comwrote in message
news:A4**********************************@microso ft.com...
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



Jun 27 '08 #4
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" wrote:
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" <ro*****@discussions.microsoft.comwrote in message
news:56**********************************@microsof t.com...
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" wrote:
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" <ro*****@discussions.microsoft.comwrote in message
news:A4**********************************@microsof t.com...
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


Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: vulcaned | last post by:
Hi All, Hopefully I explain this well........ In Access97 I have a form which has a tab control on it, each tab has a sub-form which is bound to its appropriate table(I'll call them 'Detail'...
1
by: Jax | last post by:
I have an arraylist of objects. This arraylist is bound to a repeater. That repeater then creates a set of controls like so <asp:repeater id="garmentRepeater" runat="server"...
0
by: VbScripter | last post by:
In the code below, I have an editItemTemplate that will have to have a long list of ip's bound to it. The problem is that the lisbox is not seen by asp.net until after the datalist containing it...
1
by: D. Shane Fowlkes | last post by:
I have a DataGrid which is populated by a DataBind command and is bound to a DataSet. It displays nicely on the page and all is well. Is it even possible to have one of the "columns" filled with...
1
by: Josh | last post by:
I am trying to move some of my more common controls into user controls. However, I seem to have problems maintaining state of databound controls that are contained within user controls. On...
3
by: Galen Somerville | last post by:
In two different Form modules FFTcls.Currfrm = Me In FFTcls class module Dim CurrForm As System.Windows.Forms.Form Public WriteOnly Property Currfrm() As System.Windows.Forms.Form...
2
by: H5N1 | last post by:
Hi there First of all excuse me posting such simple (I guess) question, but I didn't find the answer in tutorials. I have a formView presenting records from some table. one of the fields is...
0
by: LeAnne | last post by:
In my ASPX page, I populate the GRID when the user selects an item in the dropdown list. Thus, the data is fetched and the data grid DataBind() method is executed in the PostBack (i.e. IsPostBack...
4
by: pedalchick | last post by:
I'm trying to build a mini-CMS for a friend (ASP.NET 2.0/VB) - just a simple admin page w/ a text box and button that inserts some text into a database (I'm using Access 2003 - text is going into a...
4
by: Tomasz Jastrzebski | last post by:
Hello Everyone, I have a GridView control bound to a plain DataTable object. AutoGenerateEditButton is set to true, Edit button gets displayed, and RowEditing event fires as expected.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.