- downloads.zip
- Downloads
- BusinessObjectGenerator
- GeneratedFiles
- Sample
- src
- BusinessObjectGenerator
- App_Code
- App_Data
- TheProperties_Data
- Default.aspx
- Default.aspx.cs
- Default_Console.aspx
- Default_Console.aspx.cs
- images
- background_label.gif
- logo.gif
- InvoiceClassDef.xml
- InvoiceClassDef.xsd
- InvoiceClassDef.xsx
- PropertyAndUIPropertyMaps.xml
- PropertyControls
- References
- EntLibHelper.dll
- Microsoft.Practices.EnterpriseLibrary.Caching.dll
- Microsoft.Practices.EnterpriseLibrary.Common.dll
- Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll
- Microsoft.Practices.EnterpriseLibrary.Logging.dll
- Microsoft.Practices.ObjectBuilder.dll
- Providers.dll
- Providers.dll.refresh
- SmartCodeGen.ImplementedProviders.dll
- SmartCodeGen.ImplementedProviders.dll.refresh
- SmartCodeGen.WebUtil.dll
- SmartCodeGen.WebUtil.dll.refresh
- scgxsd_console.exe_
- styles
- Templates
- Web.Config
- BusinessObjects.Templates
- src.gpState
- src.sln
- src.suo
- SmartCodeGeneratorXsdConsole
- downloads-noexe.zip
|
// =====================================================================================
// Copyright � 2006 SmartCodeGenerator created by Shahed Khan.
/*
//Microsoft Shared Source Community License (MS-CL)
//Published: October 18, 2005
*/
// If you like this code then feel free to go ahead and use it.
// Your use of this software is entirely at your own risk.
// I make no claims or warrantees about the reliability or fitness of this code for any particular purpose.
// website www.smartcodegenerator.com, email shahed.khan@gmail.com
// =====================================================================================
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using SmartCodeGen.WebUtil.Base;
using System.Collections.Generic;
using System.Reflection;
public partial class ScStringUIProperty : ScUIPropertyBase
{
protected void Page_Load(object sender, EventArgs e)
{
}
#region ScFrameworkSpecific
PropertyInfo propertyInfo = null;
public ScStringUIProperty( )
{ }
public ScStringUIProperty(PropertyInfo propertyInfo)
{
ParentPage.OnPreGenerate += new EventHandler(ScStringUIProperty_OnPreGenerate);
this.propertyInfo = propertyInfo;
if (propertyInfo.CanRead)
{
//object o = propertyInfo.GetValue(Profile.ScProperties, null);
object o = propertyInfo.GetValue(ParentPage.TheProperties, null);
if (o != null)
{
tbProperty.Text = o.ToString();
lblPropertyName.Text = propertyInfo.Name;
}
}
}
void ScStringUIProperty_OnPreGenerate(object sender, EventArgs e)
{
string property = tbProperty.Text;
if (propertyInfo.CanWrite)
this.propertyInfo.SetValue(ParentPage.TheProperties, property, null);
//this.propertyInfo.SetValue(Profile.ScProperties, property, null);
}
#endregion
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.