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
U

User 11699443

@User 11699443
About
Posts
12
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Time to vent
    U User 11699443

    bkebamc wrote:

    I feel your pain, Joe, but recall that these forums are seen by many as venues for establishing reputation. Every time you post something, you're not simply asking for help, you're creating an opportunity for someone to score points.

    Great point! if someone comes to me with a resume saying they have a StackOverflow reputation or score of having downvoted or flamed 1000+ developers or whatever the h. a good score is supposed to be there? I will thank them and show them the door.

    The Lounge c++ question data-structures help tutorial

  • Time to vent
    U User 11699443

    Stack overflow IS a problem in the developer world. It may be large, but its a cabal of the worst kinds of people this world has, and who have some kind of problem being normal. Some world class developers post there, some known others with a common monniker you wouldnt guess. So just as Las Vegas is better than determinism, its a gamble whether you get an answer, and God have mercy if someone doesnt think your question is up to their standards of ?? so just what are their standards? Some cranky goof upset at their role playing and foul mood where perhaps other players criticized them, now they are mad and have the control to punish developers who are looking to solve problems in the real world... stack overflow SUCKS!! let good or bad questions persist, let obviously wrong questions or answers persist, no they have the need to micromanage peoples' lives and get off on being sadistic, stack overflow users with control, SUCK!! as Homer said: Ive seen people suck before, but they (stack overflow goofs) are the suckiest bunch of sucks that ever sucked. we need to boycott the use of stack overflow, insist on using code project or msdn or anything else. Its not just a minor annoyance, stack overflow is or has become a scourge on the developer world

    The Lounge c++ question data-structures help tutorial

  • in MVC Edit page, how to check for null values?
    U User 11699443

    debug as in single step? is there no add in to visual studio?

    JavaScript javascript database question csharp html

  • in MVC Edit page, how to check for null values?
    U User 11699443

    ok thanks for that. === is strict equality, nulls compare when they are null and undefined, == converts the types but hopefully converts a copy; so if it converts and you reference something more than once that got converted, it can be a problem is that what you mean? I assumed strict equality, but will use this in the future. it seems that the javascript/html cannot be trusted for lambda type expressions like c#, just do everything a step at a time i had done switch case, case yes, no, null, "" then default with the alert message "it should never get here". of course you can guess the message that shows up. value was no. or other code tested for null and would be true when the value was string 'no', and othertimes not. but i think the answer is to separate the tests and not try to combine and hope the test will be run right.

    JavaScript javascript database question csharp html

  • in MVC Edit page, how to check for null values?
    U User 11699443

    right, when i have code that works sometimes but not every time, i wonder what the engine is doing. So, would you say that an application like controlling equipment would not be advisable with html/javascript? where it reads a value of something and takes action like sets a voltage that runs a motor, etc? its okay if its like that, am just trying to be clear what its doing, how 'stateful' is it? i mean there are websites like amazon where you look at items and it may mess up but you just reload and go. if the html/javascript was running motors that moved mechanisms is it stateful and trustable to keep its place?

    JavaScript javascript database question csharp html

  • in MVC Edit page, how to check for null values?
    U User 11699443

    were you saying that comparison to ="" is not valid? its sometimes a reference to null, right? is there any way you know of that could make visual studio debug this script? if i put breakpoints on the script it says no, not supported. fiddle is nice to check syntax; three equals's checks types, so its a bit clearer now

    JavaScript javascript database question csharp html

  • in MVC Edit page, how to check for null values?
    U User 11699443

    ok thanks this is helpful, but its 3 equals signs? it makes sense variablename.val() is equal to ...but 3 === i forgot about the truthiness factor. let me ask you from another angle, is the javascript and jquery able to run code thats mission critical? in other words is the execution predictable that it will run exactly as coded every time? i want to understand, it seems like with browser/html it could run until interrupted by a mouse movement or ? and it could lose its place?

    JavaScript javascript database question csharp html

  • external javascript not working
    U User 11699443

    but i can put alert messages in there and they get fired off in other parts of the same script section you get variables from the database there in that edit form sitting in the controls mostly textboxes and then when clicking submit they all get sent into the db to update the db table so in the html the variable is there, sometimes its visible in the alert("value is: "+ $'(variablename).val')); but if the variable.val() isnull or == null or == "" then it should set that variable.val() = "No"; sometimes it works, sometimes not this is with a handler that runs after the window.load ? when the DOM is fully ready and all the images are drawn, then it runs code to check for certain null values and if null replace that with string 'no' otherwise dont care. thanks

    JavaScript javascript html tools xml

  • in MVC Edit page, how to check for null values?
    U User 11699443
    $(window).load(function () {
    
      if ($('#TTest1').val(null)) {       $('#TTest1').val("No"); }
    

    Somewhat new to mixing in javascript or jquery into html, The goal is to test the values being passed into the form, and on some of those, if they are null? make the value = "No". The result above is hit or miss, it sometimes works and usually does not. I can see the value coming from the sql management studio is null, i can put an alert within the test in my IF statement, and it never fires the message. but another set of variables using the exact same syntax works fairly well. My question is how to manipulate the variable so that it tests it reliably and can set the value to string "No" if null? I wondered if its doing a double-reference and because of this producing invalid results? i mean the statement tests the variable then writes it? the variables are passed in from the c# view, and the edit form can change then submit and they get updated in the database. Well there seems to be some challenge in looking at a variable and testing it to be null. javascript is ok to use it just has to be reliable and work every time.

    JavaScript javascript database question csharp html

  • Design view for MVC its now 2015
    U User 11699443

    thanks thats a good explanation. i used this in years past and didnt have to worry about mobile browsers or resizing much; fitting and floating... well i still wish to have a snapshot of what the browser will "think" about the resulting program like that mode in Word where you turn on the hidden characters. i read about Microsoft folks saying in 2010 or 2011 how they will have a design view soon; i just cannot fathom why its so hard. i do think about things from win forms or labview styling. but your comment helped

    ASP.NET css csharp asp-net visual-studio design

  • Design view for MVC its now 2015
    U User 11699443

    when i try with the browser? placing components is just a guess. make a change, refresh it moves a bit more, bit more then all the way to the edge of the wrong side. take back the value and it jumps to the wrong place. hours trying to use the browser. i made a webform to use the design view, created the control, set it to absolute, etc copied the html into the MVC view page im working on? and it lands where ever it wants. inline style position absolute, size this/that. page does not place it where it seems it should go. not trying to be negative but unless im missing something obvious its frustrating and seems to be arbitrary, dont know how others can put controls that way. all i am asking for is some way to snapshot what the coordinates cause on the result. viewing on the browser? full 15 seconds until it displays, just to chase a control on the screen takes ALOT of time

    ASP.NET css csharp asp-net visual-studio design

  • Design view for MVC its now 2015
    U User 11699443

    using MVC for visual studio 2013, suddenly realized that there is some limitation when it comes to how controls are rendered. there appears to be fierce debate on a design view and why its needed, but if there is a tool that does design view, where is it? I would tend to use webforms and put everything in absolute position because it would never be resized and never used on mobile. now? it has to be modern and mobile ready. mvc is new, i had not needed to know CSS in depth. Trying to place controls on a simple Create page? horizontal layout, labels on the left then input boxes on the right of that with mostly empty space, the labels word wrap. it would be nice to see where its defining the margins, it cannot be that hard to make some tool that at least gives a snapshot with design grid lines. the original comments i am reading are from 2010 and 2011 where some say the design view is almost here? now its 2015, and others say its just too hard to make this kind of tool. or why do you need a designer anyway? whats wrong with counting pixels? is there some good reason why the designer or some snapshot is not needed? guessing at where the controls will land is not a waste of time? im grateful for any guidance on this

    ASP.NET css csharp asp-net visual-studio design
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups