Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > problem with parsing control property

Reply
Thread Tools

problem with parsing control property

 
 
Sergey
Guest
Posts: n/a
 
      08-06-2004
I've implemented custom control (see below) and fill its properties
out using databinding syntax (<%# %>).

------ aspx file ------
<e:mycontrol id="someCtrlID" runat="server" Property1="<%#
this.RootPath %>/Folder">
<Data>
<eataItem DataProperty="<%# this.RootPath %>/Folder" />
</Data>
</e:mycontrol>
----- aspx file ------
----- aspx.cs file -----
class MyPage : Page
{
public string RootPath get { return "test"; }
}
class mycontrol : WebControl
{
.....
public string Property1;
public ArrayList Data;
.....
}
[Serializable]
class DataItem
{
....
public string DataProperty;
....
}
----- aspx.cs file -----

But there is one problem. On page load someCtrlID.Property1 has value
== "test/Folder"
but ((DataItem)someCtrlID.Data[0]).DataProperty has value == "<%#
this.RootPath %>/Folder".
DataItem properties didn't parse correct. I guess my DataItem class
doesn't support databinding... but in this case DataItem is not a
control itself. it is just store of information...

What should I do?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting the value of a Master page's control's property using a property of the Master page Nathan Sokalski ASP .Net 25 03-04-2010 03:42 AM
[ANN] Parsing Tutorial and YARD 1.0: A C++ Parsing Framework Christopher Diggins C++ 0 07-09-2007 09:01 PM
Update Property that mapped to a child control's property ? Samuel ASP .Net Building Controls 3 01-24-2006 06:18 AM
SAX Parsing - Weird results when parsing content between tags. Naren XML 0 05-11-2004 07:25 PM
Perl expression for parsing CSV (ignoring parsing commas when in double quotes) GIMME Perl 2 02-11-2004 05:40 PM



Advertisments