Jump to content


  • Posts

  • Joined

  • Last visited

1 Follower

About aspnetguy

  • Birthday 04/28/1982

Previous Fields

  • Languages
    PHP, ASP.NET, C#, JavaScript, HTML, CSS

Contact Methods

  • Website URL
  • ICQ

Profile Information

  • Location

Recent Profile Visitors

53,766 profile views

aspnetguy's Achievements

Sacred Member

Sacred Member (6/7)



  1. I'm not sure if cost is an issue. Getting hosting for a JSP site will likely be more expensive as well as more complex.
  2. Check out this tutorial. It should work.http://www.w3schools.com/php/php_mysql_create.asp
  3. Basically you are trying to do this var y = document.getElementsByClassName('show_hide');if(y[0].style.display == 'none') { alert('Hi); } That if statement will never return true. The style attribute of the element is not related to the CSS class. Trying to retrieve the css style property via javascript will only work when that style property has previously been set via javascript OR when that style property was defined inline by using the style attribute in (X)HTML.
  4. If you do the follow it will get the records of people who's first name starts with P <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/Database/phone.mdb" SelectCommand="SELECT [FirstName], [LastName], [ext], [cell] FROM [table] WHERE ([FirstName] LIKE @fname + '%')"> <SelectParameters> <asp:ControlParameter ControlID="TextBox1" Name="fname" PropertyName="Text" Type="String" /> </SelectParameters> </asp:AccessDataSource>
  5. try this ava script:var sku=location.href;sku=sku.replace("http:/www.dealextreme.com/forums/Forums.dx/Forum", "");sku=sku.replace("/~~threadid.[0-9]/i", "");alert(sku);
  6. I see this technique used a lot. I always set the selectedIndex but mostly just because that is what I have always done.This thread mentions that it might not be fully cross browser but the poster does not provide details when challenged. It appears to be cross browser safe. Just make sure you test in all the major browsers and you should be fine.
  7. aspnetguy


    What ads...??? I use AdBlock Plus and NoScript. I rarely ever see ads on websites anymore.
  8. Frames or iframes are generally a bad idea to use. Especially for a store front website. Your users will not be able to bookmark category or product pages if you are opening them in frames and it will be hard to get indexed by search engines.If you really want to only load pieces of the page at a time look at AJAX. Frames will cause you more harm than the little good they provide.
  9. I like to use the following method as it degrades nicely if a popup blocker is being used. <a href="some url" rel="external">My Link</a>...<script type="text/javascript">var links = document.getElementsByTagName("a");for(var i=0;i<links.length;i++) { if(links[i].getAttribute('rel') == 'external') { links[i].onclick = function() { return !window.open(this.href); }; }}</script> What that click handler does is try to open the link in a new windows. If it fails, fior whatever reason, it will then open the link in the current window. This way if the user has a popup blocker they can still access the link.
  10. It is likely this line that is throwing the error If myRadioButton.Checked = False Then This line is returning null because it cannot find the control you are looking for. Either you are calling it wrong or it does not exist. myRadioButton = CType(tbAdress.FindControl(rdbutton), RadioButton)
  11. aspnetguy


    this one requires jQuery and let;s you put a caption along the bottom of the imagehttp://nivo.dev7studios.com/
  12. If the change you made was in the external JS file it was likely cached.
  13. var firstNumber = 15; //this variable is declared and set to a value of 15var secondNumber = 10; //this variable is declared and set to a value of 10var answer; //this variable is declared but no value is assigned to it. It currently is null or undefinedanswer = 15 / 10; //the expression is evaluated and a value of 1.5 is assigned to the variablealert(answer); //alerts the value of the variable answer which is currently 1.5alert(15 / 10); //evaluates the expression and alerts the result - 1.5answer = firstNumber / secondNumber; // evaluates the expression and the values of the variables used (15/10) and assigns the result to answeralert(answer); //alerts the current value of answer which is still 1.5
  14. use this instead window.onload = updateShouts; this assigns the function as the handler what you were doing was assigning the result of the function as the handler.
  15. I think starting a blog that focuses on front-end design is a good idea. You can promote blog posts easily at dzone.com and get decent traffic.I would stay away from creating a bunch of tutorials or a reference guide. There are a million of them out there. W3Schools and SitePoint both have excellent tutorials and references already.Focusing on how to's or common newbie questions and mistakes would be a good angle, IMO.
  • Create New...