Showing SSRS 2005 Report On Aspx Page

Aug 9, 2007

Hi,

I have used Report viewer control to show ssrs 2005 report in my aspx page.
Can we show the SSRS 2005 report on the aspx page in any other way?
any info on this is appreciated.

Thanks,
Srik

View 28 Replies


ADVERTISEMENT

Error In Display .rdl Report On Aspx Page

Jun 23, 2008

hi to all,

I am using Sql server reporting services.When i have create a report .rdl file and deploy it on Report server and than display that report on my application's .aspx page in pdf format using web services , every thing is perfactly working in my senario at the starting time but now i faced a problem with that. When record goes more than 2000 (in my senario a single record disply in a one report pdf page means for 2000 record in table that means its display in 2000 pdf page as with next forward option of pdf view),So in that cas it doesn't work, did now show any report and give the error as
ex.Message"Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
The request failed with the error message:
--
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Server Unavailable
</title>
</head>
<body>
<h1><span style="font-family:Verdana;color: #ff3300">Server Application Unavailable
</span></h1>
<p>
<span style="font-family:Verdana;">
The web application you are attempting to access on this web server is currently unavailable.  Please hit the "Refresh" button in your web browser to retry your request.
</span></p>
<p>
<b>Administrator Note:
</b> An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
</p>
</body>
</html>

--."string

Any body have any idea please help me as soon as possible.
urgently--- any help will be appriciate.
thanks in advance.
arvind

View 1 Replies View Related

How To Bring Report Builder In Aspx Page?

Nov 5, 2007



Hi
How to bring Report builder in the Ui of .net aspx pages?
I tryed withe the .exe but it is comming with a new process and come up with new IDE of Report builder, i donot required this,
I want it should come up within the Aspx page itself.

any input will be helpfull for me.


regrads
Bibek

View 1 Replies View Related

ReportViewer Does Not Show Report In Aspx Page

Jul 13, 2007

I created a report with a parameter. The parameter was created using a dataset in the report designer. This works fine. I deployed the report (webhost4life) and the report runs fine in the report manager. I am able to select my casenumber click on the default view report button and it works.

Problem: I embedd the report into an aspx page frmReports1.aspx. I call this page from another page (form). the frmReports.aspx page comes up and displays the default drop down list box with the casenumbers (fine). I select the casenumber and click on the view report button and NOTHING. I here the postbacks taking place but all that happens is the default value appears in the drop down list box and the toolbar shows. I checked permissions and everything is fine. I searched the forum and thought i found the solution with the inLine HTML and Async (still nothing) I can only think that something is not going right with the parameter. Here is my html, and code behind code. any help would be greatly apprcieated.



Zachary



<%@ Page Language="VB" AutoEventWireup="false" CodeFile="frmReports1.aspx.vb" Inherits="frmReports1" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>



<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>





<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

<title>Untitled Page</title>

<style>html,body,form {height:100%}</style>

</head>

<body>

<form id="form1" runat="server">

<div>

<rsweb:ReportViewer ID="rvTest" runat="server" Width="600px" ProcessingMode="Remote" AsyncRendering="false" Height="75%" >

<ServerReport

DisplayName="Billable Hours"

ReportPath="/sddmtech/SnowandIce/rptHoursWorked"

ReportServerUrl="http://sqlreport01.mysite4now.com/Reportserver" />

</rsweb:ReportViewer>

&nbsp;



</div>

</form>

</body>

</html>



aspx code behind

Imports System.Net

Imports System.Security.Principal

Imports Microsoft.Reporting.WebForms

Partial Class frmReports1

Inherits System.Web.UI.Page

Protected Sub rvTest_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles rvTest.Init

End Sub

<Serializable()> _

Public NotInheritable Class MyReportServerCredentials

Implements IReportServerCredentials



Public ReadOnly Property ImpersonationUser() As WindowsIdentity _

Implements IReportServerCredentials.ImpersonationUser

Get

Return Nothing

End Get

End Property

Public ReadOnly Property NetworkCredentials() As ICredentials _

