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
Z

Zoki Manas

@Zoki Manas
About
Posts
7
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Error Use of unassigned local variable 'ClientScript'
    Z Zoki Manas

    Small change in your code: string strScript = null; ClientScriptManager ClientScript = Page.ClientScript; strScript = "window.open('popupContent.aspx','new_Win','height=650,width=250,resizable=0')"; ClientScript.RegisterClientScriptBlock(this.GetType(), "popup", strScript, true); View line number 2.

    ASP.NET question help

  • How to set 3 tier Architecture in physically.(harware)
    Z Zoki Manas

    WCF = Windows Communication Foundation. It is a replacement for web services. More details can be found on followinf links: What is WCF? http://msdn.microsoft.com/en-us/library/ms731082.aspx[^] Beginners guide http://msdn.microsoft.com/en-us/netframework/dd939784.aspx[^] ABC of WCF http://msdn.microsoft.com/en-us/magazine/cc163647.aspx[^]

    C# database sysadmin question com hardware

  • Print with two printers ?
    Z Zoki Manas

    First you have to find all installed printers, and then implement your code logic for selecting appropriate one's for printing the documents. using System.Drawing.Printing; // Loop through the string collection of printers foreach (string strPrinter in PrinterSettings.InstalledPrinters) { // Show the name of the printer MessageBox.Show(strPrinter); } By this you will have access to all installed printers. Implement your logic for selecting printer to do the job.

    C# csharp tutorial question

  • How to set 3 tier Architecture in physically.(harware)
    Z Zoki Manas

    One possible solution is to implement Service layer above BLL code and DAL code. This service layer will wrap methods from these two assemblies in web service methods or WCF methods. By this, you can deploy different app layers on different machine. Additionaly, implementing Load balancing on application layer will not be a problem. The service layer will represent nice interface for your exe to be used. Let me sketch your scenario... Presentation layer (EXE) ------------------------ BLL WCF Services ------------------------ BLL assembly ------------------------ DAL WCF Services ------------------------ DAL assembly Your exe will reference BLL WCF service that can be deployed on any PC. Your BLL code will reference DAL WCF service that can also be deployed on any PC. I hope it will clear some issues for you.

    C# database sysadmin question com hardware

  • Try-Catch problem in C# console app
    Z Zoki Manas

    Try your code like this: string sResponse; SqlDataReader myReader; bool recExists = false; // Check existence of tracking record sQuery = "Select * from tracking where shipper_id = '" + sShipperId + "' AND shipper_ack = '" + sShipperAck + "'"; myCommand1 = new SqlCommand(sQuery, conn); try { myReader = myCommand1.ExecuteReader(); bool recExists = myReader.HasRows; } catch (Exception e2) { conn.Close(); conn.Dispose(); sResponse = e2.GetBaseException().ToString() + " " + sQuery; } // for example return recExists; Hope this helps

    C# help csharp question

  • Form Resizing and Docked Controls
    Z Zoki Manas

    I've tried your example. I have one form and put one picture box inside. I've only set Dock property of the picture box to "Fill" and everything was working fine. Forget about showing picture box size, in the text property of the form. Set Dock = Fill, and just to see that it is resizing, set BackgroundColor of the picture box to some color and test it.

    Windows Forms help winforms question announcement

  • problem with primary key
    Z Zoki Manas

    If you are executing your INSERT command in a stored procedure, you can assign ID value of the inserted data to a local variable. Example: declare @returnID -- here goes your insert statement set @return = @@identity With this you have the value of the ID in the local variable, that you can return o your code as return parameter from the stored procedure.

    ASP.NET database help sql-server sysadmin 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