TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
shubham upadhyay
NA
31
6.5k
my url routing is not performing well:
Jul 7 2020 1:08 PM
my url routing is not performing well:
global.asax:
<%@ Import Namespace="System.Web.Routing" %>
<script runat="server">
void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
RegisterCustomRoutes(RouteTable.Routes);
}
public static void RegisterCustomRoutes(RouteCollection routeCollection)
{
routeCollection.MapPageRoute("AllAuthorRoute","author/{letter}","~/AllAuthor.aspx?");
}
index.aspx.cs :
protected void DataList2_ItemCommand(object source, DataListCommandEventArgs e)
{
if (e.CommandName == "AuthorAZ")
{
Response.Redirect(GetRouteUrl("AllAuthorRoute", null) + e.CommandArgument.ToString());
}
}
But the problem is does not find right path and got error
Reply
Answers (
1
)
unit and alternateive unit
SqlQuery return -1 in EF using MVC