Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Meta Data and the Macro Substitution
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Meta Data and the Macro Substitution
Miscellaneous
Thread ID:
00782893
Message ID:
00782893
Views:
65
Meta data is on a MSDE table with Object, Column and Form.

string lcurl=this.ToString().Trim() ;
int lncurl = lcurl.Length-9;
lcurl =lcurl.Substring(4,lncurl);
string strConnection = "SERVER=(local);Trusted_Connection=Yes ";
string strSQL = "SELECT * from dbo.depmeta where me_form = '"+lcurl+"' "

I get my FORMS relationships between objects "MmDropDown1" and the column it came from "ap_open".

I can go against the ds to define what the original data was on the form:
lcC1 = ds.Tables[0].Rows[i].ItemArray[3].ToString();
lcCurr = myDataSet.Tables[0].Rows[0][lcC1.Trim()].ToString();

To scrape the webforms objects I am starting with :
lcO1 = ds.Tables[0].Rows[i].ItemArray[2].ToString();
lcO11 =lcO1.Substring(0,3);
if (lcO11 == "MmT") { // Textbox

How do I get the string in lcO1 to act as a reference to the actual object? Like
lcO1.Text

I have also tried :
if (lcO11 == "MmT")
{
lcS = this.[lcO1].Text ;
}

Any ideas?

Sure & would be great here.
Next
Reply
Map
View

Click here to load this message in the networking platform