and another problem which just wont work as I planned..
I created an aspx site (report) as follows: - <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Report.aspx.cs" Inherits="Report_Report" %>
-
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-
<html xmlns="http://www.w3.org/1999/xhtml" >
-
<head runat="server">
-
<title>Report</title>
-
</head>
-
<body>
-
<div style="text-align:center;">
-
<form id="dateInput" name="dateInput" action="showReport.aspx" method="post">
-
Please enter start date of report
-
<input id="startDate" name="start" type="text" style="width: 165px" /><br />
-
Please enter end date of report
-
<input id="endDate" name="end" type="text" style="width: 165px" /><br />
-
<br />
-
<br />
-
<input id="Submit1" type="submit" value="submit" /></form>
-
-
<input id="Reset1" type="reset" value="reset" />
-
</div>
-
</body>
-
</html>
the form is posted to showReport that looks like this: - <%@ Page Language="C#"%>
-
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
-
Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
-
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-
-
-
-
<html xmlns="http://www.w3.org/1999/xhtml" >
-
<head runat="server">
-
<title>Report</title>
-
-
</head>
-
<body>
-
<form id="form1" runat="server">
-
<table align="center" style="width:950px; height:650px;" id="Table_top">
-
<tr>
-
<td align="center" class="Banner" id="headlogo" style="width: 941px; height: 119px;">
-
<div id="banner-top">
-
<div class="block block-block" id="block-block-2">
-
<div class="blockinner">
-
<div class="content">
-
<p>
-
<a href="http://?????">
-
<img alt="???" src="../images/xxx.jpg"
-
width="902" id="IMG1" onclick="return IMG1_onclick()" /></><br />
-
</a></p>
-
</div>
-
</div>
-
</div>
-
</div>
-
</td>
-
</tr>
-
<tr>
-
<td>
-
<div style="text-align:center;">
-
-
</div>
-
</td>
-
</tr>
-
<tr>
-
<td style="background-color:#FFFFFF; text-align:center;">
-
<div>
-
<br />
-
<rsweb:ReportViewer ID="ReportViewer1" ShowPrintButton="true" SizeToReportContent="true" runat="server" Font-Names="Verdana" Font-Size="8pt"
-
Height="900px" Width="800px">
-
<LocalReport ReportPath="Report\Report.rdlc">
-
<DataSources>
-
<rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="DataSet1_guest" />
-
</DataSources>
-
</LocalReport>
-
</rsweb:ReportViewer>
-
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" TypeName="DataSet1TableAdapters.guestTableAdapter" SelectMethod="GetDataByArrival">
-
<SelectParameters>
-
<asp:Parameter Name="startDay" />
-
<asp:Parameter Name="endDay" />
-
</SelectParameters>
-
</asp:ObjectDataSource>
-
-
<br />
-
</div>
-
</td>
-
</tr>
-
</table>
-
</form>
-
-
</body>
-
</html>
the Method 'GetDataByArriv al' has two parameters: startDay and endDay I tried to use selectparameter but I just cannot get the form values into the selectparameter my report just does not fill with the required information. If I use the 'GetData' method my report is shown no problem and if I specify some default values for the 'SelectParamete rs' the report is shown as well ...
Thanks in advance for any help.
Kat
0 1341 Sign in to post your reply or Sign up for a free account.
Similar topics |
by: |
last post by:
Hi,
I've defined an ObjectDataSource and a parameterized DataSet. I would like
it if I could pass the parameter value that describes the query that creates
the DataSet as part of a user control declaration. Here's how the parameter
is described in the context of my ObjectDataSource:
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
SelectMethod="GetArticlesByWhomever"
TypeName="WhateverTableAdapters.WhateverTableAdapter">
|
by: Damon |
last post by:
Help! Need this fixed ASAP.
I have a GridView/DetailsView master/details form set up, with both
bound to separate ObjectDataSource objects. Both the GridView and the
DetailsView have a DataKeyNames parameter of "UserCompany,
BillableCompany". The DetailsView has control parameters for its
select method pointing to these two keys on the GridView. But the
select method function receives two copies of the UserCompany field!
The...
|
by: misiek |
last post by:
Hi all.
I have a problem with setting value of some parameter in select command
in ObjectDataSource.
This is what I did:
1. I created DataSet in designer using some stored procedure, which
expects exactly one parameter. Also there was a "Return a data table"
method created.
2. I dragged ObjectDataSource to my web page and configured it to use
method I created in pont 1.
|
by: Jeff |
last post by:
Hey
ASP.NET 2.0
This the ObjectDataSource in my UserControl,
<asp:ObjectDataSource ID="odsMessage" runat="server"
SelectMethod="ExecuteMessage"
TypeName="AH.MyNetwork.BLL.Network.Message">
<SelectParameters>
<asp:ProfileParameter Name="user" PropertyName="UserName"
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |