[Message Deleted]
ketankumar
Posts
-
[Message Deleted] -
how can i add .exe file in asp.net 1.1Hey, its not a big deal to convert this simple c# code to vb.net. Although, you can google for c# to vb.net converters and get the code converted. You can mention your dekstop application path whatever it is.
nabeelkhan wrote:
would you like u tell me that running .exe from this way will not harmfull from the application. thnks
I think you are a new player thats why asking such questions. X|
Regards, Ketan.
-
how can i add .exe file in asp.net 1.1First of all, you cannot include an exe, but ofcourse you can execute.
You can pass your asp.net page variables as arguments to exe, also you can get return data from exe by writing it to some text file. Here is simple code snippet in C#:try
{
string yourArgs = "bla bla bla"; //This is the input parameter to exe System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = System.Web.HttpContext.Current.Server.MapPath("yourapplication.exe");
p.StartInfo.UseShellExecute = false;
p.StartInfo.WorkingDirectory = Path;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
p.StartInfo.Arguments = yourArgs;
p.EnableRaisingEvents = true;
p.Start();
p.WaitForExit();
p.Close();
p.Dispose();
}
catch (Exception exp)
{
//Write Code to handle exception here.
}Regards, Ketan.
-
For Indians/Pakistanis (accessing Blogspot)Nishant Sivakumar wrote:
I don't know what's behind this silly decision.
But I know. I cant understand why do you get surprised with Congress Government's such decisions every time. It is their policy to make a maximum misuse of power. There are plenty of examples that Congress has taken such decisions against organizations, instutions, students, etc. whenever they have opened their mouth against their one sided policy. Cant you recall Emergency! This is the only problem with world's so called largest democracy that you have no freedom to speak. Really it is surprising that you dont know... X| Regards, Ketan.
-
How to Accss Session Variable in Javascript?You can store in Cookie instead of session. You can set cookie value from javascript and also from asp.net code. Regards, Ketan.
-
Querying regarding installed software in current machineI am making one application in VB6. I want to find out that whether the flash plug in for IE is installed in the current machine or not. Can anyone suggest a way for this? :confused: Regards, Ketan.
-
How to use text to speech [modified]You should use SAPI for this purpose. Using this, you need not install anything in client side. Also, go through following link, you can download sample .NET Project also. You can ask me for any trouble, I have developed the entire application successfully. http://www.eggheadcafe.com/articles/20050813.asp[^] Regards, Ketan.
-
How to call a java alert message into asp.net applicationSimply write, Response.Write("alert('Your message');"); Regards, Ketan.
-
Windows Service & Web ServiceWhy you put burden of retrieving queries to windows service, rather you can put report data from windows service in db, and let web service directly fetch reports from db to service to asp.net page without interrupting windows service. Regards, Ketan.
-
Word Doc in asp.netYou need to refer Microsoft Word Object Library COM in your project. Please read the following article: http://support.microsoft.com/?scid=kb;en-us;316384[^] Regards, Ketan.
-
Pl help me in this issueWhat problem do you have in writing a class file? Would you please elaborate this? Just add one class file in your web application, and define all data access functions in it. Also you can define a function in the class that will dynamically fill the dropdown list by passing it as a parameter by reference. Regards, Ketan
-
Problem in Importing data from Excel (Urgent)You need to check proper registry entry of Msexcl40.dll. Please go through following link and follow the steps given. http://support.microsoft.com/kb/209805[^] Regards, Ketan
-
Hi Images are not showning in asp.ney 2.0,You might be facing problem of path. You must use Server.Mappath method to give image path, not the physical exact path. Regards, Ketan.
-
Creating Excel file from dataset data [modified]Well, I dont know anything about Share Point server, I am sorry I cant help now anymore. :sigh: Regards, Ketan
-
Creating Excel file from dataset data [modified]Set NavigateUrl property of HyperLink control to current page name and add one flag in query string. For example, if your current page name is page.aspx then set NavigateUrl property as : "page.aspx?excel=true" And then, in page_load() event add following code: if(Request.QueryString["excel"]=="true") { //Write stuff to create excel file. } I am sure this trick will work. Regards, Ketan.
-
Opening new windows from ASPI think that following code will be useful for you although I did not get your problem completely. In VBScript write following code when you want to open new window: Response.Write("window.open('page.asp')"); Regards, Ketan.
-
Creating Excel file from dataset data [modified]Hello Niki, You can create excel file on the fly. I have posted in my previous message that how to create excel file on the file and give to user for download. First of all you need to generate html code in table format from dataset.I am writing the code for that as well. ---------------------------------------------------------------------- //Write a table structure from dataset //Suppose your dataset name is ds then write following code on click event of hyperlink: string strHtml = ""; DataTable dt = ds.Tables(0); foreach(DataRow dr in dt.Rows) { strHtml+=""; for(int i=0;i"; } strHtml+=""; } strHtml+="
"; //Clear the Response Headers Response.Clear(); Response.Charset = String.Empty; // String.Empty(); //Set Content Type and add header Response.ContentType = "application/vnd.ms-excel"; //Add Header to create a file on the fly, give file name also. (i.e. abc.xls) Response.AddHeader("Content-Disposition", "attachment; filename=abc.xls;"); this.EnableViewState = false; //Declare new HtmlTextWriter System.IO.StringWriter myTextWriter = new System.IO.StringWriter(); System.Web.UI.HtmlTextWriter myHtmlTextWriter = new System.Web.UI.HtmlTextWriter(myTextWriter); //Declare new HtmlGenericControl and feed it with the strHtml HtmlGenericControl gn = new HtmlGenericControl(); gn.InnerHtml=strHtml; //Finally render the HtmlGenericControl to Response gn.RenderControl( myHtmlTextWriter); Response.Write(myTextWriter.ToString()); Response.End(); ---------------------------------------------------------------------- Regards, Ketan. -- modified at 7:30 Wednesday 5th July, 2006
-
how to use RowFilter Property of DataView in C#?RowFilter is used when you want to display some but not all rows of datatable based on some criteria. This criteria is specified in RowFilter. It is similar to that of using WHERE clause in your SELECT query. For more reference please visit: http://davidhayden.com/blog/dave/archive/2006/02/11/2798.aspx[^] Regards, Ketan.
-
calling a .NET function within a javascript functionTo the best of my knowledge, you cannot call a server side function from client side script (i.e. Javascript). I think there is only way to achieve this, i.e. use AJAX.
-
DatagridYou need to use Template Column. Please refer to following link: http://www.codeproject.com/aspnet/ASPNET_DataGrid_creation.asp[^] Regards, Ketan Majumdar.