Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3677
  • Last Modified:

How do I correct error in .aspx file causing this error message? I am a non-coder.

I get this message when I use my ADMIN to save a new artist to ManageArtist.aspx
Here is the whole error message:
Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a correct format.

Source Error:


Line 86:             cn.Open();
Line 87:
Line 88:             int artistID = Convert.ToInt32(cmd.ExecuteScalar());
Line 89:
Line 90:             cn.Close();
 

Source File: d:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx.cs    Line: 88

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +2755599
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +112
   System.String.System.IConvertible.ToInt32(IFormatProvider provider) +43
   System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) +217
   System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType) +896

[FormatException: Failed to convert parameter value from a String to a Int32.]
   System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType) +943
   System.Data.SqlClient.SqlParameter.GetCoercedValue() +29
   System.Data.SqlClient.SqlParameter.Validate(Int32 index, Boolean isCommandProc) +97
   System.Data.SqlClient.SqlCommand.BuildParamList(TdsParser parser, SqlParameterCollection parameters) +166
   System.Data.SqlClient.SqlCommand.BuildExecuteSql(CommandBehavior behavior, String commandText, SqlParameterCollection parameters, _SqlRPC& rpc) +253
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +1005
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +132
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
   System.Data.SqlClient.SqlCommand.ExecuteScalar() +137
   admin_ManageArtists.btnSave_Click(Object sender, EventArgs e) in d:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx.cs:88
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746

 

Here is the code for the file involved.
public partial class admin_ManageArtists : System.Web.UI.Page
{
	string sqlstr = "";
	SqlCommand cmd = new SqlCommand();
	SqlConnection cn = new SqlConnection(ConfigurationManager.ConnectionStrings["DefaultConnectionString"].ConnectionString);
	SqlDataReader dr;
 
    protected void Page_Load(object sender, EventArgs e)
    {
		if (Request.QueryString["id"] != "" && Request.QueryString["id"] != null && !IsPostBack)
		{
			GetArtist(Convert.ToInt32(Request.QueryString["id"]));
		}
    }
 
	protected void GetArtist(int artistID)
	{
		if (artistID == 0)
		{
			hdArtistID.Value = "0";
			txtArtistName.Text = "";
			txtDescription.Text = "";
			chkActive.Checked = true;
		}
		else
		{
			sqlstr = "SELECT ArtistID, ArtistName, Description, ImageURL, Active FROM Artists WHERE ArtistID = @ArtistID";
			cmd.CommandText = sqlstr;
			cmd.Connection = cn;
			cmd.Parameters.Add("@ArtistID", SqlDbType.Int).Value = artistID;
			cn.Open();
 
			dr = cmd.ExecuteReader();
 
			dr.Read();
			if (dr.HasRows)
			{
				hdArtistID.Value = dr["ArtistID"].ToString();
				txtArtistName.Text = dr["ArtistName"].ToString();
				txtDescription.Text = dr["Description"].ToString();
				chkActive.Checked = Convert.ToBoolean(dr["Active"]);
			}
			cmd.Parameters.Clear();
			cn.Close();
			dr.Close();
		}
	}
 
	protected void btnSave_Click(object sender, EventArgs e)
	{
		if (hdArtistID.Value == "0")
		{
			sqlstr = "INSERT INTO Artists (ArtistName, Description, Active) VALUES (@ArtistName, @Description, @Active); "
				+ "SELECT IDENT_CURRENT('Artists') AS ArtistID;";
		}
		else
		{
			sqlstr = "UPDATE Artists SET ArtistName = @ArtistName, Description = @Description, "
				+ "Active = @Active WHERE ArtistID = @ArtistID; "
				+ "SELECT @ArtistID AS ArtistID;";
			cmd.Parameters.Add("@ArtistID", SqlDbType.Int).Value = hdArtistID.Value;
		}
 
		cmd.Parameters.Add("@ArtistName", SqlDbType.NVarChar).Value = txtArtistName.Text;
		cmd.Parameters.Add("@Description", SqlDbType.NText).Value = txtDescription.Text;
		cmd.Parameters.Add("@ImageURL", SqlDbType.NVarChar).Value = "";
		cmd.Parameters.Add("@Active", SqlDbType.Bit).Value = chkActive.Checked;
		cmd.CommandText = sqlstr;
		cmd.Connection = cn;
		cn.Open();
 
		int artistID = Convert.ToInt32(cmd.ExecuteScalar());
 
		cn.Close();
		cmd.Parameters.Clear();
 
		//upload image
		try
		{
			UploadImage(image1, artistID);
		}
		catch { }
 
 
		//select theme
		selArtistID.DataBind();
		for (int i = 0; i < selArtistID.Items.Count; i++)
		{
			if (selArtistID.Items[i].Value == artistID.ToString())
			{
				selArtistID.Items[i].Selected = true;
				break;
			}
		}
	}
 
