Help with new OpenSearch Plugin

7 views
Skip to first unread message

Andreas Weller

unread,
Oct 12, 2009, 6:52:03 PM10/12/09
to OpenSearch
Hi!
I would like to create an OpenSearch Plugin for this website:
http://ans.bundesnetzagentur.de/Amateurfunk/Rufzeichen.aspx

Problem:
This website uses a hidden form value "__VIEWSTATE" changing every
site reload - may be a session key.

How to work around this issue?

Thank you!


Regards,
Andreas Weller

Tatham Oddie

unread,
Oct 12, 2009, 10:32:46 PM10/12/09
to opens...@googlegroups.com
Hi Andreas,

The field you're seeing is specific to ASP.NET and should not need to be
populated on your request. It is used for client side state between
requests.

Try performing your request without it. If you have problems, feel free to
email me off-list.


Thanks,

Tatham Oddie
http://tath.am

Andreas Weller

unread,
Oct 13, 2009, 8:09:39 AM10/13/09
to OpenSearch
> Try performing your request without it.

Hi!
I already tried this.
I traced the POST Data as follows:

__EVENTTARGET=Bt_Suche
__VIEWSTATE=
%2FwEPDwULLTE0MjAxMjE1MDAPZBYCAgEPZBYEAgsPPCsACwBkAg0PFgIeB1Zpc2libGVoZGRWJsSRBAcP2yPpeziHDNPnGh3KJA
%3D%3D
Text1=df1paw
Bt_Suche=Suche+starten
__EVENTVALIDATION=%2FwEWAwLC5pyrAwLzlKGwCgLs2ci8DB
%2Fe6ZPkminSnkQy2oPDMBtY45Rr

Posting without eventtarget I get this error: "Object reference not
set to an instance of an object."
Without eventvalidation the returning message is: "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."

Any idea?


Regards,
Andreas
Reply all
Reply to author
Forward
0 new messages