Flash end
VaR sendvars: loadvars = new loadvars ();
VaR javasevars: loadvars = new loadvars ();
Incluevars. onload = function (success: Boolean): void {
If (SUCCESS)
{
If (evars. OK! = Undefined)
{
Intext. Text = "";
Intxt. Text = "";
Status_lbl.text = "<B> successfully published </B> ";
}
Else
Geturl ("javascript: Alert ('wrong ');");
}
Else
{
Geturl ("javascript: Alert ('posting failed! ');");
}
}
Submit_btn.clickhandler = function (){
Callsave ();
}
Function callsave ()
{
VaR url = "accesslink. aspx ";
Sendvars. nn = escape (intext. Text );
Sendvars. Ct = escape (intxt. Text );
Sendvars. Op = "add ";
Sendvars. sendandload (URL, incluevars, "Post ");
Wait. gotoandplay (1 );
}
C # client acceptance:
Oledbconnection conn = new oledbconnection (configurationmanager. receivettings ["myjetconn"]);
String SQL = "insert into message (nicename, content) values (?,?) ";
Oledbcommand cmd = new oledbcommand (SQL, Conn );
Cmd. Parameters. Add (New oledbparameter ("@ nicename", oledbtype. varchar, 10 ));
Cmd. Parameters ["@ nicename"]. value = server. urldecode (request. Form ["Nn"]. tostring ());
Cmd. Parameters. Add (New oledbparameter ("@ content", oledbtype. varchar, 50 ));
Cmd. Parameters ["@ content"]. value = server. urldecode (request. Form ["CT"]. tostring ());
Conn. open ();
Cmd. executenonquery ();
Conn. Close ();
Response. Write ("modification successful! ");
Web configuration, here to add or garbled, flash inside is the default UTF-8
<System. Web>
<Globalization requestencoding = "UTF-8" responseencoding = "UTF-8"/>
</System. Web>