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
R

Rajesh_K_Sharma

@Rajesh_K_Sharma
About
Posts
152
Topics
121
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to display windows application and windows service in System try
    R Rajesh_K_Sharma

    Hi, I have window application and windows service in C#. I want to display both application in System tray. I want to handle service like start ,service start up, stop using system tray . I would like to know how to create setup on project so that service can installed and it display in system try. with in system try I want to display one menu for open windows application. I want to merger windows application and windows service in one application and want to create setup .When we install setup ,service should be installed and it should displayed in System try. Please give me any idea !!!!!!

    rajesh

    C# csharp tutorial workspace

  • How to add new line in cell gridview in desktop application
    R Rajesh_K_Sharma

    Hi, I have gridview which contains Column type DataGridViewButtonColumn. I want to set caption of button in two line like Save Close. I have tried to set caption using "Save\nClose" ,"Save\r\nClose" and "Save\f\nClose", but not worked .Please tell me how to set caption using new line? Regards, rajesh

    rajesh

    C# tutorial question

  • Where Streamed file stored ( transferMode="Streamed") in WCF
    R Rajesh_K_Sharma

    hi, I created an application for uploading file from client to server. My service is hosted on IIS and client is web application (ASP.net 2.).Every thing works fine. I would like to know .......... 1) How to maintain transaction while file uploading from client to server:- Suppose I upload 1 GB File from client to server, in the mean while, networks connection broken .Then In this condition what will happen? file upload partially on server or not. 2) File upload conformation :- Suppose file uploaded on server successfully, Can service tell to client that your file uploaded successfully means confirmation. 3) Where stored stream file:- Suppose I GB file upload on server.I want to where stream stored ? in RAM or hard disk or Network. If stream file stored on network .so it will affect on bandwidth of network . These are the doubts.Please help me to clarify . So that I can build small utility for uploading and downloading file over HTTP. Regards, Rajesh Enviroment :- OS -Win XP,ASP.net 2.0 ,IIS 5.1 rajesh

    rajesh

    WCF and WF csharp sysadmin asp-net wcf windows-admin

  • How to kill the process of website in c#
    R Rajesh_K_Sharma

    Dear friend, I have hosted 3 web sites (WebSite1, WebSite2 ,WebSite3) on IIS6.0. I want to kill process of website2 in c# while killing the process of Web Site 2 ,the other website like website1 and website3 should not be stopped .First of all I am very eager to know how to get process of specific website so that I can kill process individually.WebSite1 , WebSite2 and Website 3 is not in default website . These are created separately. Please let me know how to kill process of specific website. Regards Rajesh

    rajesh

    Web Development csharp tutorial

  • How to convert .MPP File to .XML File in C#
    R Rajesh_K_Sharma

    Hi, I am making an application integrated with Microsoft Project 2003 in c#. Now ,I want to convert .MPP file in .xml file using C#. I don't how to do this. I need help books or reference guide for integrating with Microsoft Project In C#. if you have any idea .please let me know immediately. Thanks in advance Regards, Rajesh

    rajesh

    C# tutorial csharp xml help

  • Timer interval not change while running the windows service in C#
    R Rajesh_K_Sharma

    Thanks. I have created an xml file and stored interval . While running the windows service interval is set well through xml. Regards Rajesh

    rajesh

    C# csharp tutorial question

  • Timer interval not change while running the windows service in C#
    R Rajesh_K_Sharma

    Hi I made a window service application and I used system.timers.timer class . I set timer interval from config file. I would like to fire timer as specified interval in config file. It works fine but while running the windows service I want to change timer interval in config file and timer should be fired at latest interval . When I stop the service and restart the service then timer fire as specified value in config file. Pseudo code private System.Timers.Timer timer2 = new System.Timers.Timer(); protected override void OnStart(string[] args) { // dblValue = 30000 double dblValue = Convert.ToDouble(ConfigurationManager.AppSettings.Get("Interval")); timer2.interval = dblValue timer2.Elapsed += new System.Timers.ElapsedEventHandler(timer2_Elapsed); timer2.Enabled = true; } void timer2_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { timer2.Enabled = false; // doing some operation // Now I want to change the value in config file like dblValue = 60000 double dblValue = Convert.ToDouble(ConfigurationManager.AppSettings.Get("Interval")); timer2.interval = dblValue timer2.Enabled = true; } but timer always fired after 30000 milliseconds. But I want , timer should be fired after 60000 milliseconds , means latest value define in config file. Please tell me how to do this ? Regards Rajesh

    rajesh

    C# csharp tutorial question

  • Auto updating application
    R Rajesh_K_Sharma

    Dear friends, I want to make application like windows Update in C#. As I know that windows update use BITS (Background intelligence services).But, I don’t know how to use BITS in C#. If any body has sample code or reference .Please let me know. Or suggest me what approach should I follow to make auto updating application in c#. Regards, Rajesh

    rajesh

    C# csharp tutorial announcement

  • How to store all rows of a column in a sql variable
    R Rajesh_K_Sharma

    Hi All, I have A Table, which contains 40000 records. I want to store values of all rows of a column in a sql variable. the column daytatpe is Varbinary. there is ID column also. I need to append these records order by ID (ASC) when I appent rows in a variable. I did something like this:- Table Schema is Create table TempTable ( ID Identity int, ColData varbinary(max) Colchange varbinary(max) ) DECLARE @ActData varbinary(max) DECLARE @ActChainage varbinary(max) SET @ActData = cast('' as varbinary) SET @ActChainage = cast('' as varbinary) SELECT @ActData = @ActData + ColData , @ActChainage = @ActChainage + Colchange from TempTable Order by Id select cast(@ActChainage as varchar(max)) When I use "Order by ID" then query return only last record, but without using "Order By ID" it returns all records in a sql variable, but not in sort order. I need Order by ID. Can any help me out to solve this problem? Regards, Rajesh

    rajesh

    Database database help xml tutorial question

  • Regular expression for Alphanumeric and float
    R Rajesh_K_Sharma

    Hi, I need regular expression to validate input string which can not accept [()==<>'~!#$^%*=]+" and regular expression for float which can check if user enters more than four digit after decimal like 1111.12345 . 3333.222 – Valid 3333.1234566 – Invalid Regards Rajesh

    rajesh

    ASP.NET regex

  • How to handle event in two user control dropdown list.
    R Rajesh_K_Sharma

    I am agree with Amandeep . I will bind dropdown by datasource but this is simple example. If my problem solve then I will implement though datasource.

    rajesh

    ASP.NET question csharp winforms linq design

  • How to handle event in two user control dropdown list.
    R Rajesh_K_Sharma

    Dear friends, I am trying to create two dropdown list user controls and these are dependent on each other like state is dependent on country. When I select county then I am unable to fill state dropdown. How can I fill state dropdown on selection of country? I have followed steps like this Country.ascx:- ]]> Code behind:- using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class Country : System.Web.UI.UserControl { public event EventHandler SelectedIndexChanged; public string SelectedValue { get { return Convert.ToString(ViewState["Value"]); } set { ViewState["Value"] = value; } } public bool AutoPostBack { get { return Convert.ToBoolean(ViewState["AutopostBack"]); } set { ViewState["AutopostBack"] = value; } } protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ddlCountry.Items.Insert(0, new ListItem ( "India","0")); ddlCountry.Items.Insert(1, new ListItem ("South Korea","1")); } } protected override void OnInit(EventArgs e) { base.OnInit(e); ddlCountry.AutoPostBack = true; ddlCountry.SelectedIndexChanged += new EventHandler(ddlCountry_SelectedIndexChanged); } void ddlCountry_SelectedIndexChanged(object sender, EventArgs e) { OnSelectedIndexChanged(e); } protected void OnSelectedIndexChanged(EventArgs e) { if (SelectedIndexChanged != null) { SelectedValue = ddlCountry.SelectedValue.ToString(); SelectedIndexChanged(this, e); } } } State.ascx public partial class State : System.Web.UI.UserControl { public string CountrySelectedValue { get { return Convert.ToString(ViewState["Id"]); } set { ViewState["Id"] = value; } } protected void Page_Load(object sender, EventArgs e) { switch (CountrySelectedValue) { case "0": ddlState.Items.Add("Del

    ASP.NET question csharp winforms linq design

  • @PJL JOB USTATUS
    R Rajesh_K_Sharma

    Hi, I am trying to get printed document name and source machine name from where print command is given. I am not able to get printed document name.I would like to get printer job status using PJL.I have HP Lasertjet P2015dn Printer. Please tell me, does this printer support Job Status PJL command?. If you have any sample code.Please tell me. I have written PJL Command like this \x1B%-12345X@PJL USTATUS JOB = ON \r\n@PJL USTATUS DEVICE = ON \r\n\x1B%-12345X\r\n Thanks in advance. Regards, Rajesh

    rajesh

    C# question career

  • WMI “Printer job status “is not working in Windows service
    R Rajesh_K_Sharma

    Hi Abhijit Thanks, I would like to implement in windows service not in console application . I already did in console and window form application.It works fine . But when I use in windows service . It don't work.

    rajesh

    C# help question career

  • WMI “Printer job status “is not working in Windows service
    R Rajesh_K_Sharma

    Hi I am creating windows service for finding the job information using WMI.Service is installed successfully. I can start service successfully, but, when I give command to print some document. The document get s printed but that time, it does not track any job status. I am not getting printer job using ManagementObjectCollection printJobs = printJobsSeacher.Get();. I want to know how can I Get printer job staus when I use window service.I think , I am doing some mistak .Plese help me. public partial class WMIPrinterService : ServiceBase { static Timer oTimer; public const int iInterval = 200; public WMIPrinterService() { InitializeComponent(); } protected override void OnStart(string[] args) { oTimer = new Timer(new TimerCallback(Callback), this, 0, iInterval); } public void Callback(object sender) { GetStatus(); } protected override void OnStop() { } void GetStatus() { ManagementObjectSearcher printJobsSeacher = new ManagementObjectSearcher(@"SELECT * FROM Win32_PrintJob"); ManagementObjectCollection printJobs = printJobsSeacher.Get(); foreach (ManagementObject item in printJobs) { // Print JobStatus } } } Regards Rajesh

    rajesh

    C# help question career

  • Urgent information required for PJL (Printer job language)
    R Rajesh_K_Sharma

    Hi I would like to develop an application for printer using Printer Job Language .I am new in this domain. So, I would like to know that answers of the following questions. 1. Can I develop this application in C# using PJL 2. If yes, then how can I send command to printer and how can I get response? 3. Is Hp p2015 printer support PJL? Please send me any fruitful link or reference so that I can easily develop this application Regards Rajesh

    rajesh

    C# question csharp career

  • How to send PJL Command to network printer in c#
    R Rajesh_K_Sharma

    How to print Test Page using PJL Command in C#?. Could tell me some steps to connect network printer and how to send PJL Command to network printer for finding the document name and current printed page in c#? Regards Rajesh

    rajesh

    C# csharp sysadmin tutorial question

  • How to print Page using PJL in C#
    R Rajesh_K_Sharma

    How to print demo page using PJL in C#. I have code for print, but I don’t how to execute in c#. I have followed step Like private void ConnectToPrinter(string IPAddress, int Port) { //Loads the printer's IP address and port ipEndPoint = new IPEndPoint(Dns.GetHostEntry(IPAddress).AddressList[0], Port); //Creates a new socket to connect to the printer. (Streams data through TCP) socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); socket.Connect(ipEndPoint); } o Connect To Printer ( IP, Port) o strCommand = String.Format("\x1B%-12345X@PJL EXECUTE DEMOPAGE \r\n\x1B%-12345X\r\n"); ; //Sends the request to the printer. byte[] sendData; sendData = Encoding.ASCII.GetBytes(strCommand); int result = 0; result = socket.Send(sendData, sendData.Length, 0); I don’t know , where I made a mistak. Please tell me how to execute PJL Command in C# Regards Rajesh

    rajesh

    C# csharp tutorial

  • How to send PJL Command to USB connected Printer in c# [modified]
    R Rajesh_K_Sharma

    Hi everyone I want to get printer information using “Printer job description language “in c#. My question is: • How to send PJL command to USB connected and Lan connected printer in C# I have installed “HP LaserJet 1300” printer which is running on “DOT4_001” port. Now I want to send PJL command to this printer and want to get information about printer. If anybody has any sample project or article .Please send me Regards Rajesh

    rajesh

    modified on Friday, June 13, 2008 2:33 AM

    C# csharp tutorial question career

  • how to select text or right click of mouse on modal popup in ASP.net
    R Rajesh_K_Sharma

    Hi, Thanks for reply Actually, child modal popup windows contain lot of text. Now, I want to select that text so that I can copy and paste in text file. I am not taking about parent form. My question is concern with Child Modal Popup Windows. Please tell me any other solution. Regards Rajesh

    rajesh

    ASP.NET csharp java asp-net tools help
  • Login

  • Don't have an account? Register

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