In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to understand ASP.NET WebForm rewriting URL". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to understand ASP.NET WebForm rewriting URL".
When developing ASP.NET WebForm, after registration, we get several parameters: appid,secret, these parameters need to be used in the program, DataSet class is a very important core member of ADO.NET, it is the cache of data in the database mapped in the local computer. Any operation on DataSet is done in the computer cache.
Many people in ASP.NET WebForm have done Url rewriting so that there is no suffix in Url, but this time we have done just the opposite. Suppose we need to set the URL suffix to shtml. Take the default project when you create a new ASP.NET MVC project as an example. If you want to access the landing page, URL matches Account Controller,Login matches Login Action for http://localhost/Account/Login Magi account. If we want to change URL to http://localhost/Account/Login.shtml, and Action becomes Login.shtml without changing Route, obviously we can't find the Action, so there is a 404 error. All we have to do is parse Action to Login, so we change the default Route to
Routes.MapRoute ("Default", "{controller} / {action} .shtml", new {controller= "Home", action= "Index", id= "})
At this point, the login in Login.shtml corresponds to {action}, so the login action in Account controller is called, and our goal is achieved. If you want to use a different suffix, ASP.NET WebForm just needs to change .shtml to .aspx or .html.
Of course, Shared Secret needs to click on the link to see it. What we have to criticize BBAuth here is that after all the information has been registered, we don't see anything that can be modified. To change something (such as the access data list below), we all need to re-register an application. This design seems a little strange, and there is one more thing. That is, although the documentation provided by Yahoo is not good (I have been tortured for a long time because of a time format problem), there are actually a lot of examples and source code, ASP.NET WebForm is just not easy to find, maybe my English skills are not enough.
Visual Studio is hard-coded, so the data provider (data providers) ASP.NET WebForm that can be used for it is SQL Server's SQL client and OLE DB and Access, right? In addition, an independent software developer (ISV) called Data Direct has written its own equivalent data provider, which you can install in Visual Studio. But it doesn't have as many functions as Oracle or Microsoft. And, of course, Data Direct has a local data provider for Oracle.
At this point, I believe you have a deeper understanding of "how to understand ASP.NET WebForm rewriting URL". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.