Implements IReportServerCredentials.NetworkCredentials

Get

' Put your login and password here this works fine

Dim userName As String = ""

Dim password As String = ""

Dim domain As String = ""

Return New NetworkCredential(userName, password, domain)

'********************************************************************************

End Get

End Property

Public Function GetFormsCredentials(ByRef authCookie As System.Net.Cookie, ByRef userName As String, ByRef password As String, ByRef authority As String) As Boolean Implements Microsoft.Reporting.WebForms.IReportServerCredentials.GetFormsCredentials

End Function

End Class

Public Function GetFormsCredentials(ByRef authCookie As Cookie, _

ByRef userName As String, _

ByRef password As String, _

ByRef authority As String) _

As Boolean

authCookie = Nothing

userName = Nothing

password = Nothing

authority = Nothing

'Not using form credentials

Return False

End Function



Protected Sub form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles form1.Load

'ReportViewer1.ServerReport.ReportServerCredentials = New MyReportServerCredentials()

'rvTest.ServerReport.Refresh()

End Sub

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

rvTest.ServerReport.ReportServerCredentials = New MyReportServerCredentials()

End Sub

End Class

View 6 Replies View Related

Reporting Services Report Embed In Aspx Page

Nov 20, 2007

Hello,

I am trying to embed a Reporting Services Report in a aspx page. I have the report embedded in the page but I am having difficulty passing a parameter to the report and getting the report to run within the page. Any information is appreciated.

Thanks!

View 4 Replies View Related

SQL Insert In Aspx.vb File (or Share Variable With .aspx Page)

Mar 14, 2008

Hi,I have a form page with an insert like this:<asp:SqlDataSource ID="addProductDataSource" runat="server"    InsertCommand="INSERT INTO test(        title1,        firstName1,        lastName1,        dateOfBirth    ) VALUES (        @title1,        @firstName1,        @lastName1        @dateOfBirth    )"     ConnectionString="<%$ ConnectionStrings:yourQuoteCentreConnectionString %>">        <InsertParameters>            <asp:ControlParameter ControlID="dateOfBirth" Name="dateOfBirth" Type="DateTime" />            <asp:ControlParameter ControlID="title1" Name="title1" PropertyName="Text" />            <asp:ControlParameter ControlID="firstName1" Name="firstName1" PropertyName="Text" />            <asp:ControlParameter ControlID="lastName1" Name="lastName1" PropertyName="Text" />        </InsertParameters></asp:SqlDataSource> In default.aspx.vb I have:Protected Sub Wizard1_FinishButtonClick(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.WizardNavigationEventArgs) Handles Wizard1.FinishButtonClick    'CREATE DATETIME FROM USERS BIRTH DATE        Dim dateOfBirth As New System.DateTime(applicantYear.SelectedValue, applicantMonth.SelectedValue, applicantMonth.SelectedValue, 0, 0, 0)    'INSERT TO DATABASE        addProductDataSource.Insert()End SubI would like to reference the variable dateOfBirth created in default.aspx.vb in the insert query on the page, or ideally move the insert query into the aspx.vb page.  Would this make more sense to do?Thanks,Paul

View 6 Replies View Related

Report Builder Icon Is Not Showing Up On The Report Manager Home Page

Feb 1, 2007

HI, there,

I added a new windows user "ReportUser" which is a local user (not in administrator group). When I connect to the report manage's web page, I use reportuser to log in (when the anonymous access is disabled it will ask a log in). Report builder icon is not showing up on the report manager home page.

If I log in as a user in administrator group, the reportr builder icon shows up so I can download it and build report.

I have assigned reportuser "Content manager" and "repoter builder" access to the home folder. Is there anything else I have to do to make the report build icon show up on the home page?



Thanks



Jack

View 5 Replies View Related

Adding A Link To A Child Report In The Page Header In SSRS 2005

Nov 7, 2007

How to add a link to the child report in the page header section of a report in SSRS 2005 ?Basically I want a link to the child report which should appear on all the pages of the report if the report has multiple pages.

View 2 Replies View Related