	protected void UploadImage(FileUpload fPhoto, int artistID)
	{
		bool fileError = false;
		string fnOrig = "",
			fnNew = "";
		int photoID = 0;
		//upload photo
		if (fPhoto.PostedFile != null && fPhoto.PostedFile.ContentLength > 0)
		{
			try
			{
				//save file
				fnOrig = Guid.NewGuid().ToString() + "_o" + System.IO.Path.GetExtension(fPhoto.PostedFile.FileName);
				fnNew = Guid.NewGuid().ToString() + "_c" + System.IO.Path.GetExtension(fPhoto.PostedFile.FileName);
				fPhoto.PostedFile.SaveAs(ConfigurationManager.AppSettings["rootPath"] + "\\artists\\" + fnOrig);
 
				//resize & compress image
				System.Drawing.Image img = System.Drawing.Image.FromFile(ConfigurationManager.AppSettings["rootPath"] + "\\artists\\" + fnOrig);
				SaveJPGWithCompressionSetting(img, ConfigurationManager.AppSettings["rootPath"] + "\\artists\\" + fnNew, 60L);
 
			}
			catch
			{
				fileError = true;
			}
 
			//add photo to db
			if (!fileError)
			{
				//add new photo
				sqlstr = "UPDATE Artists SET ImageURL = @ImageURL WHERE ArtistID = @ArtistID";
 
				cmd.Parameters.Add("@ArtistID", SqlDbType.Int).Value = artistID;
				cmd.Parameters.Add("@ImageURL", SqlDbType.NVarChar).Value = fnNew;
 
				cmd.CommandText = sqlstr;
				cmd.Connection = cn;
				cn.Open();
 
				cmd.ExecuteScalar();
 
				cn.Close();
				cmd.Parameters.Clear();
 
				//delete original file
				try
				{
					if (File.Exists(ConfigurationManager.AppSettings["rootPath"] + "\\artists\\" + fnOrig))
					{
						File.Delete(ConfigurationManager.AppSettings["rootPath"] + "\\artists\\" + fnOrig);
					}
				}
				catch { }
 
			}
		}
 
	}
 
	private static ImageCodecInfo GetEncoderInfo(String mimeType)
	{
		int j;
		ImageCodecInfo[] encoders;
		encoders = ImageCodecInfo.GetImageEncoders();
		for (j = 0; j < encoders.Length; ++j)
		{
			if (encoders[j].MimeType == mimeType)
				return encoders[j];
		}
		return null;
	}
	private void SaveJPGWithCompressionSetting(System.Drawing.Image image, string szFileName, long lCompression)
	{
		EncoderParameters eps = new EncoderParameters(1);
		eps.Param[0] = new EncoderParameter(Encoder.Quality, lCompression);
		ImageCodecInfo ici = GetEncoderInfo("image/jpeg");
		image.Save(szFileName, ici, eps);
	}
}

Open in new window

0
Sandra_joy
Asked:
Sandra_joy
1 Solution
 
amxCommented:
Have you checked if the data is inserted/updated in the table even after the error occurs?


0
 
ahllCommented:
Hi, Command.ExecuteScalar is an object not a string. Thats why you are getting the error. Try this:

int artistID = Convert.ToInt32((string)cmd.ExecuteScalar());

or
int artistID = Convert.ToInt32(cmd.ExecuteScalar().ToString());

0
 
informaniacCommented:
@ahil

Convert.ToInt32 will convert objects also

The problem is here

Line 62

cmd.Parameters.Add("@ArtistID", SqlDbType.Int).Value = hdArtistID.Value;


it should be

cmd.Parameters.Add("@ArtistID", SqlDbType.Int).Value = int.Parse(hdArtistID.Value);
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Sandra_joyAuthor Commented:
I tried both of them:
int artistID = Convert.ToInt32((string)cmd.ExecuteScalar());
or
int artistID = Convert.ToInt32(cmd.ExecuteScalar().ToString());
I also fixed:
 cmd.Parameters.Add("@ArtistID", SqlDbType.Int).Value = int.Parse(hdArtistID.Value);

 I still get this error message:
Source Error:

Line 86: cn.Open(); Line 87: Line 88: int artistID = Convert.ToInt32((string)cmd.ExecuteScalar()); Line 89: Line 90: cn.Close();
Source File: d:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx.cs    Line: 88
 
Sandra
0
 
ahllCommented:
Well...are you sure you are retreiving a number from the DB????...At this point that looks like it is the problem!!

Do something like:
string strtest = cmd.ExecuteScalar().ToString();

and trace strtest value....let us know.


0
 
Sandra_joyAuthor Commented:
I don't know what you mean by: are you sure you are retreiving a number from the DB???? I guess DB is Data Base?
I only know how to copy and paste the code I am told.  
What might be the problem (in common English) is that when the web was created I was the only artist.  I asked for an admin function to add other artist. Which is what I am using when I get the error message.  Maybe there is not a browse page to select another artist.  Instead the "about artist" link just takes them to the page about me.  However in the search menu there is a drop down field to select search by artist.  
  Could this be why I'm getting an error message?  If so what do I need to do?
Should I still paste the code?:  string strtest = cmd.ExecuteScalar().ToString();


 
0
 
ahllCommented:
Hi sandra....this is going to be tough if you know nothing about coding or at least the environment. Yes, DB = DataBase...but at this point everything I could tell you requires some skills I'm afraid you dont have.
Ypu have not just to paste that code there but you have to be able to check the value of it...thats the point.

My tip: You better get some in-site help from a programmer.

Good luck.

0
 
Sandra_joyAuthor Commented:
Thanks for all your help.  I have tried to get someone, no one wants to work with another programers code.   They just want to start over.  I love my site and my admin.  There are some problems.
Should I post the question:  How do I trace the strtest value and where do I paste this code??: string strtest = cmd.ExecuteScalar().ToString();

Or if you tell me where in ManageArtist.asxp.cs to put the code: string strtest = cmd.ExecuteScalar().ToString();   I will award you the points close this question and just ask how to test the strtest value in a new question.  
0
 
ahllCommented:
well...is not matter of point. I would really like to help you. Yoy can paste that rigth before this line:
int artistID = Convert.ToInt32((string)cmd.ExecuteScalar());

The problem will be tracing the value...wich includes knowing the development environment. Anyways...to try a long shot...right after the inserted line write the following:

Response.Write("value: " + strtest)

and change:
int artistID = Convert.ToInt32((string)cmd.ExecuteScalar());

