Showing posts with label disappear. Show all posts
Showing posts with label disappear. Show all posts

Monday, March 26, 2012

DropshadowExtender disappear on gridview selected index changes

Hello,

I have a gridview inside a panel wich is inside an updatepanel. My problem is when I click on my gridview and I select a row the shado and the rounded corners of the panel around the gridview disappear.

I can see the dropshadowextender, only on the first page load, after it disappears. I can't find any solution to keep the rounded corner and the shadow

Please try your scenario with the recently available61121 release of the Toolkit (and ASP.NET AJAX Beta 2). If the problem persists, then please reply with acomplete, self-contained sample page that demonstrates the problem so that we can investigate the specific behavior you're seeing. Thank you!

Wednesday, March 21, 2012

dropdownlist disappear with ModalPopupExtender

My dropdownlist disappear if I useModalPopupExtender. It doesn't appear until there is any postback on the page.

Any solution?

Thanks,

Rahul Jain

Could you please provide more details on how your page is setup? Where is the dropdown list? A small self-sufficient repro would help. Thanks.

DropDownList & UpdatePanel

Ok,

I have an UpdatePanel and some DropDownList inside.

When I click on the button that do the callback, the dropdownlist disappear for few seconds and then reappear ?

I tried to see the same webpage with IE7 beta 2, and this not occour.

This is the ScriptManager instance:

<atlas:ScriptManagerID="ScriptManager1"runat="server"EnablePartialRendering="True">

<ErrorTemplate>

<divstyle="padding: 12px; width: 400px; height: 140px; border: #000000 1px solid;

background-color: white; text-align: left">

An error has occurred:<br/>

<spanid="errorMessageLabel"></span>

<br/>

<br/>

<inputid="okButton"type="button"value="OK"/>

</div>

</ErrorTemplate>

<Services>

<atlas:ServiceReferencePath="~/WebService.asmx"/>

</Services>

</atlas:ScriptManager>

Showing your code with UpdatePanel and DropDownList may help.

Waiting your code..

A.


This is the code, I hope somebody can help me.

<%@. Page Language="VB" MasterPageFile="~/AppMaster.master" Title="Section 2 -- Page 1" %>

<script runat="server">

Protected Sub LinkButton1_Click1(ByVal sender As Object, ByVal e As System.EventArgs)
If Me.DetailsView1.Visible = True Then
Me.DetailsView1.Visible = False
Me.Panel1.Visible = False
Me.LinkButton1.Text = "Visualizza testata"
Me.DropDownList4.Enabled = False
Me.DropDownList1.Enabled = False
Else
Me.DetailsView1.Visible = True
Me.Panel1.Visible = True
Me.LinkButton1.Text = "Nascondi testata"
Me.DropDownList4.Enabled = True
Me.DropDownList1.Enabled = True
End If
End Sub

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Me.Panel3.Visible = True
Dim focusJS As String = "setTimeout(""$('ctl00$mainCopy$Text1').focus(); "", 100);"
ClientScript.RegisterStartupScript(Me.GetType, "focusJS", focusJS, True)

Dim ObjArticolo As New InfoArticolo
Dim infArt As InfoArticolo.TipoInfoArticolo = ObjArticolo.InfArticolo(Me.DropDownList5.SelectedValue)

Dim qtDisp As Integer = infArt.disponibilita
If IsNumeric(Me.Text1.Value) Then
If qtDisp < CInt(Me.Text1.Value) Then
Me.LblQtMax.Visible = True
Me.LblQtMax.Text = "Quantita massima " & qtDisp & " pezzi"
Exit Sub
End If
Else
Exit Sub
End If

Me.LblQtMax.Visible = False
Me.LblQtMax.Text = String.Empty

Dim cc As Data.DataView = Me.ObjectDataSource1.Select()
cc.Sort = "IDArticolo"
Dim valore As Integer = cc.Find(Me.DropDownList5.SelectedValue)
If valore >= 0 Then
Exit Sub
End If


