Click here to Skip to main content
15,897,185 members

Comments by Gaurav Gupta A Tech Guy (Top 49 by date)

Gaurav Gupta A Tech Guy 7-Apr-20 0:47am View    
Using HttpPost method as per below code:-

public string PreparePOSTForm(System.Web.UI.Page myPage, string formID, string url, System.Collections.Hashtable data) // post form
{
//Set a name for the form
//string formID = "PostForm";
//Build the form using the specified data to be posted.
StringBuilder strForm = new StringBuilder();
strForm.Append("");

foreach (System.Collections.DictionaryEntry key in data)
{
strForm.Append("");
}

strForm.Append("");
//Build the JavaScript which will do the Posting operation.
StringBuilder strScript = new StringBuilder();
strScript.Append("");
strScript.Append("var v" + formID + " = document." +
formID + ";");
strScript.Append("v" + formID + ".submit();");
strScript.Append("");
//Return the form and the script concatenated.
//(The order is important, Form then JavaScript)

myPage.Controls.Add(new LiteralControl(strForm.ToString() + strScript.ToString()));

return strForm.ToString() + strScript.ToString();
}
Gaurav Gupta A Tech Guy 20-Jul-18 1:27am View    
is there any way to access a digital certificate on client machine and able to sign PDF document genrated on web server ? If USB token is on web server than i can do it but if digital certificate is stored in USB token attached in client machine than how can we do it ?
Gaurav Gupta A Tech Guy 20-Jul-18 1:27am View    
I want my web application which is hosted on remote server be able to read digital certificate from client machine which have USB token in thier PC.
Gaurav Gupta A Tech Guy 20-Jul-18 1:26am View    
Deleted
is there any way to access a digital certificate on client machine and able to sign PDF document genrated on web server ? If USB token is on web server than i can do it but if digital certificate is stored in USB token attached in client machine than how can we do it ?
Gaurav Gupta A Tech Guy 20-Jul-18 1:24am View    
Deleted
I want my web application which is hosted on remote server be able to read digital certificate from client machine which have USB token in thier PC.