Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > .NET Framework > Forum > ASP.Net ติด Error Operation must use an updateable query. หาวิธีแก้ไขไม่ได้ช่วยหน่อยค่ะ



 

ASP.Net ติด Error Operation must use an updateable query. หาวิธีแก้ไขไม่ได้ช่วยหน่อยค่ะ

 



Topic : 102155



โพสกระทู้ ( 104 )
บทความ ( 0 )



สถานะออฟไลน์




รบกวนดูให้หน่อยคะว่าติด error อะไร หาวิธีแก้แล้วก็ไม่ได้

error



Tag : ASP.NET Web (ASP.NET)







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2013-10-29 15:41:56 By : ผู้หญิงสีดำ View : 1160 Reply : 10
 

 

No. 1



โพสกระทู้ ( 1,348 )
บทความ ( 1 )



สถานะออฟไลน์









แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-10-29 17:06:20 By : watcharop
 


 

No. 2



โพสกระทู้ ( 1,348 )
บทความ ( 1 )



สถานะออฟไลน์


ขอความอนุเคราะห์ให้ข้อมูลมากกว่านี้อีกสักหน่อยได้ไหม

เอาโค้ดมาแปะก็ดี ว่า Error บรรทัดไหน เผื่อจะมีคนช่วย
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-10-29 17:12:32 By : watcharop
 

 

No. 3



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

รู้สึก Error จะเหมือน Readonly ของ Database น่ะครับ
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-10-29 17:18:55 By : mr.win
 


 

No. 4



โพสกระทู้ ( 104 )
บทความ ( 0 )



สถานะออฟไลน์


ตอบความคิดเห็นที่ : 2 เขียนโดย : watcharop เมื่อวันที่ 2013-10-29 17:12:32
รายละเอียดของการตอบ ::
Code (PHP)
<%@ page language="VB" autoeventwireup="false" inherits="SetPromotion, App_Web_tiyyf9mp" validaterequest="false" %>
<%@ Register Src="AdminHead.ascx" TagName="AdminHead" TagPrefix="uc1" %>

<!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 id="Head1" runat="server">
<title>:: Bangkok Hotels - Zenith Sukhumvit Thailand near Bumrungrad Hospital Last Minute Deals ::</title>
    <LINK href="MyStyle.css" type="text/css" rel="stylesheet">
    <script language="JavaScript" fptype="dynamicanimation">
<!--
function dynAnimation() {}
function clickSwapImg() {}
//-->
		</script>
		<script language="JavaScript1.2" fptype="dynamicanimation" src="../animate.js">
		</script>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" background="images/bg_main.gif">
    <form id="form1" runat="server">
    
    <div align="center">
	<table border="0" width="850" id="table1" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
		<tr>
			<td>
			<div align="center">
				<table border="0" width="840" id="table2" cellspacing="0" cellpadding="0">
					<tr>
						<td width="790">
						<table border="0" width="100%" id="table3" cellspacing="0" cellpadding="0">
							<tr>
								<td>
                                    <uc1:AdminHead ID="AdminHead1" runat="server" />
								</td>
							</tr>
						</table>
						<table border="0" width="100%" id="table4" cellspacing="0" cellpadding="0" style="font-family: Tahoma; font-size: 8pt">
							<tr>
								<td valign="top">
								<table border="0" id="table7" width="100%" cellspacing="0" cellpadding="0">
									<tr>
										<td>&nbsp;</td>
									</tr>
									</table>
								<div align="center">
									<table border="1" width="90%" id="table8" bordercolor="#C0C0C0" cellspacing="0" cellpadding="0" bordercolorlight="#FFFFFF">
										<tr>
						<td>
							<div align="center">
								<table border="0" width="99%" cellspacing="0" cellpadding="3" class="Tahoma10">
									<tr>
										<td bgcolor="#DADADA" colspan="2">
										<p align="center"><b>Set Promotion</b></p>
										</td>
									</tr>
									<tr>
										<td width="100%" colspan="2">
        <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>&nbsp;</td>
									</tr>
									<tr>
										<td width="20%" style="text-align: left">
                                            Promotion Head :
										</td>
										<td width="80%" style="text-align: left"><FONT face="Tahoma">
                                            <asp:TextBox ID="TxtTitle" runat="server" Width="368px"></asp:TextBox>&nbsp;
										</FONT></td>
									</tr>
                                    <tr>
                                        <td style="height: 31px; text-align: left" width="20%">
                                            Small image name :</td>
                                        <td style="height: 31px; text-align: left" width="80%">
                                            <asp:TextBox ID="txtPath" runat="server" Width="367px"></asp:TextBox></td>
                                    </tr>
									<tr>
										<td width="20%" style="HEIGHT: 31px; text-align: left;" valign="top">
                                            Promotion Detail :</td>
										<td width="80%" style="HEIGHT: 31px; text-align: left;">
                                            <asp:TextBox ID="TxtPost" runat="server" Height="600px" TextMode="MultiLine" Width="500px"></asp:TextBox></td>
									</tr>
                                    <tr>
                                        <td style="height: 22px" width="20%">&nbsp;
        </td>
                                        <td style="height: 22px; text-align: left;" width="80%">
                                            <asp:Button ID="btSubmit" runat="server" Text="Save " />&nbsp;<asp:Button ID="btReset"
                                                runat="server" Text="Reset" /></td>
                                    </tr>
                                    <tr>
                                        <td width="20%">
                                        </td>
                                        <td width="80%">
                                            <br />
                                            &nbsp;&nbsp;&nbsp;&nbsp;
        </td>
                                    </tr>
									<tr>
										<td width="20%" style="height: 46px">&nbsp;</td>
										<td width="80%" style="height: 46px"><FONT face="Tahoma">
        </FONT></td>
									</tr>
									<tr>
										<td width="100%" colspan="2">
										<FONT face="Tahoma">&nbsp;</FONT></td>
									</tr>
								</table></div>
							<p>&nbsp;</p>
						</td>
					</tr>
				</table>
