|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using Signum.Utilities;
namespace Signum.Web
{
public static class ViewDataKeys
{
public const string WriteSFInfo = "sfWriteSFInfo";
public const string GlobalErrors = "sfGlobalErrors"; //Key for Global Errors in ModelStateDictionary
public const string Title = "Title";
public const string CustomHtml = "sfCustomHtml";
public const string OnOk = "sfOnOk";
public const string FindOptions = "sfFindOptions";
public const string QueryDescription = "sfQueryDescription";
public const string QueryName = "sfQueryName";
public const string Results = "sfResults";
public const string MultipliedMessage = "sfMultipliedMessage";
public const string Formatters = "sfFormatters";
public const string TabId = "sfTabId";
public const string PartialViewName = "sfPartialViewName";
public static string WindowPrefix(this HtmlHelper helper)
{
TypeContext tc = helper.ViewData.Model as TypeContext;
if (tc == null)
return null;
else
return tc.ControlID;
}
}
}
|
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.
I'm Computer Scientist, one of the founders of Signum Software, and the lead developer behind Signum Framework.
www.signumframework.com
I love programming in C#, Linq, Compilers, Algorithms, Functional Programming, Computer Graphics, Maths...