Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
K

ketankumar

@ketankumar
About
Posts
24
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • [Message Deleted]
    K ketankumar

    [Message Deleted]

    The Lounge

  • how can i add .exe file in asp.net 1.1
    K ketankumar

    Hey, 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.

    ASP.NET csharp asp-net help question

  • how can i add .exe file in asp.net 1.1
    K ketankumar

    First 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.

    ASP.NET csharp asp-net help question

  • For Indians/Pakistanis (accessing Blogspot)
    K ketankumar

    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.

    The Lounge c++ csharp com question discussion

  • How to Accss Session Variable in Javascript?
    K ketankumar

    You can store in Cookie instead of session. You can set cookie value from javascript and also from asp.net code. Regards, Ketan.

    ASP.NET javascript tutorial question

  • Querying regarding installed software in current machine
    K ketankumar

    I 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.

    Visual Basic adobe question

  • How to use text to speech [modified]
    K ketankumar

    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.

    ASP.NET csharp tutorial question

  • How to call a java alert message into asp.net application
    K ketankumar

    Simply write, Response.Write("alert('Your message');"); Regards, Ketan.

    C# csharp java asp-net sales tutorial

  • Windows Service & Web Service
    K ketankumar

    Why 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.

    C# csharp asp-net tutorial

  • Word Doc in asp.net
    K ketankumar

    You 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.

    ASP.NET question csharp asp-net database tutorial

  • Pl help me in this issue
    K ketankumar

    What 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

    C# help csharp asp-net database sql-server

  • Problem in Importing data from Excel (Urgent)
    K ketankumar

    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

    C# help csharp

  • Hi Images are not showning in asp.ney 2.0,
    K ketankumar

    You might be facing problem of path. You must use Server.Mappath method to give image path, not the physical exact path. Regards, Ketan.

    ASP.NET csharp html design

  • Creating Excel file from dataset data [modified]
    K ketankumar

    Well, I dont know anything about Share Point server, I am sorry I cant help now anymore. :sigh: Regards, Ketan

    ASP.NET sysadmin help question

  • Creating Excel file from dataset data [modified]
    K ketankumar

    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.

    ASP.NET sysadmin help question

  • Opening new windows from ASP
    K ketankumar

    I 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.

    Web Development database question

  • Creating Excel file from dataset data [modified]
    K ketankumar

    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

    ASP.NET sysadmin help question

  • how to use RowFilter Property of DataView in C#?
    K ketankumar

    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.

    C# question csharp tutorial

  • calling a .NET function within a javascript function
    K ketankumar

    To 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.

    Web Development csharp question javascript tutorial

  • Datagrid
    K ketankumar

    You need to use Template Column. Please refer to following link: http://www.codeproject.com/aspnet/ASPNET_DataGrid_creation.asp[^] Regards, Ketan Majumdar.

    ASP.NET tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups