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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
S

Sachin Gedam

@Sachin Gedam
About
Posts
20
Topics
15
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to call aspx pages of other web application in content place holder of master page of share point?
    S Sachin Gedam

    Hello, I am trying to call aspx page of other web application in content place holder of master page of share point. But not getting exact way for it. Actually that aspx page contains masterpage attribute attached to it. And this master page attribute point to asp.net masterpage. And I want to show such aspx pages to master page of share point application. Will it possible? What could be the way? How to use session created by asp.net in share point pages? Please help me for the same.

    Sachin Gedam (Software Engg.) Pune India

    ASP.NET csharp asp-net help tutorial question

  • can you propose me better solution than this go get client side time zone setting?
    S Sachin Gedam

    Hello Friends, I am working in .Net 1.1 framwork. Basic task is to get client's local time(not datetime.now) and store it in GMT format in database server with its time zone information. I can get local time by javascript, but can you help me to identify client's time zone information. Can I access it from Http header? As a solution to this I maintaining one xml file which have all time zone information with it. I am manipulating date time conversion based on this xml file. At local side(in javascript) I am maintaining two array one for time zone abbreviation and one for GMTOffset, in JavaScript I can get GMTOffset with respect to local time, and from this GMTOffset I can find out time zone abbreviation. And I am passing this time Zone abbreviation to server side for further conversion. But problem with this solution is that, it may be possible that two or more time zone can share same offset, in that case I am not able to get exact time zone information. I am receiving only first one. So can you propose me better solution than this to get client side time zone setting?

    Sachin Gedam (Software Engg.) Pune India

    ASP.NET help csharp javascript database sysadmin

  • How to restore Backup file from remote PC to SQL Server?
    S Sachin Gedam

    Hello Friedns, I am tring to restore backup file which is on Machine1. And SQL server might be on anyother machine in local network. I am using this Code: ============================================================== //create an instance of a server class SQLDMO._SQLServer srv = new SQLDMO.SQLServerClass(); //connect to the server if(rbLocal.Checked==true) srv.Connect(this.txtServName.Text,this.txtUserName.Text,this.txtPass.Text); else srv.Connect(this.cmbServList.Text,this.txtUserName.Text,this.txtPass.Text); //create a restore class instance SQLDMO.Restore res = new SQLDMO.RestoreClass(); //set the backup device = files property ( easy way ) res.Devices = res.Files; //set the files property to the File Name text box res.Files = "[" + System.IO.Path.GetTempPath()+"AlcoMateBlank.BAK" + "]"; //set the database to the chosen database res.Database = this.txtDBName.Text; // Restore the database res.ReplaceDatabase = true; res.SQLRestore(srv); ============================================================== This code working properly if Backup file is on Local Machine but not if backup file is on another machine in a network. I am getting this error BackupDiskFile::OpenMedia: Backup device 'C:\DOCUME~1\sachin\LOCALS~1\Temp\AlcoMateBlank.BAK' failed to open. Operating system error = 3(The system cannot find the path specified.). Can you please suggest me eassy way of restoring database from remote PC to remote sql server which is in LAN? Sachin Gedam (Software Engg.) Pune India

    C# database sysadmin sql-server help tutorial

  • How to restore Backup file from remote PC to SQL Server?
    S Sachin Gedam

    Hello Friedns, I am tring to restore backup file which is on Machine1. And SQL server might be on anyother machine in local network. I am using this Code: ============================================================== //create an instance of a server class SQLDMO._SQLServer srv = new SQLDMO.SQLServerClass(); //connect to the server if(rbLocal.Checked==true) srv.Connect(this.txtServName.Text,this.txtUserName.Text,this.txtPass.Text); else srv.Connect(this.cmbServList.Text,this.txtUserName.Text,this.txtPass.Text); //create a restore class instance SQLDMO.Restore res = new SQLDMO.RestoreClass(); //set the backup device = files property ( easy way ) res.Devices = res.Files; //set the files property to the File Name text box res.Files = "[" + System.IO.Path.GetTempPath()+"AlcoMateBlank.BAK" + "]"; //set the database to the chosen database res.Database = this.txtDBName.Text; // Restore the database res.ReplaceDatabase = true; res.SQLRestore(srv); ============================================================== This code working properly if Backup file is on Local Machine but not if backup file is on another machine in a network. I am getting this error BackupDiskFile::OpenMedia: Backup device 'C:\DOCUME~1\sachin\LOCALS~1\Temp\AlcoMateBlank.BAK' failed to open. Operating system error = 3(The system cannot find the path specified.). Can you please suggest me eassy way of restoring database from remote PC to remote sql server which is in LAN? Sachin Gedam (Software Engg.) Pune India

    Database database sysadmin sql-server help tutorial

  • How to convert absolute path to relative path?
    S Sachin Gedam

    Dear Mykel, Thanks for your kind reply. I got one more and effective solution which is exactly feet to my requirement. http://www.freevbcode.com/ShowCode.asp?ID=968 Thanks for your help. ~Sachin Sachin Gedam (Software Engg.) Pune India

    C / C++ / MFC csharp java question c++

  • How to convert absolute path to relative path?
    S Sachin Gedam

    Hello Friends, Please help me.. How can I get the relative path for a folder? Is there a function in vb,vb.net,c#,java,c or C++ which generates the relative path depending on two input-paths, like: RelativePath = GetRelativePath(strSelectedFolder, strBaseFolder) Or anybody have expert-exchange login then do login for me and get the solution from there: https://secure.experts-exchange.com/register.jsp?query=relative+path&clearTAFilter=true&srid=ANaQRBFkNu6qNzcPciZwgw%3D%3D&redirectURL=%2Fsearch.jsp%3Fquery%3Drelative%2Bpath%26clearTAFilter%3Dtrue%26rsid%3D10%26begin%3D11&rsid=10 Waiting for your valuable reply. Sachin Gedam (Software Engg.) Pune India

    C / C++ / MFC csharp java question c++

  • [Message Deleted]
    S Sachin Gedam

    Dear Friends, I got the solution. I just run E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat before compiling that c++ project. It sets all required env variables and other things, now my c++ code get compiled from the command line. Thanks to all my friends who try to help me. :) Sachin Gedam (Software Engg.) Pune India

    C / C++ / MFC

  • [Message Deleted]
    S Sachin Gedam

    [Message Deleted]

    C / C++ / MFC

  • How to write xml tag in attribute value?
    S Sachin Gedam

    Hello friends, I need to write a xml tag, where its attribute value will be like this. but this s giving me error, i don't want to write < >. Even i try with Cdata like this but still it giving me error. Can you please help me for the same. Sachin Gedam (Software Engg.) Pune India

    XML / XSL help xml tutorial question

  • How to add button in DataGrid?
    S Sachin Gedam

    Hello Friends, I want to add windows button to a particular cell of DataGrid of Winform on click of that cell. Can you help me for the same. Sachin Gedam (Software Engg.) Pune India

    C# help tutorial question

  • Need your help on NUnit
    S Sachin Gedam

    Dear Maqsood, Yah normally, in earlier project we did the same thing. We used to write a test case in same assembly. But here customer wants to maintain Test Project on other location. Even he want the different namespace for the same. And the problem start from here, I am not able to take reference of EXE in my NUnit Project, so that I can use the methods and property of that EXE. Hope you could get my problem. Sachin Gedam (Software Engg.) Pune India

    C# tutorial question csharp com help

  • Need your help on NUnit
    S Sachin Gedam

    Hello Friends, I have to write Nunit Test cases for a console EXE which is written in C#. In NUnit test class I can take reference of a targeted DLL or COM object. But I am not able to get a reference of a EXE. Please guide me how to get a reference of a EXE in C# class. How can I use methods and properties of that EXE in C# class? Waiting for your reply. Sachin Sachin Gedam (Software Engg.) Pune India

    C# tutorial question csharp com help

  • Creating MSI using NAant build tool.
    S Sachin Gedam

    Hello Friends, NAnt is a tool to prepare build for .NET project. Even using Nantcontrib library we can create zip folder for our project build or send mail for build result. Now I am facing problem to prepare MSI file for this build folder. If anybody of you have a code for/ target script this, please do send me on saching@jopasana.com. Waiting for your kind reply.:rose: Sachin Gedam (Software Engg.) Pune India

    ASP.NET csharp com tools help

  • how to use dll created by C,C++ in C# project?
    S Sachin Gedam

    sorry but its not a COM object, its simple a compiled dll created by old school level C,C++ language. And we have to use that dll in our .net project. Sachin Gedam (Software Engg.) Pune India

    C# help csharp c++ tutorial question

  • how to use dll created by C,C++ in C# project?
    S Sachin Gedam

    Hello Friends, Our clients requirement is that we have to use their DLL which is created by C,C++ code. What I am doing in my code is that : 1. using using System.Runtime.InteropServices; 2. [DllImport(@"g:\SampleDLL.dll",EntryPoint="test", SetLastError=true, CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Winapi)] 3. static extern int test(int lpLibName); 4. and in code calling test function with parmeter as 10. But I am getting error that entry point "test" not found in SampleDll.dll, but this methods defination written in that dll itself. Please help me out of this. Or tell me is there any other way to use that dll? Sachin Gedam (Software Engg.) Pune India

    C# help csharp c++ tutorial question

  • How to fire query on dataset?
    S Sachin Gedam

    Hello Friends, I am facing on problem regarding XML and slow performance. Actually I am reading data from XML node by node. Now what i am thinking that, we can convert XML file to dataset and we can access data from dataset. But I am not able to get a way to access data from dataset. Can you please tell me how to fire query on dataset? Like if I collect all data from XML to dataset now want to get all employee having sal>=5000 How to fire this query on dataset? And resultant should be bindable to grid. Sachin Gedam (Software Engg.) Pune India

    ASP.NET css database xml performance help

  • About Web Service...
    S Sachin Gedam

    :confused: Hello Friends, I am beginner level .NET programmer, I want to develop one web service, but this web service itself detect that who is using my web service, from where he is using it and at what time and what date. This web service may be use in web application as well as in desktop application. so anybody help me will be appreciate his/her help. Waiting for your kind reply. Sachin Gedam Sachin Gedam (Software Engg.) Pune India

    .NET (Core and Framework) csharp help learning

  • About Web Service...
    S Sachin Gedam

    :confused: Hello Friends, I am beginner .net programmer, I want to develop one web service, but this web service itself detect that who is using my web service , from where he is using it and at what time and what date. This web serivce may be use in web application as well as in desktop application. so anybody help me will be appricate his/her help. Waiting for your kind reply. Sachin Gedam Sachin Gedam (Software Engg.) Pune India

    .NET (Core and Framework) csharp help learning

  • RegEx.IsMatch not working!!
    S Sachin Gedam

    yes its working colin, thanks for the solution...but i want to work on that regular expression only...i want to use [0-9]* as a regular expression...i want same code but with this regular expression...to check numbers only... Once again thanks for your kind cooperation. Sachin Gedam (Software Engg.) Pune India

    ASP.NET regex sysadmin tutorial question

  • RegEx.IsMatch not working!!
    S Sachin Gedam

    hello friends, my task is to validate data on server side..by any means... I feel regular expression "RegEx" is a simplest way to do so...so guide me for the same.. now see my regular expression for checking numeric value is "[0-9]*" and syntax for checking so is RegEx.IsMatch(targeted string, reg expression) and will return true and false. RegEx.IsMatch("0","[0-9]) will return true. RegEx.IsMatch("a","[0-9]") will return false. now RegEx.IsMatch("12fa","[0-9]*"); gives me true value, why? I used RegulaIOptins also as a third parameter...can u please correct me if I m doing wrong or give me simplest solution to check whether data is numeric, alphanumeric or alpha only...(priority is RegEx). Eagerly waiting for your reply. Sachin Gedam (Software Engg.) Pune India

    ASP.NET regex sysadmin tutorial question
  • Login

  • Don't have an account? Register

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