cs file:
using System;
using System.Collecti ons;
using System.Componen tModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.Sess ionState;
using System.Web.UI;
using System.Web.UI.W ebControls;
using System.Web.UI.H tmlControls;
using System.Text;
using System.Data.Ora cleClient;
using PRS.DocumentMan ager;
namespace PRS.UIDocumentM anager
{
/// <summary>
/// Summary description for DocumentDetails .
/// </summary>
public class ReportDetails : System.Web.UI.P age
{
protected System.Web.UI.W ebControls.Tabl e tblParamters;
protected System.Web.UI.W ebControls.Drop DownList ddlEmailOptions ;
protected System.Web.UI.W ebControls.Imag e imgLogo;
protected System.Web.UI.W ebControls.Imag eButton ibtnAdd;
protected System.Web.UI.W ebControls.Imag eButton ibtnCancel;
protected System.Web.UI.W ebControls.Imag eButton ibtnEdit;
protected System.Web.UI.W ebControls.Imag eButton ibtnDelete;
protected System.Web.UI.W ebControls.Imag eButton ibtnSave;
protected System.Web.UI.W ebControls.Imag eButton ibtnBack;
protected System.Web.UI.W ebControls.Labe l lblError;
protected System.Web.UI.W ebControls.Labe l lblDebugMsg;
protected System.Web.UI.W ebControls.Labe l lblDocumentType List;
protected System.Web.UI.W ebControls.Labe l lblFilter;
protected System.Web.UI.W ebControls.Labe l lblReloadInfo;
protected System.Web.UI.W ebControls.Labe l lblReportName;
protected System.Web.UI.W ebControls.Labe l lblReportVersio n;
protected System.Web.UI.W ebControls.Labe l lblReportDetail s;
protected System.Web.UI.W ebControls.Labe l lblName;
protected System.Web.UI.W ebControls.Text Box txtName;
protected System.Web.UI.W ebControls.Labe l lblVersion;
protected System.Web.UI.W ebControls.Text Box txtVersion;
protected System.Web.UI.W ebControls.Labe l lblFullName;
protected System.Web.UI.W ebControls.Text Box txtFullName;
protected System.Web.UI.W ebControls.Labe l lblTemplateName ;
protected System.Web.UI.W ebControls.Text Box txtTemplateName ;
protected System.Web.UI.W ebControls.Labe l lblOrientation;
protected System.Web.UI.W ebControls.Text Box txtOrientation;
protected System.Web.UI.W ebControls.Labe l lblType;
protected System.Web.UI.W ebControls.Text Box txtType;
protected System.Web.UI.W ebControls.Labe l lblRetainage;
protected System.Web.UI.W ebControls.Text Box txtRetainage;
protected System.Web.UI.W ebControls.Labe l lblEmailOptions ;
protected System.Web.UI.W ebControls.Text Box txtEmailOptions ;
protected System.Web.UI.W ebControls.Labe l lblTitle;
protected System.Web.UI.W ebControls.Labe l lblBackLink;
private void Page_Load(objec t sender, System.EventArg s e)
{
ReportDetailInf o oRDI;
DataSet oDS;
TableRow trRow;
ManagePageButto ns(true,true,tr ue, true, true);
String reportName = Request.QuerySt ring["ID"];
String reportVersion = Request.QuerySt ring["version"];
MetaDataAccesso r oDataAccess = new MetaDataAccesso r();
oRDI = oDataAccess.Get ReportDetail( reportName , reportVersion );
lblReportName.T ext = oRDI.name;
lblReportVersio n.Text = oRDI.version;
txtName.Text = oRDI.name;
txtVersion.Text = oRDI.version;
txtFullName.Tex t = oRDI.fullName;
txtTemplateName .Text = oRDI.template;
txtOrientation. Text = oRDI.orientatio n;
txtType.Text = oRDI.type;
txtRetainage.Te xt = oRDI.retainage. ToString();
txtEmailOptions .Text = oRDI.emailOptio ns;
RegisterHiddenF ield("hdnTimeSt amp",oRDI.TimeS tamp.ToString() );
oDataAccess = new MetaDataAccesso r();
oDS = oDataAccess.Get ReportParameter s( reportName , reportVersion );
DataView dv = new DataView(oDS.Ta bles[0]);
DataTable newDt = oDS.Tables[0].Clone();
for (int i=0;i<dv.Count; i++)
{
newDt.ImportRow (dv[i].Row);
}
DataSet oDataSet = new DataSet();
oDataSet.Tables .Add(newDt);
if (oDataSet != null)
{
#region Building Table Headers
// Build the table headings
trRow = new TableRow();
tblParamters.Ro ws.Add(trRow);
TableCell tcCellHead = new TableCell();
tcCellHead.Text ="Sequence";
tcCellHead.CssC lass="THlist";
tcCellHead.Wrap =true;
tcCellHead.Hori zontalAlign=Hor izontalAlign.Ce nter;
trRow.Cells.Add (tcCellHead);
tcCellHead = new TableCell();
tcCellHead.Text ="Name";
tcCellHead.CssC lass="THlist";
tcCellHead.Wrap =true;
tcCellHead.Hori zontalAlign=Hor izontalAlign.Ce nter;
trRow.Cells.Add (tcCellHead);
tcCellHead = new TableCell();
tcCellHead.Text ="Length";
tcCellHead.CssC lass="THlist";
tcCellHead.Wrap =true;
tcCellHead.Hori zontalAlign=Hor izontalAlign.Ce nter;
trRow.Cells.Add (tcCellHead);
tcCellHead = new TableCell();
tcCellHead.Text ="Type";
tcCellHead.CssC lass="THlist";
tcCellHead.Wrap =true;
tcCellHead.Hori zontalAlign=Hor izontalAlign.Ce nter;
trRow.Cells.Add (tcCellHead);
#endregion
#region Building Table Items list
// Display the available templates
int RowCount=0;
foreach(DataRow drRow in oDataSet.Tables[0].Rows)
{
++RowCount;
trRow = new TableRow();
tblParamters.Ro ws.Add(trRow);
// Populate Data
// Catalog link
TableCell tcData = new TableCell();
tcData.Horizont alAlign =
System.Web.UI.W ebControls.Hori zontalAlign.Lef t;
if ((RowCount%2)== 0)
tcData.CssClass = "altcolor";
tcData.Wrap = true;
tcData.Text = drRow["NBR_RPT_PARM_S EQ"].ToString();
trRow.Cells.Add (tcData);
// display name
tcData = new TableCell();
tcData.Horizont alAlign =
System.Web.UI.W ebControls.Hori zontalAlign.Lef t;
if ((RowCount%2)== 0)
tcData.CssClass = "altcolor";
tcData.Wrap = true;
tcData.Text = drRow["NM_RPT_PARM_NA ME"].ToString();
trRow.Cells.Add (tcData);
tcData = new TableCell();
tcData.Horizont alAlign =
System.Web.UI.W ebControls.Hori zontalAlign.Lef t;
if ((RowCount%2)== 0)
tcData.CssClass = "altcolor";
tcData.Wrap = true;
tcData.Text = drRow["NBR_RPT_PARM_L ENGTH"].ToString();
trRow.Cells.Add (tcData);
tcData = new TableCell();
tcData.Horizont alAlign =
System.Web.UI.W ebControls.Hori zontalAlign.Lef t;
if ((RowCount%2)== 0)
tcData.CssClass = "altcolor";
tcData.Wrap = true;
tcData.Text = drRow["TXT_RPT_PARM_T YPE"].ToString();
trRow.Cells.Add (tcData);
}
#endregion
}
}
private void ReportErrMessag e (Exception ex)
{
StringBuilder sb = new StringBuilder() ;
sb.Append("<p>" + ex.ToString());
Exception iEx = ex.InnerExcepti on;
while (iEx != null)
{
sb.Append("<p>" + iEx.ToString()) ;
iEx = iEx.InnerExcept ion;
}
sb.Append("<P>" + ex.StackTrace);
lblDebugMsg.Tex t = sb.ToString().R eplace("\n", "<p>");
}
private void ManagePageButto ns( bool CancelBtn, bool AddBtn, bool
EditBtn, bool DeleteBtn, bool SaveBtn)
{
ibtnCancel.Visi ble = CancelBtn;
ibtnAdd.Visible = AddBtn;
ibtnEdit.Visibl e = EditBtn;
ibtnDelete.Visi ble = DeleteBtn;
ibtnSave.Visibl e = SaveBtn;
}
private void ManageTypeBoxes (bool MakeEditable)
{
}
#region Web Form Designer generated code
override protected void OnInit(EventArg s e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeCompo nent();
base.OnInit(e);
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeCompo nent()
{
this.ibtnBack.C lick += new
System.Web.UI.I mageClickEventH andler(this.ibt nBack_Click);
this.ibtnCancel .Click += new
System.Web.UI.I mageClickEventH andler(this.ibt nCancel_Click);
this.ibtnAdd.Cl ick += new
System.Web.UI.I mageClickEventH andler(this.ibt nAdd_Click);
this.ibtnEdit.C lick += new
System.Web.UI.I mageClickEventH andler(this.ibt nEdit_Click);
this.ibtnDelete .Click += new
System.Web.UI.I mageClickEventH andler(this.ibt nDelete_Click);
this.ibtnSave.C lick += new
System.Web.UI.I mageClickEventH andler(this.ibt nSave_Click);
this.Load += new System.EventHan dler(this.Page_ Load);
}
#endregion
private void ibtnAdd_Click(o bject sender,
System.Web.UI.I mageClickEventA rgs e)
{
Console.WriteLi ne("ADD");
}
private void ibtnSave_Click( object sender,
System.Web.UI.I mageClickEventA rgs e)
{
MetaDataAccesso r oDataAccess = new MetaDataAccesso r();
ReportDetailInf o reportDetailInf o = new ReportDetailInf o();
reportDetailInf o.name = lblReportName.T ext;
reportDetailInf o.version = lblReportVersio n.Text;
reportDetailInf o.name = txtName.Text;
reportDetailInf o.version = txtVersion.Text ;
reportDetailInf o.fullName = txtFullName.Tex t;
reportDetailInf o.template = txtTemplateName .Text;
reportDetailInf o.orientation = txtOrientation. Text;
reportDetailInf o.type = txtType.Text;
reportDetailInf o.retainage = int.Parse( txtRetainage.Te xt );
reportDetailInf o.emailOptions = txtEmailOptions .Text;
reportDetailInf o.TimeStamp =
OracleDateTime. Parse(Request.P arams["hdnTimeSta mp"]);
//oDataAccess.Upd ateReportDetail s( reportDetailInf o );
}
private void ibtnEdit_Click( object sender,
System.Web.UI.I mageClickEventA rgs e)
{
Console.WriteLi ne("EDIT");
}
private void ibtnDelete_Clic k(object sender,
System.Web.UI.I mageClickEventA rgs e)
{
Console.WriteLi ne("delete");
}
private void ibtnCancel_Clic k(object sender,
System.Web.UI.I mageClickEventA rgs e)
{
Console.WriteLi ne("cancel");
}
private void ibtnBack_Click( object sender,
System.Web.UI.I mageClickEventA rgs e)
{
Response.Redire ct(lblBackLink. Text);
}
}
}
-----------------------------------------
aspx:
<%@ Page language="c#" Codebehind="Rep ortDetails.aspx .cs"
AutoEventWireup ="false" Inherits="PRS.U IDocumentManage r.ReportDetails " %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>Report Details</title>
<meta content="Micros oft Visual Studio 7.0" name="GENERATOR ">
<meta content="C#" name="CODE_LANG UAGE">
<meta content="JavaSc ript" name="vs_defaul tClientScript">
<meta content="http://schemas.microso ft.com/intellisense/ie5"
name="vs_target Schema">
<LINK href="css/impact.css" type="text/css" rel="stylesheet ">
</HEAD>
<body ms_positioning= "GridLayout ">
<form id="ReportDetai ls" method="post" encType="multip art/form-data"
runat="server">
<table cellSpacing="0" cellPadding="0" width="760" border="0">
<tr>
<td>
<table class="TableBor derExpand" id="MainTable" cellSpacing="0"
cellPadding="3" width="100%"
border="0">
<tr>
<td class="THExpand ">
<p><asp:image id="imgLogo" runat="server"
imageurl="Image s\prs_seal.gif" ></asp:image><asp: label id="lblTitle"
runat="server" cssclass="PageT itle">Report Details</asp:label></p>
</td>
</tr>
</table>
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR>
<td align="right">
<table class="TableBor der" id="tblTopInfo " cellSpacing="0"
cellPadding="3" width="303"
border="0">
<tr>
<td style="WIDTH: 87px">Report Name:</td>
<td><asp:labe l id="lblReportNa me"
runat="server"> lblReportName</asp:label></td>
</tr>
<tr>
<td style="WIDTH: 87px">Report Version:</td>
<td><asp:labe l id="lblReportVe rsion"
runat="server"> lblReportVersio n</asp:label></td>
</tr>
</table>
</td>
</TR>
</table>
<table id="Table3" cellSpacing="0" cellPadding="3" width="100%"
border="0">
<tr>
<td><asp:labe l id="lblError" runat="server" font-bold="True"
forecolor="Red" ></asp:label></td>
</tr>
</table>
<table class="TableBor der" id="Table4" cellSpacing="0"
cellPadding="3" width="100%" border="0">
<tr>
<td class="THList" style="WIDTH: 140px"
colSpan="4"><as p:label id="lblReportDe tails" runat="server" cssclass="H1"
width="316px">R eport Details</asp:label></td>
</tr>
<tr>
<td style="WIDTH: 140px"><asp:lab el id="lblName"
runat="server" width="109px">R eport Name:</asp:label></td>
<td style="WIDTH: 149px"><asp:tex tbox id="txtName"
runat="server" width="108px" maxlength="6"></asp:textbox></td>
<td style="WIDTH: 153px"><asp:lab el id="lblVersion "
runat="server" width="109px">R eport Version:</asp:label></td>
<td><asp:textbo x id="txtVersion " runat="server"
width="108px" maxlength="2"></asp:textbox></td>
</tr>
<tr>
<td style="WIDTH: 140px"><asp:lab el id="lblFullName "
runat="server" width="109px">F ull Name:</asp:label></td>
<td style="WIDTH: 192px" colSpan="3"><as p:textbox
id="txtFullName " runat="server" width="544px"
maxlength="32"> </asp:textbox></td>
</tr>
<tr>
<td style="WIDTH: 140px"><asp:lab el id="lblTemplate Name"
runat="server" width="109px">T emplate Name:</asp:label></td>
<td style="WIDTH: 149px"><asp:tex tbox id="txtTemplate Name"
runat="server" width="107px" maxlength="8"></asp:textbox></td>
<td style="WIDTH: 153px"></td>
<td></td>
</tr>
<tr>
<td style="WIDTH: 140px"><asp:lab el id="lblOrientat ion"
runat="server" width="109px">O rientation:</asp:label></td>
<td style="WIDTH: 149px"><asp:tex tbox id="txtOrientat ion"
runat="server" width="107px" maxlength="1"></asp:textbox></td>
<td style="WIDTH: 153px"><asp:lab el id="lblType"
runat="server" width="109px">T ype:</asp:label></td>
<td style="WIDTH: 121px"><asp:tex tbox id="txtType"
runat="server" width="107px" maxlength="1"></asp:textbox></td>
</tr>
<tr>
<td style="WIDTH: 140px"><asp:lab el id="lblRetainag e"
runat="server" width="109px">R etainage:</asp:label></td>
<td style="WIDTH: 149px"><asp:tex tbox id="txtRetainag e"
runat="server" width="107px" maxlength="5"></asp:textbox></td>
<td style="WIDTH: 153px"><asp:lab el id="lblEmailOpt ions"
runat="server" width="109px">E mail Options:</asp:label></td>
<td style="WIDTH: 121px"><asp:tex tbox id="txtEmailOpt ions"
runat="server" width="107px" maxlength="1"></asp:textbox></td>
</tr>
</table>
<br>
<table class="TableBor der" id="Table7" cellSpacing="0"
cellPadding="3" width="100%" border="0">
<tr>
<td class="THList" style="WIDTH: 140px" colSpan="4">Rep ort
Paramters</td>
</tr>
<tr>
<td style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px;
PADDING-BOTTOM: 0px; PADDING-TOP: 0px"><asp:tabl e id="tblParamter s"
runat="server" cssclass="table BorderList" width="100%"></asp:table></td>
</tr>
</table>
<br>
<table id="Table8" cellSpacing="0" cellPadding="3" width="100%"
border="0">
<tr>
<td style="WIDTH: 66px"></td>
<td style="WIDTH: 79px"><asp:imag ebutton id="ibtnBack"
runat="server" imageurl="Image s\btn_Back.jpg" ></asp:imagebutton ></td>
<td style="WIDTH: 158px"></td>
<td style="WIDTH: 435px"></td>
<td style="WIDTH: 4px"><asp:image button id="ibtnCancel "
runat="server" imageurl="Image s\btn_cancel.jp g"></asp:imagebutton ></td>
<td><asp:imageb utton id="ibtnAdd" runat="server"
imageurl="Image s\btnAdd.gif"></asp:imagebutton ></td>
<td><asp:imageb utton id="ibtnEdit" runat="server"
imageurl="Image s\btn_Edit.jpg" ></asp:imagebutton ></td>
<td><asp:imageb utton id="ibtnDelete " runat="server"
imageurl="Image s\btnDelete.gif "></asp:imagebutton ></td>
<td><asp:imageb utton id="ibtnSave" runat="server"
imageurl="Image s\btnSave.gif"
causesvalidatio n="False"></asp:imagebutton ></td>
</tr>
</table>
<table id="Table9" cellSpacing="0" cellPadding="3" width="100%">
<tr>
<td style="HEIGHT: 10px" align="right">< asp:label
id="lblReloadIn fo" runat="server" visible="False" ></asp:label><asp: label
id="lblBackLink " runat="server" visible="False" ></asp:label></td>
</tr>
</table>
<table id="BottomTable " cellSpacing="0" cellPadding="3"
width="100%" border="0">
<tr>
<td style="HEIGHT: 11px"><asp:labe l id="lblDebugMsg "
runat="server" forecolor="#804 040"></asp:label><asp: label id="lblFilter"
runat="server" visible="False" ></asp:label></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</HTML>
"Jax" <an*******@disc ussions.microso ft.com> wrote in message
news:C0******** *************** ***********@mic rosoft.com...
Can you post the .cs file as well?