Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / September 2007

Tip: Looking for answers? Try searching our database.

AJAX AND url rewriting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mukesh - 07 Sep 2007 11:48 GMT
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
Patrice - 07 Sep 2007 12:50 GMT
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

 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
Walter Wang [MSFT] - 10 Sep 2007 06:43 GMT
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 (wawang@online.microsoft.com, 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.
Mukesh - 13 Sep 2007 07:22 GMT
> Hi Mukesh,
>
[quoted text clipped - 11 lines]
>
> 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
Walter Wang [MSFT] - 13 Sep 2007 10:13 GMT
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 (wawang@online.microsoft.com, 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.
Mukesh - 14 Sep 2007 16:31 GMT
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.

> Hi Mukesh,
>
[quoted text clipped - 20 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
Mukesh - 14 Sep 2007 17:03 GMT
Hi got it

http://forums.asp.net/p/985791/1270048.aspx

> Hi walter Thnx for ur reply
> The log was fantastic
[quoted text clipped - 53 lines]
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.