r/ASPNET • u/ramnagesh • Sep 03 '13
r/ASPNET • u/skiskilo • Sep 05 '13
FluentMigrator and ASP.NET: Keep Your Database Synced
tech.pror/ASPNET • u/MepMepperson • Sep 28 '12
Issue when switching from classic to integrated pipeline
Hi all.
So, I've been having this issue. We recently converted our project from using a classic app pool to integrated, and have been having issues ever since.
I've changed my web.config to the best of my knowledge and when I call webmethods they don't handle exceptions properly.
This all worked in classic app pool.
Any idea what's wrong with my web.config?
<?xml version="1.0"?>
<configuration>
<configSections>
<!--<sectionGroup name="System.web" type="System.Web.Configuration.MicrosoftWebSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">-->
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere" />
</sectionGroup>
</sectionGroup>
</sectionGroup>
<sectionGroup name="devExpress">
<section name="settings" type="DevExpress.Web.ASPxClasses.SettingsConfigurationSection, DevExpress.Web.v10.2, Version=10.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false"/>
<section name="compression" type="DevExpress.Web.ASPxClasses.CompressionConfigurationSection, DevExpress.Web.v10.2, Version=10.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false"/>
<section name="themes" type="DevExpress.Web.ASPxClasses.ThemesConfigurationSection, DevExpress.Web.v10.2, Version=10.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false"/>
<section name="errors" type="DevExpress.Web.ASPxClasses.ErrorsConfigurationSection, DevExpress.Web.v10.2, Version=10.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false"/>
</sectionGroup>
</configSections>
<devExpress>
<settings rightToLeft="false"/>
<compression enableHtmlCompression="false" enableCallbackCompression="true" enableResourceCompression="true" enableResourceMerging="false"/>
<themes enableThemesAssembly="true"/>
<errors callbackErrorRedirectUrl=""/>
</devExpress>
<appSettings>
<add key="NAVIGATION_XML" value="navigation.xml" />
<add key="APPLICATION_VERSION" value="1.1.0" />
<add key="HELPFILEPARSER_XSLT" value="HelpFileParser.xslt" />
<add key="CONSTANTS_XSLT" value="constants.xslt" />
<add key="LEVELONES_XSLT" value="levelOnes.xslt" />
<add key="LEVELTWOS_XSLT" value="levelTwos.xslt" />
<add key="LEVELTHREES_XSLT" value="levelThrees.xslt" />
<add key="Idle" value="25" />
<add key="DBMS" value="SQLServer" />
<add key="ProductType" value="bandl" />
<add key="DbCmdTimeout" value="60" />
<add key="Language" value="EN" />
<add key="FTPLogEnabled" value="True" />
<add key="FTPPolling" value="" />
<add key="EmailLogEnabled" value="False" />
<add key="EmailPolling" value="emailserver" />
<add key="TemporaryDirectory" value="\\bfewin7\temp\" />
<add key="SiteMinder_Header" value="" />
<add key="SiteMinder_LoginUrl" value="" />
<add key="LicenseSupport" value="[email protected]" />
<add key="CustomInterface" value=""/>
<add key="MaxHttpCollectionKeys" value="10000" />
<add key="TraceEnabled" value="True" />
</appSettings>
<connectionStrings>
...working connection strings in here
</connectionStrings>
<system.web>
<pages enableEventValidation="false">
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add tagPrefix="ajaxToolKit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" />
<add tagPrefix="bl" src="~/ui/assets/ascx/PageNavigator.ascx" tagName="PageNavigator"/>
<add tagPrefix="bl" src="~/ui/assets/ascx/RegexBuilder.ascx" tagName="RegexBuilder"/>
<add tagPrefix="bl" src="~/ui/assets/ascx/MessageBox.ascx" tagName="MessageBox"/>
<add tagPrefix="bl" src="~/ui/assets/ascx/ComboBox.ascx" tagName="ComboBox"/>
<add tagPrefix="bl" src="~/ui/assets/ascx/ErrorBox.ascx" tagName="ErrorBox"/>
<add tagPrefix="bl" src="~/ui/assets/ascx/TabGroup.ascx" tagName="TabGroup"/>
</controls>
<tagMapping>
<add tagType="System.Web.UI.WebControls.CompareValidator" mappedTagType="Sample.Web.UI.Compatibility.CompareValidator, Validators, Version=1.0.0.0" />
<add tagType="System.Web.UI.WebControls.CustomValidator" mappedTagType="Sample.Web.UI.Compatibility.CustomValidator, Validators, Version=1.0.0.0" />
<add tagType="System.Web.UI.WebControls.RangeValidator" mappedTagType="Sample.Web.UI.Compatibility.RangeValidator, Validators, Version=1.0.0.0" />
<add tagType="System.Web.UI.WebControls.RegularExpressionValidator" mappedTagType="Sample.Web.UI.Compatibility.RegularExpressionValidator, Validators, Version=1.0.0.0" />
<add tagType="System.Web.UI.WebControls.RequiredFieldValidator" mappedTagType="Sample.Web.UI.Compatibility.RequiredFieldValidator, Validators, Version=1.0.0.0" />
<add tagType="System.Web.UI.WebControls.ValidationSummary" mappedTagType="Sample.Web.UI.Compatibility.ValidationSummary, Validators, Version=1.0.0.0" />
</tagMapping>
</pages>
<compilation debug="false" defaultLanguage="c#">
<assemblies>
<add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.DirectoryServices.Protocols, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Runtime.Serialization.Formatters.Soap, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.ServiceProcess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Web.RegularExpressions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="DevExpress.Data.v10.2, Version=10.2.5.0, Culture=Neutral, PublicKeyToken=b88d1754d700e49a"/>
<add assembly="DevExpress.Utils.v10.2, Version=10.2.5.0, Culture=Neutral, PublicKeyToken=b88d1754d700e49a"/>
<add assembly="DevExpress.Charts.v10.2.Core, Version=10.2.5.0, Culture=Neutral, PublicKeyToken=b88d1754d700e49a"/>
<add assembly="DevExpress.XtraCharts.v10.2, Version=10.2.5.0, Culture=Neutral, PublicKeyToken=b88d1754d700e49a"/>
<add assembly="DevExpress.PivotGrid.v10.2.Core, Version=10.2.5.0, Culture=Neutral, PublicKeyToken=b88d1754d700e49a"/>
<add assembly="DevExpress.XtraPivotGrid.v10.2, Version=10.2.5.0, Culture=Neutral, PublicKeyToken=b88d1754d700e49a"/>
<add assembly="DevExpress.XtraReports.v10.2, Version=10.2.5.0, Culture=Neutral, PublicKeyToken=b88d1754d700e49a"/>
<add assembly="DevExpress.XtraRichEdit.v10.2, Version=10.2.5.0, Culture=Neutral, PublicKeyToken=b88d1754d700e49a"/>
<add assembly="DevExpress.RichEdit.v10.2.Core, Version=10.2.5.0, Culture=Neutral, PublicKeyToken=b88d1754d700e49a"/>
</assemblies>
</compilation>
<authentication mode="Forms">
<forms name="VerticesAuthorization" loginUrl="~/UI/Login.aspx" protection="All" path="/" timeout="30" slidingExpiration="true"/>
</authentication>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
<customErrors mode="Off"/>
<globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="auto" uiCulture="auto" />
<!--allow users to upload files up to 8 megs-->
<httpRuntime maxRequestLength="8192" />
<!-- allow users to have access to the include folder in order for the CSS to work when user is not authenticated-->
</system.web>
<location path="UI/includes">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web></location>
<location path="UI/img">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web></location>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add type="DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule, DevExpress.Web.v10.2, Version=10.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" name="ASPxHttpHandlerModule"/>
</modules>
<handlers>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</handlers>
</system.webServer>
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="50000000"/>
</webServices>
</scripting>
</system.web.extensions>
</configuration>I'm happy to provide more code or any examples, just ask. I'm pretty sure the problem exists in the web.config though.
r/ASPNET • u/AESensei • Sep 25 '12
NuGet Causes Needless Headaches With RavenDB, RestSharp and Json.Net « ActiveEngine
r/ASPNET • u/AESensei • Sep 21 '12
A great blog post: A Successful Git Branching Model.
r/ASPNET • u/[deleted] • Mar 12 '11
Need help using sorted List to sort unsorted ArrayList in C#
hey everyone,
so I have a table of events that I want to be sorted according to how the user specifies, which can be in 1 of 2 ways:
in the order most recently added (users can suggest events, so if I add an event, then you add a 2nd event, your event would appear before mine in the table).
in the order the events occur.
I have the first figured out, but the second way is giving me trouble. In my code, I have an Event_Date Struct, which include a String property that corresponds to a DateTime (perhaps that's not the best way, but it's too late now since the assignment is due in a few days, and converting from String to DateTime seems to work). I have an ArrayList of these Event_Date Structs, and I would like to order them according to their DateTime properties.
As of now, I can "extract" each DateTime property from each Event_Date in the ArrayList struct into a separate generic List, then call the Sort() and Reverse() methods to get a List of DateTime objects in the order I need them to be ordered. I then try to follow this little (but unproven) algorithm I came up with:
For each DateTime in the sorted list:
Find the index of said DateTime
Find the corresponding Event_Date in the unsorted ArrayList
Place corresponding Event_Date in the same index as its DateTime in the ArrayList.
Basically by using a sorted list, I try to sort an unsorted list.
I'm not sure if this is a good way to go about doing this sorting (or it'll even work, much less work efficiently). At the moment, I get an error at the following line:
int currentIndex = eventDataList.IndexOf(dt);this is when I try to get the index of the corresponding Event_Date from the unsorted ArrayList. The IndexOf() method will return a -1, meaning that it could not find the specified value. To me, this makes sense since it seems like I'm searching for a DateTime in a collection of Event_Dates. With that said, I need to find another way to find the index of the corresponding Event_Date object for a given DateTime.
Here's the code. Can anyone pleeaasseeee help me????
--Jonathan
protected void DisplayTableByDateAdded(object sender, EventArgs args) { // Create a separate collection of DateTime objects (each of which // correspond to a specific Event_Date object). System.Collections.Generic.List<DateTime> dates = new System.Collections.Generic.List<DateTime>();
foreach (Event_Date e in eventDataList) { DateTime current = Convert.ToDateTime(e.Cal_Start_Date); dates.Add(current); } // Sort the set of DateTime objects according to a pre-defined Sort // method. dates.Sort(); dates.Reverse();
// For each DateTime object
foreach(DateTime dt in dates)
{
// Get sorted index of DateTime object
int currentDateTimeIndex = dates.IndexOf(dt);
// Find the corresponding Event_Date and
// put said Event_Date in the same index
// its DateTime correspondant is in dates list.
int currentIndex = eventDataList.IndexOf(dt);
Event_Date currentDate = (Event_Date)eventDataList[currentIndex];
eventDataList.Insert(currentIndex, currentDate);
}
LoadPendingTable();}
EDIT: Just by thinking about this some more, I can already see there's a potential problem with this route. I would be overriding whatever Event_Date is already located at a specified index I when I assign another Event_Date to it's correct index, which also happens to be I. I need to do some sort of 3-way switch in order to preserver all the data. That's something you learn in an intro comp sci class. I'm officially dumb....
EDIT 2: Ok, so after looking at your guys' suggestions (and doing some research on Google), I think a better solution would be to switch my ArrayList to a generic List, and then sort that List. So far this is what I have :
System.Collections.Generic.List<Event_Date> dates = eventDataList.Cast<Event_Date>().ToList<Event_Date>(); dates.OrderByDescending(e => Convert.ToDateTime(e.Cal_Start_Date));
The first line somehow converts my evenDataList (which is of type ArrayList) to an ordinary generic List. The second line is supposed to sort that list (but when I go into debug mode, I don't think the 2nd line is actually sorting anything...). Furthermore, I'd say that I only understand this code at a high level. I think it'd be really beneficial (and I'd be really grateful) if a .NET expert could decipher it & tell me what's going on a deeper level.
What do you guys think? Am I on the right track?
r/ASPNET • u/ashishsarda99 • Feb 14 '11
Stock Market Ticker For Website - Getting Historical Data
r/ASPNET • u/brettdavis4 • Dec 13 '12
Which do you use as a source control solution with ASP.net?
At work, I'm trying to implement a source control solution. Which one do you use and do you like it?
r/ASPNET • u/[deleted] • Dec 08 '12
New job requires me to maintain ASP Classic pages. Is there a classic subreddit? How about tutorials or references?
Title pretty much says it all. I am starting a new job in a week. Part of this job will be to make small changes, edits etc. to an ASP Classic site while we transition to ASP.NET.
I have some knowledge of classic but since I have a week to kill I thought it would be nice to build some pages, play around with it etc. Does anyone know any tutorials that still exist? Or maybe reference sites?
The biggest issue is that it is hard to Google anything because you get so many results for .NET. Yet most classic sites mention .NET so using the -.NET switch doesn't help all that much.
Any recommendations for a good book would be helpful as well, I can probably find whatever you recommend cheap as used......
r/ASPNET • u/Carolix • Dec 17 '12
Season's Greetings with a Special Offer
r/ASPNET • u/[deleted] • Feb 13 '13
[vb.net] I'm looking for an image rotater without using adrotater or javascript
I can't use adrotator because of adblocker and I can't use JavaScript because legally the site cannot have it on the page. Is there any other asp.net functionality I can use to accomplish a banner change on pageload? Thank you
r/ASPNET • u/mattalexx • Feb 22 '13
I'm a PHP programmer with 8 years experience, learning .NET. I need advice
I'm a PHP programmer with 8 years experience. My stack when programming PHP are a LAMP stack, a console, and vim.
I am currently learning C# ASP.NET at work. There are definite advantages to it over my regular LAMP stack:
Strong typing
Linq
Fast, intuitive, and smart IDE (VS and Intellisense)
I want to switch from PHP to a another language. Is there an open source language that will allow me to incorporate some of these aforementioned features into my development?
I want to stay on a Linux host, so an ASP.NET / Visual Studio stack is out of the question.
r/ASPNET • u/salalimo • May 23 '13
MVC.NET vs Web Forms - AJAX
I understand that mvc.net and web forms can basically do the same thing. Just a different way of doing the same thing that give each framework some pros and some cons.
I have worked with web forms for 8 years and am pretty comfortable with it but I feel that mvc.net may be more suitable for ajax-ed sites. The update panels in webforms are a little heavy (slower, but awesone), in many cases I use jquery and webmethods to handle ajax calls. Usually I do this with simpler user controls such as textboxes where it is needed to be faster (like check if username exist in db)
I am thinking of building a somewhat bigger app now and I want it to be js heavy in the sense that most ui interactions can be ajax-ed or use some feature in a js framework like angularjs or knockoutjs.
My main concern is that JS frameworks play nicer with mvc.net which might proof to be very beneficial for ui related functionality mainly because these js frameworks are being built to making ui manipulations nicer and easier. They will also be faster I believe.
so in terms of what my concern is which is mainly providing the latest ui to the user is then web forms in that aspect
a)LACKING anything? b) not lacking just harder? c) the same.. d) anything you guys can add would also be appreciated.
Thanks.
r/ASPNET • u/SirButcher • Jun 23 '13
ASP.NET Image load error (with custom handler)
Hi everyone,
I ran into a very annoying, and strange problem with loading pictures, using a custom handler (we need to mask the pictures runtime).
The Website, where you can check it out: website
The basics: As I stated above, I use a custom image handler for loading and modifiding images at runtime. This site offer different travels, each changed frequently (changing the price, mostly). Each hotel have an own set of pictures, where we put an "advertisement" bar on it (a semi-transparent black rectangle, with some text). This handler load the image (some from the local server, some from another URL source), and draw the needed text and pictures on it, then give back the picture itself on the Response stream.
The error: The above should work well, but strangely, the pictures itself sometimes simply dont load at all. (if you check the site on the above link, you can see it for yourself - there should be six pictures, inside a rouded bluish border). When I refresh the page, pictures appear and disappear, without any (for me) logical pattern.
I narrowed down the problem as best as I could.
The imageHandler itself will give back the exatly same pictures each time, no matter if it gets any URL or not.
The problem is with the ImageBoxes (I think). When I give the "plain" url (one without any parameter, even when the handler dont even check if there any parameter)
When I add the URL for the imageBoxes (this one:http://utazovilag.hu/Test/GetTestImage.ashx) this will give the perfectly good image back, and each imagebox will load without any error.
When I add the URL with SAME parameters, its work like as it should (like: http://utazovilag.hu/Test/GetTestImage.ashx?OID=0&PID=0&SID=0) it works as it should.
(And now, the error) when I add an URL with different parameters, its make the pictures randomly pop up and dissapear between each refresh (this what you can see on the link I gave you above) Like this: http://utazovilag.hu/Test/GetTestImage.ashx?OID=0&PID=0&SID=0 And this: http://utazovilag.hu/Test/GetTestImage.ashx?OID=1&PID=0&SID=0
But when I hit the "Refresh Image" button, the image appear as it should. When I try to acces directly the GetTestImage.ashx, it appear as it should. The load problem only appear when there is more picture boxes, with different URLs.
I simply ran out from ideas, and cant imagine why is this happening. I tried to create the most basic imageHandler (it simply load the image, create byte array, and push that to a stream toward the user). I tried different browsers, (Firefox, IE, Chrome) - all of them give the same error (or, no error, as simply the picture not showing up).
Any ideas would be really-really appreciated.
r/ASPNET • u/[deleted] • May 29 '13
Loading an XML sheet retrieved from a URL and displaying it in a GridView element
Hello /r/ASPNET! I come to you today at the end of my rope.
I've been working on a web application built from C# and ASP.net with a bit of Javascript. This web application retrieves an XML sheet from a URL and loads it into GridView element (complete with checkboxes for later use with server side logic).
A sample XML file:
The user is meant to be able to change what keyword is being searched for by the EBI.AC.UK website (in this instance it's liver). The user also has to be able to change the search term multiple times (terms like heart, cell, lung, etc). Basically, the term name, ontology name, and a few other things are not constants, and will change periodically during normal use of the app.
The problem I've come across is that I don't know how to
A) Load the damn XML data into a GridView element. Until recently, I'd hacked it together using a repeater element and manually taking the XML data apart. From what I understand, GridView should give me the output that I want without much struggle.
B) Reload the GridView element with different XML data multiple times in a single session (user searches liver, clicks OK, then searches heart and gets new results).
Can somebody show me a sample of how this would be built in both ASP and C#? I've searched for a few days now for a solution and have yet to find the answer I'm looking for.
Thanks!
r/ASPNET • u/N7-Legion • Feb 03 '12
What are some arguments for going with MVC over WebForms for new projects?
In a lot of ways, this is the inverse of the MVC to WebForms thread (http://www.reddit.com/r/ASPNET/comments/p6unv/my_boss_wants_to_go_backwards_from_mvc_back_to/) but we have an opportunity to rewrite our product in a couple months and I want us to switch to MVC.
One issue I am having though is convincing people why it's better to switch. They see the benefits but they don't see significant enough benefits over a well designed WebForms application. While that's true to a certain extent, I think MVC is still the better choice in the long term even if there are no significant benetifs in the short term.
So fellow devs, what would you do in this situation? What are your arguments for going with MVC over WebForms? And the more specific you can be, the better.
r/ASPNET • u/DullMan • Nov 15 '11
MapDotNet progress bar
Hi, this is my first post here.
Is anyone familiar with MapDotNet and can offer me some help? I'm trying to put a progress bar that loads every time a new layer is loaded. The problem is that layers are loaded asynchronously, so the progress bar doesn't even show up.
Anyone familiar with MapDotNet?
Edit: That was quick, I actually figured it out.
For anyone interested:
#region ICommandTarget Members
/// <summary>
/// Gets the command bindings.
/// </summary>
public List<CommandBinding> CommandBindings
{
get
{
if (_CommandBindings == null)
{
_CommandBindings = new List<CommandBinding>();
}
return _CommandBindings;
}
}
private List<CommandBinding> _CommandBindings;
/// <summary>
/// Gets the routing parent.
/// </summary>
public ICommandTarget RoutingParent
{
get { return (Parent as ICommandTarget); }
}
#endregionput this after you initialize your components:
myMap.RoutedCommandTarget = this;
CommandBinding gettingTiles = new CommandBinding(MapView.QuadTileLoadingQueueHasNewEntriesCommand);
gettingTiles.Executed += (s, te) =>
{
MapProgressBar.Visibility = Visibility.Visible;
};
CommandBindings.Add(gettingTiles);
CommandBinding doneGettingTiles = new CommandBinding(MapView.QuadTileLoadingQueueHasEmptiedCommand);
doneGettingTiles.Executed += (s, te) =>
{
MapProgressBar.Visibility = Visibility.Collapsed;
};
CommandBindings.Add(doneGettingTiles);r/ASPNET • u/AthlonRob • May 08 '13
I am stuck on my project, is this the right place to ask for help?
Before I type out my quesion(s), paste code, etc etc I thought I'd ask if this is the right place to ask a question about "how do I do _______?" My question is more of a "I can't make my GridView do ______" but you get the idea.
If this is the right subreddit, great let me know. If it's not, please tell me where to go for help please? http://www.asp.net isn't really yielding much for me so far.
Thanks!