File manager - Edit - G:/PleskVhosts/indiaminerals.in/vgm.INFOFIXDEVELOPERS.COM/admin/Purchase_list.aspx.cs
Back
using System; using System.Data; using System.Data.SqlClient; using System.Web.Configuration; using System.Web.Script.Services; using System.Web.Services; using System.Web.UI; using System.Web.UI.WebControls; using WebApp.LIBS; namespace VGM.admin { public partial class Purchase_list : BasePageClass { string cs = WebConfigurationManager.ConnectionStrings["gav"].ConnectionString; SqlDataAdapter da1; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { da1 = new SqlDataAdapter("select distinct ID, Purchase_date, Medicine_by, Supplier_Donor_name from purchase", cs); DataTable dt1 = new DataTable(); da1.Fill(dt1); Gridview1.DataSource = dt1; Gridview1.DataBind(); } } protected void Gridview1_RowCommand(object sender, GridViewCommandEventArgs e) { } [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Xml)] public static string PopupValueFillabc() { return "ramlala"; } [WebMethod] public static string PopupValueFill(string purchaseId) { using (SqlConnection con = new SqlConnection(WebConfigurationManager.ConnectionStrings["gav"].ConnectionString)) { con.Open(); using (SqlCommand cmd = new SqlCommand("SELECT P.*, M.Medicine_name FROM purchase AS P INNER JOIN medicine AS M ON P.Medicine_id = M.ID WHERE P.ID = " + purchaseId + "", con)) { DataSet ds = new DataSet(); using (SqlDataAdapter sda = new SqlDataAdapter(cmd)) { sda.Fill(ds); } ds.Tables[0].TableName = "Data"; return ds.GetXml(); } } } } }
| ver. 1.4 |
Github
|
.
| PHP 7.3.33 | Generation time: 0.05 |
proxy
|
phpinfo
|
Settings