Me.ObjectDataSource1.InsertParameters(0).DefaultValue = Me.DropDownList5.SelectedValue
Me.ObjectDataSource1.InsertParameters(1).DefaultValue = Me.Text1.Value
Me.ObjectDataSource1.InsertParameters(2).DefaultValue = infArt.NumColli
Me.ObjectDataSource1.InsertParameters(3).DefaultValue = infArt.prezzo
Me.ObjectDataSource1.InsertParameters(4).DefaultValue = infArt.sconto

Me.ObjectDataSource1.Insert()
Me.GridView1.DataSourceID = "ObjectDataSource1"
Me.GridView1.DataBind()
Me.lblTotale.Visible = True
Me.Label14.Visible = True

Me.Text1.Value = ""

End Sub

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
If Not Page.IsPostBack Then
Me.LblDataOrdine.Text = DateTime.Now.ToString("dd/MM/yyyy")
Me.LblDataConsegna.Text = Now.AddDays(3).ToString("dd/MM/yyyy")
Dim ccc As New Samples.AspNet.ObjectDataSource.NorthwindData()
ccc.DeleteEmployee()
ScriptPerBottone()
Dim ContentPlaceHolder2 As Web.UI.WebControls.ContentPlaceHolder = Me.Master.FindControl("ContentPlaceHolder2")
ContentPlaceHolder2.Visible = False
End If

End Sub
Public Sub ScriptPerBottone()
Dim sb As System.Text.StringBuilder = New System.Text.StringBuilder()
sb.Append("if (typeof(Page_ClientValidate) == 'function') { ")
sb.Append("if (Page_ClientValidate() == false) { return false; }} ")
sb.Append("this.value = 'Attendere prego';")
sb.Append("this.disabled = true;")
sb.Append(Me.ClientScript.GetPostBackEventReference(Me.Button2, ""))
sb.Append(";")
Me.Button2.Attributes.Add("onclick", sb.ToString())
End Sub



Protected Sub DropDownList5_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
If Me.Panel2.Visible = False Then Panel2.Visible = True
Me.AggiornaDettagliArticolo()
End Sub


Private Sub AggiornaDettagliArticolo()
Dim ObjArticolo As New InfoArticolo
Dim infArt As InfoArticolo.TipoInfoArticolo = ObjArticolo.InfArticolo(Me.DropDownList5.SelectedValue)
Me.Label7.Text = infArt.CodiceArticolo
Me.Label8.Text = infArt.NumColli
Me.Label9.Text = infArt.disponibilita
Me.Label10.Text = infArt.prezzo
Me.Label11.Text = infArt.promozione
Me.Label12.Text = infArt.sconto
Me.Button1.Enabled = True

End Sub

Dim ObjArticolo As New InfoArticolo
Dim totale As Double = 0
Dim sconto As Double = 0

Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs)
If e.Row.RowType = DataControlRowType.DataRow Then
Dim myrow As WSUniprof.DSOrdine.DettaglioRow = CType(e.Row.DataItem, Data.DataRowView).Row
Dim infArt As InfoArticolo.TipoInfoArticolo = ObjArticolo.InfArticolo(myrow.IDArticolo)

Dim maxvalue As Integer = infArt.disponibilita \ myrow.NumColli

CType(e.Row.FindControl("LblArticolo"), Label).Text = infArt.Articolo
'CType(e.Row.FindControl("LabelArticolo"), Label).Text = infArt.Articolo
'CType(e.Row.FindControl("Webnumericedit1"), Infragistics.WebUI.WebDataInput.WebNumericEdit).MinValue = 1
'CType(e.Row.FindControl("Webnumericedit1"), Infragistics.WebUI.WebDataInput.WebNumericEdit).MaxValue = maxvalue
'CType(e.Row.FindControl("Label1"), Label).Text = maxvalue
'CType(e.Row.FindControl("LTotPezzi"), Label).Text = myrow.Quantita * myrow.NumColli
'CType(e.Row.FindControl("Lpromozione"), Label).Text = infArt.promozione

