AJAX AND url rewriting

M

Mukesh

I am using MS ajax 1.0 asp.net 2.0 VS 2005

and Helicon ISAPI_Rewrite 2.11

I have a seach page named search.aspx

I have created a form for searching on this page.for intractiveness i have used ajax Update panel..
on search.aspx the ajax is working fine when i submit this page after filling some criterion this request redirects to the

search.aspx?type=xyz&keyword=abc,klmn

and now i dispalys the results on the page and shows form prefilled with the previous criterion ...
now again if uses the form it works without errror..........

Now the Problem starts when start using ISAPI_Rewrite
now after filling the search form i redirectas it to the
/items/type-xyz/keyword-abc,klmn

The page renders without error...
But when i uses the search form on this page and fires any ajax callback it gives me error alert

"sys.webforms.pageRequestManagerServerErrorException: an unknown error occured whileprocessing the requeston the server . The status code returned from the server was :404"

and the callback doesnot completes :


Please Help Me

Mukesh Kumar Agarwal
Efextra Noida
 
P

Patrice

Check the IIS log to see where your AJAX requests are directed (likely to a non existant /items/type-xyz/keyword-abc,klmn page that would be NOT taken care by url rewriting ? Url rewriting is what should allows to process this page as search.aspx?type=xyz&keyword=abc,klm).
--
Patrice

"Mukesh" <[email protected]> a écrit dans le message de O%[email protected]...
I am using MS ajax 1.0 asp.net 2.0 VS 2005

and Helicon ISAPI_Rewrite 2.11

I have a seach page named search.aspx

I have created a form for searching on this page.for intractiveness i have used ajax Update panel..
on search.aspx the ajax is working fine when i submit this page after filling some criterion this request redirects to the

search.aspx?type=xyz&keyword=abc,klmn

and now i dispalys the results on the page and shows form prefilled with the previous criterion ...
now again if uses the form it works without errror..........

Now the Problem starts when start using ISAPI_Rewrite
now after filling the search form i redirectas it to the
/items/type-xyz/keyword-abc,klmn

The page renders without error...
But when i uses the search form on this page and fires any ajax callback it gives me error alert

"sys.webforms.pageRequestManagerServerErrorException: an unknown error occured whileprocessing the requeston the server . The status code returned from the server was :404"

and the callback doesnot completes :


Please Help Me

Mukesh Kumar Agarwal
Efextra Noida
 
W

Walter Wang [MSFT]

Hi Mukesh,

I'm not sure, is this issue only reproducible for specific third party
isapi extension? Have you tried to use some simple URL rewrite in ASP.NET?


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
M

Mukesh

Walter said:
Hi Mukesh,

I'm not sure, is this issue only reproducible for specific third party
isapi extension? Have you tried to use some simple URL rewrite in ASP.NET?


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
HI walter
Thx for mailing

But friend it is very difficult for us because our project is very big
and we have already coded around 50 pages using this extension. and also
because we extension less urlrewriting like domain.com/folder-2/id-15
not like domain.com/folder-2/id-15/page.aspx

and i have found a solution that i have to fix the path in web.config .

But that is also not working fully
Can u help....

Thanks again

Have a good day

Mukesh Agarwal
Efextra , Noida
 
W

Walter Wang [MSFT]

Hi Mukesh,

Have you checked the IIS log as Patrice suggested?

I'm not familiar with the third party isapi extension, have you checked
with its vendor to see if it supports AJAX?

Do you think we could reproduce the issue using a simpler test project
(that is not using the isapi extension or with a simpler pure .NET
implemented URL rewrite component, for example:
http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-wi
th-asp-net.aspx)? Without such a test project, there's really much we could
tell what's the root cause.


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
M

Mukesh

Hi walter Thnx for ur reply
The log was fantastic
....
I have implemented the solution and as i tested it works fine

I have a new Problem ...

I have two controls on one page(basically input form nature )

One is search control with drop down(tab order 1) , text field(tab
order 2) and one button with submit behavior true(tab order 3)


And second is custom login ctrl

login name text field(tab order 11)
password text field(tab order 12)
one button with submit behavior true(tab order 13)

with same rendering order on the page



on search ctrl when i selects some item in drop down and type some text
in the Keyword field and i presses enter key the form submit is
successful and it is as desired but when i perform this action in login
ctrl it fails and the submit button of search ctrl fires (first input
element of submit type on the html page).

i want enter key on both the ctrls should work properly .
how it is possible in asp.net.

Because there is only one form per page ..
is there any way to render two form on one page or any other suggestion.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top