|
For me, it was simply "make sure reverse IP resolves to the domain name from where the email came" and this can often be tricky because the email server typically doesn't have the same IP as the web server to which the domain name is normally routed. This stuff is in addition to the stuff I said. I had to do this to get through to AOL - but I just called my ISP and said "make the reverse IP lookup work" - that is, I didn't set it up myself as you describe. I forgot about this part, but yeah, AOL will block you for that, and probably other services will too.
It's the "spam unless proven otherwise" rule.
|
|
|
|
|
I spent some time over a couple of weeks having to figure out why I could not send mail to certain mail providers, so it was still fresh in my head. The AOL killed me, because you can't see the message warning using telnet unless your SPF record and reverse PTR is correct. Guess that keeps it secret.
You had a good answer, maybe it is the OP's content after all, but I've never had spam pass the reverse ip lookup test.
|
|
|
|
|
I used to send a newsletter from our server. We always got a few bounce-backs, and we had to throttle the system so it wasn't too fast, because AOL keeps track of your overall activity, and will generate an auto-complaint to your ISP if you send too many emails in a certain amount of time. They tell you what the limit is so you can game the system for legit kind of stuff like newsletters. But yeah, this is why many newsletters and advertisers which have "opt-in" features are explicit about telling you to add the sender to your trusted users list - because sometimes there is nothing they can do to get past the filters.
|
|
|
|
|
When the page is taking time for loading , I kept an update panel and a image for displaying the progress and im manually giving the time to show the progress image, I need a dynamic solution , so that when the data is loaded successfully automatically the loading image should close and has to show the data and if it is taking too much time than whatever i have specified then the image has to show until the data is loaded?
|
|
|
|
|
|
Hi guys,
I want to maintain the selected values of check box and drop down list values in MVC-4 on Post back of page,
ex: I selected Drop down list which contains year, if the user selected 2012 as year on post back of page it should be selected as 2012 value, in classic asp.net we have Page.IsPostBack, is there any same way to do that in MVC 4. because on every post back i am loosing the state of controls, Please help me.
Thanks and regards
Vishwa
|
|
|
|
|
I have a web page(.aspx), on which I'm loading some user control by jQuery ajax.
Something like this:
$.ajax({
type: "POST",
url: "WebService.asmx/GetGrid",
data: data,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(result){
$('#divAjaxGridViewContainer').html(result.d);
},
error: function(error) {
alert("Error");
}
});
In WebService.asmx.cs Web Service I have a GetGrid WebMethod which generates and returns the html of user control, that contains grid view. Here is the code:
[WebMethod]
public string GetPage(object[] criteria)
{
Page page = new Page {ViewStateMode = ViewStateMode.Disabled};
AjaxGridView grid = (AjaxGridView)page.LoadControl("~/Controls/AjaxGridView.ascx");
grid.ViewStateMode = ViewStateMode.Disabled;
grid.BindData(criteria);
HtmlForm form = new HtmlForm {ViewStateMode = ViewStateMode.Disabled};
form.Controls.Add(grid);
page.Controls.Add(form);
string result = String.Empty;
using (StringWriter output = new StringWriter())
{
page.Server.Execute(page, output, false);
result = output.ToString();
}
return result;
}
AjaxGridView is a user control, that contains a GridView, and binds it to some data depending on some criteria with BindData(criteria) public method.
All this code works fine. I've used this technique several times and it used to work fine.
This time, after loading the html from service onto the page, clicking the controls that should make autopostback (such as asp:Button, asp:DropDownList, asp:CheckBoxList), throws the following js esception:
__EVENTTARGET is undefined
on this part of code:
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
Any ideas?
|
|
|
|
|
Hi,
Basic idea is, whenever you are loading any control dynamically, you should load in the page_init event of the page. in your case, are you loading (by calling the service) the user control in page Init event ? if not that might be one of the causes of this issue.
hope it helps.
Vande Matharam - Jai Hind
|
|
|
|
|
Hi,
I keep getting the following error for different page in my website but not all the times so same page might work now but it will give this error after few minutes then again it will work. How can I solve it?
This is the error:
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
Technology News @ www.JassimRahma.com
|
|
|
|
|
This error usually happens when your web app runs on a web farm but the machineKey isn't the same across all servers. Is this an issue in production? Check out this article on MSDN for more info.
http://msdn.microsoft.com/en-us/library/ms998288.aspx[^]
modified 7-Apr-13 19:24pm.
|
|
|
|
|
|
Hi all. I am using Microsoft Visual Web Developer Express 2010. I am finding working with the controls on the form very annoying, as it is hard to place and rearrange the various components e.g. labels, textboxes, unlike in Microsoft Visual C# Express 2008 (where you can drag and drop and adjust a component anywhere on the screen)
I have tried using tables, and though they work, the components are hard to get positioned the way you want (see the link below with labels). Is there an easier way of laying out the controls? Thanks
http://imageshack.us/a/img10/2388/designview.png[^]
|
|
|
|
|
WebSite or Web application?
If you name the controls you can position them by changing the values in css
30 Days to Learn HTML & CSS[^]
Frazzle the name say's it all
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
John F. Woods
|
|
|
|
|
I think you need to change your approach, or way of thinking for Visual Web Developer Express.
It's not about using the Preview Mode to design your web forms like on Visual C# Express.
[Visual C# Express]
Programers use the design mode to quickly design or layout windows forms, for the x/y position of the objects always start at 0/0 or the top/left of the form. In a windows for, there is usually just one container to keep track of, so it's easy to drag and drop controls on to the form.
[Visual Web Designer]
Microsoft tried to do the same thing in this program, but it really doesn't work out, because a web form can be made up of hundreds of containers to store objects.
I've been doing this for over 13 years now, And I can advise you to not use the preview mode to design forms, because the preview mode uses Internet Explorer to render the objects, and they will not look the same on all browsers.
If you use the preview mode to adjust a container or object, it will inject bogus HTML and CSS into the code, in which fixing it may not be an industry standard thing. It will confuse you more, trust me.
I use the preview mode to just select objects, so I can use the property panel F4 to adjust the object. That's it.
[Advice]
Your really better of just typing straight into the code window, using HTML or HTML 5 if your program supports it. A web page is not about asp.net, it's about HTML and CSS Styles, so you should hone your skills there first.
Technology like PHP, ASP.Net is 2nd, after HTML and CSS.
Learn how to design web pages first. Start with a master page for your template, and then web forms that inject HTML into the Master Page content containers.
You can download my demo project here, as a start or to simply view how to construct a proper asp.net website.
HKB Project[^]
When you start designing forms for submission, then you replace that HTML Textbox tab with the asp.net textbox object <asp:textbox>, so you can access it in Code Behind. The same with the submit button and so forth.
[Conclusion]
I hand type everything on the keyboard, I create the containers with div tags and tables to construct my layout, and then I populate each container until finished. I don't use the asp.net object anymore, because most of them are difficult to manage, and time consuming to create and maintain.
I can do this in straight HTML, or pure code behind, in almost any technology, because I have a strong knowledge of HTML and CSS.
|
|
|
|
|
hi everybody,
in my sys i have ii6 is installed....now i want to upgrade it to iis7.5....my OS is win7 ultimate 64bit...and VS2010 and SQL 2008R2....can anyone help me pls....
|
|
|
|
|
You could look at the official IIS website. www.iis.net/learn
"It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan
That's what machines are for.
Got a problem?
Sleep on it.
|
|
|
|
|
Hi,
I am using the following ocde to determine the mobile device manufacturer and model but it's returning Unknow when I try from my Samsung S2 and S3.. I didn't try other but I guess it will be the same.
this is the code:
event_log_sql_command.Parameters.Add("param_mobile_manufacturer", MySqlDbType.VarChar).Value = HttpContext.Current.Request.Browser.MobileDeviceManufacturer;
event_log_sql_command.Parameters.Add("param_mobile_model", MySqlDbType.VarChar).Value = HttpContext.Current.Request.Browser.MobileDeviceModel;
Technology News @ www.JassimRahma.com
|
|
|
|
|
Please HELP.....
Technology News @ www.JassimRahma.com
|
|
|
|
|
i am working with sql server 2005 database. can anybody help me to stop bypass login in asp.net.
|
|
|
|
|
'login' to what? The web application? sql server?
|
|
|
|
|
Please provide more information, from where you would like to bypass login ?
Thanks
-Amit Gajjar (MinterProject)
|
|
|
|
|
can you please elaborate your question? I mean what are you actually want to bypass for ASP.NET or SQL Server??
|
|
|
|
|
What is the Congiguration manager class in the code and how to you set it in the Project or IDE?
How do I set AppSettings in an ASPX project's Configuration manager?
This is an ASPX/CS Project with Visual Studio 2010. It is a Configuration Manager question.
I am successfully debugging (sort of) some code that is being used already on a server. But there is a piece of code that plays with the URL in the live version that should not be used in the debug/localhost version.
<pre lang="c#"> protected void Page_Load(object sender, EventArgs e)
{
if (ConfigurationManager.AppSettings["IsTesting"] == "false" && Request.Url.ToString().Contains("http:"))
{
Response.Redirect(Request.Url.ToString().Replace("http:", "https:"));
}
LoadMasterTemplate();
}</pre>
This piece of code lands on the "Response.Redirect...." line when it should not because the "IsTesting" app setting should be set to true in the ConfigurationManager . How do I set that?
|
|
|
|
|
There must be one configuration file in your project. named App.Config.
you can see one section for AppSettings. Check if below section present in your configuration file.
<appSettings>
<add key="IsTesting" value="true" />
</appSettings>
So you need to change value attribute value in the configuration file.
Hope this works for you.
Thanks
-Amit Gajjar (MinterProject)
|
|
|
|
|
FYI:
Looks like the program is forced to run in SSL mode, unless testing, then the Page Load function forces the program to run in non SSL mode, because SSL request don't run in the web dev.
So you would want to change the value to true in your .config file., and change it back to false when done.
|
|
|
|