Report Viewer In ASPX Page- Getting An Error The Request Failed With HTTP Status 401: Unauthorized

Nov 2, 2006

I used the following reference code while creating this simple ASPX page with reportviewer control using VS 2005

http://www.tutorialsall.com/REPORTINGSVCS/WebFormsReportViewer-ReportServerCredentials/

ReportViewer is having following properties

ProcessingMode = "Remote",

ReportServerUrl = "/foldername/myreport

ReportPath = "http://report.mydomain.com/reports"

Even after using admin user we got the same problem

Please help









View 9 Replies View Related

SQL 2005 Reporting Service - DTD Is Prohibited In This XML Document On ASPX Page

Jan 8, 2007

I have aspx page which uses Reportviewer object to execute/display reporting services report on the page based on the parameters passed by the aspx page.

It works fine. I have a problem when I try to use import option on that page. It throws the following error. Can anybody help me to resolve this issue?

Advanct thanks for your help and support

Thanks,

Sundar

Here is the error message when I export the report to any format (Excel, pdf, csv or text)
For security reasons DTD is prohibited in this XML document. To enable DTD processing set the ProhibitDtd property on XmlReaderSettings to false and pass the settings into XmlReader.Create method.
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.Xml.XmlException: For security reasons DTD is prohibited in this XML document. To enable DTD processing set the ProhibitDtd property on XmlReaderSettings to false and pass the settings into XmlReader.Create method.

Here is the code:
ASPX Code:
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt" Height="100%" ProcessingMode="Remote" Width="100%" ShowFindControls="false" ShowPageNavigationControls="true" ShowPromptAreaButton="false" AsyncRendering="false" EnableViewState="true" ShowParameterPrompts="false" Visible="false">
<ServerReport ReportServerUrl="http://miscsql1/ReportServer" ReportPath="/webreports/POS Commission Report"></ServerReport>
</rsweb:ReportViewer>

ASPX.VB Code
Dim RptParameters(2) As Microsoft.Reporting.WebForms.ReportParameter
RptParameters(0) = New Microsoft.Reporting.WebForms.ReportParameter("Repcode", objCommon.RepSite.ToString, False)
RptParameters(1) = New Microsoft.Reporting.WebForms.ReportParameter("StartDate", txtStartDate.Text.ToString)
RptParameters(2) = New Microsoft.Reporting.WebForms.ReportParameter("EndDate", txtEndDate.Text.ToString)
ReportViewer1.ServerReport.SetParameters(RptParameters)
ReportViewer1.ServerReport.Refresh()
ReportViewer1.Visible = True
objCommon = Nothing

View 5 Replies View Related

Single Page Report In SSRS Is Printing With The Second Page Blank....URGENT

May 16, 2008



Hi All,
In my SSRS report. I have a report which has only one page. In preview it is showing as only 1 page but when I am printing the report. I am getting two printouts with the second page as a blank.. Please help me in printing the page that contains report. Intially I used a Page header, at that it used to print the blank page with a header only. Now as I removed the header it is printing the page without header i.e Blank Page.. So please help me in prinitng a single page that has the report. It is urgent,..

Thanks
dotnetdev1

View 5 Replies View Related

Deployed Report Only Showing 2 Inches On Web Page With FireFox

Feb 4, 2008

When I deploy a report, and then browse to it with FireFox, I only see 2 inces of the report. I can scroll through the entire report, but only see the 2 inch window's worth at any time.

Its like the html element the report gets put into has a hard coded height, and doesnt auto size to show the eintire report.

It works fine with IE, but we are a FireFox shop.

Anyone know how to fix this?

View 1 Replies View Related

Multipage Report Repeat Header Not Showing Data From Page 2 Onwards

Mar 13, 2008



I am using reportitem to show the data in the header from a table cell.i see the values just on the first page, from second page onwards reportitems not showing the values at all.

I am getting the reportitems values from a tables header cell and also made the tables header cell's property checked repeat header in all pages.

Header is appearing but the values in reportitems are not populating from page 2 onwards.

