|
all our servers have smtp configured locally. The SMTP server is wired to the exchange server. So, all our application mail goes through localhost and this is company mail server. I don't see any problem with that.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
I think you haven't noticed that little nasty single quote in front of 'SmtpMail.SmtpServer = "127.0.0.1"
There's also a small note almost at the bottom explaining about the SMTP-server.
|
|
|
|
|
Jörgen Andersson wrote: I think you haven't noticed that little nasty single quote in front of 'SmtpMail.SmtpServer = "127.0.0.1"
I did see that, but decided not to raise the issue. The reason was, he might have first tried it, it did not work, then commented it out and it did not work.
By the way, if it is not set, it will use localhost by default.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hi Friends,
I have this web application developed using ASP.NET with C#. Now I want to convert it to a desktop application i.e. a Windows Application Project.
Is there any option available with the .NET framework to do so...? Any Activex Control available for the same..? Or do I have to reconstruct the whole application again..??
Regards..
Jim
Jim
|
|
|
|
|
|
I don't want to convert it in VB..I want to stay with C#.!
|
|
|
|
|
The level of effort depends on how the application was architectured.
If the layers of application Presentation/View and other layers are not tightly coupled . all you have to do is to go ahead and create a similar view in Winforms and use the existing Business layers etc.
If this is not the case. then you will have to redo most part of the application.
Regards,
Cybernate
|
|
|
|
|
Hi There,
I have a problem.I want to call web service through javascript in content place holder.
Can any body tell me how to call it.Waiting For reply
Thanks,
|
|
|
|
|
|
I would like to know,How to upload a file in my web application.send me the code.
by
regards
che Guevara
|
|
|
|
|
http://www.codeproject.com/KB/aspnet/fileupload.aspx[^]
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
cs file
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
public partial class UpLoad : System.Web.UI.Page
{
string sFileDir = "C:\\";
protected void Page_Load(object sender, EventArgs e)
{
string sFileDir = "C:\\";
long lMaxFileSize = 4096;
}
private void DeleteFile(string strFileName)
{
if (strFileName.Length > 0)
{
FileInfo fi = new FileInfo(strFileName);
if (fi.Exists)
{
fi.Delete();
}
}
}
}
aspx file
]]>
<title>Untitled Page
void btnUploadTheFile_Click(object Source, EventArgs evArgs)
{
string strFileNameOnServer = txtServername.Value;
string strBaseLocation = "c:\\temp\\";
if ("" == strFileNameOnServer)
{
txtOutput.InnerHtml = "Error - a file name must be specified.";
return;
}
if (null != uplTheFile.PostedFile)
{
try
{
uplTheFile.PostedFile.SaveAs(strBaseLocation+strFileNameOnServer);
txtOutput.InnerHtml = "File <b>" +
strBaseLocation+strFileNameOnServer+"</b> uploaded successfully";
}
catch (Exception e)
{
txtOutput.InnerHtml = "Error saving <b>" +
strBaseLocation+strFileNameOnServer+"</b><br />"+ e.ToString();
}
}
}
Select file: | | Name on server: | |
onserverclick="btnUploadTheFile_Click" runat="server"/>
|
In this u can specify the path ,the file to be uploaded
|
|
|
|
|
I've registerd my dll in com by using the regserv from .Net framework 2.0 as in
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>regsvcs "D:\Development\MyProdjekt\Main\bin\My.BusinessLogicObjects.dll"
It seems to be registerd ok, as it does on my xp machine.
But i still get: COMExeption occurred: Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)
Is there something I am missing, my new machine uses Vista Ultimate 64bit
Thanks
Thomas
|
|
|
|
|
It has to be registerd under the 64bit framework as in
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727>regsvcs "D:\Development\MyProdjekt\Main\bin\My.BusinessLogicObjects.dll"
That was freeking many hours wasted!!!
|
|
|
|
|
Dont worry for wasted the time.
You got the solution and I got the information. Tnx
Balasubramanian K.
|
|
|
|
|
Is it possible to stop the execute of the program. Iam check for a condition.If it is true i want to stop the execution. How it is possible?
|
|
|
|
|
Yes it is possible. If the condition is false, simply you can come out of the block or redirect it to another one.
Balasubramanian K.
|
|
|
|
|
You can use
System.Windows.Forms.Application.Exit() for Windows Apps
and Response.End for Web Application.
Regards,
Cybernate
|
|
|
|
|
Hi,
I need to close the form in ASP.net C# on clicking the submit button of my form after the records are saved.
Help me out plz.......
Dev
|
|
|
|
|
Hi,
By adding clientscript at the serverside,you can close the page ....
ie; by using ClientScript.RegisterClientScriptBlock() you can achieve this...
|
|
|
|
|
Thanks kumar but can u give me some more detail of this function.
|
|
|
|
|
How can you be working on a presumably paid project, which has requirements, but not know how to use google, or know about the basics of ASP.NET ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hi,
The function will work like this:
syntax:
ClientScript.RegisterClientScriptBlock(
Me.GetType(), "Ur ScriptName", "Ur javascript code for closing page ")
|
|
|
|
|
If you do, the user will be asked if they want to close the form. Why do you need to do that ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
It is required as i m opening this form using window.open alongwith my main form to save partner record and on its close button i hav applied some javascript fucntion so that it could be get on main page. But in case it closed directly from window's close(X) then that function is not executed and some other reasons also forced me to get it close on Submit button's click aftr records are saved.
So if you can help me out , i wud b really thankful to you.
|
|
|
|