الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ممكن شرح هذا الكود وماذا تعني الرموز في هذه الفقرة من الكود

Featured Replies

بتاريخ:

ممكن شرح هذا الكود وماذا تعني الرموز في هذه الفقرة من لكود
'" +TextBox1.Text+ "','"+TextBox2.Text+"'"






using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.OracleClient;

public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
protected void Button1_Click(object sender, EventArgs e)
{
string strconnectionstring = "Data Source = “”;User ID =””;Password=””;Unicode=True";

string strSQL = " INSERT INTO TABLENAME (ID,NAME) Values ( '" +TextBox1.Text+ "','"+TextBox2.Text+"'";

OracleConnection conn = new OracleConnection(strconnectionstring);

OracleCommand cmd = new OracleCommand();

cmd.Connection = conn;

conn.Open();

cmd.CommandText = strSQL;

cmd.CommandType = CommandType.Text;

OracleDataReader dr = cmd.ExecuteReader();

Response.Redirect("Default.aspx");

dr.Dispose();

cmd.Dispose();

conn.Dispose();
}
}

  • بعد 5 شهور...
بتاريخ:

Salaam,



When you write a query string in Java you have to build it as a string first and then run it.



the text box for example will have 'test' you need to put ' ' around it to show as string not variable. it's all string concatenation stuff.

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.