i tried / used everything including inserting group header still i don't get it towork.

please help.......................

View 1 Replies View Related

SSRS 2005: Report Header Does Not Export To Excel As Page Header

Mar 13, 2008

I need some help. I am writing a report in SSRS 2005 that I then need to export to Excel. When I put a report header I would expect the header to not display in the Excel spreadsheet until the Print Preview or the Print. The report footer works just fine I put some text in the footer, and it shows up in the footer. The header though, shows up as a row in the Excel spreadsheet that then causes columns to merge. How do I get the report header to act like a page header?

View 1 Replies View Related

How To Access A .asp Page Or .aspx Page From A Store Procedure In Sql Server 2000

Sep 21, 2006

Hi, I wanted to know that can we access a webpagefrom a store procedure in sql server 2000 like we run a exe file from sql server. Bye.

View 1 Replies View Related

Reporting Services :: Tables Are Showing Up In Same Page When There Is No Data Even After Giving Page Break Option

May 7, 2015

I have a report with multiple tables. I need to show each tables in different pages. When there is no data for tables/tables , it is coming with the next table which has data. I have given "Add a page break after" option in the tablix but still the tables are coming together when no data available. How can I show it in different page?

View 2 Replies View Related

Reporting Services :: SSRS Report Page Break Out

Jul 9, 2015

I have a Report In that report I need to break out company code and export this report on excel and each company code shown its own tab in excel .I just add image about report details.I tried this issue but i cant get the exact names on excel sheet.

View 3 Replies View Related

Reporting Services :: Cover Page In SSRS Report

May 9, 2015

I have a report which shows around 8 columns. The report is in landscape mode(Width -11in and Height-8.5 in). I want to display only header in the first page means basically I want to add a cover page.

I have used tablix to display data. To display an empty page, I have added a rectangle before tablix and made add a page break after true. But while exporting to pdf, I am getting 2 blank pages with header. But I need only one.

View 2 Replies View Related

Displaying An Database Image In SSRS Report Page Header

Jan 23, 2007

How to display an database image in the Report page header of sql server reporting service?

View 3 Replies View Related

How To Get A Data Bound Page Footer In SSRS In A Report Having Multiple Tables?

Feb 19, 2008

hello to all..

can someone tell me how I counld get a pagefooter linked textbox to show a data bound
page footer in a report having 8 tables....???
I have tried the common solution showed on the previous forums..
They worked when there was only one table...
where in i could place a group in 1 of the cells in the table body of the report.
but now since der are 8 tables in the report.. d job is become very tricky.

the page footer is not showing up on all the pages of the report.
it only shows on the first page of the report.

Plz help......

Regards
Savio.

View 1 Replies View Related

Reporting Services :: How To Limit Columns Per Page In SSRS Matrix Report

Oct 7, 2015

I have created the matrix report which has dynamic column, it grow columns(18) based on the 'MCU' field in PRD.MI table. I have added the 'MCU'(A,B,C,D,E,F,G,H,...Q) on 'Columns' in matrix table, to create matrix report and I have added 'mcst' on 'Data' in matrix table and I have added the 'msp2' on 'Rows' in matrix table. I have created new column after row and I added USP2DS.Final output is as given below.I need the split the matrix column per page.

I have added the 'MCU' on "Column group and 'msp2' on Row group.

Query:
select mi.*, SUBSTR(SM.USP2DS,6,9)AS DESC from 
(SELECT a.mcu , a.msp2, SUM(a.mcst) AS Cost    
FROM PRD.MI as A                                    
WHERE a.myr=2015 and a.mpr=7                   
GROUP BY a.MCU, a.msp2                             
order by a.mcu, a.msp2 ) mi,                     
(SELECT  DISTINCT U_SP2, USP2DS FROM UM.SM) SM
WHERE A.MSP2=SM.USP2  
ORDER BY MCU,msp2

I have tried the below post, but I am not able achieve my output. [URL] ....

View 6 Replies View Related

Reporting Services :: Don't Include Last Page Of SSRS Report Based On Parameter

Mar 9, 2015

