Skip to content

Commit

Permalink
pass MAC address and message
Browse files Browse the repository at this point in the history
  • Loading branch information
gojimmypi committed Jun 14, 2020
1 parent f29f9fd commit a1b8ce7
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions Web/RFID_aspx_Webform_App/Default.aspx.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Data;
using System.Data.SqlClient;
using Microsoft.ApplicationBlocks.Data;
using CustomControls;
using System.Web.Optimization;
using System.Xml.Serialization;
using System.IO;

namespace RFID
{
Expand All @@ -23,6 +15,14 @@ public string ThisUID()
{
return common.SafeParam(Request.QueryString["UID"]);
}
public string ThisMAC()
{
return common.SafeParam(Request.QueryString["MAC"]);
}
public string ThisMSG()
{
return common.SafeParam(Request.QueryString["MSG"]);
}
public int MyProperty { get; set; }

private string _ResultMessage = "";
Expand All @@ -42,7 +42,8 @@ public void SaveData()
SqlParameter[] sqlParams = new SqlParameter[]
{
new SqlParameter("@CARDSN",ThisUID()),
new SqlParameter("@device_id","test"),
new SqlParameter("@MAC",ThisMAC()),
new SqlParameter("@MSG",ThisMSG()),
new SqlParameter("@echo_output","true"),
new SqlParameter("@debug_status","0"),
};
Expand Down

0 comments on commit a1b8ce7

Please sign in to comment.