ok visualizzazione orizzontale

This commit is contained in:
samuele
2012-10-01 19:07:52 +02:00
parent a64189df2e
commit 20323da062
6 changed files with 58 additions and 4 deletions
+3 -3
View File
@@ -19,9 +19,9 @@
<asp:Label runat="server" ID="lblCodBlocco" Font-Bold="true" Text='<%# Eval("CodBlocco") %>' />&nbsp;-&nbsp;
<asp:Label runat="server" ID="lblDescBlocco" Font-Bold="true" Text='<%# Eval("DescBlocco") %>' />
<br />
<asp:Label ID="Label1" runat="server" Text='<%# Eval("NumUDC","{0}U") %>' />
<asp:Label ID="Label1" runat="server" Text='<%# Eval("NumUDC","{0} UDC") %>' />
&nbsp;/&nbsp;
<asp:Label ID="Label2" runat="server" Text='<%# Eval("QtaTotPz","{0:0}pz") %>' />
<asp:Label ID="Label2" runat="server" Text='<%# Eval("QtaTotPz","{0:0} pz") %>' />
</asp:LinkButton>
</div>
</div>
@@ -37,7 +37,7 @@
PreviousPageText="prec." PreviousPageImageUrl="../images/ArrowUp.png" />
<asp:TemplatePagerField>
<PagerTemplate>
&nbsp;
<asp:Button ID="btnButtonsHome" runat="server" OnClick="btnButtonsHome_Click" CssClass="btnHome" Text="Ricerca" AccessKey="6" />
</PagerTemplate>
</asp:TemplatePagerField>
<asp:NextPreviousPagerField ButtonType="Image" ShowPreviousPageButton="False" ShowNextPageButton="True"
+55 -1
View File
@@ -4,6 +4,7 @@ using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
namespace GMW_Term.WebUserControls
{
@@ -11,12 +12,65 @@ namespace GMW_Term.WebUserControls
{
protected void Page_Load(object sender, EventArgs e)
{
try
{
((Button)dtPager.FindControl("btnButtonsHome")).Text = string.Format("{0}\n[Alt+{1}]", "Ricerca", 6);
((Button)dtPager.FindControl("btnButtonsHome")).AccessKey = "6";
}
catch
{ }
}
protected void dtList_SelectedIndexChanged(object sender, EventArgs e)
{
// cliccato, recupero argument...
}
/// <summary>
/// va alla pagina dei buttons principale
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnButtonsHome_Click(object sender, EventArgs e)
{
Response.Redirect("~/Search.aspx");
}
#if false
/// <summary>
/// link del pulsante HOME
/// </summary>
public string homeBtnLink
{
set
{
_homeBtnLink = value;
traduciObj();
}
get
{
return _homeBtnLink;
}
}
string _homeBtnText = "Home";
string _homeBtnLink = "~/Home.aspx";
/// <summary>
/// traduce stringhe oggetti
/// </summary>
protected void traduciObj()
{
//// scrive label e text bottoni
//btnButtonsHome.Text = string.Format("{0}\n[Alt+{1}]", traduci(_homeBtnText), 9);
//btnButtonsHome.AccessKey = "9";
}
/// <summary>
/// wrapper traduzione termini
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(string lemma)
{
return user_std.UtSn.Traduci(lemma);
}
#endif
}
}
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
View File
Binary file not shown.