I created the report, which has 4 pages. Each page contains bunch of tables and charts, which display data in scope of dataset, created for each page and reflecting certain subject. Each page also has Header and Footer.

My users requested, the report has possibility to include or not include data on Page #4.

Other words, report should display 3 or 4 pages based on the entered parameter.

1. I created parameter named  “Include #### metrics”, which contains options: Y, N
2. For each object on the page 4 I added dependency on the selected parameter in  the visibility option.

Now if user select parameter Not include Page #4, report displays 3 pages as expected and page #4 is empty, but with Header and Footer.

The problem: Their preference is to not to show page 4 at all if someone chooses to not to include #### metrics.

My question is how to force the report to display just 3 selected pages.

View 5 Replies View Related

Reporting Services :: SSRS - How To Make Report Page Size Dynamic

May 22, 2015

How to make SSRS report page size dynamic, or in a way where viewer can set it to the size they want? 

Set to 0

View 2 Replies View Related

Reporting Services :: SSRS Report Show Blank Page When Executed From SharePoint

Sep 22, 2015

I have a set of SSRS reports published on the server. It can be accessed through a web application or through SharePoint. Most of the reports work fine through both - web app and SharePoint. However, one of the report, which returns large amount of data has some problem:

1. It generates fine from web app
2. It generates fine from SharePoint; only if one or two values selected from Filter dropdown
3. However, if all items (about 20 items) selected from Filter dropdown... and click on View Report, it processes for a while and then shows nothing. The page remains blank.

Did some research and felt the problem is with Distributed Cache Service.

Tried restarting it; tried changing SPDistributedCacheClientSetting settings - requestTimeout, channelOpenTimeout... but didn't work.

I checked Event Viewer logs, SharePoint logs and SSRS logs but couldn't find any relevant error messages.

View 5 Replies View Related

How To Use Joins In SQL Statements In .aspx Page?

Nov 22, 2006

Hi can someone help me?
I'm using Access database and Microsoft VS2005 (VB)
I need to take data from 2 different tables in 1 database. But i can't seems to get it right!
I have: - dbWarehouse.mdb- tblReadDetails and tblStock
I need to use "Barcode" from tblReadDetails, compare it with "Barcode" in tblStock then retrieve all the column in tblStock and put it in a webpage.aspx list box.
I tried the following code...cn.ConnectionString = strConncn.Open()cmd = New OleDbCommand("SELECT tblStock.Barcode, tblStock.Item, tblStock.Dept, tblReadDetails.Barcode FROM tblStock JOIN tblReadDetils WHERE tblReadDetails.Barcode = tblStock.Barcode", cn)dr = cmd.ExecuteReader(CommandBehavior.CloseConnection)While dr.Read()lstBarcode.Items.Add(dr2.Item("tblStock.Barcode"))lstItem.Items.Add(dr2.Item("tblStock.Item"))lstDept.Items.Add(dr2.Item("tblStock.Dept"))End While
but it prompt me the following error...
OleDbException was unhandled by user codeSyntax error in FROM clause
What's wrong with this code?
Regards and thanks!

View 2 Replies View Related

Execute A *.sql File From One Aspx Page

Mar 12, 2004

Hi,
like subject, is it possible?

bye

View 3 Replies View Related

List All SQL/VS.NET Objects On An Aspx Page?

Mar 4, 2005

Hi guys,

Being new to ASP.NET, I may be asking something that is dead simple, but please bear with me!

How would I go about listing all the tables, stored procedures and views from a SQL database within an aspx page? I understand how to connect and return a dataset etc, but that's about as far as I can get. I want to be able to list all of these objects from a given db - any ideas?

Additionally (this may not be possible) - is there a way I can list all of the objects within a visual studio.net solution, again within an aspx page?

Thanks for any help,

Jon

View 2 Replies View Related

Uable To Use Session On Aspx Page.

Sep 3, 2007

Hi all,

I am trying to use session in my asp.net in moss but i got the error below, eventhough i have set web.config file to enableSessionState="true" and include System.Web.SessionState.SessionStateModule". Have i miss anything? thanks


Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the \ section in the application configuration.

