|
|
|
Do not repost on the forums, that is not allowed.
The only difference is the hyperlink, if you needed to just change from clear text to hyperlink, you can always click on "Edit" under the message and update what you want to. Reposting doesn't help at all — also previous post remains similar and ambiguity remains intact.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
|
Please remove hyperlinks from your questions. You are in danger of being mistaken for a spammer and getting kicked off the site.
|
|
|
|
|
Hello,
Total stranger to ASP.Net here.
We have been advised by our server hosts that the code attached which is used to send a form to an email recipient should have a single constant "From" email address specified to avoid SPF related issues. At the moment the "From" is retrieved from the email form field.
thanks,
Richard
About Me:
I'm new in this forum, I am a consultant and have worked with multiple firms
You can check Accounting software videos one of my work.
|
|
|
|
|
The From field in the SMTP protocol tells where the message came from, every delivery host should have one — such as CodeProject Answers etc. If your server host is enforcing this, that means they are trying their best to fight against email spamming etc.
I recommend follow this, in ASP.NET you can also try to configure these SMTP based settings in the web.config file (unless, of course, you are trying to use a third-party SMTP client). Also, I do not understand the purpose of having an Email Form (or From) field, to update and modify the SMTP client itself. SMTP client should be configured with the default values for and settings for the account being used. Then use the form to get other dynamic content, such as 1) To, 2) Subject, 3) Message... CC, BCC etc are also possible here.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
I need to Extract numbers with % sign from a string.
Example: "50%", "test 100%","ttest 50% test test".
thank you
|
|
|
|
|
Use a Regular Expression[^]. For example:
\d+%
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
what am I doing incorrect:
Dim number = Regex.Match("50%", "\d+$").Value
number is empty
|
|
|
|
|
You're using the "end-of-line" anchor ($ ), but the number is not at the end of the line. You want to match the literal % character instead.
Dim number As String = Regex.Match("50%", "\d+%").Value
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
|
now we have cart and when user click on check out button then we have a code which run and redirect user to paypal web site and from there user purchase.
now i like to show how we pass user selected product data and user details to paypal web site.
here is the sample code
NameValueCollection data = new NameValueCollection();
data.Add("cmd", "_cart");
data.Add("business", "test@gmail.com");
data.Add("invoice", 1);
data.Add("item_name_1", "Audi part1");
data.Add("amount_1" , 200);
data.Add("item_name_1", "BMW part1");
data.Add("amount_1" , 300);
data.Add("item_name_2", "carriage");
data.Add("amount_2" , 500);
data.Add("item_name_2" , "insurance");
data.Add("amount_100" , 100);
data.Add("item_name_2", "VAT Amount");
data.Add("amount_2" , 100);
data.Add("country", "GB");
data.Add("currency_code", "GBP");
data.Add("cn", "How did you hear about us?");
data.Add("upload", "1");
data.Add("address_override", "1");
data.Add("first_name", "customer first name");
data.Add("last_name", "customer last name");
data.Add("address1", "customer address1");
data.Add("city", "customer city");
data.Add("state", "customer state");
data.Add("zip", "customer post code");
data.Add("return", "http://abc.mysite.net/catalogue/order/PayPalSuccess.aspx");
data.Add("cancel_return", "http://abc.mysite.net/catalogue/order/PayPalFailure.aspx");
data.Add("notify_url", "http://abc.mysite.net/catalogue/order/PayPalNotify.aspx");
HttpHelper.RedirectAndPOST(this.Page, "https://www.paypal.com/cgi-bin/webscr", data);
public static void RedirectAndPOST(Page page, string destinationUrl, NameValueCollection data)
{
string strForm = PreparePOSTForm(destinationUrl, data);
page.Controls.Add(new LiteralControl(strForm));
}
i am interested to know is there any web service paypal offer as a result we can use that and we can pass user and cart data to paypal by calling their web service as a result we can stay in our web site page and do not have to push user to paypal page.
basically i am looking for a way to pass information from my web site to paypal web site internally or silently by using their web service. so just redirect me to relevant paypal page or article which guide me how to use paypal web service if any exist.
please guide me. thanks
tbhattacharjee
|
|
|
|
|
Yes, you can definitely do this. I recently did a fairly complex checkout process involving initial charges and setting up recurring payments (subscriptions) while hosting all pages and using API calls. Check out PayPal Payments Pro .
However, IIRC, this is available only in the US, Canada, and UK.
|
|
|
|
|
Look at the various options on PayPal's site
PayPal Developer Documentation - PayPal Developer[^]
PayPal Payments Pro is what you need but as said only available in certain locations. Please also bear in mind additional security aspects you will need to consider.
|
|
|
|
|
Hi All,
I develop an ASP.Net Web Application (Classic) .Net-framework 4.0 and every thing ok, but when publish the application on IIS and open the login page some and click the login button this error shown some times:
"could not load file or assembly system.windows., Version 2.0.5.0, Culture=netural, PublicKeyTocken=7cec85d7bea7798e or one of its dependencies. The system cannot find the file specified"
Please let me know hot to solve it and what is the reason?
Thank All
|
|
|
|
|
Check the application pool in IIS, it will be pointing toward .net 2 framework pool. If you already have application pool with .net 4 framework associate it else you have to create a pool for .net 4 and then associate it.
Ashwin Shetty
|
|
|
|
|
Hi,
I'm sure the application pool is framework 4.0 and all settings on the IIS is correct.
please let me know other cases.
Thank You
|
|
|
|
|
Check your web.config if you have any setting in it. Also .net 2 and 4 should be running in two different pool else only one which starts first will get started.
Ashwin Shetty
|
|
|
|
|
Hi,
I was checked the web config and nothing found, also i check the IIS the both App Pool for 2 and 4 is started and also the same issue.
I don't know the reason for this, do you have another scenario to check.
Thank You
|
|
|
|
|
|
Hi,
I try to solve it using the Patch from this link which provided by you,
Update for the .NET Framework 4: March, 2011[^]
but it doesn't work when click the download link.
Can you provide me another link to download it?
Thank You
|
|
|
|
|
|
hi,
we download the update from the Microsoft center but still the problem exist.
do you have other solution ?
thank you
|
|
|
|
|
Try installing the same version of .NET as you have on your development PC.
Or just install 4.6.2[^], which is the latest version.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|