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
G

gokselm

@gokselm
About
Posts
19
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Numeric range to regular expression converter
    G gokselm

    Hi I want to enter a minimum value and a maximum value as the input. Ex:3-55 Then I want an output as regular expresion like ([3-9]|[1-4][0-9]|5[0-5]) Thanks

    C# regex question

  • Numeric range to regular expression converter
    G gokselm

    Hi I am looking for a convertor. It must be able to convert a numeric range to a regular expression string. I searched the internet but I could not find a one. I do not have time to write from scratch. Do you know such a code? Thanks

    C# regex question

  • Using the same class belonging to the same namespaces in two different assembly for a project
    G gokselm

    I just wanted to try if there is a way to do that. But you are right. In my case I just can't change the classes at all. It seems that I will have to write a small application to use the other version. Thanks again.

    C# question

  • Using the same class belonging to the same namespaces in two different assembly for a project
    G gokselm

    Hi, I am trying to use a class from two different assemblies. This class is contained in the same namespace in the assemblies. These assemblies are referenced in the same project and I want to be able to use both classes. Ex: MyClass is under MyNamespace namespace in Assembly1.dll MyClass is under MyNamespace namespace in Assembly2.dll Assembly1.dll and Assembly2.dll are referenced in MyProject project. How can I use MyClass class from both assemblies. Best Regards

    C# question

  • Creating Typesafe Collections
    G gokselm

    After you inherit from an interface (ex:IList) that has the indexer try the following. new public ColBase this[int index] { get { return (ColBase ) base[index]; } set { base[index] = value; } }

    C# question

  • Storing objects inherited from ArrayList in ViewState
    G gokselm

    Hi, I have a question regarding viewstates. I have an object inherited from ArrayList. When I try to store it in the viewstate I can store it but after I try it to get back, I can not get my object . Instead I get the ArrayList object instead of my object. If I try to cast the ArrayList , it does not work. Because it is really an ArrayList. As far as I know if the object is serializable I should be able to store and take my objects. Do I have to write a type converter. I want to understand the reason that why it behaves like this. Regards

    ASP.NET question

  • mms sending
    G gokselm

    MMS is for multimedia message service. GSM operators have MMS Servers and these mms servers have interfaces to speak with the outside. Since messages are in KBytes it can not be handled with SMS. Instead it can be handled with HTTP or SMTP interfaces. There might be some special operator interfaces as well. So it depends on the interface of the MMS server. If it is SMTP , you have to handle it using SMTP codes.

    C# csharp help

  • Datasets
    G gokselm

    Did you try to convert the dataset data to byte array? byte[] bytes=(byte[])ds.Tables[0].Rows[0][0] Than convert the byte array to the data you want.

    Database tutorial question

  • samury
    G gokselm

    I just want to mention about one way doing this. You can create a resource dll and embed your resources to this dll choosing the Build Action as Embedded Resource. Then you can reach this icons as librray items. Imagine yo have the icon test.ico in IconLibrary namespace and you want to change your form's icon. System.IO.Stream st=assemblyExecuting.GetManifestResourceStream("IconLibrary.test.ico"); form.Icon=new System.Drawing.Icon(st); System.IO.Stream st=assemblyExecuting.GetManifestResourceStream("IconLibrary.test.ico"); Read the icon as stream form.Icon=new System.Drawing.Icon(st); Then set the form's icon. Yo can also use System.Drawing.Bitmap(st) to convert the image to the bitmap. Once you can get the image from the assembly you can use it in everywhere. I Hope it helps

    C#

  • CrystalReport Print Prob...
    G gokselm

    I suggest exporting the crystal report to the client side. You can insert a print button to your page. When the user clicks this button you can export the report to a certain file and redirect the user to the exported file or send the file to the client so that the client can choice to open or save the document. ASP.NET CR9 supports word, excel, pdf and html exports. You can look how to export from help documents. It is a simple process. You can also export the report to html directly and show the exported html page. You can set from export options to have back and next button at the bottom of the page. So the client will just see the report and the next and back buttons at the bottom.

    ASP.NET csharp asp-net help

  • How to validate regular expression pattern?
    G gokselm

    Thanks for your help Heath.

    C# regex question tutorial

  • How to validate regular expression pattern?
    G gokselm

    Hi, I want to ask a question about Regular expressions. I want to validate the regular expression pattern if it is written correctly or not? I do not want to test a string against to a regular expression pattern but the regular expression pattern itself. Is there a way? Kind Regards

    C# regex question tutorial

  • What is the best way for Return Messages? Exceptions, return strings, return classes?
    G gokselm

    Hi, I want to ask a question about how to return messages from a general class. How should I warn the users. When something happened that must not be done what the object must do? The senario is, there are several classes. Each of them has specific functionality. It seems to me that the best way is defining a class that has properties like MessageID and and the Message. User can compare the MessageID with the const integers on the class to understand what happens and takes action. Is there a general approach? Kind Regards

    C# question tutorial lounge

  • Deployment: access to VirtualDirectory in installer?
    G gokselm

    I am not sure but they might be in the Context parameters. But I am not sure. You can reach the Context parameters and the key values using the enumerator of Context.Parameters. They should be in this context parameters. You can reach this parameters class inside your Installer class.

    ASP.NET csharp asp-net sysadmin windows-admin question

  • Deserializing in a different assembly... how to?
    G gokselm

    I found the solution and it solves lots of problems. :) You are right. How would deserialization know which object to create to hold the data. So there must be a way to tell the deserialization which object to create. And there is such a way. While deserializing it is trying to create the object in the serialized data. But I want to create my new object. So I wrote my special binder for my object. public class SpecialBinder : System.Runtime.Serialization.SerializationBinder { public override Type BindToType(string assemblyName, string typeName) { MyObject obj=new MyObject(); return obj.GetType(); } I binded my new binder object for deserialization. So I told the deserialization to create my new object. It may whether be under a new name space or even in a new assembly. soapFormatter.Binder=new MyBinder(); MyObject obj=(MyObject)formatter.Deserialize(myStream); What if there are multiple objects that are marked as serialized in the serialized object. At least now I wrote the solution. It should return all the classes that are serialized in the main serialized object. public override Type BindToType(string assemblyName, string typeName) { MyObject1 obj1=new MyObject1(); MyObject2 obj2=new MyObject2(); MyObject3 obj3=new MyObject3(); if (typeName.IndexOf("MyObject1")>0){ return obj1.GetType(); } if (typeName.IndexOf("MyObject2")>0){ return obj2.GetType(); } if (typeName.IndexOf("MyObject3")>0){ return obj3.GetType(); } return null; } This approach works in both binary and soap serialization. I will try to write a generic approach. Then I can share it with you. I know it is not a good idea to do such things but in my case I have to do that.

    C# question dotnet com design xml

  • Deserializing in a different assembly... how to?
    G gokselm

    Imagine that there are already some serialized objects and I want to change the namespace for an application. How can I do it? Is there a way to do that? I do not know how to exclude the namespace information while serializing or deserializing. Does anyone knows if it is also a subject in binary serialization.

    C# question dotnet com design xml

  • how to apply filter to Master/Detail records in dataset
    G gokselm

    If you are using more than one table in a dataset you should already have defined the relationships between them. If you did not, look to the msdn for Relations in DataSets. After you filter the master table you can get the the other table's related rows by using the GetChildRows method of each row on the master table. I hope it helps.

    Database csharp com tutorial

  • Creating an installer for my solution
    G gokselm

    You should add a setup project to your solution. You can also add Installer class to your main project for the custom actions during the setup. You can look up the msdn for further documentation.

    C# csharp question tutorial

  • Crystal Reports
    G gokselm

    As far as I know you can not do that if you do not use the Crystal Report RAS Server. With that you can produce the all report in runtime.

    C# 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