=================
this is what i have set.

<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" pageParserFilterType="Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" asyncTimeout="7">
<namespaces>
<remove namespace="System.Web.UI.WebControls.WebParts" />
</namespaces>
<tagMapping>
<add tagType="System.Web.UI.WebControls.SqlDataSource, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" mappedTagType="Microsoft.SharePoint.WebControls.SPSqlDataSource, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
</tagMapping>
</pages>



<httpModules>
<clear />
<add name="Session" type="System.Web.SessionState.SessionStateModule" />

View 3 Replies View Related

Problem In Processing Update In A Aspx-page

Jan 11, 2008

Hi,
It seems to be a logical problem. When I want to do an update of new data inserted in my aspx-page I can type in and start the updating.After the processing it jumps back on the resultpage but I notice that there was not update be done. What can be the problem.
Here the code of my aspx-page:
<%@ Page Language="VB" MasterPageFile="~/AdminMaster.master" AutoEventWireup="false" CodeFile="news.aspx.vb" Inherits="admin_news" title="Untitled Page" %><asp:Content ID="Content1" ContentPlaceHolderID="mainCopy" Runat="Server">    <br />    <h1>        News bearbeiten</h1>    <p>        &nbsp;                <asp:DetailsView ID="DetailsView1" runat="server" AllowPaging="True" AutoGenerateRows="False"            CellPadding="4" DataKeyNames="ID" DataSourceID="SqlDataSource1" ForeColor="#333333"            GridLines="None" Height="50px" Width="600px">            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />            <CommandRowStyle BackColor="#D1DDF1" Font-Bold="True" />            <EditRowStyle BackColor="#2461BF" />            <RowStyle BackColor="#EFF3FB" />            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />            <Fields>                <asp:CommandField />                <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True"                    SortExpression="ID" />                <asp:TemplateField HeaderText="Datum" SortExpression="Datum">                    <EditItemTemplate>                    <asp:TextBox ID="ArtikelID" runat="server" Text='<%# Bind("Testfeld1") %>'></asp:TextBox>                    </EditItemTemplate>                    <EditItemTemplate>                    <asp:TextBox ID="datumTextbox" runat="server" Text='<%# Bind("Datum") %>'></asp:TextBox>                    </EditItemTemplate>                    <InsertItemTemplate>                    <asp:TextBox ID="datumTextbox" runat="server" Text='<%# Bind("Datum") %>'></asp:TextBox>                    </InsertItemTemplate>                    <ItemTemplate>                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("Datum") %>'></asp:Label>                    </ItemTemplate>                </asp:TemplateField>                                                                                                            <asp:BoundField DataField="Header" HeaderText="Header" SortExpression="Header" />                <asp:TemplateField HeaderText="&#220;berschrift D">                    <EditItemTemplate>                    <asp:TextBox ID="ArtikelID" runat="server" Text='<%# Bind("ArtikelID") %>'></asp:TextBox>                    </EditItemTemplate>                    <EditItemTemplate>                        <asp:TextBox ID="EditHeaderD" runat="server" Height="35px"                            Width="150px"></asp:TextBox>                    </EditItemTemplate>                    <InsertItemTemplate>                        <asp:TextBox ID="InsertHeaderD" runat="server" Height="35px" Width="150px"></asp:TextBox>                    </InsertItemTemplate>                    <ItemTemplate>                        <asp:Label ID="headerD" runat="server" Height="35px" Text="Label" Width="150px"></asp:Label>                    </ItemTemplate>                </asp:TemplateField>                <asp:TemplateField HeaderText="&#220;berschrift E">                    <EditItemTemplate>                        <asp:TextBox ID="EditHeaderE" runat="server" Height="35px" Width="150px"></asp:TextBox>                    </EditItemTemplate>                    <InsertItemTemplate>                        <asp:TextBox ID="InsertHeaderE" runat="server" Height="35px" Width="150px"></asp:TextBox>                    </InsertItemTemplate>                    <ItemTemplate>                        <asp:Label ID="headerE" runat="server" Height="35px" Text="Label" Width="150px"></asp:Label>                    </ItemTemplate>                </asp:TemplateField>                <asp:TemplateField HeaderText="Text D">                    <EditItemTemplate>                        <asp:TextBox ID="EditTextD" runat="server" Height="35px" Width="400px"></asp:TextBox>                    </EditItemTemplate>                    <InsertItemTemplate>                        <asp:TextBox ID="InsertTextD" runat="server" Height="35px" Width="400px"></asp:TextBox>                    </InsertItemTemplate>                    <ItemTemplate>                        <asp:Label ID="TextD" runat="server" Height="35px" Text="Label" Width="400px"></asp:Label>                    </ItemTemplate>                </asp:TemplateField>                <asp:TemplateField HeaderText="Text E">                    <EditItemTemplate>                        <asp:TextBox ID="EditTextE" runat="server" Height="35px" Width="400px"></asp:TextBox>                    </EditItemTemplate>                    <InsertItemTemplate>                        <asp:TextBox ID="InsertTextE" runat="server" Height="35px" Width="400px"></asp:TextBox>                    </InsertItemTemplate>                    <ItemTemplate>                        <asp:Label ID="TextE" runat="server" Height="35px" Text="Label" Width="400px"></asp:Label>                    </ItemTemplate>                </asp:TemplateField>                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" ShowInsertButton="True" />            </Fields>            <FieldHeaderStyle BackColor="#DEE8F5" Font-Bold="True" />            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />            <AlternatingRowStyle BackColor="White" />        </asp:DetailsView>                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:connpferde %>"            DeleteCommand="DELETE FROM [News_Kultur] WHERE [ID] = @ID"             InsertCommand="INSERT INTO [News_Kultur] ([ArtikelID], [NewsID], [Header], [Ueberschrift_D], [Ueberschrift_E], [Text_D], [Text_E], [Datum]) VALUES (@ArtikelID, @NewsID, @Header, @Ueberschrift_D, @Ueberschrift_E, @Text_D, @Text_E, @Datum)"            SelectCommand="SELECT * FROM News_Kultur LEFT JOIN News ON News_Kultur.NewsID = News.ID;"             UpdateCommand="UPDATE News SET Datum = @Datum WHERE ID=@NewsID">            <DeleteParameters>                <asp:Parameter Name="ID" Type="Int16" />            </DeleteParameters>            <UpdateParameters>                 <asp:Parameter Name="ArtikelID" Type="Int16" />                 <asp:Parameter Name="NewsID" Type="Int32" />                <asp:Parameter Name="Header" Type="String" />                <asp:Parameter Name="Ueberschrift_D" Type="String" />                <asp:Parameter Name="Ueberschrift_E" Type="String" />                <asp:Parameter Name="Text_D" Type="String" />                <asp:Parameter Name="Text_E" Type="String" />                <asp:Parameter Name="Datum" Type="DateTime" />                <asp:Parameter Name="ID" Type="Int32" />            </UpdateParameters>            <InsertParameters>                <asp:Parameter Name="Header" Type="String" />                <asp:Parameter Name="Ueberschrift_D" Type="String" />                <asp:Parameter Name="Ueberschrift_E" Type="String" />                <asp:Parameter Name="Text_D" Type="String" />                <asp:Parameter Name="Text_E" Type="String" />                <asp:Parameter Name="Datum" Type="DateTime" />            </InsertParameters>        </asp:SqlDataSource>    </p></asp:Content>and here for completion the code of my codebehindpage:
Imports Microsoft.VisualBasicImports SystemImports System.DataImports system.Data.SqlClientImports System.WebImports System.XmlPartial Class admin_news    Inherits System.Web.UI.Page    Protected Sub DetailsView1_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles DetailsView1.DataBound        If DetailsView1.CurrentMode = DetailsViewMode.Insert Then            DirectCast(DetailsView1.FindControl("datumTextbox"), TextBox).Text = Now        End If        If DetailsView1.CurrentMode = DetailsViewMode.Edit Then            DirectCast(DetailsView1.FindControl("datumTextbox"), TextBox).Text = Now        End If    End Sub    'Prozedur wird bei Update ausgeführt    Public Sub DetailView1_ItemUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DetailsViewUpdatedEventArgs) Handles DetailsView1.ItemUpdated        If Not IsDate(e.NewValues("Datum")) Then            Exit Sub        End If        Dim conn As New SqlConnection(ConfigurationManager.ConnectionStrings("connpferde").ConnectionString)        conn.Open()        Dim cmd As New SqlCommand                cmd.Connection = conn        cmd.CommandText = "UPDATE News_Kultur SET Header = @Header,Ueberschrift_D=@Ueberschrift_D,Ueberschrift_E=@Ueberschrift_E,Text_D=@Text_D,Text_E=@Text_E JOIN News_Kultur.NewsID=News.ID WHERE News_Kultur.ID=@ArtikelID "        cmd.Parameters.Add(New SqlParameter("@ArtikelID", e.NewValues("ArtikelID")))        cmd.Parameters.Add(New SqlParameter("@Header", e.NewValues("Header")))        cmd.Parameters.Add(New SqlParameter("@Ueberschrift_D", e.NewValues("Ueberschrift_D")))        cmd.Parameters.Add(New SqlParameter("@Ueberschrift_E", e.NewValues("Ueberschrift_E")))        cmd.Parameters.Add(New SqlParameter("@Text_D", e.NewValues("Text_D")))        cmd.Parameters.Add(New SqlParameter("@Text_E", e.NewValues("Text_E")))    End SubEnd Class
 
