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
M

Mazdak

@Mazdak
About
Posts
4.0k
Topics
574
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Number of day week in javascript
    M Mazdak

    Thanks I will try that and see what happen :)

    Mazy
    "This chancy chancy chancy world."

    JavaScript javascript

  • Number of day week in javascript
    M Mazdak

    My date is like this: 2016-02-07 ( YYYY-MM-DD )

    Mazy
    "This chancy chancy chancy world."

    JavaScript javascript

  • Number of day week in javascript
    M Mazdak

    Thanks, Yes it can be for timezone/localisation problem too. Here is my code: function ff_bfQuickMode7256046_validation(element, message) { if(element.value == '' ) return 'Please select a date for your apppointement.\n'; var myday = new Date(element.value) ; myday.setDate(myday.getDate()); var weekday = myday.getDay(); alert(weekday); if (weekday == 6 || weekday == 0 ) { if (message=='') message = element.name+" faild in my test.\n" message = 'We are close on Saturdays and Sundays.\n'; ff_validationFocus(element.name); return message; } // if return ''; } // ff_bfQuickMode7256046_validation The probelm is I get two different numbers for WEEKDAY on two different computer. So are you telling me that getDay() should return the same value globaly for all OS or setting..?

    Mazy
    "This chancy chancy chancy world."

    JavaScript javascript

  • Number of day week in javascript
    M Mazdak

    Hello everybody, I have a Calendar in my page and I want to check if users select Saturday or Sundays, with getDay() function I can check day number, but I find out depend on operating system setting I get different number for Saturday or Sunday. So how is a proper way I can check this and be sure it is secure for every operating system settings. Regards

    Mazy
    "This chancy chancy chancy world."

    JavaScript javascript

  • Refresh User Control look
    M Mazdak

    I have custom windows user control. It is just a textbox puted on a panel. And panel is on User control. The panel OnPaint is overriden. Everything looks fine except when some form comes on the control or menu open on it and I move or close the above form, the user control looks does not refresh completely extra lines from closed form remain on the panel. Should I call Invalidate() or Refresh() from specific event of user control? Thanks

    Mazy
    "This chancy chancy chancy world."

    C# question

  • Custom look for NumericUpDown control
    M Mazdak

    Yes, after more investigation, I came into same result. Thanks for reply.

    Mazy
    "This chancy chancy chancy world."

    C# tutorial question

  • Custom look for NumericUpDown control
    M Mazdak

    I want to change the look of Up and Down buttons in NumericUpDown control with some images, I know one way is to override OnPaint event but I could not find any example. Does anyone know good example of this?

    Mazy
    "This chancy chancy chancy world."

    C# tutorial question

  • Question about RegEx Class
    M Mazdak

    Hi, I'm not very good at RegEx , I want to use RegEx class to match values with desired string. My main string looks like this: <%#String.Concat ..blah blah.. %> in above string I want to get all the matches which between double quotes ( " ... " ) in blah blah part. What is my expression should look like? Thanks for your help

    Mazy
    "This chancy chancy chancy world."

    C# question regex help

  • Expression needed
    M Mazdak

    Hi, I'm not very good at RegEx , I want to use RegEx class to match values with desired string. My main string looks like this: <%#String.Concat ..blah blah.. %> in above string I want to get all the matches which between double quotes ( " ... " ) in blah blah part. What is my expression should look like? Thanks for your help

    Mazy
    "This chancy chancy chancy world."

    Regular Expressions regex question help

  • Using SSH proxy in my application
    M Mazdak

    I'm using HttpWebRequest & HttpWebResponse classes in my application. I have SSH proxy on my computer which IE or FIREFOX use it to connect to internet. How can I make my application use the same proxy or use the setting in IE? The WebProxy class didn't help me.

    Mazy
    "This chancy chancy chancy world."

    C# question help

  • List of controls
    M Mazdak

    Standard Controls, Data Controls, Validation Control, Login Controls

    Mazy
    "This chancy chancy chancy world."

    ASP.NET csharp asp-net question

  • List of controls
    M Mazdak

    I want to get list of asp.net controls and list them in a listbox. I know they are all in WebControl namespace but there so many extra class are also there. So anybody know some smooth solution?

    Mazy
    "This chancy chancy chancy world."

    ASP.NET csharp asp-net question

  • TreeView Control
    M Mazdak

    I have treeview control in my website and each node also has a image. When user click on a node the page redirect to another page. Now my question is , is it possible to have two different url, one for clicking on image node and another for clicking on node text?

    Mazy
    "This chancy chancy chancy world."

    ASP.NET question

  • Read width & Height of jpeg file
    M Mazdak

    System.Drawing.Image.FromFile(jpegpath).Size

    Mazy
    "This chancy chancy chancy world."

    C# data-structures beta-testing question

  • Adding control at runtime
    M Mazdak

    Thanks ,it works now but I have one more problem. This button will be placed inside different type of UserControls, so how can get which UserControl should be create other that using a factory for my constructors?

    Mazy
    "This chancy chancy chancy world."

    C# help question

  • Adding control at runtime
    M Mazdak

    I have a usercontrol in form1 which has a button in it. When user press this button I create a FORM class and add my usercontrol to it with the code below:

    private void MaximizeButton_Click(object sender, EventArgs e) {
    Form form = new Form();
    Control c = this.Parent;
    form.Controls.Add(c);
    form.Controls[0].Dock = DockStyle.Fill;
    form.Controls[0].Location = new Point(0, 0);
    form.ShowDialog();
    }

    The second form shown correctly but the problem is the UserControl disappear from the main form. Any idea? Thanks

    Mazy
    "This chancy chancy chancy world."

    C# help question

  • Question about style
    M Mazdak

    Thank you very much. I got the point.

    Mazy
    "This chancy chancy chancy world."

    Web Development question

  • Question about style
    M Mazdak

    Thanks for your reply, marquee is the answer for first one, see the page below , BBC Persian [[^](http://BBC Persian)] The page is in persian, you can see what I mean by character by character at the top of the page. -- modified at 14:54 Wednesday 16th May, 2007

    Mazy
    "This chancy chancy chancy world."

    Web Development question

  • Question about style
    M Mazdak

    I'd be pleased if somebody tell me the style that cause a text: 1 - Move horizentally 2- Text shown character by character in a label. Thanks.

    Mazy
    "This chancy chancy chancy world."

    Web Development question

  • get client information
    M Mazdak

    Mohammad Daba`an wrote:

    ip address,

    Context.Request.UserHostAddress

    Mazy
    "This chancy chancy chancy world."

    ASP.NET 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