Click here to Skip to main content
15,919,341 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How do I handle the space (gap) between panels in a <td>? Pin
Ennis Ray Lynch, Jr.3-Aug-06 8:30
Ennis Ray Lynch, Jr.3-Aug-06 8:30 
GeneralRe: How do I handle the space (gap) between panels in a <td>? Pin
Slow Learner3-Aug-06 10:01
Slow Learner3-Aug-06 10:01 
QuestionChanging the Page Title at runtime Pin
RizShiney3-Aug-06 7:45
RizShiney3-Aug-06 7:45 
AnswerRe: Changing the Page Title at runtime Pin
Not Active3-Aug-06 7:57
mentorNot Active3-Aug-06 7:57 
AnswerRe: Changing the Page Title at runtime Pin
ToddHileHoffer3-Aug-06 8:10
ToddHileHoffer3-Aug-06 8:10 
QuestionChanging the Title of an aspx page Pin
RizShiney3-Aug-06 7:40
RizShiney3-Aug-06 7:40 
AnswerRe: Changing the Title of an aspx page Pin
Ista3-Aug-06 8:41
Ista3-Aug-06 8:41 
QuestionCustom Control won't do 2-way databinding in FormView Pin
M@Coder3-Aug-06 7:01
M@Coder3-Aug-06 7:01 
Hi all,

I hope you can help me with the following problem...

A custom control I've created will not perform 2-way databinding on one of its properties in a FormView control - when inserting (or editing), the control's property value is not retrieved but I know the property has a value and is stored in the viewstate.

The custom control is a composite control (Inherited from System.Web.UI.WebControls.CompositeControl) which is used in the Edit and Insert ItemTemplates of a FormView control.

I've databound a property (DataValue) of the control like this:
<cc1:custCtrlTest1 id="SiteId" runat="server" DataValue='<%# Bind("siteId") %>' ></cc1:custCtrlTest1>


The property declaration in the custom control is like this:
< _
Bindable(True), _
Category("Appearance"), _
Description("Value to display in the valueTextbox.") _
> _
Public Property DataValue() As String
    Get
        EnsureChildControls()
        Return valueTextBox.Value
    End Get
    Set(ByVal value As String)
        EnsureChildControls()
        valueTextBox.Value = value
    End Set
End Property


During the iteminserted or iteminserting events e.Values.Item("siteId") is empty.

Strangely, in the ItemTemplate the control works fine, a value is databound and given to the DataValue property, it's only failing when binding in the other direction.Confused | :confused:

Can anyone help?

Thanks,

M@
AnswerRe: Custom Control won't do 2-way databinding in FormView Pin
minhpc_bk3-Aug-06 15:45
minhpc_bk3-Aug-06 15:45 
GeneralRe: Custom Control won't do 2-way databinding in FormView Pin
M@Coder3-Aug-06 22:04
M@Coder3-Aug-06 22:04 
GeneralRe: Custom Control won't do 2-way databinding in FormView Pin
minhpc_bk3-Aug-06 23:58
minhpc_bk3-Aug-06 23:58 
GeneralRe: Custom Control won't do 2-way databinding in FormView Pin
M@Coder4-Aug-06 0:53
M@Coder4-Aug-06 0:53 
QuestionHow to add intervel time in application Pin
ChennaiBabu3-Aug-06 5:00
ChennaiBabu3-Aug-06 5:00 
AnswerRe: How to add intervel time in application Pin
Paddy Boyd3-Aug-06 5:13
Paddy Boyd3-Aug-06 5:13 
AnswerRe: How to add intervel time in application Pin
ChennaiBabu3-Aug-06 5:25
ChennaiBabu3-Aug-06 5:25 
GeneralRe: How to add intervel time in application Pin
Not Active3-Aug-06 5:40
mentorNot Active3-Aug-06 5:40 
QuestionNavigation Controls Pin
RJLuppino3-Aug-06 4:59
RJLuppino3-Aug-06 4:59 
AnswerRe: Navigation Controls Pin
minhpc_bk3-Aug-06 15:47
minhpc_bk3-Aug-06 15:47 
QuestionFriendly urls in ASP.NET Pin
Alexandr Sergeevich Ilyin3-Aug-06 4:10
Alexandr Sergeevich Ilyin3-Aug-06 4:10 
AnswerRe: Friendly urls in ASP.NET Pin
User 17164923-Aug-06 5:35
professionalUser 17164923-Aug-06 5:35 
Questionproject not working in mozilla Pin
Amit Agarrwal3-Aug-06 4:04
Amit Agarrwal3-Aug-06 4:04 
AnswerRe: project not working in mozilla Pin
Guffa3-Aug-06 6:11
Guffa3-Aug-06 6:11 
Questionstock ticker Pin
jeevanchowlur3-Aug-06 3:58
jeevanchowlur3-Aug-06 3:58 
AnswerRe: stock ticker Pin
Not Active3-Aug-06 4:52
mentorNot Active3-Aug-06 4:52 
QuestionHow to know the name of the country ? Pin
Subrahmanyam K3-Aug-06 3:03
Subrahmanyam K3-Aug-06 3:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.