|
Hi,
I have a asp.net page that uses some ASPNET AJAX controls in Update panel. This page keeps throing this exception. I have checked EventValidation is not set in web.config and i even tried explicitly setting it to false but no luck.
If any of you know how to fix this problem please let me know. Thanks a lot in advance.
Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date: 12/03/2008
Time: 12:21:06
User: N/A
Computer: 148424-WWW1
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 3/12/2008 12:21:06 PM Event time (UTC): 3/12/2008 12:21:06 PM
Event ID: a226283c7f45419abc2faaea7489e416 Event sequence: 5570
Event occurrence: 7 Event detail code: 0 Application information:
Application domain: /LM/W3SVC/1513945806/Root-4-128497260244773750
Trust level: Full Application Virtual Path: /
Application Path: D:\Inetpub\Websites\WorldTransfer\
Machine name: 148424-WWW1 Process information: Process ID: 3612
Process name: w3wp.exe Account name: NT AUTHORITY\NETWORK SERVICE
Exception information: Exception type: ArgumentException
Exception message: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Request information:
Request URL: http://www.worldtransfer.co.uk/online/booking/BookingCentre.aspx
Request path: /online/booking/BookingCentre.aspx
User host address: 81.143.113.148 User: Is authenticated: False
Authentication Type: Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information: Thread ID: 1
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument)
at System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument)
at System.Web.UI.WebControls.TextBox.LoadPostData(String postDataKey, NameValueCollection postCollection)
at System.Web.UI.WebControls.TextBox.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection)
at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Cheers
Sandy
|
|
|
|
|
Hi everybody
How can I build a flash menu that reads its data from a database
Thanks alot..
and a Web Developer in Jedda Int'l Computer Center(JICC)
Nour Abdel-Salam...
A Trainer and a Web Developer in Jedda Int'l Computer Center(JICC)
|
|
|
|
|
Hi everybody
How can I build a menu that reads its data from a database
Thanks alot..
Love you all
Nour Abdel-Salam...
A Trainer and a Web Developer in Jedda Int'l Computer Center(JICC)
|
|
|
|
|
Only one post is enough, any more and you just get ignored. Delete the other.
Have you even tried a rudimentary search for this topic?
only two letters away from being an asset
|
|
|
|
|
You can use inbuilt ASP.NET menu control. Default it uses a web.sitemap file. But you can attach your own providers to that. Write your own provider class and attach. Set the SiteMapDataSource to your new provider name.
|
|
|
|
|
hi,
i have created a database where information on the web page is pulled out from the database using asp.net and have an sql server database. however i need to add javascript functionality to it. the javascript functionality i want to add is a timed text one. does anyone have any suggestions as to how i can achieve this and what is the best way to do it, eg, use dataview, gridview and how i can link the javascript to it. if anyone thinks it would be easier for me to post up some of my code then i will upon request. i hope i have posted this is the right place, if not i will move it to the asp.net bit.
thanks for any help given, it is much needed
|
|
|
|
|
You need to clarify your terminology and understand what you are talking about before anyone else can understand you
young345 wrote: information on the web page is pulled out from the database using asp.net
You don't pull data from a database using ASP.NET. Most likely you mean ADO.NET
young345 wrote: however i need to add javascript functionality to it.
To what? The database? That is how your sentence is structured.
young345 wrote: the javascript functionality i want to add is a timed text one.
What do you mean? What do you want to do?
Subject: javascript and database
Though I applaud you for more than just saying "Help" or "Urgent help, Plz", your question is about adding javascript to a page, not about databases.
only two letters away from being an asset
|
|
|
|
|
hi,
i have data in a database, i display this data on the webpage currently using a datalist.
what i would like to do is add my javscript timed text method i have written to this data list so that the data from the database appears in a sequence on screen. for example, after 2 secs a line appears, then after 5 secs another line appears etc.
however, if someone can suggest another way for the text from the tables of the database to appear in a dynamic fashion like i described before i would really appreciate any examples. or can anyone suggest how i can achieve adding my javascript method to the data from the database. i hope this is more clear for you to understand and that you can offer me some help. if anyone still doesnt understand i will try again at explaining.
|
|
|
|
|
A much more articulate description and question.
The first thing I would ask is why do you need to display the data this way? This is a web app correct? Think of the users and load on your server if you are constantly going back to get one row of data at a time. Yes, you can do it, but is it a good idea or a good design. Just because you can doesn't mean you should.
One way to do this would be to transmit the entire datatable on the first call and store it in some JavaScript object then set off a timer that does what you want on the client side.
Another way would be using AJAX to call a server method that returns the row of data when the timer event kicks off. Though again, this puts load on your server.
only two letters away from being an asset
|
|
|
|
|
i just want to do it so that the page isnt static and has some dynamic functionality to it.
i am a bit of a novice, do you have any examples that could help me do this, i have my javascript method which times when the text appears, but i dont know how to apply it. please could you help me or provide any examples. also can you advise what type of dataMethod i should use, for example a datalist, details view, grid view etc. i would really appreciate your help as i have been struggling with this for some time. i think your first suggestion would be better to use maybe
thank you
|
|
|
|
|
young345 wrote: i just want to do it so that the page isnt static and has some dynamic functionality to it.
I'll repeat what I said; just because you can, doesn't mean you should.
Trying to display one row at a time isn't dynamic, it's stupid.
young345 wrote: can you advise what type of dataMethod i should use, for example a datalist, details view, grid view etc.
Here we are back to not knowing what you are talking about. DataList or GridView are not DataMethods, they are controls that display data.
Go get a book, like Beginning ASP.NET, and read through it, do the examples, then come back here and ask articulate questions about what you don't understand.
only two letters away from being an asset
|
|
|
|
|
how to send mail using sql triggers
This is haneef.............................................................
|
|
|
|
|
Go throught xp_sendmail extended stored procedure.
You can do it another way, create CLR stored procedure and you can use it in Triggers.
Haneef, I did not do more R & D with above said idea, so before going to implementation go through google for more infomation.
If you find any issues then let me know.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
First step is to pick the correct forum. This is a SQL question, use the SQL forum
only two letters away from being an asset
|
|
|
|
|
I have a RequiredFieldValidator on a fileupload control that tests for a filename ending in 'daily.txt' or 'Daily.txt' or 'DAILY.TXT' or any other similar mixed upper/lowercase format of the filename 'daily.txt'. The validation expression I created is as follows:
ValidationExpression="[Dd][Aa][Ii][Ll][Yy]\.[Tt][Xx][Tt]$"
This tests out perfect in the many online regex validators. It even works in Firefox, but for some reason, IE won't validate a match. Is there something wrong with the validation expression with respect to how IE handles it?
The full markup for the fileupload is as below:
<asp:fileupload id="FileUploadImport" runat="server" />
<asp:button id="btnUpload" runat="server" text="Upload" validationgroup="ImportUpload" />
<asp:requiredfieldvalidator
ID="rfvFileUploadImport"
Display="Dynamic"
ControlToValidate="FileUploadImport"
SetFocusOnError="true"
Text="Please select Import File."
ValidationGroup="ImportUpload"
runat="server" />
<asp:regularexpressionvalidator
id="revFileUploadImport"
ControlToValidate="FileUploadImport"
SetFocusOnError="true"
ErrorMessage="Please select the location for the 'daily.txt' file"
ValidationExpression="[Dd][Aa][Ii][Ll][Yy]\.[Tt][Xx][Tt]$"
ValidationGroup="ImportUploadr" runat="server" />
Please Help. I am using both IE 7 and IE 6
-Ali
modified on Wednesday, March 12, 2008 12:19 PM
|
|
|
|
|
Which version of IE do you use?
M. Gouda
foreach(Minute m in MyLife)
{
myExperience++;
}
|
|
|
|
|
IE 7
I also tested in IE 6 for kicks
|
|
|
|
|
Really, I am not so familiar with Regular Expressions
If I faced such a problem, I would write my own validator
You can use
String.Compare(firstString,secondString,true);
where firstString will carry the last 9 characters of the file name
And secondString will carry the word "daily.txt"
And true means to ignore the case
M. Gouda
foreach(Minute m in MyLife)
{
myExperience++;
}
|
|
|
|
|
does anyone know how to enable STARTTLS in the mailsetting of the web.config file in asp.net. I keep getting the following error: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first e33sm3474460ugd.80.
Been stuck on this for days can anyone help??
cheers!!
|
|
|
|
|
Hi All,
I have an ASP application which is sending out mails (an html page) with mailto link in it. But the subject line fo this mail is dynamically created.
I want that when someone clicks on mailto link in mail sent by the application to them, it should open a reply window with same subject and body defaulting the address, exactly like when you reply to mails in outlook with the same subject line prefixing Re: and containing the body of the recevied mail.
I hope i am clear enough.
Appreciate your help.
Its a bit urgent too guys.
Thanks.
|
|
|
|
|
Azi Qaiser wrote: Its a bit urgent too guys.
Well let me drop everything I'm doing, and give you the shirt off my back. Would you like me to grill you a steak as well?
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
i'm sure there is some sort of irony with him wanting it urgent and the subject being an e-mail
|
|
|
|
|
So, if I understand it correctly, you want to programmatically trigger a "reply" action in the user's email client. Is this for an intranet scenario, where you can limit the number of email clients supported, or are you looking for this functionality regardless of what email client a user has?
|
|
|
|
|
Apparently it's not urgent enough to answer you. Or he didn't understand you. Or he copied and pasted your reply and it would not compile
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Hey.
I have a anthem:PlaceHolder inside a asp:Repeater that contains an asp:RadioButtonList
something like
<br />
<asp:repeater id="rp" runat="server" gt;<br="" mode="hold" />HeaderTemplate> table></HeaderTemplate<br />
ItemTemplate><br />
td><anthem:ImageButton id="ibPt" runat="server"></anthem:ImageButton><br />
<anthem:PlaceHolder id="phPt" runat="server"><br />
<asp:Literal ID="liPt" Runat="server"></asp:Literal><br />
<asp:RadioButtonList ID="rblPt" Runat="server" Visible="False"></asp:RadioButtonList><br />
</anthem:PlaceHolder></td
And I have added a click event on my anthem:ImageButton that shall fill the RadioButtonList with items and make it Visible="true"
something like
private void OnPt(object sender, ImageClickEventArgs e)<br />
{<br />
MiBlo.Product bloProduct = null;<br />
Anthem.ImageButton aibtnPartType = (Anthem.ImageButton)sender;<br />
try <br />
{ <br />
System.Web.UI.WebControls.RepeaterItem riSL = (System.Web.UI.WebControls.RepeaterItem)aibtnPartType.Parent;<br />
<br />
int lngProductID = int.Parse(aibtnPartType.CommandName);<br />
int lngCatalogID = int.Parse(aibtnPartType.CommandArgument);<br />
<br />
bloProduct = new MiBlo.Product();<br />
<br />
DataView dvProductPartTypes = bloProduct.GetProductPartTypes(lngProductID, lngCatalogID);<br />
<br />
aibtnPartType.UpdateAfterCallBack = true;<br />
aibtnPartType.Visible = false;<br />
<br />
Anthem.PlaceHolder phPt = (Anthem.PlaceHolder)riSL.FindControl("phPt"); <br />
Literal liPt = (Literal)phPt.FindControl("liPt");<br />
liPt.Text = "";<br />
liPt.Visible = false;<br />
<br />
RadioButtonList rblPt = (RadioButtonList)phPt.FindControl("rblPt");<br />
rblPt.Visible = true;<br />
rblPt.RepeatColumns = 1;<br />
<br />
<br />
for(int i = 0; i < dvProductPartTypes.Count; i++)<br />
{<br />
RadioButton rb = new RadioButton();<br />
rb.Text = dvProductPartTypes[i]["dblNumberInUnit"].ToString();<br />
rb.GroupName = "rblPt"; <br />
<br />
rblPt.Controls.Add(rb);<br />
}<br />
<br />
phPt.UpdateAfterCallBack = true;<br />
}<br />
catch (Exception err) <br />
{<br />
lblMessage.Text += err.Message;<br />
}<br />
}
It enters the code and everything seems OK, but it won't show. I tryed just to set the Literal liPt.Text = "Test" and not setting it
to liPt.Visible = false and that is shown correctly.
But I have no idea why the RadioButtonList won't show.
I have allso tried an anthem:RadioButtonList insted of an asp:RadioButtonList inside an anthem:PlaceHolder but it gave the same
result.
Anyone know the RadioButtonList won't show?
Thanks
Thomas
|
|
|
|