Jump to content

Bluecrest

Members
  • Content Count

    19
  • Joined

  • Last visited

Posts posted by Bluecrest

  1. This is the code in asp.net. hope i could help you. :)

    Dim mail, emailmsgusername = n1.GetFieldValue("Select Firstname as field_value from Users where useremail='" & txtemailforgot.Text & "'")emailmsg = "<html><body topmargin=0 leftmargin=0><font face='Verdana, Arial, Helvetica, sans-serif' size=2 color=#003399><b>Dear " & username & ":<br><br>Login Details for CommDragon.com<br><br></b></font><table width='50%' style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px;'><tr><td width='35%'>Login Name:</td><td width='65%'>" & txtemailforgot.Text & "</td></tr><tr><td>Password:</td><td>" & pass & "</td></tr></table><br><font face='Verdana, Arial, Helvetica, sans-serif' size=2 color=#003399><b>Regards:<br>www.commdragon.com</b></font></body></html>"mail = Server.CreateObject("Persits.MailSender")mail.IsHTML = Truemail.Subject = "Your account in commdragon.com"mail.From = "websitemanager@commdragon.com"mail.FromName = "Commdragon.com"mail.Addaddress(txtemailforgot.Text)mail.Host = "mail.mindragon.com"mail.body = emailmsgOn Error Resume Nextmail.Send()mail = Nothinglblerrors.Text = "Your password has been mailed to your account.<br>Please check your email immediately and sign in to CommDragon.com."lblerrors.Visible = True

  2. Ok. Anyway, how could I use javascript in formating my data in the repeater. I have included my repeater code here. :)

    <asp:repeater id="rptOrders" runat="server"><ItemTemplate><tr><td align="center"><%# DataBinder.Eval(Container.DataItem,"fnl_datectd")%></td><td align="center"><a href='orderdetails.aspx?id=<%# DataBinder.Eval(container.dataitem,"fnl_id") %>'><%# container.dataitem("fnl_orderno") %></a></td><td>      $<%# DataBinder.Eval(container.dataitem,"TOTAL") %></td><td align="center"><%# DataBinder.Eval(container.dataitem,"fnl_stat") %></td></tr></ItemTemplate></asp:repeater>

  3. Hi! I have a code for mail but this function should be put on the submit event of button! Hope I have helped you! :)

            Dim mail, emailmsg        username = n1.GetFieldValue("Select Firstname as field_value from Users where useremail='" & txtemailforgot.Text & "'")        emailmsg = "<html><body topmargin=0 leftmargin=0><font face='Verdana, Arial, Helvetica, sans-serif' size=2 color=#003399><b>Dear " & username & ":<br><br>Login Details for CommDragon.com<br><br></b></font><table width='50%' style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px;'><tr><td width='35%'>Login Name:</td><td width='65%'>" & txtemailforgot.Text & "</td></tr><tr><td>Password:</td><td>" & pass & "</td></tr></table><br><font face='Verdana, Arial, Helvetica, sans-serif' size=2 color=#003399><b>Regards:<br>www.commdragon.com</b></font></body></html>"        mail = Server.CreateObject("Persits.MailSender")        mail.IsHTML = True	mail.Subject = "Your account in commdragon.com"	mail.From = "websitemanager@commdragon.com"	mail.FromName = "Commdragon.com"	mail.Addaddress(txtemailforgot.Text)	mail.Host = "mail.mindragon.com"	mail.body = emailmsg	On Error Resume Next	mail.Send()	mail = Nothing	lblerrors.Text = "Your password has been mailed to your account.<br>Please check your email immediately and sign in to CommDragon.com."	lblerrors.Visible = True	Session("logstat") = ""

  4. HiI want to asign javasecript variable value in asp.net code, how iin this line of code where "?" is mentioned<asp:ListItem Value='?' ></asp:ListItem>I am waitingthanks

    Hi I think this could help you. I have made an experiment in my page. See how it works. :)
    <HTML>	<HEAD>  <title>WebForm1</title>  <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">  <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">  <meta content="JavaScript" name="vs_defaultClientScript">  <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">  <script language="javascript">	function ValueGet(){  var svalue;  document.getElementById("DropDownList1").value ="222";  svalue=	document.getElementById("DropDownList1").value;  document.getElementById("divLabel").value= svalue;	}  </script>	</HEAD>	<body MS_POSITIONING="GridLayout" onload="ValueGet()">  <form id="Form1" method="post" runat="server"> 	 <asp:adrotator id="AdRotator1" runat="server" AdvertisementFile="_xml/ads.xml"></asp:adrotator> 	 <asp:DropDownList id="DropDownList1" style="Z-INDEX: 101; LEFT: 16px; POSITION: absolute; TOP: 64px"    runat="server">    <asp:ListItem Value="111" Selected="true">111</asp:ListItem>    <asp:ListItem Value="222">222</asp:ListItem> 	 </asp:DropDownList> 	 <asp:Button id="Button1" style="Z-INDEX: 102; LEFT: 16px; POSITION: absolute; TOP: 104px" runat="server"    Text="Button"></asp:Button> 	 <asp:Label id="lblvalue" style="Z-INDEX: 103; LEFT: 16px; POSITION: absolute; TOP: 144px" runat="server">Label</asp:Label> 	 <INPUT id="divLabel" style="Z-INDEX: 104; LEFT: 16px; POSITION: absolute; TOP: 176px" type="text"></form>	</body></HTML>

  5. Hi! is there anyone here knows the expressions in formating the date and decimal? Example changing the date into mm/dd/yyyy or Month Day, Year. In decimal, formating it like 1,000.00. :) Please help. Give me all of your known expression in formating the data.Thanks

  6. Heh.. now that is stupid. Would it be possible to check server side with the ExecPHP thing to see if a user had modified the data (for instance, check the format the data came in). I suppose that could limit damage?

    Yah I agree with you! They should have check the data first. :)
  7. Hi can you help me? Is there anyone here know some expression in formating the data? I mean formating the date into "Month Day, Year" expression or formating the decimal into 2.00. Please post something related. Thank you :):):)

  8. SirDo you have code expression in formating the the data in asp? I have few example here.Expression Description{0:C} Currency item based on the locale, For example £29.99{0:D4} A number of the set number plus 1. For example 00124{0:N2}% A number with two decimal places, followed by a percentage sign{0:0.0} A number rounded to one decimal place.{0:D} The date represented as a long string. For example Monday, 20 July 2004{0:dd-MM-yy} The number as defined by the day, month and year code. for example 20-07-04thanks

    Before you ask a question in this forum, you should check out our ASP Tutorial.For our ASP Tutorial: W3Schools ASP TutorialFor an ASP Reference: W3Schools ASP Quick Reference

  9. Hi can you send me all the expression in formating the date and decimal? I only have few of them, eh :) Expression Description{0:C} Currency item based on the locale, For example £29.99{0:D4} A number of the set number plus 1. For example 00124{0:N2}% A number with two decimal places, followed by a percentage sign{0:0.0} A number rounded to one decimal place.{0:D} The date represented as a long string. For example Monday, 20 July 2004{0:dd-MM-yy} The number as defined by the day, month and year code. for example 20-07-04

×
×
  • Create New...