Jump to content

aspnetguy

Members
  • Posts

    6,787
  • Joined

  • Last visited

Everything posted by aspnetguy

  1. This forum has zero tolerence for any discussion on hacking of any kind...Please do not discuss this topic any further.
  2. does this help? http://www.asp101.com/lessons/usercontrols.asp
  3. you too...I plan on having a good weekend
  4. try this Imports System Imports System.Collections Imports System.ComponentModel Imports System.Data Imports System.Drawing Imports System.Web Imports System.Web.SessionState Imports System.Web.UI Imports System.Web.UI.WebControls Imports System.Web.UI.HtmlControls Imports System.Xml Imports System.Xml.Xsl Imports System.Xml.XPath Imports System.IO Namespace CustomSurveys Public Class WebForm1 Inherits System.Web.UI.Page Protected Title As System.Web.UI.WebControls.TextBox Protected survey As System.Web.UI.WebControls.PlaceHolder Protected ThankYouLabel As System.Web.UI.WebControls.Literal Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) If IsPostBack Then ProcessSurveyResults survey.Visible = False ThankYouLabel.Visible = True Else survey.Visible = True ThankYouLabel.Visible = False End If End Sub Private Sub CreateSurvey() Dim surveyDoc As XPathDocument = New XPathDocument(Server.MapPath("ExSurvey.xml")) Dim transform As XslTransform = New XslTransform transform.Load(Server.MapPath("MakeControls.xslt")) Dim sw As StringWriter = New StringWriter transform.Transform(surveyDoc, Nothing, sw) Dim result As String = sw.ToString result = result.Replace("xmlns:asp=""remove""", "") Dim ctrl As Control = Page.ParseControl(result) survey.Controls.Add(ctrl) End Sub Private Sub ProcessSurveyResults() Dim surveyDoc As XPathDocument = New XPathDocument(Server.MapPath("ExSurvey.xml")) Dim itr As XPathNodeIterator = surveyDoc.CreateNavigator.Select("//question") Dim sb As System.Text.StringBuilder sb = New System.Text.StringBuilder sb.Append("Survey submitted on " + DateTime.Now + Environment.NewLine) While itr.MoveNext Dim controlName As String = itr.Current.GetAttribute("name", "") sb.Append(controlName) sb.Append(" : ") Dim ctrl As Object = FindControl(controlName) If TypeOf ctrl Is TextBox Then sb.Append(CType(ctrl, TextBox).Text) End If If TypeOf ctrl Is RadioButtonList Then If Not (CType(ctrl, RadioButtonList).SelectedItem Is Nothing) Then sb.Append(CType(ctrl, RadioButtonList).SelectedItem.Value) End If End If sb.Append(Environment.NewLine) End While Dim body As String = sb.ToString System.Web.Mail.SmtpMail.SmtpServer = "your.smtp.server" System.Web.Mail.SmtpMail.Send("survey@somewhere.com", "your@address.com", "Survey result", body) End Sub Protected Overloads Overrides Sub OnInit(ByVal e As EventArgs) InitializeComponent CreateSurvey MyBase.OnInit(e) End Sub Private Sub InitializeComponent() AddHandler Me.Load, AddressOf Me.Page_Load End Sub End Class End Namespace I used this website http://www.developerfusion.co.uk/utilities...csharptovb.aspx
  5. aspnetguy

    XML PHP Login

    You could use MD5 encryption on the passwords so even if they did find your XML they still would not have the passwords. Using MD5 and Salt would make it even harder.
  6. in short you can't, disabling right click only slows them down...they can just look at your source and see the path
  7. good one, I didn't know my street (bridge street) was highway 360! As for the window...it has never been open...it was painted shut when I bought the house. LOL
  8. I assume you are trying to use JavaScript to write your ASP? If this is the case let me know and I'll move it to the ASP forum. For regular client side JS you cannot connect to a database.
  9. your welcomeA general rule is to use CSS whenever possible.
  10. I wasn't aware of what was causing it...I have not experinced it, since I have not yet used IE7, just heard about it "by the water cooler". I'll mention it.
  11. aspnetguy

    CSS IE Help

    for the hover image borders, how are they defined? Do you use :hover on an element other than <a>?IE only recognizes a:hover and will not work with img:hover or any other element. That is my first guess.As for the "Offline Sites" what is the JS or CSS code that does that effect?
  12. here is the valid version of your code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Web Tecnologies - Homework 1</title><link rel="stylesheet" type="text/css" href="style.css"/><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></head><body><form method="post" action="SubmitAction.txt"><table cellspacing="0px" summary="Top 10 Sites List!"><colgroup><col span="5"/><col span="1" width="1%" align="center"/></colgroup><tr><th rowspan="14" style="width:12%;background-image: url(alien.gif); background-repeat: repeat-y"></th><th class="banner" colspan="5" valign="top">Welcome to our top 10 Sites List</th></tr><tr><th align="left">No</th><th>Web Site</th><th>URL</th><th>Keywords</th><th>Vote</th></tr><tr class="rowstyle1"><td>1</td><td>Europe's Soccer Web Site</td><td><a href="http://www.uefa.com">UEFA Official Site</a></td><td>Soccer, Champions League, UEFA Cup, Matchday</td><td><input name="vote" type="radio" value="uefa" /></td></tr><tr class="rowstyle2"><td>2</td><td>Sports Live Streaming</td><td><a href="http://live.supersport.gr/default.aspx">Supersport-Live Streaming</a></td><td>Streaming, live, football, Sport Events</td><td><input name="vote" type="radio" value="supersport" /></td></tr><tr class="rowstyle3"><td>3</td><td>All about Space and Aeronautics</td><td><a href="http://www.nasa.gov/externalflash/nasa_gen/index.html">Nasa Official Site</a></td><td>Space, Aeronautics, Nasa, Space Shuttle, Solar System, Space Sciences</td><td><input name="vote" type="radio" value="nasa" /></td></tr><tr class="rowstyle4"><td>4</td><td>Torrent Full Downloads</td><td><a href="http://www.fulldls.com">Full Downloads</a></td><td>Torrent, Free, Download, Free Software, Movies, Music</td><td><input name="vote" type="radio" value="fulldls" /></td></tr><tr class="rowstyle5"><td>5</td><td>Web Based E-mail Service</td><td><a href="http://www.hotmail.com">Hotmail</a></td><td>E-mail, Messanger, POP, SMTP, MSN</td><td><input name="vote" type="radio" value="site5" /></td></tr><tr class="rowstyle6"><td>6</td><td>News from all around the World</td><td><a href="http://www.cnn.com">CNN World News</a></td><td>News, World, Market, Politics</td><td><input name="vote" type="radio" value="cnn" /></td></tr><tr class="rowstyle7"><td>7</td><td>Greek News</td><td><a href="http://www.in.gr">In.GR</a></td><td>Greek News, TV, Cinema, Entertainment</td><td><input name="vote" type="radio" value="in" /></td></tr><tr class="rowstyle8"><td>8</td><td>Hellenic On-line Radio</td><td><a href="http://www.e-radio.gr">Hellenic e-Radio</a></td><td>Radio, Music, e-Radio, Radio Streaming</td><td><input name="vote" type="radio" value="eradio" /></td></tr><tr class="rowstyle9"><td>9</td><td>Gateway to the European Union</td><td><a href="http://europa.eu/">European Union Web Site</a></td><td>Europe, Union, Europa, EU, Programmes</td><td><input name="vote" type="radio" value="europe" /></td></tr><tr class="rowstyle10"><td>10</td><td>The latest News about Technology</td><td><a href="http://www.insomnia.gr/">Insomina</a></td><td>Technology, Mobile, Telephony, Telecommunications, Software, Computer</td><td><input name="vote" type="radio" value="insomnia" /></td></tr><tr class="rowstyle0"><td colspan="2"><input name="other site" type="text" value="Other Site (Description)" size="40" maxlength="50" /></td><td><input name="other url" type="text" value="Type URL" size="30" maxlength="30"/></td><td>Other Keywords</td><td><input name="vote" type="radio" value="other vote" checked="checked" /></td></tr><tr><td align="center" colspan="5"><input name="send" type="submit" value="Submit" /><input name="clear" type="reset" value="Clear All" /></td></tr></table></form></body></html> Your main problem was that you declared the page as XML on line 1 then on line 2 said it was XHTML 1.1....this was the cause of the "Unknown Parse Mode"...I cleaned up the code a bit for you as well so it would pass validation.
  13. I'll be getting that! I have found that IE7 beta 2's anti-phishing measures have actually prevented our business from processing orders on our manufacteurers websites...there must be some errors in their logic somewhere.
  14. how did you get my mailing address? All that info is available from a simple whois search on my domain isn't it?I find it odd that the registrar can charge you an extra $10 a year if you want your info private but will display it if you do not pay. Isn't that a violation of privacy? I cannot go into a company and request their clients addresses why is a registrar different?
  15. change this <link rel="stylesheet"style type="text/css" href="style.css" /> to <link rel="stylesheet" type="text/css" href="style.css" /> style.css must be in the same folder as the page you are linking it to
  16. you can use ../ to backup 1 level so if you are in /A/indexA.html to link to /B/indexb.html you would use ../B/indexb.html then to go back to /A/indexA.html you would use ../A/indexA.html
  17. Alot of companies promise these crazy amounts knowing you will never reach them...I even heard from someone who was cut off even though they were within the advertised limits because the host promised something they could not provide.
  18. You have type string so the control is using a alphabetical range6 = six and 12 = twelve.This control cannot test length it is best used for date or number ranges
  19. LOL they might as well just say unlimited, who is going to use 75GB of space, 1.1 TB of bandwidth, and 1000 databases for only 25 domains?
  20. thanks skemcin I apreciate your in-depth advice
  21. Do you know CSS? If not go to the CSS Tutorial.Use this a{ color: blue;} you would use a:hover to define what color it would change onmouseover aswell
  22. use something like this if(isset($_POST['submit1'])){ doSomething();}if(isset($_POST['submit2'])){ doSomethngElse();}
  23. use strtotime() and then you can just use the < and > operators to check where time() falls between.
  24. thanks for the pointers
×
×
  • Create New...