HOW to ADD,MODIFY, and DELETE RECORD on the table/database connected (via ODBC) on Expression page??Hi All,<br/> <br/> On the expression web page, i created default.aspx page and insert sqldatasource, then used GridView to connect a .dbf database thru ODBC. Now I can have a web-based view of the database remotely. <br/> <br/> But if i want to create page to be able to insert, modify/edit, and delete the record of the connected database, how to do it in Expression Web 2??<br/> <br/> Any one did that or has some idea of that? I do appreciate it. Thanks much.<br/> <br/> Regards,© 2009 Microsoft Corporation. All rights reserved.Mon, 06 Jul 2009 18:24:14 Zc748f967-aebf-46ae-b49a-7dc1fb143382http://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#c748f967-aebf-46ae-b49a-7dc1fb143382http://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#c748f967-aebf-46ae-b49a-7dc1fb143382mollysunhttp://social.expression.microsoft.com/Profile/en-US/?user=mollysunHOW to ADD,MODIFY, and DELETE RECORD on the table/database connected (via ODBC) on Expression page??Hi All,<br/> <br/> On the expression web page, i created default.aspx page and insert sqldatasource, then used GridView to connect a .dbf database thru ODBC. Now I can have a web-based view of the database remotely. <br/> <br/> But if i want to create page to be able to insert, modify/edit, and delete the record of the connected database, how to do it in Expression Web 2??<br/> <br/> Any one did that or has some idea of that? I do appreciate it. Thanks much.<br/> <br/> Regards,Tue, 30 Jun 2009 18:40:31 Z2009-06-30T18:40:31Zhttp://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#61814f6d-30a1-4498-ad32-7aca02c37030http://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#61814f6d-30a1-4498-ad32-7aca02c37030ClarkNKhttp://social.expression.microsoft.com/Profile/en-US/?user=ClarkNKHOW to ADD,MODIFY, and DELETE RECORD on the table/database connected (via ODBC) on Expression page??Take a look at the tutorials in my signature.<hr class="sig">ClarkNK, QVP<br/> HomePage Doctor CHO <br/> <a href="http://www.HomePageDoctor.com">HomePageDoctor.com</a> -- Expression Web database tutorials <br/> <a href="http://www.ownertrades.com">Ownertrades.com</a> -- Created with FP, Access, Bots and Wizards <br/> <a href="http://www.mynumberstracker.com">MyNumbersTracker.com</a> -- Created with Expression, VWDExress, SQL Express, and ASP.NET. Tue, 30 Jun 2009 18:56:44 Z2009-06-30T18:56:44Zhttp://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#4d15e973-c225-44ca-96b3-d2e5ccfa3cd3http://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#4d15e973-c225-44ca-96b3-d2e5ccfa3cd3Preston Bhttp://social.expression.microsoft.com/Profile/en-US/?user=Preston%20BHOW to ADD,MODIFY, and DELETE RECORD on the table/database connected (via ODBC) on Expression page??There are a ton of tutorials regarding Asp.Net development. You can click the Learn tab at the top of this page, then select Expression Web. There are tutorials for working with Asp.Net data controls.<br/><br/>You could also downloaad and install Visual Web Develope,r and use it for your database work; that's one of its forte's. There are some great tutorials for working with data at: <a href="http://www.asp.net/learn/">http://www.asp.net/learn/</a><br/><br/>In EW, if you already have a GridView control, you can modify the DataSource to enable the Insert, Edit, and Delete methods. In design view, click the little arrow at the top-right corner of the control (GridView Tasks), Select your DataSource and modify it through the wizard. Basically, what the wizard does is create the SQL statments that enable the methods you want to use.<br/><br/>Before doing the above, I strongly encourage you to review the tutorials so that you really understand what it is you are attempting to accomplish. It will dividends down the road.<br/><br/>-Preston<hr class="sig">Columbia, CA. USA http://www.gildedmoon.comTue, 30 Jun 2009 19:02:15 Z2009-06-30T19:02:15Zhttp://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#cf10c38c-1a8e-4c2b-8e7b-612a1eb4a859http://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#cf10c38c-1a8e-4c2b-8e7b-612a1eb4a859mollysunhttp://social.expression.microsoft.com/Profile/en-US/?user=mollysunHOW to ADD,MODIFY, and DELETE RECORD on the table/database connected (via ODBC) on Expression page??Now i have some specific question that i cannot find it on tutorials... about the SQL statements<br/> <br/> When i tried to configure my datasource, cause i am using ODBC connection to .DBF database not normal .mdb Access database,  in the wizard, it only has the page that let me &quot;Define Custom Statements or Stored Procedures&quot; with no other options like for .mdb database i guess.   I must write my own sql statement for &quot;SELECT&quot;, &quot;UPDATE&quot;, &quot;INSERT&quot;, &quot;DELETE&quot; and the &quot;Query Builder&quot; doesn't work.  <br/> <br/> So i am very confused here cause i don't know what sql statements to put under those four tabs. <br/> If for SELECT, it might be simple as &quot;SELECT * FROM databasename&quot;, but for UPDATE? i want to let web admin update any data under any column he might change in one row at a time, so how can i put that sql??<br/> <br/> and for &quot;INSERT&quot;, now i put:<br/> <br/> INSERT INTO DATABASENAME (column 1, 2, 3, 4, 5) VALUES (&quot; &quot;,&quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;)  Then when i run it, it shows up it insert a blank row..cause there's no specific values..  <br/> <br/> and for Delete, i want to set like admin can delete any one row at a time, but i don't how to put the sql<br/> <br/> cry for help :(  Much Thanks<br/> <br/>Wed, 01 Jul 2009 15:37:29 Z2009-07-01T15:37:29Zhttp://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#1144f3ff-6015-4b0b-af0e-49c8dfa7088ehttp://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#1144f3ff-6015-4b0b-af0e-49c8dfa7088ePreston Bhttp://social.expression.microsoft.com/Profile/en-US/?user=Preston%20BHOW to ADD,MODIFY, and DELETE RECORD on the table/database connected (via ODBC) on Expression page??I use a DetailsView Asp.Net control that uses a SQLDataSource connected to a *mdf file. In the wizard for that control, you can enable Insert, Edit, and Delete methods. Note that I am using a SQLDataSource; <em>not</em> ODBC. IIRC, the Jet dB Engine (Used by ODBC and Access mdb files) uses SQL syntax that is different from the SQL statements used by the SQL Server engine. Therefore, the query builders in the SQLDataSource and ODBC wizards in EW will have different options.<br/><br/>Mike Wachal (MSFT), over at the SQL Server Express forum, posted this helpful paragraph yesterday:<br/><br/>&quot;If you're new to using SQL Server, you may want to check out the Absolute Beginners video series, the first video is at <a href="http://www.facultyresourcecenter.com/curriculum/pfv.aspx?ID=6686"><span style="color:#0033cc">http://www.facultyresourcecenter.com/curriculum/pfv.aspx?ID=6686</span></a> and you'll find links to the remaining videos. These tutorials will walk you through the basics of how to work with SQL Express. Many of the concepts will be familiar to you if you've worked with Access/Jet, but this will give you examples of how things work differently in SQL Server.&quot;<br/><br/>I hope this helps get things sorted out for you.<br/><br/>-Preston<br/><hr class="sig">Columbia, CA. USA http://www.gildedmoon.comWed, 01 Jul 2009 16:45:30 Z2009-07-01T16:45:30Zhttp://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#da8d5963-b46e-49fa-bd6a-dbcc74ea615fhttp://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#da8d5963-b46e-49fa-bd6a-dbcc74ea615fmollysunhttp://social.expression.microsoft.com/Profile/en-US/?user=mollysunHOW to ADD,MODIFY, and DELETE RECORD on the table/database connected (via ODBC) on Expression page??I updated &quot;INSERT&quot; code to become :  <br/> <br/> INSERT INTO MAIT2(NAME, CONTACT, ACCOUNT,MAILTO, MAILCC, MAILFROM, SERVER, PORT, USER, PASS, AUTH)<br/> VALUES(?,?,?,?,?,?,?,?,?,?,?)<br/> <br/> <br/> AND it WORKS!<br/> <br/> <br/> But i tried to update &quot;UPDATE&quot; code like:<br/> <br/> UPDATE MAIT2 SET NAME=?, CONTACT=?, ACCOUNT=?, MAILTO=?, MAILCC=?, MAILFROM=?, SERVER=?, PORT=?, USER=?, PASS=?, AUTH=?<br/> WHERE NAME=? AND CONTACT=?<br/> <br/> <br/> It says: <em>ERROR [07002ࡀ] [Microsoft][ODBC dBASE Driver]COUNT field incorrect<br/> <br/> <br/> <br/> </em> UPDATE MAIT2 SET NAME=?, CONTACT=?, ACCOUNT=?, MAILTO=?, MAILCC=?, MAILFROM=?, SERVER=?, PORT=?, USER=?, PASS=?, AUTH=? <br/> WHERE NAME=?, CONTACT=?, ACCOUNT=?, MAILTO=?, MAILCC=?, MAILFROM=?, SERVER=?, PORT=?, USER=?, PASS=?, AUTH=? <br/> <br/> <br/> <em>Still says: ERROR [07002ࡀ] [Microsoft][ODBC dBASE Driver]COUNT field incorrect </em> <br/> <em> <br/> <br/> </em> If I changed UPDATE code to be: <br/> <br/> UPDATE MAIT2 SET NAME=?, CONTACT=?, ACCOUNT=?, MAILTO=?, MAILCC=?, MAILFROM=?, SERVER=?, PORT=?, USER=?, PASS=?, AUTH=?<br/> <br/> It says: <em>ERROR [HYS12ࡀ] [Microsoft][ODBC dBASE Driver] Index not found.</em>Wed, 01 Jul 2009 19:04:21 Z2009-07-01T19:06:21Zhttp://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#964e05ef-3c35-463a-a504-3d4eb16b87b9http://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#964e05ef-3c35-463a-a504-3d4eb16b87b9ClarkNKhttp://social.expression.microsoft.com/Profile/en-US/?user=ClarkNKHOW to ADD,MODIFY, and DELETE RECORD on the table/database connected (via ODBC) on Expression page??If you look at the tutorial<br/><br/><a href="http://www.homepagedoctor.com/expressiontutorials/MultiTableRelationalDBSetup.htm">http://www.homepagedoctor.com/expressiontutorials/MultiTableRelationalDBSetup.htm</a><br/><br/>You will find what the insert and update statements look like for sql database. Although that is not what you are using, compare your Insert statement to the tutorial Insert statement and you  can see how the formats of the two statements are analagous. <br/><br/>Once you see that, you can figure out how the Update query should look in your case by using the same analogies as for the Insert statement.<br/><br/>It looks as if you are missing a WHERE statement that defines the ID of the record being updated.<hr class="sig">ClarkNK, QVP<br/> HomePage Doctor CHO <br/> <a href="http://www.HomePageDoctor.com">HomePageDoctor.com</a> -- Expression Web database tutorials <br/> <a href="http://www.ownertrades.com">Ownertrades.com</a> -- Created with FP, Access, Bots and Wizards <br/> <a href="http://www.mynumberstracker.com">MyNumbersTracker.com</a> -- Created with Expression, VWDExress, SQL Express, and ASP.NET. Thu, 02 Jul 2009 03:52:46 Z2009-07-02T03:52:46Zhttp://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#11278c41-dbd9-4b4e-9732-cea38b5c0392http://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#11278c41-dbd9-4b4e-9732-cea38b5c0392mollysunhttp://social.expression.microsoft.com/Profile/en-US/?user=mollysunHOW to ADD,MODIFY, and DELETE RECORD on the table/database connected (via ODBC) on Expression page??THANK YOU SO MUCH ClarkNK, the tutorial is really helpful!<br/> but still got some errors<br/> <br/> In 'Tag Properties' for my SqlDataSource,  in UpdateQuery, i set Update Command as<br/> <br/> <br/> UPDATE  [MAIT2] SET  [CONTACT] = @CONTACT, [ACCOUNT] = @ACCOUNT, [MAILTO] = @MAILTO,[MAILCC] = @MAILCC,[MAILFROM] = @MAILFROM, [SERVER] = @SERVER, [PORT] = @PORT, [USER] = @USER, [PASS] = @PASS, [AUTH] = @AUTH WHERE  [NAME] = @NAME<br/> <br/> or<br/> <br/> UPDATE  [MAIT2] SET  [NAME] = @NAME, [CONTACT] = @CONTACT, [ACCOUNT] = @ACCOUNT, [MAILTO] = @MAILTO,[MAILCC] = @MAILCC,[MAILFROM] = @MAILFROM, [SERVER] = @SERVER, [PORT] = @PORT, [USER] = @USER, [PASS] = @PASS, [AUTH] = @AUTH WHERE  [NAME] = @NAME<br/> <br/> <br/> Then created Parameters from NAME, CONTACT, to AUTH, for every column, and set NAME value as GridView1.SelectedValue, but when i tried to edit and update the table after i run it, it keeps saying:<br/> <br/> <br/> <br/> ERROR [07002] [Microsoft][ODBC dBASE Driver] Too few parameters. Expected 11. body {font-family:&quot;Verdana&quot;;font-weight:normal;font-size: .7em;color:black;} p {font-family:&quot;Verdana&quot;;font-weight:normal;color:black;margin-top: -5px} b {font-family:&quot;Verdana&quot;;font-weight:bold;color:black;margin-top: -5px} H1 { font-family:&quot;Verdana&quot;;font-weight:normal;font-size:18pt;color:red } H2 { font-family:&quot;Verdana&quot;;font-weight:normal;font-size:14pt;color:maroon } pre {font-family:&quot;Lucida Console&quot;;font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } <span> <h2><em>ERROR [07002] [Microsoft][ODBC dBASE Driver] Too few parameters. Expected 11.</em></h2> </span> <span style="font-family:Arial,Helvetica,Geneva,SunSans-Regular,sans-serif"><strong>Description: </strong> An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. <br/> <br/> <strong>Exception Details: </strong> System.Data.Odbc.OdbcException: ERROR [07002] [Microsoft][ODBC dBASE Driver] Too few parameters. Expected 11.<br/> <br/> <strong>Source Error:</strong> <br/> <br/> <table border=0 width="100%" bgcolor="#ffffcc"> <tbody> <tr> <td><code>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</code></td> </tr> </tbody> </table> <br/> <strong>Stack Trace:</strong> <br/> <br/> <table border=0 width="100%" bgcolor="#ffffcc"> <tbody> <tr> <td> <pre>[OdbcException (0x80131937): ERROR [07002] [Microsoft][ODBC dBASE Driver] Too few parameters. Expected 11.] System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode) +1155538 System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader, Object[] methodArguments, SQL_API odbcApiMethod) +1147 System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader) +61 System.Data.Odbc.OdbcCommand.ExecuteNonQuery() +92 System.Web.UI.WebControls.SqlDataSourceView.ExecuteDbCommand(DbCommand command, DataSourceOperation operation) +386 System.Web.UI.WebControls.SqlDataSourceView.ExecuteUpdate(IDictionary keys, IDictionary values, IDictionary oldValues) +325 System.Web.UI.DataSourceView.Update(IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callback) +92 System.Web.UI.WebControls.GridView.HandleUpdate(GridViewRow row, Int32 rowIndex, Boolean causesValidation) +907 System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +704 System.Web.UI.WebControls.GridView.OnBubbleEvent(Object source, EventArgs e) +95 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 System.Web.UI.WebControls.GridViewRow.OnBubbleEvent(Object source, EventArgs e) +123 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +118 System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +135 System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565 </pre> </td> </tr> </tbody> </table> <br/> <hr size=1> </span> <br/> <br/> and i think for my .dbf database, there is no ID field<br/> <br/> <br/>Thu, 02 Jul 2009 13:51:50 Z2009-07-02T13:53:42Zhttp://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#ad2ac01d-8891-4be9-9b5f-75b9e4a55399http://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#ad2ac01d-8891-4be9-9b5f-75b9e4a55399mollysunhttp://social.expression.microsoft.com/Profile/en-US/?user=mollysunHOW to ADD,MODIFY, and DELETE RECORD on the table/database connected (via ODBC) on Expression page??Here is the code,  i set CHAR as type for each parameter, maybe not that correct, but if i don't set type, it still has the same error msg: Too few parameters, expected 11.  Sure it means the 11 fields in my database/table, and i am sure i didn't spell wrong or miss any field i think..cry :(<br/> <br/> &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br/> &lt;%@ Page Language=&quot;C#&quot; %&gt;<br/> &lt;html dir=&quot;ltr&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br/> <br/> &lt;head runat=&quot;server&quot;&gt;<br/> &lt;meta content=&quot;text/html; charset=utf-8&quot; http-equiv=&quot;Content-Type&quot; /&gt;<br/> &lt;title&gt;Untitled 1&lt;/title&gt;<br/> &lt;/head&gt;<br/> <br/> &lt;body&gt;<br/> <br/> &lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;<br/>     &lt;asp:SqlDataSource id=&quot;SqlDataSource1&quot; runat=&quot;server&quot; ConnectionString=&quot;&lt;%$ ConnectionStrings:ConnectionString3 %&gt;&quot; DeleteCommand=&quot;DELETE FROM MAIT2 WHERE NAME=@NAME &quot; ProviderName=&quot;&lt;%$ ConnectionStrings:ConnectionString3.ProviderName %&gt;&quot; SelectCommand=&quot;SELECT * FROM MAIT2&quot; UpdateCommand=&quot;UPDATE  [MAIT2] SET [CONTACT] =@CONTACT, [ACCOUNT] = @ACCOUNT, [MAILTO] = @MAILTO, [MAILCC] = @MAILCC, [MAILFROM] = @MAILFROM,  [SERVER] = @SERVER,  [PORT] = @PORT, [USER] = @USER, [PASS] = @PASS, [AUTH] = @AUTH WHERE  [NAME] = @NAME &quot;&gt;<br/>         &lt;DeleteParameters&gt;<br/>             &lt;asp:controlparameter ControlID=&quot;GridView1&quot; Name=&quot;NAME&quot; PropertyName=&quot;SelectedValue&quot; Type=&quot;Char&quot; /&gt;<br/>         &lt;/DeleteParameters&gt;<br/>         &lt;UpdateParameters&gt;<br/>             &lt;asp:parameter Name=&quot;CONTACT&quot; Type=&quot;Char&quot; /&gt;<br/>             &lt;asp:parameter Name=&quot;ACCOUNT&quot; Type=&quot;Char&quot; /&gt;<br/>             &lt;asp:parameter Name=&quot;MAILTO&quot; Type=&quot;Char&quot; /&gt;<br/>             &lt;asp:parameter Name=&quot;MAILCC&quot; Type=&quot;Char&quot; /&gt;<br/>             &lt;asp:parameter Name=&quot;MAILFROM&quot; Type=&quot;Char&quot; /&gt;<br/>             &lt;asp:parameter Name=&quot;SERVER&quot; Type=&quot;Char&quot; /&gt;<br/>             &lt;asp:parameter Name=&quot;PORT&quot; Type=&quot;Char&quot; /&gt;<br/>             &lt;asp:parameter Name=&quot;USER&quot; Type=&quot;Char&quot; /&gt;<br/>             &lt;asp:parameter Name=&quot;PASS&quot; Type=&quot;Char&quot; /&gt;<br/>             &lt;asp:parameter Name=&quot;AUTH&quot; Type=&quot;Char&quot; /&gt;<br/>             &lt;asp:controlparameter ControlID=&quot;GridView1&quot; Name=&quot;NAME&quot; PropertyName=&quot;SelectedValue&quot; Type=&quot;Char&quot; /&gt;<br/>         &lt;/UpdateParameters&gt;<br/>     &lt;/asp:SqlDataSource&gt;<br/>     &lt;asp:GridView id=&quot;GridView1&quot; runat=&quot;server&quot; AutoGenerateColumns=&quot;False&quot; DataKeyNames=&quot;NAME&quot; DataSourceID=&quot;SqlDataSource1&quot;&gt;<br/>         &lt;Columns&gt;<br/>             &lt;asp:commandfield ShowEditButton=&quot;True&quot;&gt;<br/>             &lt;/asp:commandfield&gt;<br/>             &lt;asp:commandfield ShowDeleteButton=&quot;True&quot;&gt;<br/>             &lt;/asp:commandfield&gt;<br/>             &lt;asp:boundfield DataField=&quot;NAME&quot; HeaderText=&quot;NAME&quot; ReadOnly=&quot;True&quot; SortExpression=&quot;NAME&quot;&gt;<br/>             &lt;/asp:boundfield&gt;<br/>             &lt;asp:boundfield DataField=&quot;CONTACT&quot; HeaderText=&quot;CONTACT&quot; SortExpression=&quot;CONTACT&quot;&gt;<br/>             &lt;/asp:boundfield&gt;<br/>             &lt;asp:boundfield DataField=&quot;ACCOUNT&quot; HeaderText=&quot;ACCOUNT&quot; SortExpression=&quot;ACCOUNT&quot;&gt;<br/>             &lt;/asp:boundfield&gt;<br/>             &lt;asp:boundfield DataField=&quot;MAILTO&quot; HeaderText=&quot;MAILTO&quot; SortExpression=&quot;MAILTO&quot;&gt;<br/>             &lt;/asp:boundfield&gt;<br/>             &lt;asp:boundfield DataField=&quot;MAILCC&quot; HeaderText=&quot;MAILCC&quot; SortExpression=&quot;MAILCC&quot;&gt;<br/>             &lt;/asp:boundfield&gt;<br/>             &lt;asp:boundfield DataField=&quot;MAILFROM&quot; HeaderText=&quot;MAILFROM&quot; SortExpression=&quot;MAILFROM&quot;&gt;<br/>             &lt;/asp:boundfield&gt;<br/>             &lt;asp:boundfield DataField=&quot;SERVER&quot; HeaderText=&quot;SERVER&quot; SortExpression=&quot;SERVER&quot;&gt;<br/>             &lt;/asp:boundfield&gt;<br/>             &lt;asp:boundfield DataField=&quot;PORT&quot; HeaderText=&quot;PORT&quot; SortExpression=&quot;PORT&quot;&gt;<br/>             &lt;/asp:boundfield&gt;<br/>             &lt;asp:boundfield DataField=&quot;USER&quot; HeaderText=&quot;USER&quot; SortExpression=&quot;USER&quot;&gt;<br/>             &lt;/asp:boundfield&gt;<br/>             &lt;asp:boundfield DataField=&quot;PASS&quot; HeaderText=&quot;PASS&quot; SortExpression=&quot;PASS&quot;&gt;<br/>             &lt;/asp:boundfield&gt;<br/>             &lt;asp:boundfield DataField=&quot;AUTH&quot; HeaderText=&quot;AUTH&quot; SortExpression=&quot;AUTH&quot;&gt;<br/>             &lt;/asp:boundfield&gt;<br/>         &lt;/Columns&gt;<br/>     &lt;/asp:GridView&gt;<br/> &lt;/form&gt;<br/> <br/> &lt;/body&gt;<br/> <br/> &lt;/html&gt;<br/>Thu, 02 Jul 2009 14:45:38 Z2009-07-02T14:45:38Zhttp://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#add83b79-1a86-433f-a718-4dc1f0ff7709http://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#add83b79-1a86-433f-a718-4dc1f0ff7709mollysunhttp://social.expression.microsoft.com/Profile/en-US/?user=mollysunHOW to ADD,MODIFY, and DELETE RECORD on the table/database connected (via ODBC) on Expression page??and felt strange to just find out that  the 'preview' of Insert page works well in Expression Web, <br/><br/>but if i 'browse' from IIS, the insert page still doesn't work  ... omgSat, 04 Jul 2009 15:23:44 Z2009-07-04T15:23:44Zhttp://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#7c86af70-ecca-4eeb-9270-22e0230e1db4http://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#7c86af70-ecca-4eeb-9270-22e0230e1db4KathyW2http://social.expression.microsoft.com/Profile/en-US/?user=KathyW2HOW to ADD,MODIFY, and DELETE RECORD on the table/database connected (via ODBC) on Expression page??What kind of insert?  HMTL, or PHP?Sat, 04 Jul 2009 16:23:05 Z2009-07-04T16:23:05Zhttp://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#c7065404-d2e5-4aca-9b57-51f6a0b7f88ahttp://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#c7065404-d2e5-4aca-9b57-51f6a0b7f88apaladynhttp://social.expression.microsoft.com/Profile/en-US/?user=paladynHOW to ADD,MODIFY, and DELETE RECORD on the table/database connected (via ODBC) on Expression page??Her last post is kind of cryptic, but I <em>think </em> she's still talking about her Insert/Update Record pages for her ASP.NET app. Could be wrong...<br/> <br/> cheers,<br/> scott<br/>Sat, 04 Jul 2009 16:26:44 Z2009-07-04T16:26:44Zhttp://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#478c0d75-df30-4d63-9e10-649b3827b668http://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#478c0d75-df30-4d63-9e10-649b3827b668mollysunhttp://social.expression.microsoft.com/Profile/en-US/?user=mollysunHOW to ADD,MODIFY, and DELETE RECORD on the table/database connected (via ODBC) on Expression page??Thank you for reply.<br/> <br/> I mean Insert page as i created an  .aspx page for inserting new record to the connected database table. I put Insert statement as INSERT INTO MAIT2(NAME, CONTACT, ACCOUNT,MAILTO, MAILCC, MAILFROM, SERVER, PORT, USER, PASS, AUTH)<br/> VALUES(?,?,?,?,?,?,?,?,?,?,?)<br/> <br/> as i mentioned in the previous replies. It works when I preview it from EW2, but if i view it remotely or from IIS, it doesn't work<br/> <br/> and also didn't figure out why Update and Del cannot work well either.  I posted error msg and code in last repliesSat, 04 Jul 2009 16:26:56 Z2009-07-04T16:26:56Zhttp://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#ff7a4a9e-9209-4746-9bab-6de09edebb47http://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#ff7a4a9e-9209-4746-9bab-6de09edebb47Preston Bhttp://social.expression.microsoft.com/Profile/en-US/?user=Preston%20BHOW to ADD,MODIFY, and DELETE RECORD on the table/database connected (via ODBC) on Expression page??If you can perform the Insert, Update and Delete operations using the EW dev server, but these same operations do not work in IIS, then there may be a roles/permissions configuration setting in IIS on both your local machine and the remote server that is not correct. You might want to check it out.<br/><br/>You might also post your application error message at the appropriate Asp.Net forum: <a href="http://forums.asp.net/">http://forums.asp.net/</a> .<br/><br/>-Preston<hr class="sig">Columbia, CA. USA http://www.gildedmoon.comSat, 04 Jul 2009 20:36:40 Z2009-07-04T20:36:40Zhttp://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#e957c832-b5f3-4d04-9a07-e4d0392f1f86http://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#e957c832-b5f3-4d04-9a07-e4d0392f1f86mollysunhttp://social.expression.microsoft.com/Profile/en-US/?user=mollysunHOW to ADD,MODIFY, and DELETE RECORD on the table/database connected (via ODBC) on Expression page??Thanks much Preston!!<br/> <br/> You said right, now i fixed the Insert page problem cause i didn't set permissions of the folder and database as  Write, Browse, Executable for users.. now it really can run well over IIS.<br/> <br/> The update and delete record still cannot work, i am thinking if it's the prob of not having ID column in the table? now i set name as primary key, and i am wondering why it cannot run well. So far i cannot think of anything else.. and i am not supposed to change the database, but i think i'll give it a try. <br/> <br/> The error msg of Update and Del page now is: &quot;INDEX NOT Found&quot;..<br/>Mon, 06 Jul 2009 12:56:04 Z2009-07-06T13:20:52Zhttp://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#60b84a0b-ccab-41c9-b387-52c97875cd41http://social.expression.microsoft.com/Forums/en-US/web/thread/c748f967-aebf-46ae-b49a-7dc1fb143382#60b84a0b-ccab-41c9-b387-52c97875cd41Preston Bhttp://social.expression.microsoft.com/Profile/en-US/?user=Preston%20BHOW to ADD,MODIFY, and DELETE RECORD on the table/database connected (via ODBC) on Expression page??Don't make changes to your database design at this juncture; especially if you're not supposed to do so. You'll likely cause other problems to crop up.<br/><br/>I strongly suggest that you follow my earlier recommendation to post your question at the appropriate forum at  <a href="http://forums.asp.net/">http://forums.asp.net/</a> . You might also want to look at some of the SQL / Database design documentation at MSDN.<br/><br/>-Preston<br/><br/><hr class="sig">Columbia, CA. USA http://www.gildedmoon.comMon, 06 Jul 2009 16:11:28 Z2009-07-06T16:11:28Z