Jump to content

jesh

Members
  • Content Count

    2,293
  • Joined

  • Last visited

Everything posted by jesh

  1. Doesn't sound normal to me. How are you populating the dropdown list?
  2. jesh

    Configuring Asp.net

    What version of IIS are you using?Visual Studio has its own web server that you can use for testing so IIS isn't absolutely necessary until you are ready for your site to go live.
  3. If the other machine had a web server, you could create a page that the first machine hits which fires off that exe.
  4. jesh

    Keeping .00 On Data.

    You have to put commas between the columns that you want returned. This query:SELECT FORMAT(balance, 2) * FROM accounts ORDER BY name ASC is going to fail just like this would: SELECT balance name FROM accounts ORDER BY name ASC Try this: SELECT FORMAT(balance, 2), * FROM accounts ORDER BY name ASC
  5. Both events are firing, it's just that the mouseover handler is only set up to deal with the mouseover event. The mousemove event isn't going to be doing anything while the mouseover event is being handled because the mouseover event is a snapshot in time. The mousemove event is happening, the mouse goes over the image element, and the mousemove event continues to fire.Here's a brief example (tested only in Firefox): <html><head><script type="text/javascript">window.onload = function(){ document.getElementById("image").onmouseover = imgover; document.onmousemove = mover;}function mover(e){ e = e || window.event; document.getElementById("output").innerHTML = "(" + e.clientX + " , " + e.clientY + ")";}function imgover(e){ e = e || window.event; var colors = ["#F00","#0F0","#00F","#FF0","#F0F","#0FF" ]; document.getElementById("image").style.borderColor = colors[Math.floor(Math.random()*colors.length)];}</script></head><body><img id="image" src="http://w3schools.invisionzone.com/style_images/6_logo.png" style="border:8px solid #000;" /><div id="output"></div></body></html>
  6. One method is with fancy markup:http://www.cssplay.co.uk/boxes/snazzy.htmlAnother is to use CSS3:http://www.css3.info/preview/rounded-border/
  7. jesh

    How To Start Asp.net?

    Also, get yourself a copy of Visual Studio. Or, you can use Visual Web Developer Express for free:http://www.microsoft.com/express/vwd/
  8. jesh

    Property

    Don't forget that this works too: <input type="password" id="MyPasswordField" runat="server" />
  9. You could do something like this: <html><head><script type="text/javascript">window.onload = function(){ document.getElementById("loading").style.display = "none"; document.getElementById("content").style.display = "";}</script></head><body><div id="loading">This is some content to show while the page is loading.</div><div id="content" style="display:none;">This is the main content of the page</div></body></html>
  10. If you opened the window like so: var win = window.open(); Then you can bring that window to focus at any time later in your code using the following: win.focus(); EDIT: Check out the HTML DOM tutorial for more information about what you can do with the window object:http://www.w3schools.com/htmldom/dom_obj_window.asp
  11. Yep. var win = window.open();win.document.open();win.document.write("<html><body><h1>THIS COULD BE AN AJAX RESPONSE!</h1></body></html>");win.document.close();
  12. I'm thinking horribly low, but, as a first job, you take what you can. Good luck.
  13. jesh

    What The %$#@?!

    Also note this - the following will execute the alert:<script type="text/javascript">function login(){ alert('GOOOO');}</script><input type="button" name="login" onclick="login();" /> Whereas this will not: <script type="text/javascript">function login(){ alert('GOOOO');}</script><form><input type="button" name="login" onclick="login();" /></form> So, as dsonesuk suggests, keep your function names different than your element names and you won't run into this problem again.
  14. jesh

    Puzzled About ()

    Then you can use an anonymous function: httpObject.onreadystatechange = function() { output("HOLLAH"); }
  15. Because you were passing the parameter as a number rather than as a string and the browsers were interpreting the number 0915 as 915.Notice the different outputs of the following two alerts:<script type="text/javascript">alert(0915);alert("0915");</script>
  16. You can do it like this: <img src="http://w3schools.invisionzone.com/style_images/6_logo.png" id="myimage" /><script type="text/javascript">var w,h,i;i = document.getElementById("myimage");w = i.width;h = i.height;alert("Width=" + w + "\nHeight=" + h);</script>
  17. What happens if you try this instead? $('#content').hide().load($(this).attr("href")).fadeIn(1000); Additionally, depending on your requirements, you may want to empty the contents of your div before you load it with new content: $('#content').hide().empty().load($(this).attr("href")).fadeIn(1000);
  18. I'm not really sure that POP3 supports read/unread email. I think that, using POP3, you basically just get all email that exists on the server and download it to your client.If you want to take advantage of read/unread, you'll want to start looking into IMAP instead.
  19. jesh

    Asp Comparision

    If you're talking about ASP.NET rather than classic ASP, then it's really a matter of preference over whether you like PHP or ASP.NET better. If you're talking about classic ASP, run away. Run straight to PHP.
  20. The only thing I'd add to both of the examples provided is if the maxLength (or string_length) is variable (e.g. subject to user input) to run a check to make sure that your max length is less than or equal to the length of the chars string. If the chars string was 26 characters long and maxLength was set to 27, you'd get yourself in an infinite loop.
  21. One of your problems is here: dgi.Cells(4).Text = "<input type=text />" While that will, as you've seen, add a text box to the page in the location that you are expecting, your code-behind cannot have access to that control.If you add a textbox to a web page in the aspx, you do it one of the following ways: <input type="text" id="myText" runat="server" /><asp:TextBox id="myText2" runat="server" /> The key there is that the control has to run at server in order for the code-behind to have access to it.Since you're doing this dynamically, this approach isn't going to work for you. However, if you'd set it up so that those text boxes are already on the page, just styled with "display:none", you can add an onclick to the checkbox to make the boxes visible again. This way, the boxes will be there on the postback and you'll have all the values every time the page posts back to the server.
  22. The only thing that I would add is that regardless of whether you learn client-side first or server-side first, do yourself a favor and become proficient in pure javascript before you take on learning a javascript library such as jQuery.Edit: And I mean really proficient. I worked on web pages over ten years using pure javascript before I started using jQuery.
  23. How are you determining which DataGridItem contains the cell you want to edit?
  24. I'm not really understanding what you're asking. Are you wanting to use "test.aspx.vb" as the codebehind for "abc.aspx"? If so, you declare that on the "abc.aspx" page like so: <%@ Page Codebehind="test.aspx.vb" %>
×
×
  • Create New...