for

//int artistID = Convert.ToInt32((string)cmd.ExecuteScalar());

after that run your page and in the browser look for the "Value: "...if we are lucky we will get the value there
0
 
Sandra_joyAuthor Commented:
I did and this is the error message I got:
HTH  Sandra
Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1002: ; expected

Source Error:

Line 85: cmd.Connection = cn; Line 86: cn.Open(); Line 87: string strtest = cmd.ExecuteScalar().ToString(); Response.Write("value:" + strtest) Line 88: Line 89: //int artistID = Convert.ToInt32((string)cmd.ExecuteScalar());
Source File: d:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx.cs    Line: 87

Also this when I click on Show Detailed complier output
c:\windows\system32\inetsrv> "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3530bcbc\5791e97e\assembly\dl3\3fcac264\809a3d75_e5abc801\DevExpress.Data.v7.3.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3530bcbc\5791e97e\assembly\dl3\a7de1501\f6f7bb75_e5abc801\App_Licenses.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3530bcbc\5791e97e\assembly\dl3\21ebfebd\1eacd667_e5abc801\DevExpress.Web.ASPxGridView.v7.3.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3530bcbc\5791e97e\assembly\dl3\1bfc8a07\b663e24f_e5abc801\FreeTextBox.DLL" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3530bcbc\5791e97e\App_Code.vw6ehbab.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3530bcbc\5791e97e\App_Web_masterpage.master.cdcab7d2.7did94h7.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualBasic\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3530bcbc\5791e97e\assembly\dl3\c926668c\42271f6f_e5abc801\DevExpress.Web.ASPxEditors.v7.3.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3530bcbc\5791e97e\assembly\dl3\217688c7\ea72d261_e5abc801\DevExpress.Web.v7.3.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll" /out:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3530bcbc\5791e97e\App_Web_idehvpnv.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701  "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3530bcbc\5791e97e\App_Web_idehvpnv.0.cs" "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3530bcbc\5791e97e\App_Web_idehvpnv.1.cs" "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3530bcbc\5791e97e\App_Web_idehvpnv.2.cs"


Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.1433
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

d:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx.cs(87,91): error CS1002: ; expected
d:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx.cs(119,7): warning CS0219: The variable 'photoID' is assigned but its value is never used
 
What does this tell us????  


