|
I found it, its kind of weird problem the Developer put into, she used the Database name as well in most of the SPs for example, for a select statement on a table she used select col1, col2..... from Database.schema.Table1, when we are using another database name for the restore, it wasn't able to execute and giving us a strange freaky and goofy error. Anyways thanks for all your suggestions my friends.
That's why I believe Developers aren't at all the smart people - Lol.
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
|
|
|
|
|
I'm stuggling to understand attr routing on index page.
I use this in the home controller to fix https://website.com but it crashes on https://website.com/home/index
I'm scratching my head on this
[AdminCheck]
[HttpGet]
[Route("~/")]
[Route("")]
I can add another one [Route("Index")] and it seems to fix it but I think it's just a bandaid in which something else will pop up
If it ain't broke don't fix it
|
|
|
|
|
|
This is my route config.
It's better now, but I'm befuddled as to why I had to add the extra 2 when it worked for years.
I did upgrade my MVC to 5.2.3, but stopped there due to issues with X.PagedList.Boostrap4
I thought I knew what I was doing but it fell apart on me when I went attr routing.
This is the website
https://jkirkerx.com
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapMvcAttributeRoutes();
Route ajaxRoute = new Route("{controller}/{action}", new MvcRouteHandler());
routes.Add("Ajax", ajaxRoute);
Route errorRoute = new Route("{controller}/{action}/{error}", new MvcRouteHandler());
routes.Add("Error", errorRoute);
Route diagUserNameRoute = new Route("{controller}/{userName}/{action}", new MvcRouteHandler());
routes.Add("Diagnostics", diagUserNameRoute);
Route setupUserNameRoute = new Route("{controller}/{userName}/{action}", new MvcRouteHandler());
routes.Add("Setup", setupUserNameRoute);
Route adminUserNameRoute = new Route("{controller}/{userName}/{action}", new MvcRouteHandler());
routes.Add("Admin", adminUserNameRoute);
Route portfolioRoute = new Route("{controller}/{action}", new MvcRouteHandler());
routes.Add("Portfolio", portfolioRoute);
Route reviewRequestRoute = new Route("{controller}/{sT}", new MvcRouteHandler());
routes.Add("ReviewRequest", reviewRequestRoute);
Route reviewRoute = new Route("{controller}/{action}", new MvcRouteHandler());
routes.Add("Reviews", reviewRoute);
Route homeRoute = new Route("{controller}/{action}", new MvcRouteHandler())
{
Defaults = new RouteValueDictionary(new { controller = "Home", action = "Index", id = UrlParameter.Optional })
};
routes.Add("Default", homeRoute);
}
}
If it ain't broke don't fix it
modified 22-May-18 19:36pm.
|
|
|
|
|
I'm creating a new project in ASP.NET Core WebApi.
My Api will validate users against an external system (not a public system).
I want to use OAuth2 where the mobile client obtains an access token for using the api.
Need help to find good tutorials or libraries.
modified 17-May-18 5:45am.
|
|
|
|
|
Kraftw3rk wrote: Need help to find good tutorials or libraries. www.google.com[^].
|
|
|
|
|
|
if i mention cache location at client side so when another client from different pc visit my same cache page then what will happen? i guess if i maintain cache at client side then for next visitor again db trip will occur and cache the data and store at client side......am i right?
i guess client side caching will not give much benefit....am i right?
please tell me the story of client side caching using asp.net mvc output cache directive.
|
|
|
|
|
|
The location of where the cache is stored is determined by Location property of the OutputCacheAttribute . For instance you can set Location=OutputCacheLocation.Client so it will keep the cache on the client browser.
The documentation of the OutputCacheLocation enumeration type contains the possible values:
- Any
- Client
- Downstream
- Server
- None
- ServerAndClient
Mou_kol wrote: i guess client side caching will not give much benefit....am i right?
Of course, Output caching provides you with a very easy method of dramatically improving the performance of your ASP.NET MVC applications.
Instead of giving you quick answer, I would recommend you to start reading this article: Improving Performance with Output Caching (C#) | Microsoft Docs[^]
I would also suggest you to do a quick search at google about "ASP.NET MVC client side caching" to get more information.
|
|
|
|
|
create a Gridview and retrive data in Gridview without using objectdatasource and shorting those data in asc or dsc and serching data with the help of dropdownlist and text box
|
|
|
|
|
#1 - There doesn't seem to be a question here.
#2 - This sounds like a homework assignment, no one is going to do your work
#3 - Tell / show us what you have done and the community will be glad to help out.
Dave
|
|
|
|
|
it is not a assignment
it is one type of challenge to binding data in one grid-view with 2 different control..
the qus is if 1st page load the data can be bind at page load and then i select data like one dropdown and one text box in dropdown any value i select and text box those value selected value comes on selected dropdown list the i hit search data can bind in gride view
|
|
|
|
|
Member 13633154 wrote: it is not a assignment
Doesn't change the fact that we're not here to do your work for you.
Show us what you've tried, explain where you're stuck, including the full details of any errors, and we might be able to help you.
Post your assignment / challenge / list of requirements / etc. without showing any effort, and you won't get any help.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
|
i know output cache which is used to cache partial view like
ChildActionOnly]
[OutputCache(Duration = 10)]
public PartialViewResult PartialViewCacheChild()
{
return PartialView("_PartialViewForCache");
}
Donut Caching is different from [OutputCache(Duration = 10)] ?
how to cache my main full view ?
what is Donut Caching and what is its advantage?
please guide me. thanks
|
|
|
|
|
|
yes sir i found it. please have a look at this url Donut Hole Caching in ASP.NET MVC - Dotnet Helpers[^]
the above url show how to use donut caching
[OutputCache(Duration = 60)]
public ActionResult LoadNewsFeed()
{
ViewBag.CurrentDataTimeMessage = DateTime.Now.ToString();
return View();
}
they said they are using Donut Caching but used OutputCache attribute....is it right?
this link c# - Donut caching _Layout with mvcdonutcaching ASP.NET MVC - Stack Overflow[^] is saying
use [DonutOutputCache]. please guide me because i am new in Donut Caching.
which attribute i need to use for Donut Caching ?
in so many article i saw people are talking about Donut Caching but they are using OutputCache attribute....reason not clear.
thanks
|
|
|
|
|
The person in that post is using a third-party library to implement donut caching (I don't think it is supported natively but I might be wrong). Different libraries will have different implementation techniques, some much use new attributes, some might use parameters on helper methods etc. Just pick a library that does what you need and follow its implementation instructions.
|
|
|
|
|
yes Donut Caching is 3rd party.
i read few articles on Donut Caching but observe a weird things that article talking about Donut Caching but using OutputCache attribute which is related to asp.net mvc built-in caching.
they should use [DonutOutputCache] attribute when they are talking about Donut Caching.
can you tell me why they use OutputCache attribute when talking about Donut Caching ?
|
|
|
|
|
Mou_kol wrote: can you tell me why they use OutputCache attribute when talking about Donut Caching ?
Because in the context of ASP.NET, you will be using a combination of ChildActionOnly and OutputCache attributes to implement the "Donut Caching" technique.
|
|
|
|
|
Don't confuse yourself with the naming. Donut Hole Caching is a server-side caching technique in which the some portion of tge page is cached.
The tools for implementing donut hole caching are relatively simple: You just need the HtmlHelper ’s Action method and Partial Views . In the context of ASP.NET , you can implement the "donut caching" technique using a combination of ChildActionOnly and OutputCache attributes.
So the following code is actually implemeting a donut hole caching technique:
[ChildActionOnly]
[OutputCache(Duration = 10)]
public PartialViewResult PartialViewCacheChild()
{
return PartialView("_PartialViewForCache");
}
Fore more information, read: Speed Up Your ASP.NET MVC Application with Doughnut Hole Caching -- Visual Studio Magazine[^]
modified 21-May-18 22:32pm.
|
|
|
|
|
i like to know when we will be using donut hole caching then we do not have to use this attribute
[DonutOutputCache] am i right?
when i need to use this attribute
[DonutOutputCache] ?
thanks
|
|
|
|
|
|
Can anyone suggest me the proper ocr format for extracting a single block of text from image using c#.??
|
|
|
|