المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : how to pass parameters and values with function name in url?



C# Programming
01-05-2011, 02:51 AM
hi all

i have a web service.a function get 2 parameters and return a string.

public string zakhire(string s,string d)
{

string sql = " insert into FX_Forecast2 (Symbol,DateTime) values( '"+s+"',"+d+")";

OpenDb();

cmd = new SqlCommand(sql, con);
cmd.ExecuteNonQuery();

con.Close();
return sql;
}
i want after executing function these 2 parameters with function name be in url,but just function name passes in url,not parameters and their values!!!

can someone say how to pass parameters??
do i should write code else to do this?

thnx