Also when I click Show Complete compilation source I get this.
Line 1:    #pragma checksum "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "967B178E56CBD20C5086BADF55902818"
Line 2:    //------------------------------------------------------------------------------
Line 3:    // <auto-generated>
Line 4:    //     This code was generated by a tool.
Line 5:    //     Runtime Version:2.0.50727.1433
Line 6:    //
Line 7:    //     Changes to this file may cause incorrect behavior and will be lost if
Line 8:    //     the code is regenerated.
Line 9:    // </auto-generated>
Line 10:   //------------------------------------------------------------------------------
Line 11:   
Line 12:   
Line 13:   
Line 14:   public partial class admin_ManageArtists : System.Web.SessionState.IRequiresSessionState {
Line 15:       
Line 16:       
Line 17:       #line 7 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 18:       protected global::System.Web.UI.WebControls.HiddenField hdArtistID;
Line 19:       
Line 20:       #line default
Line 21:       #line hidden
Line 22:       
Line 23:       
Line 24:       #line 11 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 25:       protected global::System.Web.UI.WebControls.DropDownList selArtistID;
Line 26:       
Line 27:       #line default
Line 28:       #line hidden
Line 29:       
Line 30:       
Line 31:       #line 15 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 32:       protected global::System.Web.UI.WebControls.TextBox txtArtistName;
Line 33:       
Line 34:       #line default
Line 35:       #line hidden
Line 36:       
Line 37:       
Line 38:       #line 19 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 39:       protected global::System.Web.UI.WebControls.CheckBox chkActive;
Line 40:       
Line 41:       #line default
Line 42:       #line hidden
Line 43:       
Line 44:       
Line 45:       #line 24 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 46:       protected global::System.Web.UI.WebControls.FileUpload image1;
Line 47:       
Line 48:       #line default
Line 49:       #line hidden
Line 50:       
Line 51:       
Line 52:       #line 25 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 53:       protected global::System.Web.UI.HtmlControls.HtmlGenericControl divCurrentImages;
Line 54:       
Line 55:       #line default
Line 56:       #line hidden
Line 57:       
Line 58:       
Line 59:       #line 30 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 60:       protected global::FreeTextBoxControls.FreeTextBox txtDescription;
Line 61:       
Line 62:       #line default
Line 63:       #line hidden
Line 64:       
Line 65:       
Line 66:       #line 31 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 67:       protected global::System.Web.UI.WebControls.Button btnLogin;
Line 68:       
Line 69:       #line default
Line 70:       #line hidden
Line 71:       
Line 72:       
Line 73:       #line 33 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 74:       protected global::System.Web.UI.WebControls.SqlDataSource dsArtists;
Line 75:       
Line 76:       #line default
Line 77:       #line hidden
Line 78:       
Line 79:       protected System.Web.Profile.DefaultProfile Profile {
Line 80:           get {
Line 81:               return ((System.Web.Profile.DefaultProfile)(this.Context.Profile));
Line 82:           }
Line 83:       }
Line 84:       
Line 85:       protected System.Web.HttpApplication ApplicationInstance {
Line 86:           get {
Line 87:               return ((System.Web.HttpApplication)(this.Context.ApplicationInstance));
Line 88:           }
Line 89:       }
Line 90:   }
Line 91:   namespace ASP {
Line 92:       
Line 93:       #line 265 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 94:       using System.Web.Security;
Line 95:       
Line 96:       #line default
Line 97:       #line hidden
Line 98:       
Line 99:       #line 2 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 100:      using FreeTextBoxControls;
Line 101:      
Line 102:      #line default
Line 103:      #line hidden
Line 104:      
Line 105:      #line 262 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 106:      using System.Web;
Line 107:      
Line 108:      #line default
Line 109:      #line hidden
Line 110:      
Line 111:      #line 264 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 112:      using System.Web.SessionState;
Line 113:      
Line 114:      #line default
Line 115:      #line hidden
Line 116:      
Line 117:      #line 260 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 118:      using System.Text;
Line 119:      
Line 120:      #line default
Line 121:      #line hidden
Line 122:      
Line 123:      #line 4 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 124:      using System.Web.UI.WebControls;
Line 125:      
Line 126:      #line default
Line 127:      #line hidden
Line 128:      
Line 129:      #line 266 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 130:      using System.Web.Profile;
Line 131:      
Line 132:      #line default
Line 133:      #line hidden
Line 134:      
Line 135:      #line 257 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 136:      using System.Collections;
Line 137:      
Line 138:      #line default
Line 139:      #line hidden
Line 140:      
Line 141:      #line 4 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 142:      using System.Web.UI.WebControls.WebParts;
Line 143:      
Line 144:      #line default
Line 145:      #line hidden
Line 146:      
Line 147:      #line 259 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 148:      using System.Configuration;
Line 149:      
Line 150:      #line default
Line 151:      #line hidden
Line 152:      
Line 153:      #line 256 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 154:      using System;
Line 155:      
Line 156:      #line default
Line 157:      #line hidden
Line 158:      
Line 159:      #line 1 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 160:      using ASP;
Line 161:      
Line 162:      #line default
Line 163:      #line hidden
Line 164:      
Line 165:      #line 263 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 166:      using System.Web.Caching;
Line 167:      
Line 168:      #line default
Line 169:      #line hidden
Line 170:      
Line 171:      #line 4 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 172:      using System.Web.UI;
Line 173:      
Line 174:      #line default
Line 175:      #line hidden
Line 176:      
Line 177:      #line 258 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 178:      using System.Collections.Specialized;
Line 179:      
Line 180:      #line default
Line 181:      #line hidden
Line 182:      
Line 183:      #line 261 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 184:      using System.Text.RegularExpressions;
Line 185:      
Line 186:      #line default
Line 187:      #line hidden
Line 188:      
Line 189:      #line 270 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 190:      using System.Web.UI.HtmlControls;
Line 191:      
Line 192:      #line default
Line 193:      #line hidden
Line 194:      
Line 195:      
Line 196:      [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 197:      public class admin_manageartists_aspx : global::admin_ManageArtists, System.Web.IHttpHandler {
Line 198:          
Line 199:          private static bool @__initialized;
Line 200:          
Line 201:          private static object @__fileDependencies;
Line 202:          
Line 203:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 204:          public admin_manageartists_aspx() {
Line 205:              string[] dependencies;
Line 206:              
Line 207:              #line 912304 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx.cs"
Line 208:              ((global::System.Web.UI.Page)(this)).AppRelativeVirtualPath = "~/admin/ManageArtists.aspx";
Line 209:              
Line 210:              #line default
Line 211:              #line hidden
Line 212:              if ((global::ASP.admin_manageartists_aspx.@__initialized == false)) {
Line 213:                  dependencies = new string[4];
Line 214:                  dependencies[0] = "~/admin/ManageArtists.aspx";
Line 215:                  dependencies[1] = "~/MasterPage.master";
Line 216:                  dependencies[2] = "~/MasterPage.master.cs";
Line 217:                  dependencies[3] = "~/admin/ManageArtists.aspx.cs";
Line 218:                  global::ASP.admin_manageartists_aspx.@__fileDependencies = this.GetWrappedFileDependencies(dependencies);
Line 219:                  global::ASP.admin_manageartists_aspx.@__initialized = true;
Line 220:              }
Line 221:              this.Server.ScriptTimeout = 30000000;
Line 222:          }
Line 223:          
Line 224:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 225:          private global::System.Web.UI.WebControls.HiddenField @__BuildControlhdArtistID() {
Line 226:              global::System.Web.UI.WebControls.HiddenField @__ctrl;
Line 227:              
Line 228:              #line 7 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 229:              @__ctrl = new global::System.Web.UI.WebControls.HiddenField();
Line 230:              
Line 231:              #line default
Line 232:              #line hidden
Line 233:              this.hdArtistID = @__ctrl;
Line 234:              @__ctrl.TemplateControl = this;
Line 235:              
Line 236:              #line 7 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 237:              @__ctrl.ID = "hdArtistID";
Line 238:              
Line 239:              #line default
Line 240:              #line hidden
Line 241:              return @__ctrl;
Line 242:          }
Line 243:          
Line 244:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 245:          private global::System.Web.UI.WebControls.DropDownList @__BuildControlselArtistID() {
Line 246:              global::System.Web.UI.WebControls.DropDownList @__ctrl;
Line 247:              
Line 248:              #line 11 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 249:              @__ctrl = new global::System.Web.UI.WebControls.DropDownList();
Line 250:              
Line 251:              #line default
Line 252:              #line hidden
Line 253:              this.selArtistID = @__ctrl;
Line 254:              @__ctrl.TemplateControl = this;
Line 255:              @__ctrl.ApplyStyleSheetSkin(this);
Line 256:              
Line 257:              #line 11 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 258:              @__ctrl.ID = "selArtistID";
Line 259:              
Line 260:              #line default
Line 261:              #line hidden
Line 262:              
Line 263:              #line 11 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 264:              @__ctrl.CssClass = "combobox";
Line 265:              
Line 266:              #line default
Line 267:              #line hidden
Line 268:              
Line 269:              #line 11 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 270:              @__ctrl.DataSourceID = "dsArtists";
Line 271:              
Line 272:              #line default
Line 273:              #line hidden
Line 274:              
Line 275:              #line 11 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 276:              @__ctrl.DataTextField = "ArtistName";
Line 277:              
Line 278:              #line default
Line 279:              #line hidden
Line 280:              
Line 281:              #line 11 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 282:              @__ctrl.DataValueField = "ArtistID";
Line 283:              
Line 284:              #line default
Line 285:              #line hidden
Line 286:              
Line 287:              #line 11 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 288:              ((System.Web.UI.IAttributeAccessor)(@__ctrl)).SetAttribute("onchange", "javascript:window.location.href=\'ManageArtists.aspx?id=\' + this.value;");
Line 289:              
Line 290:              #line default
Line 291:              #line hidden
Line 292:              return @__ctrl;
Line 293:          }
Line 294:          
Line 295:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 296:          private global::System.Web.UI.WebControls.TextBox @__BuildControltxtArtistName() {
Line 297:              global::System.Web.UI.WebControls.TextBox @__ctrl;
Line 298:              
Line 299:              #line 15 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 300:              @__ctrl = new global::System.Web.UI.WebControls.TextBox();
Line 301:              
Line 302:              #line default
Line 303:              #line hidden
Line 304:              this.txtArtistName = @__ctrl;
Line 305:              @__ctrl.TemplateControl = this;
Line 306:              @__ctrl.ApplyStyleSheetSkin(this);
Line 307:              
Line 308:              #line 15 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 309:              @__ctrl.ID = "txtArtistName";
Line 310:              
Line 311:              #line default
Line 312:              #line hidden
Line 313:              
Line 314:              #line 15 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 315:              @__ctrl.CssClass = "combobox";
Line 316:              
Line 317:              #line default
Line 318:              #line hidden
Line 319:              
Line 320:              #line 15 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 321:              @__ctrl.Width = new System.Web.UI.WebControls.Unit(150, System.Web.UI.WebControls.UnitType.Pixel);
Line 322:              
Line 323:              #line default
Line 324:              #line hidden
Line 325:              
Line 326:              #line 15 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 327:              @__ctrl.MaxLength = 50;
Line 328:              
Line 329:              #line default
Line 330:              #line hidden
Line 331:              return @__ctrl;
Line 332:          }
Line 333:          
Line 334:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 335:          private global::System.Web.UI.WebControls.CheckBox @__BuildControlchkActive() {
Line 336:              global::System.Web.UI.WebControls.CheckBox @__ctrl;
Line 337:              
Line 338:              #line 19 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 339:              @__ctrl = new global::System.Web.UI.WebControls.CheckBox();
Line 340:              
Line 341:              #line default
Line 342:              #line hidden
Line 343:              this.chkActive = @__ctrl;
Line 344:              @__ctrl.TemplateControl = this;
Line 345:              @__ctrl.ApplyStyleSheetSkin(this);
Line 346:              
Line 347:              #line 19 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 348:              @__ctrl.ID = "chkActive";
Line 349:              
Line 350:              #line default
Line 351:              #line hidden
Line 352:              return @__ctrl;
Line 353:          }
Line 354:          
Line 355:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 356:          private global::System.Web.UI.WebControls.FileUpload @__BuildControlimage1() {
Line 357:              global::System.Web.UI.WebControls.FileUpload @__ctrl;
Line 358:              
Line 359:              #line 24 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 360:              @__ctrl = new global::System.Web.UI.WebControls.FileUpload();
Line 361:              
Line 362:              #line default
Line 363:              #line hidden
Line 364:              this.image1 = @__ctrl;
Line 365:              @__ctrl.TemplateControl = this;
Line 366:              @__ctrl.ApplyStyleSheetSkin(this);
Line 367:              
Line 368:              #line 24 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 369:              @__ctrl.ID = "image1";
Line 370:              
Line 371:              #line default
Line 372:              #line hidden
Line 373:              
Line 374:              #line 24 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 375:              @__ctrl.Width = new System.Web.UI.WebControls.Unit(350, System.Web.UI.WebControls.UnitType.Pixel);
Line 376:              
Line 377:              #line default
Line 378:              #line hidden
Line 379:              return @__ctrl;
Line 380:          }
Line 381:          
Line 382:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 383:          private global::System.Web.UI.HtmlControls.HtmlGenericControl @__BuildControldivCurrentImages() {
Line 384:              global::System.Web.UI.HtmlControls.HtmlGenericControl @__ctrl;
Line 385:              
Line 386:              #line 25 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 387:              @__ctrl = new global::System.Web.UI.HtmlControls.HtmlGenericControl("div");
Line 388:              
Line 389:              #line default
Line 390:              #line hidden
Line 391:              this.divCurrentImages = @__ctrl;
Line 392:              @__ctrl.TemplateControl = this;
Line 393:              
Line 394:              #line 25 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 395:              @__ctrl.ID = "divCurrentImages";
Line 396:              
Line 397:              #line default
Line 398:              #line hidden
Line 399:              
Line 400:              #line 25 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 401:              ((System.Web.UI.IAttributeAccessor)(@__ctrl)).SetAttribute("style", "height:auto;width:500px;padding:10px 10px 10px 10px;background-color:white;border" +
Line 402:                      ":0px solid #555;");
Line 403:              
Line 404:              #line default
Line 405:              #line hidden
Line 406:              return @__ctrl;
Line 407:          }
Line 408:          
Line 409:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 410:          private global::FreeTextBoxControls.FreeTextBox @__BuildControltxtDescription() {
Line 411:              global::FreeTextBoxControls.FreeTextBox @__ctrl;
Line 412:              
Line 413:              #line 30 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 414:              @__ctrl = new global::FreeTextBoxControls.FreeTextBox();
Line 415:              
Line 416:              #line default
Line 417:              #line hidden
Line 418:              this.txtDescription = @__ctrl;
Line 419:              @__ctrl.TemplateControl = this;
Line 420:              
Line 421:              #line 30 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 422:              @__ctrl.ID = "txtDescription";
Line 423:              
Line 424:              #line default
Line 425:              #line hidden
Line 426:              
Line 427:              #line 30 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 428:              @__ctrl.Width = new System.Web.UI.WebControls.Unit(500, System.Web.UI.WebControls.UnitType.Pixel);
Line 429:              
Line 430:              #line default
Line 431:              #line hidden
Line 432:              
Line 433:              #line 30 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 434:              @__ctrl.Height = new System.Web.UI.WebControls.Unit(300, System.Web.UI.WebControls.UnitType.Pixel);
Line 435:              
Line 436:              #line default
Line 437:              #line hidden
Line 438:              
Line 439:              #line 30 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 440:              @__ctrl.BreakMode = FreeTextBoxControls.BreakMode.LineBreak;
Line 441:              
Line 442:              #line default
Line 443:              #line hidden
Line 444:              
Line 445:              #line 30 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 446:              @__ctrl.DesignModeCss = "~/style.css";
Line 447:              
Line 448:              #line default
Line 449:              #line hidden
Line 450:              return @__ctrl;
Line 451:          }
Line 452:          
Line 453:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 454:          private global::System.Web.UI.WebControls.Button @__BuildControlbtnLogin() {
Line 455:              global::System.Web.UI.WebControls.Button @__ctrl;
Line 456:              
Line 457:              #line 31 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 458:              @__ctrl = new global::System.Web.UI.WebControls.Button();
Line 459:              
Line 460:              #line default
Line 461:              #line hidden
Line 462:              this.btnLogin = @__ctrl;
Line 463:              @__ctrl.TemplateControl = this;
Line 464:              @__ctrl.ApplyStyleSheetSkin(this);
Line 465:              
Line 466:              #line 31 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 467:              @__ctrl.CssClass = "buttonSkinL L";
Line 468:              
Line 469:              #line default
Line 470:              #line hidden
Line 471:              
Line 472:              #line 31 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 473:              @__ctrl.ID = "btnLogin";
Line 474:              
Line 475:              #line default
Line 476:              #line hidden
Line 477:              
Line 478:              #line 31 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 479:              @__ctrl.Text = "Save";
Line 480:              
Line 481:              #line default
Line 482:              #line hidden
Line 483:              
Line 484:              #line 31 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 485:              @__ctrl.Click += new System.EventHandler(this.btnSave_Click);
Line 486:              
Line 487:              #line default
Line 488:              #line hidden
Line 489:              return @__ctrl;
Line 490:          }
Line 491:          
Line 492:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 493:          private global::System.Web.UI.WebControls.SqlDataSource @__BuildControldsArtists() {
Line 494:              global::System.Web.UI.WebControls.SqlDataSource @__ctrl;
Line 495:              
Line 496:              #line 33 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 497:              @__ctrl = new global::System.Web.UI.WebControls.SqlDataSource();
Line 498:              
Line 499:              #line default
Line 500:              #line hidden
Line 501:              this.dsArtists = @__ctrl;
Line 502:              @__ctrl.TemplateControl = this;
Line 503:              
Line 504:              #line 33 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 505:              @__ctrl.ID = "dsArtists";
Line 506:              
Line 507:              #line default
Line 508:              #line hidden
Line 509:              
Line 510:              #line 33 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 511:              @__ctrl.SelectCommand = "SELECT 0 AS ArtistID, \'create new artist\' AS ArtistName UNION SELECT ArtistID, Ar" +
Line 512:                  "tistName FROM Artists ORDER BY ArtistName";
Line 513:              
Line 514:              #line default
Line 515:              #line hidden
Line 516:              @__ctrl.ConnectionString = System.Convert.ToString(System.Web.Compilation.ConnectionStringsExpressionBuilder.GetConnectionString("DefaultConnectionString"), System.Globalization.CultureInfo.CurrentCulture);
Line 517:              return @__ctrl;
Line 518:          }
Line 519:          
Line 520:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 521:          private void @__BuildControlContent2(System.Web.UI.Control @__ctrl) {
Line 522:              global::System.Web.UI.WebControls.HiddenField @__ctrl1;
Line 523:              
Line 524:              #line 4 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 525:              @__ctrl1 = this.@__BuildControlhdArtistID();
Line 526:              
Line 527:              #line default
Line 528:              #line hidden
Line 529:              System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
Line 530:              
Line 531:              #line 4 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 532:              @__parser.AddParsedSubObject(@__ctrl1);
Line 533:              
Line 534:              #line default
Line 535:              #line hidden
Line 536:              global::System.Web.UI.WebControls.DropDownList @__ctrl2;
Line 537:              
Line 538:              #line 4 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 539:              @__ctrl2 = this.@__BuildControlselArtistID();
Line 540:              
Line 541:              #line default
Line 542:              #line hidden
Line 543:              
Line 544:              #line 4 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 545:              @__parser.AddParsedSubObject(@__ctrl2);
Line 546:              
Line 547:              #line default
Line 548:              #line hidden
Line 549:              global::System.Web.UI.WebControls.TextBox @__ctrl3;
Line 550:              
Line 551:              #line 4 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 552:              @__ctrl3 = this.@__BuildControltxtArtistName();
Line 553:              
Line 554:              #line default
Line 555:              #line hidden
Line 556:              
Line 557:              #line 4 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 558:              @__parser.AddParsedSubObject(@__ctrl3);
Line 559:              
Line 560:              #line default
Line 561:              #line hidden
Line 562:              global::System.Web.UI.WebControls.CheckBox @__ctrl4;
Line 563:              
Line 564:              #line 4 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 565:              @__ctrl4 = this.@__BuildControlchkActive();
Line 566:              
Line 567:              #line default
Line 568:              #line hidden
Line 569:              
Line 570:              #line 4 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 571:              @__parser.AddParsedSubObject(@__ctrl4);
Line 572:              
Line 573:              #line default
Line 574:              #line hidden
Line 575:              global::System.Web.UI.WebControls.FileUpload @__ctrl5;
Line 576:              
Line 577:              #line 4 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 578:              @__ctrl5 = this.@__BuildControlimage1();
Line 579:              
Line 580:              #line default
Line 581:              #line hidden
Line 582:              
Line 583:              #line 4 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 584:              @__parser.AddParsedSubObject(@__ctrl5);
Line 585:              
Line 586:              #line default
Line 587:              #line hidden
Line 588:              global::System.Web.UI.HtmlControls.HtmlGenericControl @__ctrl6;
Line 589:              
Line 590:              #line 4 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 591:              @__ctrl6 = this.@__BuildControldivCurrentImages();
Line 592:              
Line 593:              #line default
Line 594:              #line hidden
Line 595:              
Line 596:              #line 4 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 597:              @__parser.AddParsedSubObject(@__ctrl6);
Line 598:              
Line 599:              #line default
Line 600:              #line hidden
Line 601:              global::FreeTextBoxControls.FreeTextBox @__ctrl7;
Line 602:              
Line 603:              #line 4 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 604:              @__ctrl7 = this.@__BuildControltxtDescription();
Line 605:              
Line 606:              #line default
Line 607:              #line hidden
Line 608:              
Line 609:              #line 4 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 610:              @__parser.AddParsedSubObject(@__ctrl7);
Line 611:              
Line 612:              #line default
Line 613:              #line hidden
Line 614:              global::System.Web.UI.WebControls.Button @__ctrl8;
Line 615:              
Line 616:              #line 4 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 617:              @__ctrl8 = this.@__BuildControlbtnLogin();
Line 618:              
Line 619:              #line default
Line 620:              #line hidden
Line 621:              
Line 622:              #line 4 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 623:              @__parser.AddParsedSubObject(@__ctrl8);
Line 624:              
Line 625:              #line default
Line 626:              #line hidden
Line 627:              global::System.Web.UI.WebControls.SqlDataSource @__ctrl9;
Line 628:              
Line 629:              #line 4 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 630:              @__ctrl9 = this.@__BuildControldsArtists();
Line 631:              
Line 632:              #line default
Line 633:              #line hidden
Line 634:              
Line 635:              #line 4 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 636:              @__parser.AddParsedSubObject(@__ctrl9);
Line 637:              
Line 638:              #line default
Line 639:              #line hidden
Line 640:              @__ctrl.SetRenderMethodDelegate(new System.Web.UI.RenderMethod(this.@__RenderContent2));
Line 641:          }
Line 642:          
Line 643:          private void @__RenderContent2(System.Web.UI.HtmlTextWriter @__w, System.Web.UI.Control parameterContainer) {
Line 644:              @__w.Write("\r\n\r\n\t");
Line 645:              parameterContainer.Controls[0].RenderControl(@__w);
Line 646:              @__w.Write("\r\n\t<table class=\"tblForm\">\r\n\t<tr>\r\n\t\t<td class=\"formField\">Select an Artist:</td>" +
Line 647:                      "\r\n\t\t<td class=\"dataField\">");
Line 648:              parameterContainer.Controls[1].RenderControl(@__w);
Line 649:              @__w.Write("</td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td class=\"formField\">Artist Name:</td>\r\n\t\t<td class=\"dat" +
Line 650:                      "aField\">");
Line 651:              parameterContainer.Controls[2].RenderControl(@__w);
Line 652:              @__w.Write("</td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td class=\"formField\">Active:</td>\r\n\t\t<td class=\"dataFiel" +
Line 653:                      "d\">");
Line 654:              parameterContainer.Controls[3].RenderControl(@__w);
Line 655:              @__w.Write("</td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td class=\"formField\" valign=\"top\">Image:</td>\r\n\t\t<td cla" +
Line 656:                      "ss=\"dataField\" colspan=\"3\">\r\n\t\t\t");
Line 657:              parameterContainer.Controls[4].RenderControl(@__w);
Line 658:              @__w.Write("\r\n\t\t\t");
Line 659:              parameterContainer.Controls[5].RenderControl(@__w);
Line 660:              @__w.Write("\r\n\t\t</td>\r\n\t</tr>\r\n\t</table>\r\n\t<span class=\"text4b\"><b>Description:</b></span><br" +
Line 661:                      " />\r\n\t");
Line 662:              parameterContainer.Controls[6].RenderControl(@__w);
Line 663:              @__w.Write("\r\n\t<div style=\"margin-top:15px;\">");
Line 664:              parameterContainer.Controls[7].RenderControl(@__w);
Line 665:              @__w.Write("</div>\r\n\t\r\n\t");
Line 666:              parameterContainer.Controls[8].RenderControl(@__w);
Line 667:              @__w.Write("\r\n\r\n\t<script language=\"javascript\">\r\n\tfunction LoadImage(src)\r\n\t{\r\n\t\twindow.open(" +
Line 668:                      "src);\r\n\t}\r\n\tfunction DeleteImage(artistID)\r\n\t{\r\n\t\tgetHttpRequest(\"getImages.aspx" +
Line 669:                      "?guid=");
Line 670:              
Line 671:              #line 44 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 672:                                @__w.Write( Guid.NewGuid().ToString() );
Line 673:  
Line 674:              
Line 675:              #line default
Line 676:              #line hidden
Line 677:              @__w.Write("&action=delArtistImage&artistID=\" + artistID,\"DisplayImages\",false,null);\r\n\t}\r\n\tf" +
Line 678:                      "unction DisplayImages()\r\n\t{\r\n\t\tretVal = oHttpRequest.responseText.trim();\r\n\t\tdoc" +
Line 679:                      "ument.getElementById(\"");
Line 680:              
Line 681:              #line 49 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 682:                     @__w.Write( divCurrentImages.ClientID );
Line 683:  
Line 684:              
Line 685:              #line default
Line 686:              #line hidden
Line 687:              @__w.Write("\").innerHTML = retVal;\r\n\t}\r\n\tfunction GetImages()\r\n\t{\r\n\t\tif(document.getElementBy" +
Line 688:                      "Id(\"");
Line 689:              
Line 690:              #line 53 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 691:                        @__w.Write( hdArtistID.ClientID );
Line 692:  
Line 693:              
Line 694:              #line default
Line 695:              #line hidden
Line 696:              @__w.Write("\"))\r\n\t\t{\r\n\t\t\tvar artistID = document.getElementById(\"");
Line 697:              
Line 698:              #line 55 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 699:                                     @__w.Write( hdArtistID.ClientID );
Line 700:  
Line 701:              
Line 702:              #line default
Line 703:              #line hidden
Line 704:              @__w.Write("\").value;\r\n\t\t\tgetHttpRequest(\"getImages.aspx?guid=");
Line 705:              
Line 706:              #line 56 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 707:                                 @__w.Write( Guid.NewGuid().ToString() );
Line 708:  
Line 709:              
Line 710:              #line default
Line 711:              #line hidden
Line 712:              @__w.Write("&action=getArtistImage&artistID=\" + artistID,\"DisplayImages\",false,null);\r\n\t\t}\r\n\t" +
Line 713:                      "}\r\n\tGetImages();\r\n\t</script>\r\n");
Line 714:          }
Line 715:          
Line 716:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 717:          private void @__BuildControlTree(admin_manageartists_aspx @__ctrl) {
Line 718:              
Line 719:              #line 1 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 720:              @__ctrl.MasterPageFile = "~/MasterPage.master";
Line 721:              
Line 722:              #line default
Line 723:              #line hidden
Line 724:              
Line 725:              #line 1 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 726:              @__ctrl.Title = "Manage Artists";
Line 727:              
Line 728:              #line default
Line 729:              #line hidden
Line 730:              
Line 731:              #line 1 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 732:              this.InitializeCulture();
Line 733:              
Line 734:              #line default
Line 735:              #line hidden
Line 736:              
Line 737:              #line 4 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 738:              this.AddContentTemplate("cpMain", new System.Web.UI.CompiledTemplateBuilder(new System.Web.UI.BuildTemplateMethod(this.@__BuildControlContent2)));
Line 739:              
Line 740:              #line default
Line 741:              #line hidden
Line 742:              System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
Line 743:              
Line 744:              #line 1 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx"
Line 745:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n\r\n\r\n"));
Line 746:              
Line 747:              #line default
Line 748:              #line hidden
Line 749:          }
Line 750:          
Line 751:          
Line 752:          #line 912304 "D:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx.cs"
Line 753:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 754:          protected override void FrameworkInitialize() {
Line 755:              base.FrameworkInitialize();
Line 756:              this.@__BuildControlTree(this);
Line 757:              this.AddWrappedFileDependencies(global::ASP.admin_manageartists_aspx.@__fileDependencies);
Line 758:          }
Line 759:          
Line 760:          #line default
Line 761:          #line hidden
Line 762:          
Line 763:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 764:          public override int GetTypeHashCode() {
Line 765:              return -1741111571;
Line 766:          }
Line 767:          
Line 768:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 769:          public override void ProcessRequest(System.Web.HttpContext context) {
Line 770:              base.ProcessRequest(context);
Line 771:          }
Line 772:      }
Line 773:  }
Line 774:  
 
 
 
 
 
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433 

Open in new window

0
 
ahllCommented:
I'm sorry...I missed a ; on my code

replace
Response.Write("value: " + strtest)
for
Response.Write("value: " + strtest);
0
 
Sandra_joyAuthor Commented:
Here is what I got:
Compiler Error Message: CS0103: The name 'artistID' does not exist in the current context

Source Error:

Line 95: try Line 96: { Line 97: UploadImage(image1, artistID); Line 98: } Line 99: catch { }
d:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx.cs(97,24): error CS0103: The name 'artistID' does not exist in the current context
d:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx.cs(106,38): error CS0103: The name 'artistID' does not exist in the current context
d:\Domains\amariahart.com\wwwroot\admin\ManageArtists.aspx.cs(119,7): warning CS0219: The variable 'photoID' is assigned but its value is never used


0
 
ahllCommented:
Well Sandra,...now this is the point where this gets really ugly to fix.

That variable has to be declared before and to fix those kind of issues we would have to look at the whole code and understand the logic behind.

You are having more than one issue here...

Again..you only choice at this point is to get a programmer there.

sorry :(
0
 
Sandra_joyAuthor Commented:
Thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now