Dim totriga As Double = myrow.Prezzo * myrow.Quantita * myrow.NumColli
CType(e.Row.FindControl("Ltotale"), Label).Text = String.Format("{0:C2}", totriga)
totale += totriga
If totale > 5000 Then Me.LblOrdinePiccolo.Visible = False


' If e.Row.RowType = DataControlRowType.Footer Then
If Me.DropDownList2.SelectedValue = 72 Then sconto += totale * (0.015)

If sconto > 0 Then
' CType(e.Row.FindControl("LSconti"), Label).Text = "Sconti :" & String.Format("{0:C2}", sconto)
End If

Me.lblTotale.Text = String.Format("{0:C2}", totale - sconto)
'End If
End If


End Sub

Protected Sub GridView1_RowDeleted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewDeletedEventArgs)
Me.lblTotale.Text = String.Format("{0:C2}", totale - sconto)
End Sub

Protected Sub CBForzatura_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs)
If Me.CBForzatura.Checked = True Then
Me.LblOrdinePiccolo.Visible = False
Else
Me.LblOrdinePiccolo.Visible = False
End If
End Sub


Protected Sub Button2_Click1(ByVal sender As Object, ByVal e As System.EventArgs)
If CInt(Me.lblTotale.Text.Replace("€", "")) < 5000 AndAlso Me.CBForzatura.Checked = False Then
Me.LblOrdinePiccolo.Visible = True
Me.CBForzatura.Visible = True
CType(Me.SqlDataSource2.Select(DataSourceSelectArguments.Empty), Data.DataView)(0)(0).ToString()
Else
System.Threading.Thread.Sleep(4000)
Me.InserisciOrdine()
End If


End Sub

#Region "Inserimento Ordine"
Private Function InserisciOrdine() As Integer
Page.Validate()
If Page.IsValid Then
Dim DsOrdine1 As WSUniprof.DSOrdine
Dim mm As New Samples.AspNet.ObjectDataSource.NorthwindData

DsOrdine1 = mm.GetAllEmployees

Dim rowTestata As WSUniprof.DSOrdine.TestataRow = DsOrdine1.Testata.NewTestataRow
rowTestata.IDAgente = Profile.IDAnagrafica
rowTestata.IDCliente = Me.DropDownList1.SelectedValue
rowTestata.DataDocumento = Me.LblDataOrdine.Text
rowTestata.DataConsegna = Me.LblDataConsegna.Text
rowTestata.IDPriorita = Me.DropDownList2.SelectedValue
rowTestata.IndirizzoSpedizione = Me.DropDownList4.SelectedItem.Text
rowTestata.CapSpedizione = CType(Me.SqlDataSource2.Select(DataSourceSelectArguments.Empty), Data.DataView)(0)(1).ToString()
rowTestata.ComuneSpedizione = CType(Me.SqlDataSource2.Select(DataSourceSelectArguments.Empty), Data.DataView)(0)(2).ToString()
rowTestata.ProvSpedizione = CType(Me.SqlDataSource2.Select(DataSourceSelectArguments.Empty), Data.DataView)(0)(3).ToString()
rowTestata.IDPagamento = Me.DropDownList3.SelectedValue
rowTestata.note = Me.TextBoxNote.Text

DsOrdine1.Testata.AddTestataRow(rowTestata)

Dim WEBserv As New WSUniprof.ClassCliente
Dim numOrd As Integer = WEBserv.IserimentoOrdine(DsOrdine1, "Cervellione Giovanni", "malbec10")
If numOrd > 0 Then
' InviaOrdinePerEmail(numOrd)
' Session("LastMessage") = lingue.rm("msg4") & " " & numOrd
Else
' Session("LastMessage") = lingue.rm("msg3")
End If
Response.Redirect("default.aspx", False)
End If
End Function
#End Region
</script>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="mainCopy">

<script language="javascript" type="text/javascript">
// <!CDATA[

