Thanks for your kind help Vikas :-) I'll see into it now itself
Carpe diem, Krg
Thanks for your kind help Vikas :-) I'll see into it now itself
Carpe diem, Krg
Ok scott.Sorry for that.
Carpe diem, Krg
Hi, I am working on a windows service that monitor a path and does some upload based on the FileWatcher class. As per microsoft, it say that "More than one user Service may run within the same process". Therefore, i created two services (component classes) in my windows service project and added an instance of each to the service to run as shown below: static void Main() { ServiceUtility initUtl = new ServiceUtility(Constants System.ServiceProcess.ServiceBase[] ServicesToRun; **ServicesToRun = new System.ServiceProcess.ServiceBase[] { new exchangeRateFileWatcher(), new KYCFileWatcher() };**System.ServiceProcess.ServiceBase.Run(ServicesToRun); } However, i read that the second service will run only if the first one fails. Can you please tell me whether it is possible (and how) to run the two services within the same process (i.e exe)? Thank you for your kind help
Carpe diem, Krg
Hi, I am working on a windows service that monitor a path and does some upload based on the FileWatcher class. As per microsoft, it say that "More than one user Service may run within the same process". Therefore, i created two services (component classes) in my windows service project and added an instance of each to the service to run as shown below: static void Main() { ServiceUtility initUtl = new ServiceUtility(Constants System.ServiceProcess.ServiceBase[] ServicesToRun; **ServicesToRun = new System.ServiceProcess.ServiceBase[] { new exchangeRateFileWatcher(), new KYCFileWatcher() };**System.ServiceProcess.ServiceBase.Run(ServicesToRun); } However, i read that the second service will run only if the first one fails. Can you please tell me whether it is possible (and how) to run the two services within the same process (i.e exe)? Thank you for your kind help
Carpe diem, Krg
Hi, I am working on a windows service that monitor a path and does some upload based on the FileWatcher class. As per microsoft, it say that "More than one user Service may run within the same process". Therefore, i created two services (component classes) in my windows service project and added an instance of each to the service to run as shown below: static void Main() { ServiceUtility initUtl = new ServiceUtility(Constants System.ServiceProcess.ServiceBase[] ServicesToRun; ServicesToRun = new System.ServiceProcess.ServiceBase[] { new exchangeRateFileWatcher(), new KYCFileWatcher() }; System.ServiceProcess.ServiceBase.Run(ServicesToRun); } However, i read that the second service will run only if the first one fails. Can you please tell me whether it is possible (and how) to run the two services within the same process (i.e exe)? Thank you for your kind help :-)
Carpe diem, Krg
Sorry but the xml file is quite large(i did mention it in the post). In fact, SelectSingleNode has some problem when reading rdlc files due to its namespace declaration. So, one needs to add things of the sort for it to work: XmlNamespaceManager ns = new XmlNamespaceManager(tmpXmlDoc.NameTable); ns.AddNamespace("ns", "http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition"); ns.AddNamespace("rd", "http://schemas.microsoft.com/SQLServer/reporting/reportdesigner"); That's it Mike. Relax and go around a little from time to time. It will do you good! :-p
Carpe diem, Krg
Hi, I need to dynamically modify a rdlc report (it is basically and xml document) to remove some columns at runtime. I have tried using Xpath to retrieve the required nodes but to no avail.The SelectSingleNode function returns null and the SelectNodes function returns 0. Please find a sample rdlc file. I need to remove the node <TableCell> <ReportItems> <Textbox Name="IND_PASSPORT_EXPIRY_DATE1"> <ZIndex>17</ZIndex> <Style> <BorderStyle> <Default>Solid</Default> </BorderStyle> <TextAlign>Center</TextAlign> <PaddingLeft>1pt</PaddingLeft> <PaddingBottom>1pt</PaddingBottom> <BackgroundColor>=iif(RowNumber(Nothing) Mod 2, "LightGrey", "DarkGray")</BackgroundColor> <PaddingRight>1pt</PaddingRight> <PaddingTop>1pt</PaddingTop> </Style> <CanGrow>true</CanGrow> <Value>=Fields!IND_PASSPORT_EXPIRY_DATE.Value</Value> </Textbox> </ReportItems> </TableCell> I have tried all sort of Xpath patterns to no avail. Can you please help me on this? The rdlc file is as follows (Sorry for the length.Do paste it in notepad and open it in ie to see the structure): <?xml version="1.0" encoding="utf-8"?> <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner"> <DataSources> <DataSource Name="ConnectionString"> <ConnectionProperties> <ConnectString /> <DataProvider>SQL</DataProvider> </ConnectionProperties> rd:DataSourceID22362927-fb28-4ac1-bbee-8cf51540142a</rd:DataSourceID> </DataSource> </DataSources> <BottomMargin>0.5in</BottomMargin> <RightMargin>0.5in</RightMargin> <PageWidth>11.69in</PageWidth> rd:DrawGridtrue</rd:DrawGrid> <InteractiveWidth>8.5in</InteractiveWidth> <rd:SnapToGrid
Hi, I have a simple application which generates Excel reports. I use Response.BinaryWrite() to write whatever excel content i have to the client (client is prompted to save). I need to change some status message on my webpage after the excel generation process. However, this cannot be done since Response.Binary just flushes the excel file to the client and that's it.. Can someone plz suggest a way i could get the status changed prior the excel generation process plz? Thank you
Carpe diem, Krg
Hi, I'm a WMC newbie and i need some serious help concerning the click-to-record feature as described below: I need to schedule a TV recording programmatically. To do this, i need to catch the event whenever a user clicks "Record" and prompt him/her with a dialog. The user will then have the choice of performing a "regular" schedule or a schedule from a proprietary service. Can you plz give me a kickstart on the issue above? Thank you. Ps. Sorry for posting here but i have no idea as where i can post this message :-)
Carpe diem, Krg
Hi, One solution, to me, would be to remove the "AutoPostback" attribute on the radio buttons and provide with a Next>> button (provide validation for this) for the user to move further. There are other means, of course, but without having a glance at your code, i just can't say. Hope this helps
Carpe diem, Krg
Hi, I need to add entries (key and values) to a EXISTING resource file (resx) programmatically. Can anyone plz help me on this? Thanks
Carpe diem, Krg
The quickest way i see is to programmatically navigate to the URL and programatically perform a printscreen and save the clipboard data to to file. Dunno if this is of any help.
Carpe diem, Krg
Hi, basically impersonation is a means for a particular process account to access a given ressource on behalf of some other process accounts. Simply speaking, say i am a user process and i have access to some local resources on my computer. You are another process which does not have access to local resources on my pc. If you really need to access these local resources, i can give you access by letting you "impersonate" me (i.e temporarily take my identity). This often occurs in ASP.NET where the account IUSR_YOUR_MACHINE_NAME is required to execute some resources to which it does not have rights. In this case, you have to give ASP.NET the right to impersonate another account (say admin account for example) to do the job. Eg. If you need to save a file on the server and the account IUSR_YOUR_MACHINE_NAME does not have enough rights to do it, it is a common practice to allow ASP.NET to temporarily take the identity of another account to perform the job. This is how it can be done in the web.config file: < identity impersonate="true" userName="MyDomain\Admin" password="admin"/> Hope this helps :-) Carpe diem, Krg
Thanks for the clue. I will give it a go. :-) Carpe diem Krg
I did use it but not for wizards. Can you please tell me more about these "practical problems" plz? Carpe diem Krg
One solution is to use web UserControls User controls come as ascx files and contain the same functionality (even pageload is there) as an aspx. The great thing is that you can dynamically load and unload usercontrols on an aspx by using a panel or some other methods. In visual studio, add a new file of type " Web User Control" for each step of your wizard and add the required coding in each ascx. Then use a panel in your aspx to load and unload the different user controls programmatically. Hope this helps.:) Carpe diem Krugger
Create a project of type "Class library" and add your code. Visual studio will generate the DLL in the "bin" folder of your application on successful build. Any changes made prior to a rebuild will be included in the modified DLL. Hope this helps.:) Carpe Diem Krg
Shortly, HTML refers more or less to static sites (content is not easily updatable). ASP is a dynamic web page development technology whereby you can connect your web page to a database or whatever and have your content updated without having to go in the code. However, ASP.NET is the newer and easier to use version of ASP (to some extent) and it gives the possibility of building web pages using any of your favourite languages found in Visual Studio.NET framework (usually people use C#, VB.NET or J# to code their ASP.NET pages). Hope this helps :) Carpe diem Krg
Hi Ahmed, aspx has really something to do with html. If you take a closer look at an aspx file, you will see the regular etc... tag. So, to include a javascript file and use functions therein, follow the example below: (1) Say we have a file called scripts.js containing a function "test()" that we want to use. (2) Place the tag "script language="javascript" src="scripts.js">" tag between the "" and "" tag (3) Next say i have a texbox and i want to execute function "test()" on leaving the textbox Code :
Hi, Sorry i did find the answer myself. Its as simple as getting an Enumerator on the ResourceManager's ResourceSet. Please find the code below if this might help someday: ResourceSet resourceSet = _resManager.GetResourceSet(new CultureInfo(userLanguage), true, true); IDictionaryEnumerator eDict = resourceSet.GetEnumerator(); string x = string.Empty; while(eDict.MoveNext()) //Loop in Resource Set { x += " [" + eDict.Entry.Key + "] --> [" + eDict.Entry.Value + "]"; }