It is dynamic in the sense that there is a wizard control feeding it all of
its values, otherise it is always there. This is done in c#. I tried all
sorts of things like putting it just in the page class, but the compiler
tells me that it doesn't like that idea. I keep getting some invalid token
problems or something. Here is the errors I get along with the page
codebehind.
Error 1 Invalid token '=' in class, struct, or interface member declaration
C:\Documents and Settings\Andy\My Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin\Contracts\Stock\Add.aspx.cs
18 26 Main
Error 2 Method must have a return type C:\Documents and Settings\Andy\My
Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin\Contracts\Stock\Add.aspx.cs
18 32 Main
Error 3 Invalid token '=' in class, struct, or interface member declaration
C:\Documents and Settings\Andy\My Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin\Contracts\Stock\Add.aspx.cs
19 27 Main
Error 4 Invalid token '(' in class, struct, or interface member declaration
C:\Documents and Settings\Andy\My Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin\Contracts\Stock\Add.aspx.cs
19 65 Main
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
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 System.Xml.Linq;
using ContractServiceProvider.ContractModel;
namespace Main.Admin.Contracts.Stock {
public partial class Add : System.Web.UI.Page {
Contract StockContract = new Contract();
StockContract.Dictionary = new ContractDictionary();
StockContract.Sections = new ContractSections<string, string>();
protected void Page_Load(object sender, EventArgs e) {
}
protected void AddStockContractWizard_ActiveStepChanged1(object sender,
EventArgs e) {
AddStockContractWizard.HeaderText = AddStockContractWizard.ActiveStep.Title;
}
protected void AddDefinitionButton_Click(object sender, EventArgs e) {
StockContract.Dictionary.Add(WordTextBox.Text, DefinitionTextBox.Text);
}
}
}