Click here to Skip to main content
15,898,371 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRoot folder in a Virtual Directory app Pin
Mel Padden11-Jul-07 20:32
Mel Padden11-Jul-07 20:32 
AnswerRe: Root folder in a Virtual Directory app Pin
N a v a n e e t h11-Jul-07 20:58
N a v a n e e t h11-Jul-07 20:58 
GeneralRe: Root folder in a Virtual Directory app Pin
Mel Padden11-Jul-07 22:17
Mel Padden11-Jul-07 22:17 
GeneralRe: Root folder in a Virtual Directory app Pin
N a v a n e e t h11-Jul-07 22:31
N a v a n e e t h11-Jul-07 22:31 
GeneralRe: Root folder in a Virtual Directory app Pin
Mel Padden11-Jul-07 22:55
Mel Padden11-Jul-07 22:55 
GeneralRe: Root folder in a Virtual Directory app Pin
N a v a n e e t h12-Jul-07 0:23
N a v a n e e t h12-Jul-07 0:23 
GeneralRe: Root folder in a Virtual Directory app Pin
Mel Padden12-Jul-07 0:30
Mel Padden12-Jul-07 0:30 
QuestionDo anyone solve this error....Missing Parameter values :S Pin
ha_haseebahmad11-Jul-07 20:30
ha_haseebahmad11-Jul-07 20:30 
Hi to all....

Actually i develop a report in ASP.NET 2.0 and passing some criteria fields like From date and todate in parameter field....Parameter field display successfully when i write the code in load event...but when i select criteria fromdate-todate and courier name and press generate button then error will generate Missing parameter Values Frown | :(

I cann't understand why error generated when i press button while its working fine when call on load event with fix parameter....

Below are the sample code for your Information

private void GenerateReport()
{
try
{
//-------------------------------
//Report view Code
//-------------------------------
System.DateTime dtfrom;
System.DateTime dtTo;

dtfrom = Convert.ToDateTime(dtp_FromDate.Value);
dtTo = Convert.ToDateTime(dtp_ToDate.Value);
//-------------------------------

//Object Creation
BLLOUTGOINGMAIL oBLLOUTGOINGMAIL = new BLLOUTGOINGMAIL();

DataSet ods = new DataSet();

//ods = oBLLOUTGOINGMAIL.GetExpStatData("OUTGOINGMAIL.COURIERID = '" + ddlCourier.SelectedValue + "' AND OUTGOINGMAIL.OGDATE BETWEEN '" + dtfrom.ToString("dd/MMM/yyyy") + "' AND '" + dtTo.ToString("dd/MMM/yyyy") + "'");
ods = oBLLOUTGOINGMAIL.GetExpStatData("OUTGOINGMAIL.COURIERID = '00001' AND OUTGOINGMAIL.OGDATE BETWEEN '01/JAN/2007' AND '01/DEC/2007'");

ods.Tables[0].TableName = "dtExpStat";

ReportDocument rd = new ReportDocument();

rd.Load(Server.MapPath("CRExpStat.rpt"));

rd.SetDataSource(ods);

//---------------------------------------------------------------
// Create parameter objects

ParameterFields myParams = new ParameterFields();

ParameterField myparamFields = new ParameterField();
ParameterDiscreteValue myDiscreteValue = new ParameterDiscreteValue();

// Set the ParameterFieldName to the name of the parameter
// created in the Field Explorer
myparamFields.ParameterFieldName = "p_ReportHeader";

// Add ReportHeader Value
//Add Courier Value // Add Date From Value // Add To Date Value
myDiscreteValue.Value = ddlCourier.SelectedItem.Text + " (For the period " + dtfrom.ToString("dd/MMM/yyyy") + " To " + dtTo.ToString("dd/MMM/yyyy") +")";
myparamFields.CurrentValues.Add(myDiscreteValue);

// Add param object to params collection
myParams.Add(myparamFields);

// Assign the params collection to the report viewer
CRV_ExpStat.ParameterFieldInfo = myParams;

//---------------------------------------------------------------

CRV_ExpStat.ReportSource = rd;
CRV_ExpStat.DataBind();

rd = null;
//---------------------------------------------------------------
}

catch (ExceptionClass oEx)
{
WrapperOfLogError oWrapperOfLogError = new WrapperOfLogError();
ucMessageControl.Show(UC_MessageControl.MessageType.ErrorMessage, ConfigurationManager.AppSettings[oWrapperOfLogError.BLLWrapperOfLogError(oEx)]);
}
}

protected void btnReport_Click(object sender, ImageClickEventArgs e)
{
GenerateReport();
}

Haseeb.
QuestionStyle sheets are not getting applied. Pin
Rajiya11-Jul-07 20:26
Rajiya11-Jul-07 20:26 
AnswerRe: Style sheets are not getting applied. Pin
N a v a n e e t h11-Jul-07 20:44
N a v a n e e t h11-Jul-07 20:44 
AnswerRe: Style sheets are not getting applied. Pin
Rajiya11-Jul-07 23:19
Rajiya11-Jul-07 23:19 
Questionopensource asp.net c# or even ajax text chat code and rating system Pin
harryforum11-Jul-07 20:06
harryforum11-Jul-07 20:06 
AnswerRe: opensource asp.net c# or even ajax text chat code and rating system Pin
Sathesh Sakthivel11-Jul-07 20:13
Sathesh Sakthivel11-Jul-07 20:13 
GeneralRe: opensource asp.net c# or even ajax text chat code and rating system Pin
harryforum11-Jul-07 21:22
harryforum11-Jul-07 21:22 
GeneralRe: opensource asp.net c# or even ajax text chat code and rating system Pin
N a v a n e e t h11-Jul-07 22:42
N a v a n e e t h11-Jul-07 22:42 
AnswerRe: opensource asp.net c# or even ajax text chat code and rating system Pin
Imran Khan Pathan11-Jul-07 20:18
Imran Khan Pathan11-Jul-07 20:18 
GeneralRe: opensource asp.net c# or even ajax text chat code and rating system Pin
harryforum11-Jul-07 21:24
harryforum11-Jul-07 21:24 
GeneralRe: opensource asp.net c# or even ajax text chat code and rating system Pin
Imran Khan Pathan11-Jul-07 23:26
Imran Khan Pathan11-Jul-07 23:26 
GeneralRe: opensource asp.net c# or even ajax text chat code and rating system Pin
Pete O'Hanlon12-Jul-07 2:31
mvePete O'Hanlon12-Jul-07 2:31 
QuestionImport Mail Contacts from ASP.Net Pin
neerubee11-Jul-07 19:52
neerubee11-Jul-07 19:52 
AnswerRe: Import Mail Contacts from ASP.Net Pin
Michael Sync11-Jul-07 20:15
Michael Sync11-Jul-07 20:15 
GeneralRe: Import Mail Contacts from ASP.Net Pin
neerubee17-Jul-07 0:24
neerubee17-Jul-07 0:24 
QuestionArithmetic operation resulted in an overflow Pin
saravanan0511-Jul-07 19:40
saravanan0511-Jul-07 19:40 
AnswerRe: Arithmetic operation resulted in an overflow Pin
Sathesh Sakthivel11-Jul-07 19:49
Sathesh Sakthivel11-Jul-07 19:49 
GeneralRe: Arithmetic operation resulted in an overflow Pin
saravanan0511-Jul-07 19:58
saravanan0511-Jul-07 19:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.