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
S

Samer Aburabie

@Samer Aburabie
About
Posts
74
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • pointer and address?
    S Samer Aburabie

    Hi There, You do that by using the unsafe keyword, pointers are not safe type in c#, and as you know c# uses managed code which uses garbage collector, but in un-managed code the garbage collector cant interfear, pointers in c# requires writing unmanaged code, therefore you have to use the unsafe keyword.

    Sincerely Samer Abu Rabie Imagination is more important than knowledge !

    C# csharp c++ question

  • ASP.Net : Xml Version Format
    S Samer Aburabie

    Why don't you just use it as it is ? Is it causing you problems ?!

    Sincerely Samer Abu Rabie Imagination is more important than knowledge !

    XML / XSL question xml csharp asp-net database

  • Conversion logic
    S Samer Aburabie

    :laugh:

    Sincerely Samer Abu Rabie Imagination is more important than knowledge !

    The Weird and The Wonderful csharp com design

  • Coping data from dataset to table
    S Samer Aburabie

    Are you certain about the connection string and there is data in the source datatable ?!

    Sincerely Samer Abu Rabie Imagination is more important than knowledge !

    C# help database xml

  • Coping data from dataset to table
    S Samer Aburabie

    Hi there, What kind of error you are getting ?! if no exception then did you make sure that the source datatable has data? and is the connection string correct to be for the destination database ?!

    Sincerely Samer Abu Rabie Imagination is more important than knowledge !

    C# help database xml

  • Asp.net 2.0 Gridview control problem
    S Samer Aburabie

    Hi there, Look for something called Modal Dialog in Javascript, in which it gives you the ability to Show Popup Window with a content of your choise. P.S: this is not a GridView Control problem ! ;P

    Sincerely Samer Abu Rabie Imagination is more important than knowledge !

    ASP.NET csharp asp-net help question

  • Add values in the textboxes in javascript
    S Samer Aburabie

    Do the following: - Use the property of the button OnClientClick="SumValues()" to do the summation on client side - Add a javascript function SumValues() for example and make it sum the text values, to get the value of each textbox use getElementById in javascript.

    Sincerely Samer Abu Rabie Imagination is more important than knowledge !

    ASP.NET question csharp javascript asp-net sysadmin

  • Conversion logic
    S Samer Aburabie

    You know ... sometimes I think that the compiler should'nt compile such a code !! and display a message for the developer :"For God Sake What with the hell is that !!!" :)

    Sincerely Samer Abu Rabie Imagination is more important than knowledge !

    The Weird and The Wonderful csharp com design

  • Just a MessageBox :S [modified]
    S Samer Aburabie

    The other day I saw a code where the developer intended to check his code by displaying a message box in ASP.NET applicatoin if a condition is true, in order to accomplish this he refrenced the System.Windows.Forms assembly and called the MessageBox to display his message. When running the code, it actually worked !! and displayed the message successfully !!! I freezed when I saw this ! How come a windows form control message box is displayed on the browser ?! Actually it makes all the sense to be displayed from a technical point of view ... but it will create a disaster when its really used !!! what actually happens is that when the MessageBox is displayed the thread of the process is freezed until the User clicks ok !!!! and what user is that ... figured out the trick ?!!? Let me give an example : the application on server ABC and some user on machine xyz is browsing the application, now when he faces the condition and the message should be displayed it will not be displayed to XYZ User !!! it will be displayed on ABC server since its a server side call !!!! Now he had no clue about that because he was in development time on his machine, and his machine in debugging is the server as well, so he was able to see the message box with no problem :) It's a codding horror no doubt ... but it makes an asp.net developer thinks more realistic and deeper on the behaviour of his own applications !!!

    Sincerely Samer Abu Rabie Imagination is more important than knowledge !

    modified on Sunday, May 17, 2009 3:59 AM

    The Weird and The Wonderful csharp asp-net sysadmin help tutorial

  • Page.IsValid conditional not working
    S Samer Aburabie

    Hi there, What you are doing is a server validation using the Validators set on the page, and Page.IsValid property returns a value according to wether a certain Validation Group is valid or not OR all validation controls are valid or not on the page. In other words checking its value immediatley will be with no value for you, you have to call Page.Validate(validationGroupName) first in order for this value to return the desired and good value of it. You can call Page.Validate() to validate all validators on the page, or call Page.Validate(validationGroupName) if you have a group, you can set a group of validation on the controls using the ValidationGroup property if you wanted. Hope that helps.

    Sincerely Samer Abu Rabie Imagination is more important than knowledge !

    ASP.NET question html design sysadmin help

  • Unbind source control
    S Samer Aburabie

    Why not install VSS then remove the bindings then do whatever you want with the solution and the VSS !

    Sincerely Samer Abu Rabie Imagination is more important than knowledge !

    Visual Studio visual-studio question csharp wpf wcf

  • Need help in code-behind
    S Samer Aburabie

    This is a pre-compiled version you have where it eliminates the cs or vb files and convert it to dlls in the bin folder in order to work on production environement.

    Sincerely Samer Abu Rabie Imagination is more important than knowledge !

    Visual Studio visual-studio csharp design sysadmin

  • Storing binary data in xml file msxml and sending it to client through winsock
    S Samer Aburabie

    Hi There, Sorry but do you think any one will bother to answer you on that ! this is a newspaper for god sake !

    Sincerely Samer Abu Rabie Imagination is more important than knowledge !

    XML / XSL help com sysadmin beta-testing xml

  • Parsing XML file -exception because element node contains a space in name
    S Samer Aburabie

    Simply as you said it holds white spaces in the tag ! You can't have white spaces in the tag UNLESS you will be adding an attribute ... the tag name should always be one word whitespace-less !

    Sincerely Samer Abu Rabie Imagination is more important than knowledge !

    XML / XSL help csharp visual-studio com debugging

  • Shape Control
    S Samer Aburabie

    I think this link should help you from Microsoft MSDN: http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keydown(VS.71).aspx[^]

    Sincerely Samer Abu Rabie Imagination is more important than knowledge !

    C# csharp help

  • Jobs?
    S Samer Aburabie

    Christian Graus wrote:

    like the guy in the ASP.NET forum right now who wants to operate a scanner over the web and tried it with var scanner = document.getElementById("myScanner"); scanner.scan();

    Yeah ... I read that post of the scanner guy ! actually the discussion was hilarious :)

    Sincerely Samer Abu Rabie Imagination is more important than knowledge !

    The Lounge question career

  • Problem while binding data to a DropDownList in GridView's EditItemTemplate column
    S Samer Aburabie

    Hi there, I think you already knew half the solution to your problem ... the returned null object from FindControl is because he really cant find it in Cell[6]... well try going more deeper ... use the debugger to see all controls inside Cell[6] and then in each one try finding your dropdownlist ... I think all you have to do is go one step deeper as I recall for the EditTemplate.

    Sincerely Samer Abu Rabie Imagination is more important than knowledge !

    ASP.NET help csharp wpf wcf learning

  • table inside a href=".." Question?
    S Samer Aburabie

    Hi there, First of all table control cant be nested in (a) tag (this will not make the content clickable), second of all you should be using tr and td tags within a table ... To solve this you could use the following example: <table> <tr> <td> <a href="Home.aspx">Hit Me</a> </td> </tr> </table> Here you are nesting the (a) element inside the table element in which it will be clickable according to the behaviour you want. Hope that helped !

    Sincerely Samer Abu Rabie Imagination is more important than knowledge !

    ASP.NET question html tools

  • navigation among forms in windows application
    S Samer Aburabie

    It depends on what you want, taking in consideration that there is a main form that shouldn't be closed, other forms could be, and you have the option of closing the forms or hiding them, preferrably is to close them of course except the main form which should be just hidden.

    Sincerely Samer Abu Rabie Imagination is more important than knowledge !

    C# lounge

  • Regarding Contructors
    S Samer Aburabie

    Hi, I am not sure what is the question is ... constructors can be declared to create a new object of that class ... they can by public (accessible to outer classes) or private (only to the same class) now its not commonly used to declare a private constructor ... most common case is when you are creating a singleton object (read about singleton design pattern)... but can we use constructors in the same class ? Yes we can ... no roles can forbid doing so ...

    Sincerely Samer Abu Rabie Imagination is more important than knowledge !

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