cdog

cdog

  • NA
  • 37
  • 0

Conversion error

Apr 5 2007 8:53 PM
here is the error
Compiler Error Message: CS1502: The best overloaded method match for 'bpoInfo.bpoInfo(int)' has some invalid arguments

Source Error:

Line 64: 		try 
Line 65: 		{
Line 66: 			bpo = new bpoInfo(Request.QueryString["RequestID"]);

here is the code:

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 System.IO;

using System.Data.SqlClient;

using System.Text;

using System.Collections.Specialized;

public partial class BPOCompSalesListings : System.Web.UI.Page

{

bpoInfo bpo = new bpoInfo(RequestID);

string strRequestID;

string ProductCode;

private void Page_Load(object sender, System.EventArgs e)

{

Helper.checkSession(Session, Page);

if ((Request.QueryString["PRODUCT"] != null))

{

ProductCode = Request.QueryString["PRODUCT"];

}

strRequestID = Request["RequestID"];

ClientScript.RegisterClientScriptInclude("autosave", "scripts\\autosave.js");

ClientScript.RegisterStartupScript(this.GetType(), "myAutoSave", "AutoSaveInit(600000);", true);

string script = "function SubmitFormToBeSaved() { " + ClientScript.GetPostBackEventReference(btnSubmit, "") + "; } ";

ClientScript.RegisterClientScriptBlock(this.GetType(), "autosave", script, true);

if (!Page.IsPostBack)

{

if ((strRequestID != null))

{

if (loadBPO(true))

{

// ensure we have fresh data

loadControls();

}

}

// Make sure the brokerinfo matches the current lmc working on the assignment

//Helper.setBrokerInfo(Request.QueryString("RequestID"))

//ClientScript.RegisterStartupScript(Me.GetType(), "popup", "javascript:window.showmodaldialog('ValidateBPO.aspx', '', ''", True)

//ClientScript.RegisterStartupScript(Me.GetType(), "popup", "ShowPopup('ValidateBPO.aspx')", True)

btnOk.Visible = false;

PanelExtraValidation.Visible = false;

ButtonComment.Attributes.Add("onclick", "javascript:alert('Submitting form for approval.');");

 

}

}

private bool loadBPO(bool refreshBPO)

{

// force new bpo if none exists or we just saved data

//If Session("bpo") Is Nothing Or refreshBPO Then

try

{

bpo = new bpoInfo(Request.QueryString["RequestID"]);

}

catch (Exception ex)

{

Session["exceptionMessage"] = ex.Message;

DisplayError("LoadBPO\\", ex.Source + " " + ex.Message);

return false;

}

//Session("bpo") = bpo

//Else

//bpo = Session("bpo")

//If Not bpo.BPOID = Request.QueryString("RequestID") Then

//Try

//bpo = New bpoInfo(Request.QueryString("RequestID"))

//Catch ex As Exception

//Session("exceptionMessage") = ex.Source + " " + ex.Message

//DisplayError("LoadBPO\", ex.Source + " " + ex.Message)

//Return False

//End Try

//Session("bpo") = bpo

//End If

//End If

return true;

}

private void loadControls()

{

// we load/unload screen by visual grouping/order

 

 

 

}

}


any ideas?


Answers (11)