473,396 Members | 2,082 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.

DD: Complex Dynamic Data field updates

Hi,

Can someone help me understand why for the code below, when added as a
"FieldTemplate" in Dynamic Data, and rendered for a field, does not trigger
the "test" function and hence update the label control?

(CodeBehind is pretty much same as the original shipped ForeignKey_Edit
code, and an event in the codeBehind does not get fired either)

<%@ Control Language="C#" CodeBehind="ForeignKeyEntry_Edit.ascx.cs"
Inherits="Timing.Web.DD.ForeignKeyEntry_EditField" %>
<link href="~/Site.css" rel="stylesheet" type="text/css" />
<script runat="server">

protected void test(Object sender, EventArgs e)
{
Label1.Text = TextBox1.Text;
}

</script>

<asp:TextBox ID="TextBox1" runat="server" Width="20" CausesValidation="true"
OnTextChanged="test" >
</asp:TextBox>
<asp:Button ID="ButtonLookup" runat="server" Text="..." />
<asp:Label ID="Label1" runat="server" BackColor="Red" Width="40" />
Thanks,
+Mark

Oct 14 '08 #1
1 1697
Hi Mark,

I've tested your code. It works fine on my side. Maybe a input value is
invalid?Can you see any validation errors when you click the button?

If it still doesn't work please send me a demo project. I'll try to
reproduce it.

Regards,
Allen Chen
Microsoft Online Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://support.microsoft.com/select/...tance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| From: "markla" <ma****@noemail.noemail>
| Subject: DD: Complex Dynamic Data field updates
| Date: Wed, 15 Oct 2008 00:27:09 +1100
| Lines: 4
| MIME-Version: 1.0
| Content-Type: text/plain;
| format=flowed;
| charset="iso-8859-1";
| reply-type=original
| Content-Transfer-Encoding: 7bit
| X-Priority: 3
| X-MSMail-Priority: Normal
| Importance: Normal
| X-Newsreader: Microsoft Windows Live Mail 12.0.1606
| X-MimeOLE: Produced By Microsoft MimeOLE V12.0.1606
| Message-ID: <#E**************@TK2MSFTNGP02.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 203-206-175-81.perm.iinet.net.au 203.206.175.81
| Path: TK2MSFTNGHUB02.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSF TNGP02.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.dotnet.framework.aspnet:77851
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi,
|
| Can someone help me understand why for the code below, when added as a
| "FieldTemplate" in Dynamic Data, and rendered for a field, does not
trigger
| the "test" function and hence update the label control?
|
| (CodeBehind is pretty much same as the original shipped ForeignKey_Edit
| code, and an event in the codeBehind does not get fired either)
|
|
|
| <%@ Control Language="C#" CodeBehind="ForeignKeyEntry_Edit.ascx.cs"
| Inherits="Timing.Web.DD.ForeignKeyEntry_EditField" %>
| <link href="~/Site.css" rel="stylesheet" type="text/css" />
| <script runat="server">
|
| protected void test(Object sender, EventArgs e)
| {
| Label1.Text = TextBox1.Text;
| }
|
| </script>
|
| <asp:TextBox ID="TextBox1" runat="server" Width="20"
CausesValidation="true"
| OnTextChanged="test" >
| </asp:TextBox>
| <asp:Button ID="ButtonLookup" runat="server" Text="..." />
| <asp:Label ID="Label1" runat="server" BackColor="Red" Width="40" />
|
|
| Thanks,
| +Mark
|
|

Oct 15 '08 #2

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

Similar topics

39
by: | last post by:
I am trying to run the following agregate function in a parameterized query on Access2000: Min(.*sqr(./.)/) The query saved OK, but an attempt to run it results in the message: The expression...
0
by: Marc te Vruchte | last post by:
Over the past years i've been in contact with the same problem a number of times, creating a graphical user interface on complex XML documents. Personally these solutions have never been...
7
by: Jack | last post by:
Hi, I am trying to test a sql statement in Access which gives me the error as stated in the heading. The sql statement is built as a part of asp login verification, where the userid and password...
19
by: Christian Fowler | last post by:
I have a VERY LARGE pile of geographic data that I am importing into a database (db of choice is postgres, though may hop to oracle if necessary). The data is strictly hierarchical - each node has...
1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
4
by: Larry Grady | last post by:
Anyone up for a challenge? I've been struggling with this for a few days and was hoping someone could help me. Pouring through all the messageboards I just can't find the solution. We have a...
5
by: Trail Monster | last post by:
Ok, I've been searching the net now for several days and can't find how to do this anywhere. Version: VS 2005 Professional Release, 2.0 Framework Background: I have a complex business object...
2
by: jccorreu | last post by:
I'm taking in data from multiple files that represents complex numbers for charateristics of different elements. I begin with arrays of doubles and interpolate to get standard values in real and...
2
by: Snichols | last post by:
I am attempting a set record ID to make a number field dynamic. 1st - doe the field have to be an "autonumber" or can it be a number field. Also, when I set the query in the stringobject, it gives...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.