</div>
								<p><br />
                                </td>
							</tr>
						</table>
						<table border="0" width="100%" id="table5" cellspacing="0" cellpadding="2">
							<tr>
								<td  bgcolor="#FF7F00" style="text-align: left">
								<font color="#FFFFFF">29 Sukhumvit Soi 3 (Nana 
								Nua), Bangkok 10110, Thailand / Tel: (66) 2 655 
								4999 / Fax: (66) 2 655 4950</font></td>
							</tr>
							<tr>
								<td bgcolor="#FF7F00" style="text-align: left">
								<font color="#FFFFFF">E-mail: [email protected]
								</font> </td>
							</tr>
							<tr>
								<td bgcolor="#FF7F00">
								<p align="center"><font color="#FFFFFF"><br>
								Copy Right (c) 2007 - Koola 
								Hospitality Limited</font></td>
							</tr>
						</table>
						</td>
						<td width="5">&nbsp;</td>
						<td bgcolor="#0F3193">&nbsp;</td>
					</tr>
				</table>
			</div>
			</td>
		</tr>
		</table>
	<table border="0" width="850" id="table6" cellspacing="0" cellpadding="0">
		<tr>
			<td><img border="0" src="images/bg_bot.gif" width="850" height="60"></td>
		</tr>
	</table>
</div>
    
    <div>
        <br />
        <br />
        <br />
        <br />
        &nbsp;</div>
    </form>
    <script language="Javascript1.2">
			<!-- // load htmlarea
			_editor_url = "./htmlarea/";                     // URL to htmlarea files
			var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
			if (navigator.userAgent.indexOf('Mac')        >= 0) { win_ie_ver = 0; }
			if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
			if (navigator.userAgent.indexOf('Opera')      >= 0) { win_ie_ver = 0; }
			if (win_ie_ver >= 5.5) {
			document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
			document.write(' language="Javascript1.2"></scr' + 'ipt>');  
			} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
			// -->
		</script>
		<script language="JavaScript1.2" defer>
			var config = new Object(); // create new config object

			config.width = "500px";
			config.height = "600px";
			config.bodyStyle = 'background-color: while; font-family: "Tahoma"; font-size: x-small;';
			config.debug = 0;

			editor_generate('TxtPost', config);
			
			function showRule(){
				window.open("rule.htm","_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=500, height=600")
			}
		</script>
</body>
</html>




ประวัติการแก้ไข
2013-10-29 17:35:48
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-10-29 17:35:10 By : ผู้หญิงสีดำ
 


 

No. 5



โพสกระทู้ ( 104 )
บทความ ( 0 )



สถานะออฟไลน์


ตอบความคิดเห็นที่ : 3 เขียนโดย : mr.win เมื่อวันที่ 2013-10-29 17:18:55
รายละเอียดของการตอบ ::
รุ้สึกลองทำแล้วนะคะก็ไม่ได้ ทำทุกวิธีทางที่หาในเน็ตเจอก็ไม่ได้อยู่ดีอะคะ ไงรบกวนพี่ๆช่วยหน่อยนะคะ

แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-10-29 17:38:39 By : ผู้หญิงสีดำ
 


 

No. 6



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

ตอบความคิดเห็นที่ : 5 เขียนโดย : ผู้หญิงสีดำ เมื่อวันที่ 2013-10-29 17:38:39
รายละเอียดของการตอบ ::
ลองดูพวก Permission ของ File ครับ ด้วยการคลิกขวา -> Properties -> Security

แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-10-29 18:02:13 By : mr.win
 


 

No. 7



โพสกระทู้ ( 1,348 )
บทความ ( 1 )



สถานะออฟไลน์


ตอบความคิดเห็นที่ : 5 เขียนโดย : ผู้หญิงสีดำ เมื่อวันที่ 2013-10-29 17:38:39
รายละเอียดของการตอบ ::
ขาดหน้าโค้ด และบรรทัดที่ผิดพลาด

แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-10-29 19:52:31 By : watcharop
 


 

No. 8



โพสกระทู้ ( 104 )
บทความ ( 0 )



สถานะออฟไลน์


ตอบความคิดเห็นที่ : 7 เขียนโดย : watcharop เมื่อวันที่ 2013-10-29 19:52:31
รายละเอียดของการตอบ ::
Code (PHP)

อันนี้คือหน้า config โทษนะคะพอดีมันเป็นเว็บที่อีกฝ่ายทำไว้แต่ให้ทางเราเป็นผู้แก้อะคะ ตอนที่ได้มาก็งงอยู่เหมือนกัน ไงขอคำแนะนำด้วยนะคะ และโค้ดที่พี่ถามหาอะ มันก็มีแค่นั้นอะคะในหน้าที่เกิดข้อผิดพลาด
<?xml version="1.0" encoding="utf-8" ?>
<configuration>

  <appSettings>
    <!-- System related configurable parameter--> 
    <add key="DBPath" value="~\DB\DbBooking.mdb"/>
    <add key="AdminMail" value="[email protected];[email protected]"/>

    <add key="ContactMail" value="[email protected]"/>
    <add key="KLeeMail" value="[email protected]"/>
 <!-- <add key="KLeeMail" value="[email protected]"/>
    <add key="AdminMail" value="[email protected];[email protected]"/>--> 
      
  </appSettings>
  <connectionStrings>
    <add name="DbBooking" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\OSOTSPA\DLM\IMRequisition\PjIMRequisition\DB\DbIMRequisition.mdb;Jet OLEDB:Database Password=IMPass;Persist Security Info=False"  />
   
  </connectionStrings>
    
  <system.web>

   
    <compilation defaultLanguage="vb" debug="true" />

    <!--  CUSTOM ERROR MESSAGES
          Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable. 
          Add <error> tags for each of the errors you want to handle.

          "On" Always display custom (friendly) messages.
          "Off" Always display detailed ASP.NET error information.
          "RemoteOnly" Display custom (friendly) messages only to users not running 
           on the local Web server. This setting is recommended for security purposes, so 
           that you do not display application detail information to remote clients.
    -->
    <customErrors mode="Off"/>

    <!--  AUTHENTICATION RemoteOnly
          This section sets the authentication policies of the application. Possible modes are "Windows", 
          "Forms", "Passport" and "None"

          "None" No authentication is performed. 
          "Windows" IIS performs authentication (Basic, Digest, or Integrated Windows) according to 
           its settings for the application. Anonymous access must be disabled in IIS. 
          "Forms" You provide a custom form (Web page) for users to enter their credentials, and then 
           you authenticate them in your application. A user credential token is stored in a cookie.
          "Passport" Authentication is performed via a centralized authentication service provided
           by Microsoft that offers a single logon and core profile services for member sites.
    -->
    <authentication mode="Windows" /> 


    <!--  AUTHORIZATION 
          This section sets the authorization policies of the application. You can allow or deny access
          to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous 
          (unauthenticated) users.
    -->
    <authorization>
        <allow users="*" /> <!-- Allow all users -->

            <!--  <allow     users="[comma separated list of users]"
                             roles="[comma separated list of roles]"/>
                  <deny      users="[comma separated list of users]"
                             roles="[comma separated list of roles]"/>
            -->
    </authorization>
 
    <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
   
    <sessionState 
            mode="InProc"
            stateConnectionString="tcpip=127.0.0.1:42424"
            sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
            cookieless="false" 
            timeout="20" 
    />

    <!--  GLOBALIZATION
          This section sets the globalization settings of the application. 
    -->
    <globalization culture="en-US" uiCulture="en-US"  responseEncoding="windows-874"  requestEncoding="windows-874" />
   
  </system.web>

</configuration>



แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-10-30 09:38:42 By : ผู้หญิงสีดำ
 


 

No. 9



โพสกระทู้ ( 1,348 )
บทความ ( 1 )



สถานะออฟไลน์


เข้าใจว่าไม่มี Source Code (ไฟล์นามสกุล .vb หรือ .cs)
งั้นก็แก้ไม่ได้ครับ
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-10-30 10:32:57 By : watcharop
 


 

No. 10



โพสกระทู้ ( 104 )
บทความ ( 0 )



สถานะออฟไลน์


ตอบความคิดเห็นที่ : 9 เขียนโดย : watcharop เมื่อวันที่ 2013-10-30 10:32:57
รายละเอียดของการตอบ ::
อ่อคะ เท่ากับว่าไฟล์มันมาไม่ครบทำให้ทำงานไม่ได้ด้วยใช่ไหมคะ

แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-10-30 10:59:59 By : ผู้หญิงสีดำ
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : ASP.Net ติด Error Operation must use an updateable query. หาวิธีแก้ไขไม่ได้ช่วยหน่อยค่ะ
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 02
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่