process1= new System.Diagnostics.Process();
//Do not receive an event when the process exits.
process1.EnableRaisingEvents = false;
string strCmdLine="/C curl -E \""+CertFile+"\":\""+CertPass+"\" -F orgid="+OrgID+" -F batchid="+this.BatchID+" -F userid="+PDSOID+" -F xml=@\""+this.XMLFilePath+this.XMLFileName+"\" "+UploadURL+" -o \""+this.XMLFilePath+"\\ServerResponse.xml\"";
try
{
System.Diagnostics.ProcessStartInfo sinf = new System.Diagnostics.ProcessStartInfo ("cmd.exe", @strCmdLine);
sinf.UseShellExecute = false;
sinf.CreateNoWindow = true;
process1.StartInfo=sinf;
process1.Start();
process1.WaitForExit();
process1.Close();
// or System.Diagnostics.Process.Start("cmd.exe",@strCmdLine);
this.ReadTransferLog("ServerResponse.xml");
return this.TranStatus;
}
catch (Exception ex)
{
process1.Kill();
npuInfoDB.DBConnection.LogErrorMessage(strCmdLine+"\n"+ex.Message);
return false;
}
[ add comment ] | permalink | related link |




( 3 / 9986 )works for IE 6
STYLE="layout-flow : vertical-ideographic;"
[ add comment ] | permalink | related link |




( 3 / 3579 )<script type="text/javascript">
/***********************************************
* Textarea Maxlength script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
function ismaxlength(obj){
var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
if (obj.getAttribute && obj.value.length>mlength)
obj.value=obj.value.substring(0,mlength)
}
</script>
<textarea maxlength="40" onkeyup="return ismaxlength(this)"></textarea>
[ add comment ] | permalink | related link |




( 3 / 9418 )HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.theserverside.net");
System.Net.WebProxy myProxy = new System.Net.WebProxy("Your proxy goes here", 8081);
myProxy.BypassProxyOnLocal = true;
request.Proxy = myProxy;request.MaximumAutomaticRedirections = 4;
request.MaximumResponseHeadersLength = 4;
request.Timeout=20000;
request.Credentials = CredentialCache.DefaultCredentials;
HttpWebResponse response = (HttpWebResponse)request.GetResponse ();
Stream receiveStream = response.GetResponseStream ();
StreamReader readStream = new StreamReader (receiveStream, Encoding.UTF8);
string result=readStream.ReadToEnd ();
response.Close ();
[ add comment ] | permalink | related link |




( 3 / 3474 )function openwin(mylink)
{
if (! window.focus)
return true;
var mywin;
mywin=window.open(mylink,'WidowName','width=700,height=500,scrollbars=yes,resizable=yes,menubar=yes');
mywin.location.assign(mylink);
mywin.location.reload(true);
return false;
}
<a href="javascript:void(0)" onclick="jaavscript:openwin('URL') " >
javascript:void(0) will not affect hyper link style.
[ add comment ] | permalink | related link |




( 3 / 667 )Next

Avatar










