• Member Avatar for madCoder
    madCoder

    Replied To a Post in how can i get the cookie who created by server side (C#) using javascript

    You woud access it like any other cookie for the site, using the Request.Cookies collection of the Controller class, `Request.Cookies["cookie"]` returns an object for the cookie named "cookie". Use the …
  • Member Avatar for madCoder
    madCoder

    Replied To a Post in Newsletter

    The Mailchimp service (http://mailchimp.com/) is a great option. I manage sending announcements for a client of mine and have used Mailchimp for several years. Mailchimp offers some nice services that …
  • Member Avatar for madCoder
    madCoder

    Replied To a Post in Please explain

    $_SESSION is a collection of values stored on the web server per visitor, per browser (ie, tied to the browser by a *cookie* that stores a unique *Session ID*.) Values …
  • Member Avatar for madCoder
    madCoder

    Replied To a Post in Mvc

    Same as you would in html: html5: `<button id="foo" disabled>...` xhtml: `<button id="foo" disabled="disabled">...` Submit buttons follow the same pattern: html5: `<input type="submit" id="foo2" value="Submit" disabled />` xhtml: `<input type="submit" …
  • Member Avatar for madCoder
    madCoder

    Began Watching how to update selected field in mvc, c#, mssql using linq

    for example. name of field: f1 = "field1", f2 = "field2", f3 = "field3", f4 = "field4" how can I update the value of f2 and f3 without changing the …
  • Member Avatar for madCoder
    madCoder

    Replied To a Post in Conversion from string "k" to type 'Integer' is not valid. asp.net

    You've got to refer to the cells by their numeric index. .cells(0) is k for example.
  • Member Avatar for madCoder
    madCoder

    Replied To a Post in convert from color image to gray image

    What problem are you having? From what I see of your code sample, the original uploaded image *might* display (though I'm not sure what URL is getting generated.) The changes …
  • Member Avatar for madCoder
    madCoder

    Began Watching convert from color image to gray image

    hi everyone. I have written a program that convert from color image to gray image in asp.net with visual basic, but I have a problem am new in asp.net and …
  • Member Avatar for madCoder
    madCoder

    Replied To a Post in Display “Complete” div when reaches a line or a variable in PHP/HTML code

    In addition to everything @lps says, can you have sql do some of the work in calculating the results you need? You show `$total` which could likely be calculated from …
  • Member Avatar for madCoder
    madCoder

    Began Watching Error when I am hosting my ASP.NET sites

    My ASP.NET site coded in C# is running fine on my local system but when I uploaded the files on the httpdocs folder through plesk/ I have a shared accounts …
  • Member Avatar for madCoder
    madCoder

    Replied To a Post in Error when I am hosting my ASP.NET sites

    Global.asax is a funny thing and can be problematic because of execution order. It looks like this code is in the `Global.asax` file instead of the `Global.asax.cs` file. Try moving …
  • Member Avatar for madCoder
    madCoder

    Replied To a Post in PHP Header

    `index2.html` should be named `index2.php` . The PHP interpreter won't be used (by default, anyway) if the extension is html.
  • Member Avatar for madCoder
    madCoder

    Replied To a Post in Foreign key error when inserting data in SQL

    Line 7 of your code should refer to `expenseID.Text` or `expenseId.SelectedValue` (in the case of a dropdown or radiobutton list.)
  • Member Avatar for madCoder
    madCoder

    Began Watching Help with enable/disable textbox if the radio button is selected/deselected

    I have problems with the enable/disable of textboxes if the radio button is selected/deselected. Normally, if I select "Others" from the radio button group "Project List", the textbox is enabled. …
  • Member Avatar for madCoder
    madCoder

    Replied To a Post in Help with enable/disable textbox if the radio button is selected/deselected

    Many of your radio buttons do not have event handlers. You need an event handler for the "enable" and "disable" behaviors. The "checkchanged" event is fired by the control receiving …
  • Member Avatar for madCoder
    madCoder

    Began Watching Visual studio .net excel reports

    Hi, I have an SQL database with data stored in it but I'd like to create reports that will allow the user to enter two dates and return the data …
  • Member Avatar for madCoder
    madCoder

    Began Watching External html/css in visual studio

    Hi, recently started a new job where I will creating .net applications, however there is one person who designs the html and css in notepad++ and then puts it onto …
  • Member Avatar for madCoder
    madCoder

    Replied To a Post in External html/css in visual studio

    Initially you can simply use drag and drop to drag content files into your Visual Studio project. This automatically adds the files into your project when you drop the files …
  • Member Avatar for madCoder
    madCoder

    Stopped Watching Learning PHP

    I bought the book "PHP 5/mySQL Programming for the Absolute Beginner." So far I have been pleased with the book, but am stuck on a lesson and can't get past …
  • Member Avatar for madCoder
    madCoder

    Replied To a Post in Tree View or Drop Down List Event Doesn't Fire

    Without seeing some code behind, it's hard to diagnose but a few things come to mind: 1. Make sure the site is running as an ASP.NET 4.x site (it might …
  • Member Avatar for madCoder
    madCoder

    Replied To a Post in Changing bootstrap.css

    Line 9 in the listing above is likely a syntax error. Simply uncomment the H1 element on line 7 for a title heading. You can't have more than one HEAD …
  • Member Avatar for madCoder
    madCoder

    Replied To a Post in site.master file question

    The webopt:bundlereference is new in .net 4.5. It is bundling ALL the css in your content folder -- including [Bootstrap](http://getbootstrap.com/)! Basically it concatenates the CSS files, minifies it (removes unneeded …
  • Member Avatar for madCoder
    madCoder

    Replied To a Post in how to separate fields while updating from one table to another

    @kaziraja, you can use the String class' Split method. [C#: String.Split()](http://msdn.microsoft.com/en-us/library/system.string.split%28v=vs.110%29.aspx) table2 = new Table2(); // Assumes a Table2 entity exists. string source="1002008000300-53-9" string[] codeParts = source.split('-'); // Assign split …
  • Member Avatar for madCoder
    madCoder

    Began Watching SerializationException: Not marked as serializable during conversion of Sys

    I am working on a website which is being developed in Visual Studio 2010 with ASP.NET 4. I am trying to programmatically extract an image from a word document. The …