bonjour à tous!
je dois concevoir une page pour effectuer une enquête auprès des internautes en vb.net
j'ai pensé à utiliser un multiview composé de plusieurs views avec des radiobuttonlist,mais au moment de l'insert il me renvoit cette erreur et j'y comprend rien!
prière de m'éclairer pour la signification
System.Data.SqlClient.SqlException: Les données chaîne ou binaires seront tronquées. L'instruction a été arrêtée. à System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) à System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) à System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) à System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) à System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) à System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) à System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) à System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) à System.Data.SqlClient.SqlCommand.ExecuteNonQuery() à Old.Page4SaveButton_Click(Object sender, EventArgs e) dans \Visual Studio 2005\WebSites\ENQUETE\Old.aspx.vb:ligne 26
voici mon code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
| <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Old.aspx.vb" Inherits="Old" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Page sans titre</title>
</head>
<body>
<form id="form1" runat="server">
<h5>Enquête de Satisfaction</h5>
<asp:Panel id="Page1ViewPanel"
HorizontalAlign="Left"
Font-size="12"
BorderColor="#404040"
BorderStyle="Double"
runat="Server" Width="986px" >
<asp:MultiView id="DevPollMultiView" ActiveViewIndex="0" runat="Server">
<asp:View id="Page1"
runat="Server">
<asp:Label id="Page1Label"
Font-bold="True"
Text="A-Satisfaction logiciels et Systèmes"
runat="Server"
AssociatedControlID="Page1"></asp:Label>
<br />
<br/>
<asp:Label ID="Label2" runat="server" Font-Bold="True" ForeColor="Red" Text="1. Etes vous satisfait des LOGICIELS ou SYSTEMES suivants:"></asp:Label><br />
<br/>
<br/>
<table style="width: 962px">
<tr>
<td style="width: 4591px; height: 1px">
<asp:Label ID="Label3" runat="server" Text="Messagerie"></asp:Label><br />
</td>
<td style="height: 1px; width: 1761px;">
<asp:RadioButtonList ID="RadioButtonList1" runat="server" Height="20px" RepeatDirection="Horizontal" Width="583px">
<asp:ListItem>Satisfait</asp:ListItem>
<asp:ListItem>Plutôt Satisfait</asp:ListItem>
<asp:ListItem>Plutôt Insatisfait</asp:ListItem>
<asp:ListItem>Insatisfait</asp:ListItem>
<asp:ListItem>Sans opinion</asp:ListItem>
</asp:RadioButtonList></td>
</tr>
</table>
<asp:Button id="Page1Next"
Text = "Suivant>>"
CommandName="NextView"
Height="25"
Width="88px"
runat= "Server" Font-Names="Verdana">
</asp:Button>
</asp:View>
<asp:View id="Page2"
runat="Server">
<br/><br/>
<asp:Label id="Label13"
Font-bold="True"
Text="B-Satisfaction Réseau, Internet et Sécurité"
runat="Server"
AssociatedControlID="Page1"></asp:Label>
<br />
<br/>
<asp:Label ID="Label14" runat="server" Font-Bold="True" ForeColor="Red" Text="1. Etes vous satisfait de la qualité du réseau informatique"></asp:Label><br />
<br/>
<table style="width: 962px">
<tr>
<td style="width: 4591px; height: 1px">
<asp:Label ID="Label15" runat="server" Text="Disponibilité"></asp:Label><br />
</td>
<td style="height: 1px; width: 1761px;">
<asp:RadioButtonList ID="rbVersion" runat="server" Height="20px" RepeatDirection="Horizontal" Width="583px">
<asp:ListItem>Satisfait</asp:ListItem>
<asp:ListItem>Plutôt Satisfait</asp:ListItem>
<asp:ListItem>Plutôt Insatisfait</asp:ListItem>
<asp:ListItem>Insatisfait</asp:ListItem>
<asp:ListItem>Sans opinion</asp:ListItem>
</asp:RadioButtonList></td>
</tr>
</table>
<asp:Button id="Page2Back"
Text = "Previous"
CommandName="PrevView"
Height="25"
Width="70"
runat= "Server">
</asp:Button>
<asp:Button id="Page2Next"
Text = "Suivant>>"
CommandName="NextView"
Height="25"
Width="84px"
runat="Server" Font-Names="Verdana">
</asp:Button>
</asp:View>
<asp:View id="Page4"
runat="Server">
<asp:Label id="Label1"
Font-bold="true"
Text = "Thank you for taking the survey."
runat="Server"
AssociatedControlID="Page4">
</asp:Label>
<br/><br/><br/><br/><br/><br/>
<asp:Button id="Page4Save"
Text = "Save Responses"
OnClick="Page4SaveButton_Click"
Height="25"
Width="110"
runat="Server">
</asp:Button>
<asp:Button id="Page4Restart"
Text = "Retake Survey"
commandname="SwitchViewByID"
commandargument="Page1"
Height="25"
Width="110"
runat= "Server">
</asp:Button>
</asp:View>
</asp:MultiView>
</asp:Panel>
</form>
</body>
</html> |
Partager