function ControllaValore(textbox) {
if (!IsNumeric(textbox.value)){textbox.value='';}
}

function IsNumeric(sText)
{
var ValidChars = "0123456789.";
var IsNumber=true;
var Char;


for (i = 0; i < sText.length && IsNumber == true; i++)
{
Char = sText.charAt(i);
if (ValidChars.indexOf(Char) == -1)
{
IsNumber = false;
}
}
return IsNumber;

}


function pickDate(Src){
window.open("CalendarPopUp_child.aspx?src=" + Src, "_blank", "height=255, width=240, left=100, top=100, " +
"location=no, menubar=no, resizable=no, " +
"scrollbars=no, titlebar=no, toolbar=no", true) ;
}

// ]]>
</script>

<atlas:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True">
<ErrorTemplate>
<div style="padding: 12px; width: 400px; height: 140px; border: #000000 1px solid;
background-color: white; text-align: left">
An error has occurred:<br />
<span id="errorMessageLabel"></span>
<br />
<br />
<input id="okButton" type="button" value="OK" />
</div>
</ErrorTemplate>
<Services>
<atlas:ServiceReference Path="~/WebService.asmx" />
</Services>
</atlas:ScriptManager>
<div class="container" id="DIV1" runat="server" style="width: 550px">
<p>
<atlas:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="Inline">
<ContentTemplate>
<table border="0" cellpadding="0" cellspacing="0" style="width: 550px">
<tr>
<td colspan="4" style="width: 550px">
<asp:Panel ID="Panel1" runat="server" Width="550px">
<h1>
Testata ordine</h1>
<p>
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; border-right: gainsboro 1px solid;
border-top: gainsboro 1px solid; border-left: gainsboro 1px solid; border-bottom: gainsboro 1px solid;">
<tr>
<td style="width: 100px; height: 17px; background-color: lavender;">
<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False" Text="Ordine"></asp:Label></td>
<td style="width: 100px">
<asp:Label ID="LblDataOrdine" runat="server" Text="Label"></asp:Label></td>
<td style="width: 100px; background-color: lavender;">
<asp:Label ID="Label4" runat="server" Font-Bold="True" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False" Text="Priorità"></asp:Label></td>
<td style="width: 100px">
<asp:DropDownList ID="DropDownList2" runat="server" Font-Size="10px">
<asp:ListItem Selected="True" Value="1">Contanti</asp:ListItem>
<asp:ListItem Value="74">Assegno circolare allo scarico</asp:ListItem>
<asp:ListItem Value="52">Assegno C/C allo scarico</asp:ListItem>
<asp:ListItem Value="72">Anticipato (sconto 1,5%)</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td style="width: 100px; height: 17px; background-color: lavender;">
<asp:LinkButton ID="LinkButton2" runat="server" Font-Bold="True" ForeColor="Black"
OnClientClick="pickDate('ctl00_mainCopy_LblDataConsegna')">Consegna</asp:LinkButton></td>
<td style="width: 100px">
<asp:TextBox ID="LblDataConsegna" runat="server" Font-Size="10px" Width="72px" ReadOnly="True"></asp:TextBox></td>
<td style="width: 100px; background-color: lavender;">
<asp:Label ID="Label5" runat="server" Font-Bold="True" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False" Text="Pagamento"></asp:Label></td>
<td style="width: 100px">
<asp:DropDownList ID="DropDownList3" runat="server" Font-Size="10px" Width="166px">
<asp:ListItem Selected="True" Value="2">Normale</asp:ListItem>
<asp:ListItem Value="4">Urgente</asp:ListItem>
<asp:ListItem Value="1">Sospeso</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td style="width: 100px; height: 17px; background-color: lavender;">
<asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False" Text="Cliente"></asp:Label></td>
<td colspan="3">
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1"
DataTextField="Cliente" DataValueField="IDAnagraficaCliente" Font-Size="10px"
Width="97%">
</asp:DropDownList></td>
</tr>
<tr>
<td style="width: 100px; height: 17px; background-color: lavender;">
<asp:Label ID="Label6" runat="server" Font-Bold="True" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False" Text="Indirizzo"></asp:Label></td>
<td colspan="3">
<asp:DropDownList ID="DropDownList4" runat="server" DataSourceID="SqlDataSource2"
DataTextField="Indirizzo" DataValueField="Indirizzo" Font-Size="10px" AutoPostBack="True"
Width="328px">
</asp:DropDownList></td>
</tr>
</table>
</p>
</asp:Panel>
</td>
</tr>
<tr>
<td colspan="4" rowspan="3" id="TDDettagliIndirizzo" style="visibility: visible;
width: 550px;">
<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataSourceID="SqlDataSource2"
Height="50px" Width="550px" BorderColor="ActiveBorder" BorderWidth="1px" CellPadding="4"
ForeColor="#333333" GridLines="None">
<Fields>
<asp:TemplateField HeaderText="Indirizzo" SortExpression="Indirizzo">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Indirizzo") %>'></asp:TextBox>
</EditItemTemplate>
<InsertItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Indirizzo") %>'></asp:TextBox>
</InsertItemTemplate>
<ControlStyle Width="300px" />
<ItemStyle Width="300px" />
<HeaderStyle Width="300px" />
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("Indirizzo") %>'></asp:Label>
</ItemTemplate>
<FooterStyle Width="300px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Cap" SortExpression="Cap">
<EditItemTemplate>
<asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Cap") %>'></asp:TextBox>
</EditItemTemplate>
<InsertItemTemplate>
<asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Cap") %>'></asp:TextBox>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Bind("Cap") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Comune" SortExpression="Comune">
<EditItemTemplate>
<asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Comune") %>'></asp:TextBox>
</EditItemTemplate>
<InsertItemTemplate>
<asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Comune") %>'></asp:TextBox>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Bind("Comune") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Provincia" SortExpression="Provincia">
<EditItemTemplate>
<asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("Provincia") %>'></asp:TextBox>
</EditItemTemplate>
<InsertItemTemplate>
<asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("Provincia") %>'></asp:TextBox>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="Label4" runat="server" Text='<%# Bind("Provincia") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Fields>
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<CommandRowStyle BackColor="#E2DED6" Font-Bold="True" />
<EditRowStyle BackColor="#999999" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<FieldHeaderStyle BackColor="#E9ECF1" Font-Bold="True" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
</asp:DetailsView>
</td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
<td align="right" colspan="4" rowspan="1" style="visibility: visible; padding-right: 10px;
width: 550px;">
<asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click1">Nascondi testata</asp:LinkButton></td>
</tr>
<tr>
<td class=" " colspan="4" rowspan="1" style="visibility: visible; width: 550px;">
<h1>
Dettaglio ordine</h1>
<br />
<asp:DropDownList ID="DropDownList5" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource3"
DataTextField="DescrizioneArticoloRidotta" DataValueField="IDArticolo" Font-Size="10px"
OnSelectedIndexChanged="DropDownList5_SelectedIndexChanged">
</asp:DropDownList>
<input onkeyup="ControllaValore(this)" id="Text1" style="width: 32px; font-size: 10px;"
type="text" runat="server" />
<asp:Button ID="Button1" runat="server" Text="Inserisci" OnClick="Button1_Click"
Enabled="False" />
<br />
<asp:Label ID="LblQtMax" runat="server" Visible="False" Font-Bold="True" ForeColor="Red"></asp:Label></td>
</tr>
<tr>
<td class=" " colspan="4" rowspan="1" style="visibility: visible; width: 550px; height: 82px;">
<asp:Panel ID="Panel2" runat="server" Visible="False" Width="550px" BorderColor="Silver"
BorderStyle="Solid" BorderWidth="1px">
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; border-top-width: 1px;
border-left-width: 1px; border-left-color: black; border-bottom-width: 1px; border-bottom-color: black;
border-top-color: black; border-right-width: 1px; border-right-color: black;">
<tr>
<td style="width: 100px; height: 16px; background-color: lavender;">
<strong>Codice</strong></td>
<td style="width: 100px; height: 16px;">
<asp:Label ID="Label7" runat="server" Text="Label" Font-Overline="False"></asp:Label></td>
<td style="width: 100px; height: 16px; background-color: lavender;">
<strong>Prezzo</strong></td>
<td style="width: 100px; height: 16px;">
<asp:Label ID="Label10" runat="server" Text="Label"></asp:Label></td>
</tr>
<tr>
<td style="width: 100px; background-color: lavender; height: 16px;">
<strong>Pezzi per cassa</strong></td>
<td style="width: 100px; height: 16px;">
<asp:Label ID="Label8" runat="server" Text="Label"></asp:Label></td>
<td style="width: 100px; background-color: lavender; height: 16px;">
<strong>Promozione</strong></td>
<td style="width: 100px; height: 16px;">
<asp:Label ID="Label11" runat="server" Text="Label"></asp:Label></td>
</tr>
<tr>
<td style="width: 100px; background-color: lavender; height: 20px;">
<strong>Disponibilita'</strong></td>
<td style="width: 100px; height: 20px;">
<asp:Label ID="Label9" runat="server" Text="Label"></asp:Label></td>
<td style="width: 100px; background-color: lavender; height: 20px;">
<strong>Sconto</strong></td>
<td style="width: 100px; height: 20px;">
<asp:Label ID="Label12" runat="server" Text="Label"></asp:Label></td>
</tr>
</table>
</asp:Panel>
</td>
</tr>
<tr>
<td class=" " colspan="4" rowspan="1" style="visibility: visible; width: 550px;"
valign="top">
<asp:GridView ID="GridView1" runat="server" SkinID="booksSkin" AutoGenerateColumns="False"
DataKeyNames="IDArticolo" DataSourceID="ObjectDataSource1" Width="550px" OnRowDataBound="GridView1_RowDataBound"
OnRowDeleted="GridView1_RowDeleted" Font-Size="10px">
<Columns>
<asp:TemplateField HeaderText="Articolo" SortExpression="IDArticolo">
<EditItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Eval("IDArticolo") %>'></asp:Label>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="LblArticolo" runat="server" Text='<%# Bind("IDArticolo") %>'></asp:Label>
</ItemTemplate>
<ItemStyle HorizontalAlign="Left" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Qt" SortExpression="Quantita">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Quantita") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Bind("Quantita") %>'></asp:Label>
</ItemTemplate>
<ItemStyle HorizontalAlign="Right" />
</asp:TemplateField>
<asp:TemplateField HeaderText="PzxCs" SortExpression="NumColli">
<EditItemTemplate>
<asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("NumColli") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Bind("NumColli") %>'></asp:Label>
</ItemTemplate>
<ItemStyle HorizontalAlign="Right" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Prezzo" SortExpression="Prezzo">
<EditItemTemplate>
<asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Prezzo") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label4" runat="server" Text='<%# Bind("Prezzo") %>'></asp:Label>
</ItemTemplate>
<ItemStyle HorizontalAlign="Right" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Totale">
<EditItemTemplate>
<asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
</EditItemTemplate>
<FooterTemplate>
<asp:Label ID="LblTotale" runat="server" Text="Label"></asp:Label>
</FooterTemplate>
<ItemTemplate>
<asp:Label ID="Ltotale" runat="server"></asp:Label>
</ItemTemplate>
<ItemStyle HorizontalAlign="Right" />
</asp:TemplateField>
<asp:TemplateField ShowHeader="False">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
Text="Delete"></asp:LinkButton>
</ItemTemplate>
<FooterStyle HorizontalAlign="Right" />
<FooterTemplate>
<asp:Label ID="LTotOrdine" runat="server" EnableViewState="False" Font-Bold="True"></asp:Label>
</FooterTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>

