473,511 Members | 16,849 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Building Run-time Dynamic Controls

krs
I am using XML/XSL to build a dynamic asp.net control at runtime. So the
result of the XML/XSL transformation may result in a string such as:

<asp:TextBox id="TextBox1" runat="server">
</asp:TextBox>

I then use Page.parsecontrols method to create the control from the string
above.

This works fine for most situations but I now need to be able to have a
script block in the string, for example:
<asp:TextBox id="TextBox1" runat="server" Text='<%#
DataBinder.Eval(DataView1, "[0].au_lname") %>'>
</asp:TextBox>

The problem though, is that when I run the page, I get an error telling me
that the script block is not compiled.

Is there a way for me to compile this at runtime?

Many thanks
K

Oct 10 '05 #1
1 1308
krs
Just another quick detail. The concept is that I'm using xml/xsl to build the
asp.net page on the fly. Hope this makes sense, if not please post and I'll
expand on it.

Thanks
K

"krs" wrote:
I am using XML/XSL to build a dynamic asp.net control at runtime. So the
result of the XML/XSL transformation may result in a string such as:

<asp:TextBox id="TextBox1" runat="server">
</asp:TextBox>

I then use Page.parsecontrols method to create the control from the string
above.

This works fine for most situations but I now need to be able to have a
script block in the string, for example:
<asp:TextBox id="TextBox1" runat="server" Text='<%#
DataBinder.Eval(DataView1, "[0].au_lname") %>'>
</asp:TextBox>

The problem though, is that when I run the page, I get an error telling me
that the script block is not compiled.

Is there a way for me to compile this at runtime?

Many thanks
K

Oct 10 '05 #2

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

Similar topics

2
1751
by: tony | last post by:
Hello!! I use VS 2003 and C# for all class library except MeltPracCommon.dll which is C++.NET The problem is that I get these warnings when building the exe file and use my class libraries....
0
917
by: tony | last post by:
Hello!! I use VS 2003 and C# for all class library except MeltPracCommon.dll which is C++.NET The problem is that I get these warnings when building the exe file and use my class libraries....
3
1739
by: tony | last post by:
Hello!! I use VS 2003 and C# for all class library except MeltPracCommon.dll which is C++.NET The problem is that I get these warnings when building the exe file and use my class libraries....
4
2167
by: stpark22 | last post by:
Hello, I'm building a tracking tool using Access 2003, where my users will be entering orders that includes quantity of products sold, and cost per unit. I'm in the process of building several...
4
3341
by: ramshankaryadav | last post by:
Hi, I'm facing a problem while building a project through MSBuild, this project is a part of a solution which has several other projects on which it depends, but I want to build this project...
0
7138
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7355
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,...
1
7081
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
5668
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,...
1
5066
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1576
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.