|
i see!! very valuable information
thank you very much indeed!
full many flowers blush unseen!
|
|
|
|
|
Hi,
In my web application, I am executing an exe file using process.Start
I have 2 exe files in a directory.
1.First exe file is a stand alone one.
2.Second exe file will refer to another file(file2.ctf) in the same directory.
If I try to execute the first file, it is working fine.
But, for the second file , it says error message like:
Make sure the directory containing file2.ctf is on your dynamic load library
path(PATH on Windows,or LD_LIBRARY_PATH on Linux).
I think the exe file is not able to find the file2.ctr file.
Even after changing the environment variable PATH , it is throwing the same message.
But it is working fine in WindowsApplication.
Any help would be appreciated.
Regards,
Arun Kumar.A
|
|
|
|
|
You might need to change some info in your StartInfo object that is associated with the Process object. There is a property called WorkingDirectory off the StartInfo object. Set that to the correct directory and it should work.
Hope that helps.
Ben
|
|
|
|
|
Thank U very much.
I will try and let U know.
Regards,
Arun Kumar.A
|
|
|
|
|
Thank U very much.
It is working fine now.
Regards,
Arun Kumar.A
|
|
|
|
|
Hello All!
I have adobe professional 7.0 on my computer, and would like to use it for the web site I'm building. Does anybody know where I can find the classid for this, or know what the classid is forthis version.
Thanks!
Rudy
|
|
|
|
|
Hi,
Can we store objects such as Oledbconnection in web.config ? If we can do,then how can we do?
Thanks...
Regards...
|
|
|
|
|
atarikg wrote: Can we store objects such as Oledbconnection in web.config ?
You can store the connection string in the config.
|
|
|
|
|
so there is no way to store objects in web.config right ?
|
|
|
|
|
atarikg wrote: so there is no way to store objects in web.config right ?
You could serialise an object to XML, which you could then store in the config file. But it isn't designed for that.
My advice is to store the connection string in the config file.
|
|
|
|
|
Or U can use binary serialization and store it in another file.
Regards,
Arun Kumar.A
|
|
|
|
|
thank you so much
|
|
|
|
|
I've converted http://www.codeproject.com/Ajax/logclientsidejserrors2srv.asp[^] into
string input=new StreamReader(HttpContext.Current.Request.InputStream).ReadToEnd();
... some processing
HttpContext.Current.Response.ContentType="text/plain";
StreamWriter output=new StreamWriter(HttpContext.Current.Response.OutputStream,new System.Text.UTF8Encoding());
output.Write(... returning info);
output.Flush();
output.Close();
My question is what am I missing that would complete the Ajax cycle and return text back to the calling page?
Scott Rider
www.scottrider.com
|
|
|
|
|
I would just set the response type and use Response.Write. Not sure if this should work or not.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Like this?
string input=new StreamReader(HttpContext.Current.Request.InputStream).ReadToEnd();
write_log(input);
HttpContext.Current.Response.ContentType="text/plain";
Response.Write("hello");
Scott Rider
www.scottrider.com
|
|
|
|
|
yeah.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Same thing.
Scott Rider
www.scottrider.com
|
|
|
|
|
how check the checkboxes in checkboxlist items when retriving the data from back end to front end in asp.net using c#.net
dfd
|
|
|
|
|
If I get your question you can do it in the DataBound event of CheckBoxList .
Mazy
"This chancy chancy chancy world."
|
|
|
|
|
Hi All,
How to create the crystal report in ASP.NET with c#(Web Application).
Plz give me the steps to create it in an easy way
|
|
|
|
|
Search Crystal Report in search bar of code project and you will find some articles.
Mazy
"This chancy chancy chancy world."
|
|
|
|
|
Hi all,
I want to open a readme txt file when user clicks a button. How do i achieve this. Thanks in advance.
|
|
|
|
|
Open read me file in client?I don't think there is anyway without use component.Use reponse to write it in a aspx page.
StreamReader rdrTextFile=new StreamReader(txtFilePth);
string strContent=rdrTextFile.ReadToEnd();//strContent is the content of the txt file.
//response strContent
rdrTextFile.Close();
|
|
|
|
|
Hi sir,I'm sorry.I think I didn't understand your demand.
(1) Set Response's ContentType to "APPLICATION/OCTET-STREAM";
(2) Add a header like: response.AddHeader("Content-Disposition","attachment;filename="+strFileName);//just change the fileName to your real file name.
(3)Get a buffer array(use FileStream to get a byte[]);
(4)Clear the response;
(5)Use Response.OutputStream.Write write the byte array to client.
(6)Call Response.End(),otherwise you will see the html of current page in the text file.
|
|
|
|
|
Sorry for not being clear.
I don`t wan`t to read or write to a file!!!. All i need to do is open or download up a notepad file on the client`s machine stored on the server as soon as the user clicks on the help button.I know that i can use a hyperlink set it`s href value to the file but how do i do this on a button click. Or just tell me how do i fire onclick event of that hyperlink on a button click.
|
|
|
|