|
Hello I am new to ASP.Net, I am getting an error saying
"A potentially dangerous Request.Form value was detected from the client" when I enter a password with special characters "<" and ">" in it, I found some solutions saying add validrequest="false" and requestValidationMode="2.0" I did add both the statements, but no luck, the error is still showing up, Is there any way to resolve this.
Please help me out with this,
Thank you..
|
|
|
|
|
|
Hi,
Ia m sending email from my website. My host told me they have updated the SPF and eevrything is fine. But I am still having a problem.
Emails to Yahoo are getting recieved as SPAM.
Emails to Gmail and Hotmail are not reaching at all. I mean it's sent but it's not anywhere in Gamil or Hotmail... not even in Junk folder.
How can I fix this?
Technology News @ www.JassimRahma.com
|
|
|
|
|
This is not really an ASP.Net question. The problem is most likely with the email content, or the provider. The only thing you can do wrong from the ASP.Net perspective is failing to authenticate on your email server. Since you haven't posted any code, we can't know if you're doing that or not. If you authenticate, and your content is clean, any additional problems you face are probably on the receiving side, and there isn't anything you can do about their rules. If you are not getting a bounce-back, then there's no way to determine why your email is being judged as spam. And, we generally don't give spammers the courtesy of a bounce, we just eat the message and get rid of it.
|
|
|
|
|
You need to create a spf record in your dns zone file, and fine tune the record to state your smtp rules
You may need to use the same sender and domain name for all email transmitted regarless of the websites domain name so the spf record works.
http://www.zytrax.com/books/dns/ch9/spf.html[^]
[EDIT]
you have to register your public ip address with a reverse ptr back to your domain name
So if you have a block of ip's, says 5 numbers and a gateway
gateway = 69.0.0.0
router = 69.0.0.1
mail = 69.0.0.2
www = 69.0.0.3
smtp = 69.0.0.4
and the router is programmed to send all outbound packets out on 69.0.0.1, then you register that ip address as your reverse ptr for your universal domain name.
you can register 69.0.0.2 as mail.domainname.com, but you may not be able to route or create new pckets to go out on that address.
Have your admin call your internet service to register the ip address, and test it.
AOL has a test tool you can use.
modified 8-Apr-13 14:23pm.
|
|
|
|
|
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?
|
|
|
|
|