|
You also need a mail component. Your web hotel most likely provides a common third party component that you can use. Then either the web hotel or the maker of the component have examples on how to use it.
---
b { font-weight: normal; }
|
|
|
|
|
hi Bawa,
hope this may help u
Dim objMail As New MailMessage()
objMail.From = "your_name@yourdomain.com"
objMail.To = Request.Form("Email")
objMail.Subject = Request.Form("Subject")
objMail.Body = Request.Form("Message")
objMail.BodyFormat = MailFormat.Text
SmtpMail.SmtpServer = " smtp.your-server.com"
SmtpMail.Send(objMail)
Sandy
|
|
|
|
|
Hi all
I have an doubt
Is it posible to ZIPing a file/folder by programetically
I mean to say with a program can't we ZIp a file
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
|
Im trying to create a web application and I added a CreateUserWizard control. When I added this control and ran the application, I got this error (listed below) when I tried to open the page. I added a <form runat = "server"> tag and I got another error saying "A page can only have one server side form tag"
Can some one please help???
Server Error in '/University' Application.
--------------------------------------------------------------------------------
Control 'ctl00_Main_CreateUserWizard1' of type 'CreateUserWizard' must be placed inside a form tag with runat=server.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Control 'ctl00_Main_CreateUserWizard1' of type 'CreateUserWizard' must be placed inside a form tag with runat=server.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): Control 'ctl00_Main_CreateUserWizard1' of type 'CreateUserWizard' must be placed inside a form tag with runat=server.]
System.Web.UI.Page.VerifyRenderingInServerForm(Control control) +301
System.Web.UI.WebControls.Wizard.Render(HtmlTextWriter writer) +54
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +74
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +291
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +49
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +234
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +53
System.Web.UI.Control.Render(HtmlTextWriter writer) +31
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +74
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +291
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +49
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +234
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +53
System.Web.UI.Control.Render(HtmlTextWriter writer) +31
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +74
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +291
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +49
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +234
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +53
System.Web.UI.Control.Render(HtmlTextWriter writer) +31
System.Web.UI.Page.Render(HtmlTextWriter writer) +39
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +74
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +291
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +49
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5539
|
|
|
|
|
Make sure that the wizard control is between the start and end tags of the form.
---
b { font-weight: normal; }
|
|
|
|
|
The wizard control was in between the start and end tags.
<asp:......>
I even tried
Thank you anyway but that did not solve my problem.
|
|
|
|
|
Then there has to be something wrong with your html, because it's not recognising the form correctly.
A minimum page should be:
<html>
<head>
<title></title>
</head>
<body>
<form runat="server">
... here goes your controls
</form>
</body>
</html>
<small>---
b { font-weight: normal; }</small>
|
|
|
|
|
Hi everyone,
Can we bring third party tools such as adobe photoshop in the browser,whatever be the methodology.I know it would be difficult to add the reference of that tool in an asp.net project since asp.net accepts only .net or com components.
But i have seen , some applications which bring external imaging tools in thier browser.How to do it.Can we do this with pure HTML?
I think,I had asked this question earlier.But ,Since i am not aware of the solution yet, I am posting the question again.
Any help would be appreciated.
Thank you
-- modified at 23:57 Monday 24th April, 2006
|
|
|
|
|
Hi everybody,
Please i know that this is really a stupide question in a furom but i really need if you can just tell me how can i start ASP.Net
i will study it but i think know it before is a good thing + the teacher won't give you all what you need so please if you can just tell me or give me a link of a good tutorial , course,anything can be good in this start
thank you very very much
try to be good if you can't be the best
|
|
|
|
|
Mohammed Amine wrote: i know that this is really a stupide question
I don't think it's a stupid question. Welcome to CodeProject !
Here are some good places that can get you started:
ASP.NEt quick start[^]
ASP.NET starter kits[^]
Also, when you get stuck on a specific issue, don't forget your best friend CodeProject (hopefully in the near future ).
|
|
|
|
|
thank you man i won't forget
try to be good if you can't be the best
|
|
|
|
|
microsoftelearning.com is also a good site.
later after u gain basic knowledge goto theserverside.net
these two are the good sites.
|
|
|
|
|
thnx man thank you very much for your help
try to be good if you can't be the best
|
|
|
|
|
I'm a long time reader and this is my first post!
I am looking for an embeddable Flash application that is capable of viewing a PDF file without the end-user having Adobe Acrobat installed on their computer.
Macromedia's Flash Paper is exactly what I'm looking for, but I can't just convert all of the PDFs to SWF files. If you could pass a URL or stream to the Flash Paper "movie", that would be ideal.
I'd like to be have an option to use our Flash viewer or their "application/pdf" application.
Any suggestions?
|
|
|
|
|
I am simply trying to use the uploadfile control with no success.
Also the remote server uses .net 1.0
If you cant help me with this error please tell me a different way of uploading files to a server using .net 1.0
The following is the error i keep getting:
-------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'upload'.
Source Error:
Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="upload.aspx.cs" Inherits="upload" %>
Line 2:
Line 3:
Source File: d:\webs\omixad\upload.aspx Line: 1
---------------------------------------------------------
I have a simple upload.aspx file that has a fileupload object on it and actually uploads files to the server.
----------------------------------------------------------------------------------------------
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="upload.aspx.cs" Inherits="upload" %>
<script>
-------------------------------------------------------------------------------------------
The code behind file is upload.aspx.cs
-----------------------------------------------------------------------
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class upload : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void UploadBtn_Click(object sender, EventArgs e)
{
if (FileUpload1.HasFile)
{
//FileUpload1.SaveAs(@"C:\temp\" + FileUpload1.FileName);
FileUpload1.SaveAs(Server.MapPath(@"temp") + FileUpload1.FileName);
Label1.Text = "File Uploaded: " + Server.MapPath(@"temp\") + FileUpload1.FileName;
}
else
{
Label1.Text = "No File Uploaded.";
}
}
}
---------------------------------------------------------------------
I have IIS running on my local machine. When i run this on my local machine everything works beautiful. When i upload the files to a remote webserver (earthlink web hosting) I receive the error at the top.
Now i have been reading around and googleing and everything else and others have said that i need to build the application. I have built the application by clicking build / build page (website)
Then upload the two files back up to the web server but nothing changes same errors.
Then i read something about refrences and .dll files located in a bin folder but i cannot locate these files at all nor the bin folder.
If i need to get the bin folder on the remote web server where do i find it also where do i find the .dll file after a build.
Someone please give me step by step instructions of what i need to do to get this to work on the remote web server. Again it works on my local machine but not when i upload it to the remote server.
Thanks in advance
|
|
|
|
|
Hi there,
Basically, you cannot use the new features in the ASP.NET 2.0 like the partial class, CodeFile attribute, FileUpload control .... to run with the ASP.NET 1.0. The reason it's working on you machine is simply that you use the right version 2.0 in your local environment. On the remote server, they use an older version of ASP.NET (1.0), so you need to go back with the options provided by the ASP.NET 1.0, there are a couple of things that you might need to change in order ton run on the remote machine:
+ Use the inline code instead of the code-behind with the partial class.
+ Use the HtmlInputFile[^] control instead of the FileUpload control.
Below is a quick example for the changes:
<%@ Page Language="C#" %>
<html>
<head runat="server">
<title>Untitled Page</title>
<script runat="server">
protected void UploadBtn_Click(object sender, EventArgs e)
{
}
</script>
</head>
<body>
<form id="form1" runat="server">
<input id="File1" runat="server" type="file" />
<asp:Button ID="Button1" runat="server" Text="Upload"
On_Click="UploadBtn_Click"/>
</form>
</body>
</html>
|
|
|
|
|
Hi,
I have a DateTime store in a Db in the format:
System.DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss");
How can i convert this back to a standard date time?
P.s. i store my data in this way for SQL purposes, so please dont tell me to change it.
Thanks!
Munklefish
|
|
|
|
|
How about like this?
void Page_Load(object o, EventArgs e)
{
DateTime dt = Convert.ToDateTime("2006/04/24 15:56:22");
Response.Write(dt);
}
|
|
|
|
|
Sounds like it should do the trick!
Thanks again Mike!
munklefish
|
|
|
|
|
Hi,
I am retrieving my data from database to a datatable in asp.net.Now I need to place this datatable in the resource file and pull the information from the resource file and display that data on the browser.How do I do this?I did not use resource file till now.I need a complete example of it.
help will be appreciated.
thanks,
|
|
|
|
|
Why do you need to place a datatable in a resource file?
|
|
|
|
|
that is my requirement.I need to add to the resource file and from resoucr file I need to grab it in the code behind and display on the brwoser.
thanks
|
|
|
|
|
Here is my code.....
*********************************************************************
<cc1:aiflashin id="Flash1" style="Z-INDEX: 146; LEFT: 91px; POSITION: absolute; TOP: 158px" runat="server" Width="748px" Height="100px" Url="banner.swf" ScriptName="AiFlashIn1" SwLiveConnect="True"></cc1:aiflashin>
*********************************************************************
Now when I try to change the 'URL="Banner.swf"' to 'URL="Banner2.swf"' during runtime using the 'Flash1.Attributes("URL") = "Banner2.swf"' code.....the webform goes starts up as normal, but the Flash Movie doesn't load, and the little status counter thing at the bottom starts as if the page is loading up, but nothing ever happens. It just hangs.
Does anyone know why this is?
|
|
|
|
|
I figured it out by myself, finally!!!
|
|
|
|