</td>
</tr>
<tr>
<td align="right" class=" " colspan="4" rowspan="1" style="visibility: visible; width: 550px;">
<asp:Label ID="Label14" runat="server" Text="Totale ordine : " Visible="False"></asp:Label>
<asp:Label ID="lblTotale" runat="server" Text="Label" Visible="False"></asp:Label></td>
</tr>
<tr>
<td align="left" class=" " colspan="4" rowspan="1" style="width: 550px; height: 82px;">
<br />
<asp:Panel ID="Panel3" runat="server" Visible="False" Width="550px">
inserire qui le note
<br />
<asp:TextBox ID="TextBoxNote" runat="server" Width="100%" TextMode="MultiLine"></asp:TextBox>
<br />
<asp:Button ID="Button2" runat="server" Text="Inserisci Ordine" OnClick="Button2_Click1" />
<asp:Label ID="LblOrdinePiccolo" runat="server" Text="Ordine inferiore a 5.000 euro"
ForeColor="Red" Visible="False"></asp:Label>
<asp:CheckBox ID="CBForzatura" runat="server" Text="Forza ordine" Visible="False"
AutoPostBack="True" OnCheckedChanged="CBForzatura_CheckedChanged" /></asp:Panel>
</td>
</tr>
</table>

</ContentTemplate>
</atlas:UpdatePanel>
</p>
</div>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DiamanteConnectionString %>"
SelectCommand="SELECT DISTINCT Cliente, IDAnagraficaCliente FROM RVClientiPerAgente WHERE (IDAnagraficaAgente = @.IDAnagrafica) ORDER BY Cliente">
<SelectParameters>
<asp:ProfileParameter Name="IDAnagrafica" PropertyName="IDAnagrafica" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:DiamanteConnectionString %>"
SelectCommand="SELECT DISTINCT Indirizzo, Cap, Comune, Provincia FROM RVClientiPerAgente WHERE (IDAnagraficaCliente = @.IDAnagraficaCliente)">
<SelectParameters>
<asp:ControlParameter ControlID="DropDownList1" Name="IDAnagraficaCliente" PropertyName="SelectedValue" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:DiamanteConnectionString %>"
SelectCommand="SELECT [IDArticolo], [DescrizioneArticoloRidotta] FROM [RVRepArticolo] WHERE ([disponibilita2] > @.disponibilita2) ORDER BY [DescrizioneArticoloRidotta]">
<SelectParameters>
<asp:Parameter DefaultValue="0" Name="disponibilita2" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:DiamanteConnectionString %>"
SelectCommand="SELECT IDArticolo, CodiceArticolo,Numcolli, prezzoAgente, DescrizioneArticoloRidotta, disponibilita2, PrezzoPromozione, prezzo FROM RVRepArticolo WHERE (IDArticolo = @.IDArticolo) ORDER BY DescrizioneArticoloRidotta">
<SelectParameters>
<asp:ControlParameter ControlID="DropDownList5" DefaultValue="0" Name="IDArticolo"
PropertyName="SelectedValue" />
</SelectParameters>
</asp:SqlDataSource>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="GetAllEmployees" TypeName="Samples.AspNet.ObjectDataSource.NorthwindData"
InsertMethod="InsertEmployee" DeleteMethod="DeleteEmployee">
<InsertParameters>
<asp:Parameter Name="id" Type="Int32" />
<asp:Parameter Name="dd" Type="Int32" />
<asp:Parameter Name="ss" Type="Int32" />
<asp:Parameter Name="vv" Type="Decimal" />
<asp:Parameter Name="ll" Type="Int32" />
</InsertParameters>
<DeleteParameters>
<asp:Parameter Name="id" Type="Int32" />
<asp:Parameter Name="dd" Type="Int32" />
<asp:Parameter Name="ss" Type="Int32" />
<asp:Parameter Name="vv" Type="Decimal" />
<asp:Parameter Name="ll" Type="Int32" />
</DeleteParameters>
</asp:ObjectDataSource>
</asp:Content>