Control height on form tag?
Can I make this code be only 25 px high? It seems to be
naturally about 30-35 px high which is causing me design drama.
<form action="/search/search.php" method="get">
<input type="text" name="query" id="query" size="40">
<input type="submit" value="Search">
<input type="hidden" name="search" value="1">
</form>
Thanks!
With CSS:
form {
margin-top: 0;
margin-bottom: 0;
padding: 0;
background-color: #CC6666;
input {
font-family:Arial, Helvetica, sans-serif;
font-size: 12px;
Nancy O.
Alt-Web Design & Publishing
www.alt-web.com
Similar Messages
-
Hi,
I have written code for 'Export To Excel' in the visual web part as below
//ascx file
<table>
<tr>
<td>From Date:</td>
<td><SharePoint:DateTimeControl ID="dtFromDate" runat="server" DateOnly="True" /></td>
</tr>
<tr>
<td>To Date:</td>
<td><SharePoint:DateTimeControl ID="dtToDate" runat="server" DateOnly="True" TimeOnly="False" /></td>
</tr>
<tr>
<td>Report Type:<asp:DropDownList ID="ddlreporttype" runat="server"><asp:ListItem>Consolidated</asp:ListItem><asp:ListItem>Question Wise</asp:ListItem></asp:DropDownList></td>
<td>
<br />
<asp:GridView ID="gvwikireport" runat="server">
</asp:GridView>
</td>
</tr>
<tr>
<td><asp:Button ID="btnExportToExcel" runat="server" Text="Export To Excel" OnClick="btnExportToExcel_Click"/></td>
</tr>
</table>
//cs file
protected void Page_Load(object sender, EventArgs e)
if (!Page.IsPostBack)
BindGridview();
private void BindGridview()
DataTable dt = new DataTable();
dt.Columns.Add("UserId", typeof(Int32));
dt.Columns.Add("UserName", typeof(string));
dt.Columns.Add("Education", typeof(string));
dt.Columns.Add("Location", typeof(string));
dt.Rows.Add(1, "SureshDasari", "B.Tech", "Chennai");
dt.Rows.Add(2, "MadhavSai", "MBA", "Nagpur");
dt.Rows.Add(3, "MaheshDasari", "B.Tech", "Nuzividu");
dt.Rows.Add(4, "Rohini", "MSC", "Chennai");
dt.Rows.Add(5, "Mahendra", "CA", "Guntur");
dt.Rows.Add(6, "Honey", "B.Tech", "Nagpur");
gvwikireport.DataSource = dt;
gvwikireport.DataBind();
protected void btnExportToExcel_Click(object sender, EventArgs e)
Page.Response.ClearContent();
Page.Response.Buffer = true;
Page.Response.AddHeader("content-disposition", string.Format("attachment; filename={0}", "WikiReport.xls"));
Page.Response.ContentType = "application/ms-excel";
StringWriter sw = new StringWriter();
HtmlTextWriter htw = new HtmlTextWriter(sw);
gvwikireport.AllowPaging = false;
BindGridview();
//Change the Header Row back to white color
gvwikireport.HeaderRow.Style.Add("background-color", "#FFFFFF");
//Applying stlye to gridview header cells
for (int i = 0; i < gvwikireport.HeaderRow.Cells.Count; i++)
gvwikireport.HeaderRow.Cells[i].Style.Add("background-color", "#df5015");
gvwikireport.RenderControl(htw);
Page.Response.Write(sw.ToString());
Page.Response.End();
But after clicking the 'Export To Excel' button i am getting the below error
Control 'ctl00_SPWebPartManager1_g_d4fb972b_26ec_4065_9c89_80b51b384492_gvwikireport' of type 'GridView' must be placed inside a form tag with runat=server.
In case if i am modifying the code as below I am getting error as 'page can have only one server tag'.
<form id="frmgrdview" runat="server">
<asp:GridView ID="gvwikireport" runat="server">
</asp:GridView></form>
So please share your ideas/thoughts on the same.
Regards,
Sudheer
Thanks & Regards, SudheerHi,
According to your post, my understanding is that you fail to export to excel.
I create a demo as below, it works well.
<table>
<tr>
<td>
<asp:Label ID="Label1" runat="server" Text="Name"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:GridView ID="gvwikireport" runat="server">
</asp:GridView>
</td>
<td>
<br />
<asp:Button ID="btnExportToExcel" runat="server"
onclick="btnExportToExcel_Click" Text="Export to excel" />
</td>
</tr>
</table>
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Data;
using System.IO;
namespace Export_to_Excel.VisualWebPart1
public partial class VisualWebPart1UserControl : UserControl
protected void Page_Load(object sender, EventArgs e)
if (!Page.IsPostBack)
BindGridview();
private void BindGridview()
DataTable dt = new DataTable();
dt.Columns.Add("UserId", typeof(Int32));
dt.Columns.Add("UserName", typeof(string));
dt.Columns.Add("Education", typeof(string));
dt.Columns.Add("Location", typeof(string));
dt.Rows.Add(1, "SureshDasari", "B.Tech", "Chennai");
dt.Rows.Add(2, "MadhavSai", "MBA", "Nagpur");
dt.Rows.Add(3, "MaheshDasari", "B.Tech", "Nuzividu");
dt.Rows.Add(4, "Rohini", "MSC", "Chennai");
dt.Rows.Add(5, "Mahendra", "CA", "Guntur");
dt.Rows.Add(6, "Honey", "B.Tech", "Nagpur");
gvwikireport.DataSource = dt;
gvwikireport.DataBind();
protected void btnExportToExcel_Click(object sender, EventArgs e)
Page.Response.ClearContent();
Page.Response.Buffer = true;
Page.Response.AddHeader("content-disposition", string.Format("attachment; filename={0}", "WikiReport.xls"));
Page.Response.ContentType = "application/Excel";
StringWriter sw = new StringWriter();
HtmlTextWriter htw = new HtmlTextWriter(sw);
gvwikireport.AllowPaging = false;
BindGridview();
//Change the Header Row back to white color
gvwikireport.HeaderRow.Style.Add("background-color", "#FFFFFF");
//Applying stlye to gridview header cells
for (int i = 0; i < gvwikireport.HeaderRow.Cells.Count; i++)
gvwikireport.HeaderRow.Cells[i].Style.Add("background-color", "#df5015");
gvwikireport.RenderControl(htw);
Page.Response.Write(sw.ToString());
Page.Response.End();
The result is as below:
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Can anyone please tell me why these two pages are being
rendered so differently in IE than in FF and Safari?? The issue is
the search box form tag on the right side of the dark teal nav bar
in the header area. If I take that out, the spacing is fine in all
three browsers. When I put IN the form tag, despite fussing with
alignment and such, it pushes that table row too high only in IE.
It's still fine in Safari and Firefox.
Spacing is fine on this one without the search box:
http://www.energeticnutrition.com/contact-testlvh2-2.html
Spacing is too tall on the teal bar in this one with the
search box, only in IE.
http://www.energeticnutrition.com/contact-testlvh2-2.html
Any help...please??? :-)
Thanks!Lvanhoff wrote:
> Still not working...any ideas anyone?
>
>
http://www.energeticnutrition.com/contact2.html
>
> In FIrefox the alignment of the search box is perfect.
In IE, it's over too
> far to the left.
>
> I tried the agove fix but it didn't work...perhaps i
didn't implement
> correctly?
>
> I did:
> <form action="/search/search.php" method="get"
style="display: inline">
> <input onfocus="this.value=''" type="text"
name="query" id="query" size="35"
> value="Search..."
style="height:12px;font-size:12px;margin-top:0px;
> margin-bottom:0px;margin-right:2px"><input
type="hidden" name="search"
> value="1"></form>
>
> and on the style sheet
> }
> #searchbox {
> padding: 0;
> margin: 0;
> }
>
> Any other suggestions??
I see you have it sorted now, but one thing you should also
have done is
to remove the style information from the query input field,
as those
styles will override any style you set in the styles I gave
you. You
also had the style display: inline on the form which I said
to remove.
You also didn't give the form an id. The above code looks
like you
didn't try any of my suggestions, but I am glad someone else
found
another solution for you.
Dooza -
XMPTextInput control height ignored in Flex 3 Properties
I need to set my XMPTextInput controls so that they have a height of 32. I have tried this in many different ways and none of them work. In Flex 3 in "Design" mode I select the control, open the properties tab and set the height to 32. The control changes to the correct height. When I run the panel the control height of 32 is ignored and a small height is used.
I even tried starting from scratch with a form that contains only one XMPTextInput field and I am still unable to increase the height.
Any ideas??
FredJorg,
Thanks for the info. Will this be addressed in Flash Builder 4?. I am using the canvas form layout. What would be the best way to incorporate the xmpRead and xmpWrite events. Does this have to be done for every instance of an TextInput control? If so what would be the code to do this.
This is the code that I am currently using.
Fred
<?xml version="1.0" encoding="utf-8"?>
<fi:XMPForm
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:fi="com.adobe.xmp.components.*" width="1386" height="1000"
label="Image Info" fontSize="14">
<!-- Each namespace prefix that is used within an xmpPath-attribute,
MUST BE registered at the top of EACH panel where it is referenced -->
<fi:XMPNamespaces>
<fi:XMPNamespace prefix="dc" value="http://purl.org/dc/elements/1.1/"/>
<fi:XMPNamespace prefix="xmp" value="http://ns.adobe.com/xap/1.0/"/>
<fi:XMPNamespace prefix="xmpRights" value="http://ns.adobe.com/xap/1.0/rights/"/>
<fi:XMPNamespace prefix="my" value="http://ns.adobe.com/MyNamespace/"/>
<!-- Create namespace for Fisher Fotos specific metadata information -->
<fi:XMPNamespace prefix="FileInfoPanel" value="http://ns.fisherfotoshots.com/FileInfoPanel/"/>
</fi:XMPNamespaces>
<mx:Canvas fontFamily="Verdana" fontSize="14" cornerRadius="1" id="sep01" height="974" width="1362" fontStyle="normal" textAlign="left">
<mx:Label paddingLeft="10" paddingTop="10" text="Image Information" fontWeight="bold" fontStyle="italic" toolTip="This section contains general image information." width="50%" x="0" y="0"/>
<mx:Label text="Image Type" id="ImageType" fontStyle="italic" textAlign="right" toolTip="Select the image type." width="93" x="128" y="39.5"/>
<fi:XMPComboBox width="396" id="cboImageType" xmpPath="FileInfoPanel:ImageType" fontSize="14" x="239" y="32" height="36">
<mx:ArrayCollection id="arrayImageType">
<mx:Object label="Select Image Type" data="Select Image Type"/>
<mx:Object label="Single" data="Single"/>
<mx:Object label="Panorama" data="Panorama"/>
<mx:Object label="Collage" data="Collage"/>
<mx:Object label="High Dynamic Range" data="High Dynamic Range"/>
<mx:Object label="Other" data="Other"/>
</mx:ArrayCollection>
</fi:XMPComboBox>
<mx:Label text="# Of Images" width="136" fontStyle="italic" textAlign="right" id="NumberImages" toolTip="Select the number of images or use the default 01." top="44" left="756"/>
<fi:XMPComboBox x="900" y="32" width="219" id="cboNumberImages" xmpPath="FileInfoPanel:NumberImages" height="36">
<mx:ArrayCollection id="arrayImageNumber">
<mx:Object label="Select Number Of Images" data="Select Number Of Images"/>
<mx:Object label="01" data="01"/>
<mx:Object label="02" data="02"/>
<mx:Object label="03" data="03"/>
<mx:Object label="04" data="04"/>
<mx:Object label="05" data="05"/>
<mx:Object label="06" data="06"/>
<mx:Object label="07" data="07"/>
<mx:Object label="08" data="08"/>
<mx:Object label="09" data="09"/>
<mx:Object label="10" data="10"/>
<mx:Object label="11" data="11"/>
<mx:Object label="12" data="12"/>
<mx:Object label="13" data="13"/>
<mx:Object label="14" data="14"/>
<mx:Object label="15" data="15"/>
<mx:Object label="16" data="16"/>
<mx:Object label="17" data="17"/>
<mx:Object label="18" data="18"/>
<mx:Object label="19" data="19"/>
<mx:Object label="20 Or More" data="20 Or More"/>
</mx:ArrayCollection>
</fi:XMPComboBox>
<mx:Label x="67" y="86.75" text="Orientation" width="154" id="Orientation" fontStyle="italic" textAlign="right" toolTip="Select the image orientation. Horizontal=Landscape and Vertical=Portrait"/>
<fi:XMPComboBox x="239" y="79.25" width="396" id="cboOrientation" xmpPath="FileInfoPanel:Orientation" height="36">
<mx:ArrayCollection id="arrayOrientation">
<mx:Object label="Select Image Orientation" data="Select Image Orientation"/>
<mx:Object label="Horizontal" data="Horizontal"/>
<mx:Object label="Vertical" data="Vertical"/>
</mx:ArrayCollection>
</fi:XMPComboBox>
<mx:Label x="767.5" y="86.75" text="Calendar Usage" width="126" textAlign="right" fontStyle="italic" id="CalendarUsage" toolTip="Enter the month and year (ie. 10/2009) image was used in the calendar."/>
<fi:XMPTextInput x="901.5" width="395" height="27" xmpPath="FileInfoPanel:CalendarUsage" id="txtCalendarUsage" fontSize="14" allowCommas="true" xmpType="Text" fontFamily="Verdana" y="86"/>
<mx:Label x="76" y="133.5" text="Category" width="145" fontStyle="italic" textAlign="right" id="Category" toolTip="Select the primary image cateogry"/>
<fi:XMPComboBox x="239" y="126" width="396" id="cboCategory" xmpPath="FileInfoPanel:Catagory" height="36">
<mx:ArrayCollection id="arrayCategory">
<mx:Object label="Select Primary Category" data="Select Primary Catagory"/>
<mx:Object label="Landscape" data="Landscape"/>
<mx:Object label="Wildlife" data="Wildlife"/>
<mx:Object label="Underwater" data="Underwater"/>
<mx:Object label="Architecture" data="Architecture"/>
<mx:Object label="People" data="People"/>
<mx:Object label="Other" data="Other"/>
</mx:ArrayCollection>
</fi:XMPComboBox>
<mx:Label x="746" y="133.5" text="Sub-Category" width="144" fontStyle="italic" textAlign="right" id="SubCategory" toolTip="Select the secondary image category or use the default None."/>
<fi:XMPComboBox x="900.5" y="126" width="396" id="cboSubCategory" xmpPath="FileInfoPanel:SubCategory" height="36">
<mx:ArrayCollection id="arraySubCategory">
<mx:Object label="Select Secondary Category" data="Select Secondary Catagory"/>
<mx:Object label="None" data="None"/>
<mx:Object label="Landscape" data="Landscape"/>
<mx:Object label="Wildlife" data="Wildlife"/>
<mx:Object label="Underwater" data="Underwater"/>
<mx:Object label="People" data="People"/>
</mx:ArrayCollection>
</fi:XMPComboBox>
<fi:XMPSeparator x="10" y="180" width="1373" themeColor="#11110F" borderStyle="none" cornerRadius="2">
</fi:XMPSeparator>
<mx:Text x="10" y="200" text="Copyright And Release Information" id="txtCopyrightReleaseInfo" fontWeight="bold" fontStyle="italic" toolTip="Items in the section deal with copyright filing and releases."/>
<mx:Label x="48" y="231" text="© Registration Number" width="173" fontStyle="italic" textAlign="right" id="CopyrightNumber" toolTip="Enter the number provided by the Copyright Office."/>
<fi:XMPTextInput y="227" width="250" xmpPath="FileInfoPanel:CopyrightNumber" id="txtCopyrightNumber" height="27" x="239" borderThickness="1" cornerRadius="0" alpha="1.0" fontSize="14"/>
<mx:Label x="710" y="224" text="© Registration Name" width="180" fontStyle="italic" textAlign="right" id="CopyrightName" toolTip="Enter the name that you used to file this copyright application"/>
<fi:XMPTextInput x="898" y="220" width="398.5" height="27" xmpPath="FileInfoPanel:CopyrightName" id="txtCopyrightName" fontSize="14"/>
<mx:Label x="97" y="274.95" text="Model Release" width="124" id="ModelRelease" fontStyle="italic" textAlign="right" toolTip="If a model release was necessary for this image and was obtained select Yes. Otherwise leave this option set to No"/>
<fi:XMPComboBox x="239" y="267.45" width="107" id="cboModelRelease" xmpPath="FileInfoPanel:ModelRelease" height="36">
<mx:ArrayCollection id="arrayModelRelease">
<mx:Object label="Release?" data="Release?"/>
<mx:Object label="No" data="No"/>
<mx:Object label="Yes" data="Yes"/>
</mx:ArrayCollection>
</fi:XMPComboBox>
<mx:Label x="746" y="267.4" text="Property Release" width="144" id="PropertyRelease" fontStyle="italic" textAlign="right" toolTip="If a property release was necessary for this image and was obtained select Yes. Otherwise leave this option set to No"/>
<fi:XMPComboBox x="898" y="259.85" id="cboPropertyRelease" width="107" xmpPath="FileInfoPanel:PropertyRelease" height="36.1">
<mx:ArrayCollection id="arrayPropertyRelease">
<mx:Object label="Release?" data="Release?"/>
<mx:Object label="No" data="No"/>
<mx:Object label="Yes" data="Yes"/>
</mx:ArrayCollection>
</fi:XMPComboBox>
<mx:Label x="27" y="319" text="Date Of First Publication" width="194" id="DateOfFirstPublication" fontStyle="italic" textAlign="right" toolTip="Select Date of First Publication."/>
<fi:XMPDateField x="239" y="318.95" width="250" id="datDateOfFirstPublication" xmpPath="FileInfoPanel:DateOfFirstPublication" height="27" showToday="true" dateFormatString="MM/DD/YYYY"/>
<mx:Label x="647" y="319" text="Country Of First Publication" width="243" id="CountryOfFirstPublication" fontStyle="italic" textAlign="right" toolTip="Select or enter the Date of First Publication."/>
<fi:XMPTextInput x="898" y="318" width="250" id="txtCountryOfFirstPublication" xmpPath="FileInfoPanel:CountryOfFirstPublication" height="27" fontSize="14"/>
<fi:XMPSeparator x="10" y="354" width="1373" themeColor="#11110F" borderStyle="none" cornerRadius="2">
</fi:XMPSeparator>
<mx:Text x="10" y="374" text="Stock Agency and Website Information" width="712" fontWeight="bold" fontStyle="italic" id="txtStockAgencyWebsiteInfo" toolTip="Items in this section are for Stock Agency and Website information"/>
<mx:Label x="77" y="421.5" text="Stock Agency" width="151" fontStyle="italic" textAlign="right" id="StockAgency" toolTip="If the image has been uploaded to a stock agency, select the stock agency name. Otherwise leave the option set to None."/>
<fi:XMPComboBox x="239" y="414" width="250" id="cboStockAgency" xmpPath="FileInfoPanel:StockAgency" height="36">
<mx:ArrayCollection id="arrayStockAgency">
<mx:Object label="Stock Agency" data="Stock Agency"/>
<mx:Object label="None" data="None"/>
<mx:Object label="Alamy" data="Alamy"/>
</mx:ArrayCollection>
</fi:XMPComboBox>
<mx:Label x="710" y="421.5" text="Agency Upload Date" width="182.5" fontStyle="italic" textAlign="right" id="AgencyUploadDate" toolTip="Enter the date when the image was uploaded."/>
<fi:XMPDateField x="902" y="422" width="267" id="datAgencyUploadDate" xmpPath="FileInfoPanel:AgencyUploadDate" height="27" dateFormatString="MM/DD/YYYY"/>
<mx:Label x="129" y="466.75" text="Website" width="95" id="lblWebsite" fontStyle="italic" textAlign="right" toolTip="If the image has been uploaded to the company website select Yes. Otherwise select No."/>
<fi:XMPComboBox x="239" y="459" width="132" id="cboWebsite" xmpPath="FileInfoPanel:Website" height="36.5">
<mx:ArrayCollection id="arrayWebsite">
<mx:Object label="Uploaded?" data="Uploaded?"/>
<mx:Object label="No" data="No"/>
<mx:Object label="Yes" data="Yes"/>
</mx:ArrayCollection>
</fi:XMPComboBox>
<mx:Label x="710" y="466.75" text="Website Upload Date" width="182.5" fontStyle="italic" textAlign="right" id="WebsiteUploadDate0" toolTip="Enter the date when the image was uploaded."/>
<fi:XMPDateField x="902" y="466.75" width="267" id="datWebsiteUploadDate" xmpPath="FileInfoPanel:WebsiteUploadDate" height="27" dateFormatString="MM/DD/YYYY"/>
<fi:XMPSeparator x="10" y="512.5" width="1373" themeColor="#11110F" borderStyle="none" cornerRadius="2">
</fi:XMPSeparator>
<mx:Text x="10" y="532.5" text="Art Print Information" fontWeight="bold" fontStyle="italic" id="txtArtPrintInfo"/>
<mx:Label x="129" y="563.5" text="Art Print" width="102" id="ArtPrint" fontStyle="italic" textAlign="right" toolTip="If the image is to be sold as an Art Print select Yes, otherwise leave the default No selected."/>
<fi:XMPComboBox x="239" y="556" width="107" id="cboArtPrint" xmpPath="FileInfoPanel:ArtPrint" height="36">
<mx:ArrayCollection id="arrayArtPrint">
<mx:Object label="ArtPrint?" data="ArtPrint?"/>
<mx:Object label="No" data="No"/>
<mx:Object label="Yes" data="Yes"/>
</mx:ArrayCollection>
</fi:XMPComboBox>
<mx:Label x="77" y="607.5" text="Limited Edition" width="148" id="LimitedEdition" fontStyle="italic" textAlign="right" toolTip="If this is a limited edition select Yes, otherwise leave the default No selected."/>
<fi:XMPComboBox x="239" y="600" width="107" id="cboLimitedEdition" xmpPath="FileInfoPanel:LimitedEdition" height="36">
<mx:ArrayCollection id="arrayLimitedEdition">
<mx:Object label="Limited?" data="Limited?"/>
<mx:Object label="No" data="No"/>
<mx:Object label="Yes" data="Yes"/>
</mx:ArrayCollection>
</fi:XMPComboBox>
<mx:Label x="459" y="607.5" text="Edition Size" width="101" id="EditionSize" fontStyle="italic" textAlign="right" toolTip="Select the edition size."/>
<fi:XMPComboBox x="568" y="600" width="140" id="cboEditionSize" xmpPath="FileInfoPanel:EditionSize" height="36">
<mx:ArrayCollection id="arrayEditionSize">
<mx:Object label="Edition Size" data="Edition Size"/>
<mx:Object label="N/A" data="N/A"/>
<mx:Object label="100" data="100"/>
<mx:Object label="250" data="250"/>
<mx:Object label="500" data="500"/>
<mx:Object label="1000" data="1000"/>
<mx:Object label="2500" data="2500"/>
</mx:ArrayCollection>
</fi:XMPComboBox>
<mx:Label x="733" y="607.5" text="Sold Out" width="154" id="SoldOut" fontStyle="italic" textAlign="right" toolTip="If print is sold out, select Yes, if not leave it selected to No."/>
<fi:XMPComboBox x="902.5" y="600" width="120" id="cboSoldOut" xmpPath="FileInfoPanel:SoldOut" height="36">
<mx:ArrayCollection id="arraySoldOut">
<mx:Object label="Sold Out?" data="Sold Out?"/>
<mx:Object label="No" data="No"/>
<mx:Object label="Yes" data="Yes"/>
</mx:ArrayCollection>
</fi:XMPComboBox>
<mx:Label x="77" y="654.5" text="Finish Options" width="151" id="FinishOptions" fontStyle="italic" textAlign="right" toolTip="Select the print finish type."/>
<fi:XMPComboBox x="239" y="647" width="107" id="cboFinishOptions" xmpPath="FileInfoPanel:FinishOptions" height="36">
<mx:ArrayCollection id="arrayFinishOptions">
<mx:Object label="Options?" data="Options"/>
<mx:Object label="N/A" data="N/A"/>
<mx:Object label="Gloss" data="Gloss"/>
<mx:Object label="Satin" data="Satin"/>
<mx:Object label="Matte" data="Matte"/>
</mx:ArrayCollection>
</fi:XMPComboBox>
<mx:Label x="768.5" y="654.5" text="Paper Options" width="126" textAlign="right" fontStyle="italic" id="PaperOptions" toolTip="Enter the print paper options for the image."/>
<fi:XMPTextInput x="902.5" y="653.5" width="426" id="txtPaperOptions" xmpPath="FileInfoPanel:PaperOptions" height="27" fontSize="14" fontFamily="Verdana"/>
<mx:Label x="77" y="700" text="Printer Profile" width="151" id="PrinterProfile" fontStyle="italic" textAlign="right" toolTip="Enter the printer profile(s) used to print image."/>
<fi:XMPTextInput x="239" y="699" width="469" id="txtPrinterProfile" xmpPath="FileInfoPanel:PrinterProfile" allowCommas="True" height="27" fontSize="14" fontFamily="Verdana"/>
<mx:Label x="752.5" y="701" text="Release Date" width="142" fontStyle="italic" textAlign="right" id="ReleaseDate" toolTip="Enter the original release date for the image."/>
<fi:XMPDateField x="902.5" y="696" width="266.5" id="datReleaseDate" xmpPath="FileInfoPanel:ReleaseDate" height="27" dateFormatString="MM/DD/YYYY"/>
<mx:Label x="86.5" y="741" text="Print Size Options" width="142" textAlign="right" fontStyle="italic" id="PrintSize" toolTip="Enter available print sizes."/>
<fi:XMPTextInput x="239.5" y="740" width="468.5" id="txtPrintSize" xmpPath="FileInfoPanel:PrintSize" allowCommas="True" height="27" fontSize="14" fontFamily="Verdana"/>
<mx:Label x="705.5" y="741" text="Print Framing Options" width="188" id="FramingOptions" fontStyle="italic" textAlign="right" toolTip="Enter available framing options."/>
<fi:XMPTextInput x="901.5" y="740" width="395" id="TxtPrintFrame" xmpPath="FileInfoPanel:FramingOptions" allowCommas="True" height="27" fontSize="14" fontFamily="Verdana"/>
<fi:XMPSeparator x="10" y="782" width="1373" themeColor="#11110F" borderStyle="none" cornerRadius="2">
</fi:XMPSeparator>
<mx:Text x="10" y="802" text="Price Information" fontWeight="bold" fontStyle="italic" id="txtPriceInfo"/>
<mx:Label x="115" y="830" text="Wholesale Price" id="PrintWholesalePrice" fontStyle="italic" textAlign="right" toolTip="Enter the print Wholesale price."/>
<fi:XMPTextInput x="238" y="829" width="138" id="txtWholesalePrice" xmpType="Text" xmpPath="FileInfoPanel:PrintWholesalePrice" height="27" fontSize="14"/>
<mx:Label x="115" text="Retail Price" y="865" width="113" textAlign="right" fontStyle="italic" id="PrintRetailPrice" toolTip="Enter the print Retail price."/>
<fi:XMPTextInput x="239" y="864" width="137" id="txtRetailPrice" xmpType="Text" xmpPath="FileInfoPanel:PrintRetailPrice" height="27" fontSize="14"/>
<mx:Label x="736" y="862" text="Retail Framed Price" id="RetailFramePrice" fontStyle="italic" textAlign="right" width="158" toolTip="Enter retail framed print price."/>
<fi:XMPTextInput x="902" y="861" width="159" id="txtRetailFramedPrice" xmpType="Text" xmpPath="FileInfoPanel:RetailFramePrice" height="27" fontSize="14"/>
<fi:XMPSeparator x="5" y="1022" width="1373" themeColor="#11110F" borderStyle="none" cornerRadius="2">
</fi:XMPSeparator>
<mx:Label x="10" y="921" text="Image Info Panel © 2009 Fisher Fotos. Version 9.3.5. Last Modified 02/04/2010." id="txtPanelInfo" fontWeight="bold" fontStyle="italic" textAlign="center" width="1363"/>
<fi:XMPSeparator x="0" y="901" width="1373" themeColor="#11110F" borderStyle="none" cornerRadius="2">
</fi:XMPSeparator>
<fi:XMPSeparator x="0" y="952" width="1373" themeColor="#11110F" borderStyle="none" cornerRadius="2">
</fi:XMPSeparator>
</mx:Canvas>
</fi:XMPForm> -
How do I use dynamic JSP vars in a form tag with implicit sessions?
I'm using iAS 6 SP4 and 'lite' sessions w/ sticky LB on Win2K for development and need to use a dynamic variable (via an = scriptlet) to specify the URL a form tag's ACTION method posts to. The implicit URL session encoding attempts to add the hidden input tags to the form but part of it is getting cut off. If I remove the dynamic var scriptlet from the form tag it works fine. How can I use dynamic vars and implicit URL session encoding?
Here's my code sample:
<FORM NAME='Create' METHOD='POST' ACTION='<%= servletRootStr %>CreateServlet' TARGET='_top'>
Output is:
<FORM NAME='Create' METHOD='POST' ACTION='http://my.server.com/NASApp/WebStuffApp/Create' TARGET='_top'>T NAME="GXHC_gx_session_id_" TYPE="HIDDEN" VALUE="GXLiteSessionID--8351372849698357580" ></INPUT><INPUT NAME="GXHC_GX_jst" TYPE="HIDDEN" VALUE="d692bc3d662d6164" ></INPUT>
Because the <INPUT> tagon the first session var is cut off, up to the T, the page obviously fails. Can this be fixed with a config setting, or is it a bug in iPlanet??Thanks for helping me Anurag.
The problem I tried to solve was that I want the result from my service methods
in XML format. I thought a callback/polling was the best alternative, am I right?
Since the callback option doesn´t work I will try to poll the service.
Are there any other options for solving my problem??
Thanks again!!
/A
"Anurag Pareek" <[email protected]> wrote:
>
Andrej,
I guess you are trying to invoke a Webservice which defines a callback
method
from a JSP, and want the JSP to handle the callback made by the webservice.
For a client to be able to handle a callback made by a Webservice, it
has to be
a web service in itself.
Even some web service tools do not support 'Solicit responses' and hence
they
would not generate handlers for the callback methods by default. You
can download
a callback WSDL in such cases and implement it on the client side. The
server
side web service will then callback to that webservice.
The other option to callbacks is to use polling methods. This can be
done from
any client such as Java client/ JSP client or a .NET client.
Hope this helps. Let me know if you have any further questions.
Regards,
Anurag
"Andrej" <[email protected]> wrote:
I´ve tried this but with no success..
How do I recieve the data in a servlet/JSP-page?
Thanks. -
How do I maintain control of my form?
This is a bit "wordy", but here is the scoop. I'm using Microsoft Visual
Studio for VC++ in Windows 2000.
I made an application which had no form in it. So when I ran the
application, I just got a DOS box that showed some progress info. I then
decided to add a form... So I made a new application and started with
creating the form. Then I copied and pasted cpp code into places where I
thought they should go - leaving out the stuff that would print to the DOS
box. Pfff.....
The program works, but as soon as it gets into the meat of the real
application, I lose control of the form and can't change things.
Now... it is very likely that this may be due to the fact that the real
application is running all over the place and doesn't have time to bother
with the form - but I really think I should be able to get back to the form
so I can change things on the fly.
I should let you know that I'm using an SDK. I've noticed that the form
creates an area in the .cpp with event handlers - but my application uses
event handlers involved with the SDK. These event handlers are not active
until I hit the "Connect" button - and that is when I lose control.
I'll try to be a little more exact. I'm using the 3d chat - Active Worlds
SDK. The form takes information from two ini files and loads it. I hit the
connect button, it connects and the application runs fine - but I have lost
my form control at that point. Funny thing... before I hit connect - I
can't close or minimize the form yet I have control of the edit boxes in the
form and can load and save to ini files - but after I hit connect, the
minimize and close functions work, yet I can't get to the edit boxes. I
think the basic code is good - I just got some stuff out of place or I'm
missing a message somewhere along the way.
Got any clues?
Maybe I should have the real application separate
from the form? As it is right now, the real application is in the form
..cpp - the form .cpp does not call up the real application because it is
already there. I think that is my problem... but I don't know how to run
another .cpp from the form. I hope I am making sense here... Should I
study up a bit more on resourcing stuff? Thinking to myself... the form
should be running in one section of memory - and the application in another.
When I change the form, the form sends a message to the application and the
application adjusts itself. As it stands right now, since the main
application is in the form, the form code is ignored once the connect button
is hit. If I am correct, or if you have other suggestions, please give me a
hand here.
P2P2,
Are you developing an MFC application or a standard Win32 project? For an MFC application, the project should automatically be set up to handle messages which would respond to your UI interactions. For a Win32 application, you must ensure that you have a message dispatch loop. The following link has a good description of the Message Loop:
http://www.winprog.org/tutorial/message_loop.html
It may be that you are performing some operation that takes a very long time so the Message Loop handling (either in the MFC or Win32 app) is not being called often enough. In that case, you must see if it is possible to break up your operations so that the Mesasge Loop is still handled. A good way to take care of this is to fork a separate thread for the heavy operations to take place in.
If this is not related to the use of Measurement Studio controls, you may get a better or more detailed answer if you post this question on a generic Windows programming forum.
Thanks,
Tyler Tigue
Applications Engineer
National Instruments -
Legacy VB6 project. Can no longer add controls to the form.
Working on a VB6 project that has been in continuous use since 2002. Needed to make a simple mod and add a new control. Choosing any control and attempting to drag it on to the form always fails with a black circle with diagonal bar at the cursor
as soon as the cursor leaves the toolbox.
Reloaded VB6 and SP6. No luck.
Tried a new "Hello World" project but was unable to move any controls from toolbox.
Now the weird part. Went to 4 other old computers that have always worked in the past. All of them failed the "Hello World" test as well.
This is perfectly legal Microsoft Visual Studio Professional load from one of our old MSDN disks. Are these timebombed or something?
The program can be edited, compiled and run with no issues, I just can't add controls to any form.Hi
barry6789,
I am afraid that these forums donot support VB6, you could refer to this thread
Where to post your VB 6 questions
and consider posting this issue in these forums below:
These forums do not support Visual Basic 6, however there are many third-party support sites that do. If you have a VB6-related question please visit these popular forums:
VB Forums
VB City
Thanks for your understanding.
Regards.
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Help needed with Myfaces - tomahawk t:panelTabbedPane form tag iserted wh
when i Use tomahawk <t:panelTabbedPane> component, during rendering stage. its atomatically inserts <form> tag around it.
Is there any way to avoid this <form tag. because, I am using 3 tab column, and each tab has got its own form tag.
so in that case. there is <form> inside <form>, thats giving errors when using some javascript function with this..
is there any solution for thisHi,
Could you please tell us if you are using Sun Java Studio Creator for building your web application.
RK -
How to use Direct Access URL in the FORM tag
I want to substitute the pageid url (/servlet/page?_pageid=161&_dad=portal30&_schema=PORTAL30) with the direct access urls (pls/portal30/url/page/my_page) to address the pageid conflict between development server and production server.
It works perfectly fine in the redirection code such as:
self.location.href="/pls/portal30/url/page/next_page". But I got "Page can not be found" error message when I use it in the <FORM> tag:
<FORM ACTION="/pls/portal30/url/page/next_page" METHOD="POST" NAME="my_form">
Does anyone out there know how to use the direct access url inside the <FORM> tag? I am trying not to write a bunch of code just to retrieve and insert the pageid at the run time.
Thanks in advance.
ArthurUse condition. If you are validating a record, just out the desired check in the condition field for that specific item.
Thanks
Nagamohan -
Is there a workaround for inserting form tags?
Long time ago some developers found some bugs in the SWING class. The bug seems to appear when an HTML page pasted in the browser. Then the <form>-tags are disappeared while they can be found before pasting the HTML into the browser.
This is my code so far:
int pos = 0;
int i = 0;
body = getBodyContent();
JspWriter out = body.getEnclosingWriter();
HTMLKit = new HTMLEditorKit();
try {
out.println(body.getString());
body.clearBody();
String theQuery = "http://documentum1.europe.intranet/Docu2store:/list.htm?objectID=" + folderid + "&framed=yes|0&docstart=" + docstart;
try {
URL aURL = new URL( theQuery );
URLConnection conn = aURL.openConnection();
JEditorPane HTMLPane = new JEditorPane();
HTMLPane.setContentType("text/html");
HTMLPane.setPage(aURL);
HTMLPane.read( new InputStreamReader( conn.getInputStream() ), "Docu2store" );
//HTMLPane.read( new Reader (conn.getInputStream() ), "Docu2Store" );
HTMLDoc = (HTMLDocument) HTMLPane.getDocument();
//HTMLDoc.setBase(new URL ("http://documentum1.europe.intranet/"));
// Reading the form
HTMLDocument.Iterator form = HTMLDoc.getIterator(HTML.Tag.FORM);
//form.next();
Enumeration formEnum = form.getAttributes().getAttributeNames();
out.println (form.getAttributes().getAttributeNames());
out.println (form.getAttributes().getAttribute(formEnum.nextElement()).toString());
//form.next();
//out.println (form.getAttributes().getAttribute(formEnum.nextElement()).toString());
// Reading the links and replace them
HTMLDocument.Iterator theLinks = HTMLDoc.getIterator(HTML.Tag.A);
theLinks.next();
while (theLinks.isValid()) {
Enumeration theAttsEnum = theLinks.getAttributes().getAttributeNames();
String theValue = theLinks.getAttributes().getAttribute(theAttsEnum.nextElement()).toString();
if (theValue.indexOf("sorting", 0) > 0) {
i++;
int pageNum = giveItemUrl("docstart", theValue) + 1;
int startPosLink = theLinks.getStartOffset();
int endPosLink = theLinks.getEndOffset();
int linkLength = endPosLink - startPosLink;
try {
HTMLDoc.remove(startPosLink, linkLength);
String fid = giveItemUrlString("objectID", theValue);
String docstart = giveItemUrlString("docstart", theValue);
String sorting = giveItemUrlString("sortingfield", theValue);
HTMLKit.insertHTML(HTMLDoc, endPosLink - 1, "<a href='main.jsp?fid=" + fid + "&docstart="+docstart+"'>" + Integer.toString(pageNum) + "</a>", 0, 0, HTML.Tag.A);
} catch (BadLocationException ble) {
ble.printStackTrace();
out.println( i + "fout" );
theLinks.next();
HTMLPane.write(out);Insert HTML via InsertHTML() doesn't work! After writing the HTMLDocument, Java inserts extra <html> tags!
-
Interactive table control in Adobe forms
Dear gurus,
I am trying to create an interactive table control with header. The table control will have 10 rows, and I want the users to be able to enter values into the table.
I created a new node with cardinality 0...n; and added attributes under it. The I dragged that onto my design view and made duplicate entries of the rows to get 10 rows under the header.
Now the issues I am having are
1) The table is not visible in preview Pdf; I tried to save and activate the form, but still appears to be invisible
2) For some strange reason the table control in adobe forms is not as flexible as the one in webdynpro, where it is easier to bind the fields and send / recieve data from the interface.
~thanks and appreciate any comments.when your cardinality is 0..n you won't see it in preview mode.. you need to launch it from your dynpro & you will see it.
Also, if you know you're going to have 10 rows all the time, why not make the cardinality 1...n?
Nevertheless, I personallly wouldn't create the table in this method.
I would create the table in Web dynpro, add a column called "SeqNo" or whatever and pre-populate that field with 1 - 10. When you drag/drop your table from your Data View, just rt-click that column and hide it so your users won't see that field.
You'll have 10 rows displayed to the user each time and you won't worry about having to bind anything since it'll be done automagically. -
Hi!
am facing problem while submitting form through DropDown using onChange event!
Here i have two form tags and two drop down .in first form tag contain one drop down and
Second form tag contain another Drop down ..
when i change first drop down it redirects to the page properly, and i chose another drop down it redirect the page which is specified in first form tag,it is not redirect to the page which is specified in second form tag..
pls give me your suggestion regarding my issue...
<%
try{
Connection con,con1;
Statement st,st1;
ResultSet rs,rs1,rs2;
ResultSetMetaData rsm,rsm1;
List data=new ArrayList();
List data1=new ArrayList();
Iterator itr,itr1;
String val,val1;
int i=0;
String dep[]=new String[100];
int deplen;
String dsn="jdbc:odbc:project";
Class.forName("oracle.jdbc.driver.OracleDriver");
con=DriverManager.getConnection(dsn,"module7","module7");
st=con.createStatement();
rs=st.executeQuery("select collname from college");
while(rs.next())
data.add(rs.getString(1));
i++;
// rs1=st.executeQuery("select subcode from subject where sem not in '"+session.getAttribute("sem")+"' and dep='"+session.getAttribute("dep")+"' and sem1='"+session.getAttribute("mon1")+"' and currorarrear='Arrear' order by subcode");
%>
<form name="f1" action="Coll" method="POST" >
<table align="center" border="0">
<tr>
<td>Select the College</td>
<td>
<select class="red" name="coll" id="s11" onchange="this.form.submit();">
<option value="Select">--------Select--------</option>
<%
try{
for(itr=data.iterator();itr.hasNext();)
val=itr.next().toString();
//out.print("111");
%>
<option value="<%=val%>"><%=val%></option>
<%}%>
</select></td>
</tr>
</form><%}catch(Exception e){}%>
<form name="f2" action="CollDep" method="POST">
<%try{
data1=(ArrayList)session.getAttribute("dep");
if(session.getAttribute("dep").toString()!=null)
{%>
<tr>
<td>Select the Department</td>
<td><select name="univ" id="arr1" onchange="this.form.submit();">
<option>Department</option>
<%
for(itr=data1.iterator();itr.hasNext();)
val=itr.next().toString();
%>
<option value=<%=val%>><%=val%></option>
<%}%>
</select></td>
</tr></form><%}}catch(Exception e){}%>
</table>
<center><input type="submit" value="Submit" name="b1" onclick="" /></center>
<%
}catch(Exception e){out.println(e);}
%>
The [HTML specification|http://www.w3.org/TR/html401/] forbids you to nest <form> elements.
That said, writing raw Java code in a JSP file is a bad practice. It makes it hard to read as well. Keep business/data logic in Java classes (servlets, DAO's, beans) and use taglibs/EL only in JSP. -
Using function key instead of mouse click to control as bsp form
Hello,
Is it possible to use functionkeys or a keystroke (the arrowkeys) to control a BSP form?
Greetings, Edwinyou can use javascript to capture which key is pressed and act on it. do a google search on "javascript caputre key stroke" and you will find lot of code samples.
here is one such link
http://www.geekpedia.com/tutorial138_Get-key-press-event-using-JavaScript.html
Regards
Raja -
More than one h:form tag?
Hi, I have my pages setup with a header and footer page. So that each page does this:
home.jsp:
<%@ include file="/includes/header.jsp" %>
<%@ include file="/includes/footer.jsp" %>Now, both the header.jsp and footer.jsp pages use h:commandLink tags wrapped inside h:form tags. Like:
<h:form>
<h:commandLink id="myLink" action="myLink" title="#{resources.myLabel}" >
<h:outputText value="#{resources.myLabel}" />
</h:commandLink>
</h:form>The problem is that only the ones defined in the header page work. If I remove the h:form and all h:commandLink tags from the header page then the ones in the footer page work. Seems like if you setup your pages like this that only the first h:form block works. Whats the deal with that? Not sure if its because I'm mixing JSP with JSF and if there are problems with that but seems like making a header and footer page included on all pages is a legitimate approach, am I missing something?
Thanks for any help,
MikeAfter looking at my JavaScript console, I get the following JavaScript error when I click on a link in the second form:
Error: document.forms['Header:two']['Header:two:_idcl'] has no properties
I looked this bug up in the Bug Database and found it (5055795). It says its fixed, but unfortunately doesn't say what version its fixed in or where/when the fix is available. Does anybody have any clue where/when this fix will be available?
Thanks. -
h:commandLink requires form tag
Hi,
I do not know where to find an answer. If you could help me with that, I would be very grateful to you as I have encountered this problem many times.
The jsf programs that have h:commandLink in it works fine as an individual component. In reality, we develop application with a left hand side for menu and the right hand side for content display. We have a index.jsp (main) page with all the and <h:form> tags. Based on the menu selected, the content page will be displayed. The content page will have only the tags for content display and not the and <h:form> tags.
If the content page has a h:commandLink, it expects a <h:form> tag around it. If we include <h:form> tag in the content page, then it becomes a nested form as the index.jsp has already a <h:form> tag and the content page does not work as expected.
I am unaware of how to handle this situation if we have a h:commandLink/h:commandButton tag in the content page .. and the index.jsp has already 'form' tag in it.
I get the error message next to h:commandLink stating "This tag must be nested within
tag". Even though the main page has the form tag, this content page with the h:commandLink expects it. Not sure how to handle it.. Please suggest
Can you please let me know..
Thanks a lot
AishHi,
Yes. I get this error message on the IDE (I am using IBM RAD 7). As soon as I type the code, The ide displays the error message.
As you have suggested, I ran my code ignoring the error and the commandlink worked fine.
Thanks a lot for resolving my problem which has been for sometime.
Aishu
Maybe you are looking for
-
How to correct a boolean phrase in numbers?
Hi Guys, I have been using excel to create a top 5 formula which is rather complicated and I got it from the internet. I have transferred it into numbers but it does not work as it turns part of the formula into a boolean phrase, thus creating an er
-
Manual request for listener status/Tnsping/Agent Ping is possible in 10g
I want to see listener status like this from 10g GC. Is it possible ? LSNRCTL for 32-bit Windows: Version 9.2.0.3.0 - Production on 01-NOV-2006 10:06:40 Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved. Connecting to (ADDRESS=(PROTOC
-
Traverse JTable cells with arrow keys?
I want to be able to use arrow keys to travel in the matrix. But I want to restrict entering column 0. That is, the user should not be able to enter column 0, with the arrow keys (and neither using the mouse). Anyone have hints how to do this?
-
Solaris 8 Intel Installation Error: No suitable hard drives found
HI! I was trying to install the free Solaris 8 Intel Edition from CD. All devices were recognized. Afterwards, however, I get the message that no suitable place was found to store the installation image. What should a hard disk look like in order to
-
Hi, on 10gR2 on AIX, I have the following : RMAN> list backup; could not read file header for datafile 216 error reason 1 RMAN>Any explanation please ? Thank you.