or
<
telerik:ReportViewer
id
=
"ReportViewer1"
runat
=
"server"
></
telerik:ReportViewer
>
<
system.web
>
...
<
httpHandlers
>
<
add
path
=
"Telerik.ReportViewer.axd"
verb
=
"*"
type
=
"Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=7.1.13.802, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
/>
</
httpHandlers
>
</
system.web
>
<
system.webServer
>
<
handlers
>
<
add
name
=
"Telerik.ReportViewer.axd_*"
path
=
"Telerik.ReportViewer.axd"
verb
=
"*"
type
=
"Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=7.1.13.802, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
preCondition
=
"integratedMode"
/>
</
handlers
>
<
validation
validateIntegratedModeConfiguration
=
"false"
/>
</
system.webServer
>
protected
void
Page_Load(
object
sender, EventArgs e)
{
if
(!IsPostBack)
{
InstanceReportSource reportSource =
new
InstanceReportSource();
reportSource.ReportDocument =
new
Report1();
reportSource.Parameters.Add(
new
Telerik.Reporting.Parameter(
"@batchType"
,
"Open"
));
reportSource.Parameters.Add(
new
Telerik.Reporting.Parameter(
"@fromDate"
, DateTime.Parse(
"9/1/2013"
)));
reportSource.Parameters.Add(
new
Telerik.Reporting.Parameter(
"@toDate"
, DateTime.Parse(
"9/10/2013"
)));
reportSource.Parameters.Add(
new
Telerik.Reporting.Parameter(
"@entityId"
, 0));
reportSource.Parameters.Add(
new
Telerik.Reporting.Parameter(
"@entityType"
,
""
));
reportSource.Parameters.Add(
new
Telerik.Reporting.Parameter(
"@userId"
, 1));
ReportViewer1.ReportSource = reportSource;
//ReportViewer1.RefreshReport();
}
}
TimeStamp | DeviceId | Volume |
9/9/2013 9:30 | 151 | 19 |
9/9/2013 9:30 | 152 | 20 |
9/9/2013 9:30 | 153 | 20 |
9/9/2013 9:30 | 154 | 19 |
9/9/2013 9:30 | 155 | 0 |
9/9/2013 9:30 | 156 | 0 |
9/9/2013 9:30 | 157 | 0 |
9/9/2013 9:30 | 158 | 0 |
9/9/2013 9:31 | 151 | 22 |
9/9/2013 9:31 | 152 | 24 |
9/9/2013 9:31 | 153 | 24 |
9/9/2013 9:31 | 154 | 18 |
9/9/2013 9:31 | 155 | 0 |
9/9/2013 9:31 | 156 | 0 |
9/9/2013 9:31 | 157 | 0 |
9/9/2013 9:31 | 158 | 0 |
9/9/2013 9:32 | 151 | 21 |
9/9/2013 9:32 | 152 | 22 |
9/9/2013 9:32 | 153 | 21 |
9/9/2013 9:32 | 154 | 24 |
9/9/2013 9:32 | 155 | 0 |
9/9/2013 9:32 | 156 | 0 |
9/9/2013 9:32 | 157 | 0 |
9/9/2013 9:32 | 158 | 0 |
9/9/2013 9:33 | 151 | 25 |
9/9/2013 9:33 | 152 | 22 |
9/9/2013 9:33 | 153 | 21 |
9/9/2013 9:33 | 154 | 23 |
9/9/2013 9:33 | 155 | 0 |
9/9/2013 9:33 | 156 | 0 |
9/9/2013 9:33 | 157 | 0 |
9/9/2013 9:33 | 158 | 0 |
9/9/2013 9:34 | 151 | 22 |
9/9/2013 9:34 | 152 | 20 |
9/9/2013 9:34 | 153 | 21 |
9/9/2013 9:34 | 154 | 20 |
9/9/2013 9:34 | 155 | 0 |
9/9/2013 9:34 | 156 | 0 |
9/9/2013 9:34 | 157 | 0 |
9/9/2013 9:34 | 158 | 0 |
I use the NeedDataSource Event to bind a table from the resultset of a stored procedure. In the table I have a text box(textBox7) in which sometimes there is a visible value, other times there is not. I want to test to see if there is a value in this textbox. I
I
f there is, I want to set the value of textBox6 to "Yes". If textBox7 does not have a value, make the value of TextBox6 equal to "No". I am using the ItemDataBound event of TextBox6 to try to achieve this. Right now the value of textBox6 always ends up being "Yes" . However, this is not correct. I need to know how to write a valid test for the value of TextBox7, or if I am doing something else wrong. Code is below. Any help would be greatly appreciated.
jason
private void textBox6_ItemDataBound(object sender, System.EventArgs e) |
{ |
if (textBox7.Value != null || textBox7.Value=="") |
{ |
textBox6.Value = "Yes"; |
} |
else |
{ |
textBox6.Value = "No"; |
} |
} |
} |