|
what do you want actually??
|
|
|
|
|
anpm wrote: try
{
smtp.EnableSsl = true;
smtp.Send(mm);
}
catch
{
e.Cancel = true;
}
You might be getting some error when sending. You are not catching any of the exception, so it will be silently ignored here. Try removing try/catch or catch specific exceptions and try again.
|
|
|
|
|
when I removed try catch
i am getting exception
failure sending mail
I have changed my code like this
MailAddress MaTo=new MailAddress (e.Message .To .ToString ());
MailAddress MaFrom=new MailAddress (e.Message .From .ToString ());
MailMessage mm = new MailMessage(MaFrom, MaTo);
mm.Subject = e.Message.Subject;
mm.Body = e.Message.Body;
SmtpClient smtp = new SmtpClient("smtp.google.com", 465);
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
smtp.UseDefaultCredentials = false;
smtp.Credentials = new System.Net.NetworkCredential("daedalus.mail@gmail.com", "Daedalus1");
smtp.EnableSsl = true;
smtp.Send(mm);
|
|
|
|
|
So, your local machine is actually a mail server ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have changed my code to this
MailAddress MaTo=new MailAddress (e.Message .To .ToString ());
MailAddress MaFrom=new MailAddress (e.Message .From .ToString ());
MailMessage mm = new MailMessage(MaFrom, MaTo);
mm.Subject = e.Message.Subject;
mm.Body = e.Message.Body;
SmtpClient smtp = new SmtpClient("smtp.gmail.com", 465);
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
smtp.UseDefaultCredentials = false;
smtp.Credentials = new System.Net.NetworkCredential("daedalus.mail@gmail.com", "Daedalus1");
smtp.EnableSsl = true;
smtp.Send(mm);
I am really new to asp..net
|
|
|
|
|
how to get current index of cursor
|
|
|
|
|
|
let me clarify i have used fckeditor n adding some text on clickevent i want to add that text on cursor position
|
|
|
|
|
hello
when i delete folder then session is getting null.
please help
Rajeev Kr. Sharma
VRI Software Pvt.Ltd.
New Delhi India
HumOnline.com
Stay Connected
|
|
|
|
|
When you delete what folder?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
i think this is mac OS or SYSTEM based reply
but i am using windows .
Rajeev Kr. Sharma
VRI Software Pvt.Ltd.
New Delhi India
HumOnline.com
Stay Connected
|
|
|
|
|
You are confusing the message with the signature. You have a personal presentation as a signature, the person replying to your question has a quote as signature.
Try to read the message again, and concentrate on what's above the line.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
after login i can add folder in my account.
and also i have a option to delete that folder.
but when i delete any folder my session is set as null and redirect to login page.
Rajeev Kr. Sharma
VRI Software Pvt.Ltd.
New Delhi India
HumOnline.com
Stay Connected
|
|
|
|
|
Can you be a bit clearer about what you want, it doesnt make any sense as to what context you are in
|
|
|
|
|
Hello I have a grid view for a shopping cart. I want to validate the quantity box for greater them zero. If a user place the 0 then he should be presented with a message. I do not want to use javaascript.
If I use the control validator next to the control, the layout gets distorted.
Can I put a common row at the top of grid some where to display the error?
Regards,
Pavas
|
|
|
|
|
mpavas wrote: I do not want to use javaascript.
OK, then you don't want to be using control validators, because how do you think they work ?
mpavas wrote: Can I put a common row at the top of grid some where to display the error?
Yes, you can use a validation summary or just put the validators up the top, they can be anywhere on your page.
I'd put the validators in a row at the bottom but not have them show anything, and have a validation summary where you want to see the messages.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Does grid view do not provide the place holder for common messages..
If not how do you suggest to do this..
Regards,
Pavas
|
|
|
|
|
you could always pre-define your column sizes to allow for short error messages.
i believe you can set column width in a properties panel.
-----------------------------------------------------------
Completion Deadline: two days before the day after tomorrow
|
|
|
|
|
Ok got it. Thanks a lot
Regards,
Pavas
|
|
|
|
|
Ok,
So I'm taking an open source ASP.NET application and modifying it (I need it to run in partial trust, plus I want to extend it). I also had to tweak it so that it wasn't using the Subsonic build provider. No big deal, I can make my changes and compile. However, the trust issue is causing problems.
I added the following line to my configuration file under System.Web:
<trust level="Medium">Now the application is going belly up with the following exception (the exception does not occur with the trust level left at default):
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.
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:
[SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessPermission.Demand() +59
System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(String configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca) +65
Anyway, I can't figure out how to get a stack trace. Any ideas?
|
|
|
|
|
If someone else runs across this with a web search, the following sheds some light on the problem. I'll post back here if it fixes it.
|
|
|
|
|
Hi all,
Please I want to know how to read user data (name, address, phone, mobile .....etc) and convert it to a barcode format then create barcode image to print it as label????
Thanks for helping me
|
|
|
|
|
You can generate barcodes, there's an article on this site about that. You can put the resultant bitmaps on a web page, you can even write a HTTP handler that takes the details on the URL, turns them into a barcode ( assuming this is possible, I thought a barcode was just a sequence of numbers ) and returns the bitmap. You can't control how or where the user of the website prints it tho, except that you can start a generic print with javascript.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi ,
I understand that ASP.NET Configuration Manager can be used to control access rules for a website , but that is only on a developer's side, But If I would like to create a page on my website that an admin user can control the users/ roles of a website, Is there a way that I can use the Configuration Manager as an API to its functionalities.? Or is there any other way to do it
Please respond if you know ,
Thank You
Happy Programming!
Regards,
ctrlnick !
|
|
|
|
|
The ConfigurationManager Class does not grant or deny access, it provides access to read configuration settings stored in .config files e.g. a web.config.
You can use the web.config to create access rules to certain directories and/or pages. Then couple this with either the built in membership provider or create your own customer provider.
Here is a link for more information: http://msdn.microsoft.com/en-us/library/system.configuration.configurationmanager.aspx[^]
Hope this helps!
|
|
|
|