|
dear Venkatesh Mookkan thanks for help. But dear actually i don't know what is SMTP_ServerName and SMTP_Uername please help me...
My Code is .....
Private mMailServer As String
Private mTo As String
Private mFrom As String
Private mMsg As String
Private mSubject As String
Private mCC As String
Private mPort As Integer
Dim strMsg As String
strMsg = "Thank you for Feedback"
mTo = Trim(ferozeahmed1@hotmail.com)
mFrom = Trim("fm_love82@hotmail.com")
mSubject = Trim("Thanks")
mMsg = Trim(strMsg)
mMailServer = "controll-dev-1" ' My Computer Name
mPort = 25
mCC = Trim("letus52@yahoo.com")
Try
Dim message As New MailMessage(mFrom, mTo, mSubject, mMsg)
If mCC <> "" Or mCC <> String.Empty Then
Dim strCC() As String = Split(mCC, ";")
Dim strThisCC As String
For Each strThisCC In strCC
message.CC.Add(Trim(strThisCC))
Next
End If
Dim mySmtpClient As New SmtpClient(mMailServer, mPort)
mySmtpClient.UseDefaultCredentials = True
mySmtpClient.Send(message)
MessageBox("The mail message has been sent to " & message.To.ToString())
'Response.Redirect("Default_retail.aspx")
Catch ex As FormatException
MessageBox("Format Exception: " & ex.Message)
Catch ex As SmtpException
MessageBox("SMTP Exception: " & ex.Message)
Catch ex As Exception
MessageBox("General Exception: " & ex.Message)
End Try
Dear when i click on send button "Failure Sending Mail" error occur. please tell me whats wrong with this code and tell me what can i write mailserver...
|
|
|
|
|
Without SMTP Mail Server, we can't send a mail. So, Every Server in a network might have a Mail Server. Please contact your System Administrator get the Mail Server name....
Regards,
Venkatesh Mookkan.
Software Engineer, India
|
|
|
|
|
Hi,
can anyone tell me the difference between session and session.item
sowmya
|
|
|
|
|
Session is an object of HttpSessionState whereas Session.Item is the collection of Session values.
Say,
Session("Name")="Sowmi" 'Here each one is an item of Session object.
Session("Designation")="Developer" 'Here each one is an item of Session object.
Response.Write Session.Item("Name") 'Also same.
Regards,
Venkatesh Mookkan.
Software Engineer
|
|
|
|
|
Hi..
How could I determine the trusted Web Hosting servers for asp.net 2 ?.
I am too late but i will never give up
|
|
|
|
|
Hi,
How to download a file on click of button using JavaScript function.
kamalnath
|
|
|
|
|
window.open(your site url and the file like:"http://www.mysite.com/file/music.mp3");
Thanks
Rastgar
|
|
|
|
|
Hi,
It is not working.Is there any other way to do this.
kamalnath
|
|
|
|
|
Hi,
Is any one know how to implement this one using ClientCallback concept.
kamalnath
|
|
|
|
|
|
Hi,
it is opening new window but i need download window.
kamalnath
|
|
|
|
|
Post back is the only problem for me I dont want to use it. I want to display a Date field with three combo boxes. When month and year are selected, automatically the days combo must me filled with those many number of days according to leap or not and then 31 or 30 like that. I want to do all this stuff using Javascript function. So please help me if any body could do it.
Thank you.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Try this javascript man...
function GetDayOfMonth(DayCtrlName, MonthCtrlName, YearCtrlName){
var DayCtrl=document.getElementById(DayCtrlName);
var MonthCtrl=document.getElementById(MonthCtrlName);
var YearCtrl=document.getElementById(YearCtrlName);
var lastDayValue=DayCtrl.value;
var DaysCount=31;
if (MonthCtrl.options[MonthCtrl.selectedIndex].value=='2' &&
(parseInt(YearCtrl.options[YearCtrl.selectedIndex].value)%4)==0){
DaysCount=29;
}else if (MonthCtrl.options[MonthCtrl.selectedIndex].value=='2'){
DaysCount=28;
}else if (MonthCtrl.options[MonthCtrl.selectedIndex].value=='4' ||
MonthCtrl.options[MonthCtrl.selectedIndex].value=='6' ||
MonthCtrl.options[MonthCtrl.selectedIndex].value=='9' ||
MonthCtrl.options[MonthCtrl.selectedIndex].value=='11'){
DaysCount=30;
}
DayCtrl.options.length=0;
var oOption;
for (var i=1;i<=DaysCount;i++){
oOption = document.createElement('option');
DayCtrl.options.add(oOption);
oOption.innerHTML=i;
oOption.value=i;
if (i==lastDayValue) oOption.selected=true;
}
}
Regards,
Venkatesh Mookkan.
Software Engineer
|
|
|
|
|
var elSel = document.getElementById('selectX');
if (elSel.selectedIndex >= 0) {
var elOptNew = document.createElement('option');
elOptNew.text = 'Insert' + num;
elOptNew.value = 'insert' + num;
var elOptOld = elSel.options[elSel.selectedIndex];
try {
elSel.add(elOptNew, elOptOld); // standards compliant; doesn't work in IE
}
catch(ex) {
elSel.add(elOptNew, elSel.selectedIndex); // IE only
}
Thanks
Rastgar
|
|
|
|
|
I tried to connect in this way the javascript function to "OnSelectedIndexChanged" event hanlder. But Its not giving me any
thing. Means its not adding this "Javascript" function to the event. What may be the problem. If you can please help me by
giving some code snippet too please.
ddlMonRes.Attributes.Add("OnSelectedIndexChanged", "GetDayOfMonth1();")
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
I tried to connect in this way the javascript function to "OnSelectedIndexChanged" event hanlder. But Its not giving me any
thing. Means its not adding this "Javascript" function to the event. What may be the problem. If you can please help me by
giving some code snippet too please.
ddlMonRes.Attributes.Add("OnSelectedIndexChanged", "GetDayOfMonth1();")
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
OnSelectedIndexChanged is a serverside event handler. The javascript corespondent in onChange .
regards,
Mircea
Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
|
|
|
|
|
|
Mention how many KB data you want to transfer(Max data upload limit) in <httpruntime> section in web.config file. The default is 4096KB.
<system.web>
<httpruntime maxrequestlength="size in kbytes">
....
Depending upon the size of amount of data transfer you may need to change/adjust the timeout also.
Arindam,
|
|
|
|
|
Chnage in httpRuntime section of web config file ... metion number of KB needed. like this ..
httpRuntime maxRequestLength="10000"
.... if you write above means you want maximun 10000 KB data to be transfered. Assume that angle bracket are there as per the structure of web config file.
NB: By default the maximum data that can be transffered is 4096 KB that means it looks like httpRuntime maxRequestLength="4096"
Arindam
|
|
|
|
|
I want to show my error page in new page. Old page should still shows old data.
I write in applicationerror event in global, this:
response.write("window.open('errorpage.aspx')");
But there is a problem with it. The old page shows aspx error message displaying my code and exception. If I set custom error in config, my old page will be redirected to errorpage which is set in custom error tag.
If I use Server.ClearError() method, the old page will be cleared entirely and shows blank page.
I WANT MY OLD PAGE TO SHOW THE OLD DATA WITH USER CHANGES WHICH CAUSING ERROR AND THE NEW PAGE, SHOWS MY ERRORPAGE LIKE ERROR MESSAGE IN WINDOWS APPLICATION.
I don't want to handle my all errors by try catch. I want to handle all of them in allication error. Because I can find my latest exception by Server.GetLastError() method.
Please instruct me what to do.
Thanks
Rastgar
|
|
|
|
|
i'm sure. nobody knows.
Thanks
Rastgar
|
|
|
|
|
Hi all.
First, sorry for my bad english.
I'm searching for a tool that I can use to made my asp.net tests more quickly. Example:
Suppose that I have a web form that has several controls and a button "Save" to persist them into a database table.
I compile and run it on my web browser. I type the data for each control, select each dropdownlist, etc, etc. Then I click on "Save". At this point, at some logic on my code behind/business class I got an error (any type of error, logic, database, etc etc). I need to STOP de debugging, fix the bug and run the web form again on my web browser. With this, I'm going to thest my web form again. So, I need to type every data of my controls AGAIN and AGAIN and AGAIN whenever I got an error (it's a cycle, until I fix all the bugs). This sucks. I'm finding for a tool that "encapsulates" the POST data (everything: data that I typed on my controls, viewstate, etc, etc) and post it AUTOMATICALLY to my page (at server side). With this, I can test the logic IMMEDIATELY, with no need to type the SAME data again.
If you know some tool, please, help me.
Best Regards,
Marco Alves.
|
|
|
|
|
|
A month ago I opened a test account with Flickr. It required me to use a Yahoo mail account. I used an account that I have had for a long time. Everything was easy.
Today I decided to create a real account. I created a new Yahoo mail account to associate it with the new Flickr account. It was easy to create the new Yahoo account. But when I try to create a new Flickr account, it asks me to login into Yahoo. After I log in into the Yahoo account, A Flickr page comes back asking me "Why do you want to log into 'oldusername' with the 'newusername'" It seems Flickr has associated my computer with the old Yahoo mail/old Flickr account, and want let me create a new account.
Now that is a bit bothersome but I also can value the ability to not let a user use more than one account from the same computer.
So my question is: How does Flickr do it? I am sure it does not use cookies, as I cleared all the cookies and also tried to use another browser which I had never used to log into Flickr. In fact I read somewhere that other people have tried rebooting in Linux and Flickr still would recognize them with the old account. So it seems no windows registry either.
Any ideas?
|
|
|
|