RegardsRuprecht Helms
www.rheyn.de 
 

View 5 Replies View Related

AspX Page Connection Error Using Sqlserver

Dec 16, 2003

Dear i am using visual studio.net.......... when i connect database (in sqlserver) using sqldataAdapter with datagrid in visual basic.net every thing work properly........... but when i use the same in asp.net then i get an error message on the resultant explorer page give below.


Server Error in '/studentData' Application.
--------------------------------------------------------------------------------

Login failed for user 'RAMIZSARDARASPNET'.
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.Data.SqlClient.SqlException: Login failed for user 'RAMIZSARDARASPNET'.

Source Error:


Line 85: 'Put user code to initialize the page here
Line 86: Dim ds As New DataSet()
Line 87: SqlDataAdapter1.Fill(ds)
Line 88: DataGrid1.DataSource = ds.Tables(0)
Line 89: DataGrid1.DataBind()


Source File: c:inetpubwwwrootstudentDataWebForm1.aspx.vb Line: 87

Stack Trace:


[SqlException: Login failed for user 'RAMIZSARDARASPNET'.]
System.Data.SqlClient.SqlConnection.Open()
System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState)
System.Data.Common.DbDataAdapter.Fill(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
studentData.WebForm1.Page_Load(Object sender, EventArgs e) in c:inetpubwwwrootstudentDataWebForm1.aspx.vb:87
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0


Plz solve my problem and Reply me on ramiz_ch@hotmail.com
Plz solve my problem and Reply me on ramiz_ch@hotmail.com
Plz solve my problem and Reply me on ramiz_ch@hotmail.com

Ramiz

View 1 Replies View Related

Exporting Files In The ReportViewer.aspx Page

Mar 25, 2008

I am needing to export some files in landscape when I select the PDF option in the dropdown on the ReportViewer.aspx page. How do I do this?

View 1 Replies View Related

Embedding A ReportViewer Chart In An Aspx Page

Oct 19, 2007

Hi All...

Can anyone please help with embedding a chart into an aspx page ?? I have been busy with that for some time now, and still cant figure it out...

Thanks...

View 1 Replies View Related

Is It Possible To Create A Cover Page In SSRS 2005?

Jan 31, 2007

Very simply, I need to add a cover page to my SSRS 2005 report. I've tried this using the Page Header region, but the cover page will not show up on Preview or Export. How and where do I create a cover page?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved