private string GetRowName(DependentTable args) { var type = BuildManager.GetType( string.Format( "{1}.{0}JournalDataSourceView, {1}, Version={2}, Culture=neutral, PublicKeyToken={3}", args.TableCode, args.ProjectCode, args.Version ?? InitializerSection.GetSection().DefaultVersion, args.PublicKeyToken ?? InitializerSection.GetSection().DefaultPublicKeyToken), false, true); if (type != null) { var source = (IDataSourceViewGetName)Activator.CreateInstance(type); return(source.GetName(args.ID)); } return(null); }
private static string GetUrl(DependentTable args) { return(string.Format("/MainPage.aspx/data/{0}Edit/read?ref{0}={1}", args.TableCode, args.ID)); }