|
So I am a web designer. I design layouts for other people, but don't do any of the server side scripting.
I am trying to set up a website and all I want is a simple HTML form that will record a user's Name, Email Address, and Phone Number. I've been searching through tutorials for the easiest way to do this. I don't want that info to go to a database, I just want to to automatically email it to me. I don't want it to open up a "mailto" script and use the individuals email account, I think there's a way to set it up using PHP or ASP or something.
Remember, I have no database experience, but I know my server can host them.
Ideas? Can someone give me a simple php code or something that will email me when someone fills out my form? Or am I going to have to set up a database and stuff like that.
Thx guys,
Benji
|
|
|
|
|
Here is a piece of ASP.net code that you could use to send an email.
Private Sub MailIt(ByVal toUser As String, ByVal fromUser As String, ByVal subj As String, ByVal sBody As String)<br />
Try<br />
Dim mm As New MailMessage(fromUser, toUser)<br />
<br />
mm.Subject = subj<br />
mm.Body = sBody<br />
mm.IsBodyHtml = True<br />
<br />
' Create the SmtpClient object<br />
Dim smtp As New SmtpClient<br />
<br />
' Send the MailMessage (will use the Web.config settings)<br />
smtp.Send(mm)<br />
Catch ex As Exception<br />
' Put some error handling code here<br />
End Try<br />
<br />
End Sub
In your web.config, you put the details of your email server ...
<system.net>
<mailSettings>
<smtp>
<network host="myMailServer.com" port="25" userName="myUser" password="myPassword"/>
</smtp>
</mailSettings>
</system.net>
|
|
|
|
|
Thanks! I also got a PHP response that I'm trying.
Benji
|
|
|
|
|
Hey budy can u pass me the php code for sending am email?
Thanks in advance
|
|
|
|
|
Hi All, I need my users to be able to check options for days during the month, and I have been able to add a CheckBoxList to each day of the month in the Calendar control, that was the easy part. Now, here's where my difficultly begins; Once the user clicks a save button to store their selections, I can't figure out how to get access to the CheckBoxLists again to read their checked state. I can't find them in any of the Calendar's control collections nor can I find them by using FindControl method. Please Help! Your assistance would be greatly appreciated.
modified on Thursday, October 15, 2009 1:50 PM
|
|
|
|
|
Hi Guys,
I am asp.net 3.5 and just downloaded the free HTML editor which I downloaded from this link - http://www.codeproject.com/KB/ajax/HTMLEditor.aspx
My questions are:
1. I actually placed the Winthusiasm.HtmlEditor control in one of my asp.net pages inside the ContentPlaceHolder1. And since I am using CSS, the problem is that, the HTML codes which I pasted in this control does not link to my CSS, so when I clicked on "Design" tab, the result is not good. Do you think this HTML Editor is not capable of reading CSS file?
2. In "HTML" tab, if I change something in the text, how am I going to pass the value from Editor.text to Textbox1.text? Because, I will just simply code it like this (below), it doesn't work.
Textbox1.Text = Editor.Text; // this code does not work; It doesn't show the latest changes.
That's all I wanted to know guys. Please help.
If you know other Free html control for asp.net 3.5, please let me know.
Thank you.
hifiger2004
|
|
|
|
|
I have little experience about hosting and working on that.
I am good in coding, currently working on a JSP + HTML Project.
I wanted to know some good and free web hosting site for the requested platform.
I have tried
www.co.cc
www.000webhost.com
www.0fees.net
But doesn't know whether they work fine for JSP as they support PHP.
One more thing ----I wanted to know, if get a hosted site, will i be able to get its SMTP server for free, to send mails, because this is important feature of my project.
please help
|
|
|
|
|
|
Hello
Could YOU please tell me , is it possible to use the link you given to upload my JSP files and work on them. And simultaneously using the SMTP server of some other webhosting site..
Any help on that , SMTP is important...
|
|
|
|
|
Hello there fellow users, I have been entrusted with the task of designing and implementing a financial system for a charity foundation where I live.
The charity foundation requires its work (addition and retrieval of records, for example) to be done online, using a web app. The app connects to a database server for storage and the charity's numerous branches connect to the central database center.
So what I would like to ask for is guidelines and suggestions on what technologies to use to accomplish this task:
- A suitable, well-supported and secure programming language or framework for the web app. (ASP.net or JSP for example)
- A suitable and secure database system (MySQL for example) that supports Arabic records.
- Methods, guidelines to implement critical security measures.
Although we have worked on similar projects before, the level of security and accuracy wasn't as critical as for a project such as this; that is why I'm asking for guidelines from the experts here.
This post may not be as detailed as it should, but I'm happy to listen carefully to any suggestion or guideline.
Thank you.
|
|
|
|
|
|
Hi Guys,
I have a problem here and I don't know if why does the Literal1 control in MasterPage.Master will not change the value.
What I am currently doing is to call the Litera1 control of MasterPage.Master from the content page. And when I tried this one I got an error that says - Object reference not set to an instance of an object". I really don't know why does the calling Literal1 control when call at runtime and change the value of it, it just didn't reflect the changes, and I even got an error that says - "Object reference not set to an instance of an object". I am stuck with this portion. I pasted below here a sample of asp.net/C# source codes. Actually the error is pointing here ltlBodyTitle.Text = "<b>hello</b>";
MasterPage.Master:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
<asp:Literal ID="Literal1" runat="server"></asp:Literal>
</asp:ContentPlaceHolder>
</div>
</form>
</body>
</html>
----------------------
Content Page should change the value of Literal1.text which was placed in the MasterPage.page. But it won't.
Below is the finding of Literal1.text and suppose should change new value.
Test.ASP.aspx.cs source codes.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class test : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Literal ltlBodyTitle = (Literal)Master.FindControl("Literall1");
ltlBodyTitle.Text = "<b>hello</b>"; // Error here in this line
}
}
hifiger2004
|
|
|
|
|
hifiger2004 wrote: Literal ltlBodyTitle = (Literal)Master.FindControl("Literall1");
ltlBodyTitle.Text = "<b>hello</b>"; // Error here in this line
What is the error ? I assume a null reference ? We have an ASP.NET forum, you know.
This sort of code is ugly as sin. You should try to never do this. Instead, create a base page that returns a strongly typed version of your master page, and use it's methods to set things like this.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Yes, it works using basepage.
Thanks
hifiger2004
|
|
|
|
|
hi
IIS 7.0 with windows server 2008 showing following error
while creating crystal report in asp.net 2.0
The maximum report processing jobs limit configured by your system administrator has been reached.
thanks in advance
|
|
|
|
|
singh.sunder wrote: The maximum report processing jobs limit configured by your system administrator has been reached.
Do you have a question that you should ask of your system administrator?
|
|
|
|
|
Hi,
We need to modify the Print limit in the System registry. or In the source code/Program, Create Crystal report Document object inside Using().
Note(caution): Modify registry harm the system.
Please follow following steps to Modify the print limit in the registry.
1) Click Start > Run. The Run dialog box appears.
2) Type “regedit” in the Open field. Click OK. The Registry Editor appears.
Navigate to the appropriate registry key value as documented below.
Crystal Reports 10.0.x
HKEY_LOCAL_MACHINE\SOFTWARE\Crystal Decisions\10.0\Report Application Server\ InprocServer\PrintJobLimit
Crystal Reports 10.2 (Visual Studio .NET 2005 bundle)
HKEY_LOCAL_MACHINE\SOFTWARE\Crystal Decisions\10.2\Report Application Server\ InprocServer\PrintJobLimit
Crystal Reports Basic for Visual Studio 2008 (Visual Studio .NET 2008 bundle) HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\10.5\report Application server\InProcServer\ PrintJobLimit\PrintJobLimit
Crystal Reports XI Release 1 (11.0.x) HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.0\Report Application Server\InprocServer\PrintJobLimit
Crystal Reports XI Release 2 (11.5.x) HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\Report Application Server\InprocServer\PrintJobLimit Crystal Reports 2008 (12.x.x) HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Report Application Server\InprocServer\PrintJobLimit
Regards,
S.Mohanraj.
|
|
|
|
|
Hello!
I am a web developer using asp.net in C#.
I use the Flash upload control for multiple files upload I found on this site and I've modified it to upload images, insert details about them to the Access database and create Thumb Images.
This work great on my local machine and worked fine on my server until about two weeks ago
now my applications keeps crashing at different points of the upload(I try uploading the same images each time and each time it crashes after different image file).
I am uploading about 20 MB of images each one is about 0.5-0.8MB of size.
I don't get any asp error but the flash gives me an http 500 error.
The help team of my server keep telling me it's because I am on a shred server and say that I am using too much resources but I don't think that uploading couple of images is too much resources.
Can you help me?
I can upload my code if it's needed but I don't believe something is wrong with my code because this worked in the past.
Thank you very much!
Nadav.
|
|
|
|
|
Have you considered upgrading or switching to another provider. If your current host doesn't like the amount of resources you are using then this is the best option.
The other thing you can do is optimize your content to lessen the amount of bandwidth your are using:
- optimize your images
- minify javascripts and if you have several scripts on one page try to put them into one file.
- implement caching and add expires headers -epecially to images, icons and js
- make fewer http requests
- configure ETags
- reduce cookie size
|
|
|
|
|
I want to store the IP address of visitor to my site in Mysql.
I wanted to know if it is possible through HTML or JAVA, if yes then please help in code.
If the only solution is PHP , then please tell me how can i work simultaneously work with JSP and PHP database code.
As i am working on JSP coding, Please tell how to embedded the php code and use it.
Don't know PHP.
Please help
|
|
|
|
|
|
public static string getIP(HttpContext rq)
{
string userIP;
HttpRequest Request = HttpContext.Current.Request;
if (rq.Request.ServerVariables["HTTP_X_FORWARDED_FOR"] != "")
userIP = rq.Request.ServerVariables["REMOTE_ADDR"];
else
userIP = rq.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
if (userIP == null || userIP == "")
userIP = rq.Request.UserHostAddress;
return userIP;
}
April
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 21:56pm.
|
|
|
|
|
I was doing C# programming 4 the past 2 years. Now I am going to do it including Web development.
But is there a documentation to be done for web site development.
Thank you
|
|
|
|
|
CoderForEver wrote: But is there a documentation to be done for web site development.
You should find lots of it at The Official ASP.NET home[^].
|
|
|
|
|
Hi I think you should do a documentation for the initial development project and update with regular changelogs afterwards. Perhaps you wouldn't need to go as deep as u do in systems dev but it depends on the functionality of the website as they are nowadays applications in their own rite.
|
|
|
|