How can I send as a response a redirection to an external link? With asp.net I was using Response.Redirect("externalLink")
Razvan Dimescu
Posts
-
Asp.Net MVC Redirect to external link -
Access Database crashing on load in VistaFrom what I know there are no 64 bit ODBC drivers for MS Access
-
How would you test thisDo you happen to know an open source project so that I can see a view of how MVP architecture is handled and tested?
-
How would you test thisOk, in the initialization function i'm getting data from database and then i'm setting this data to my controls, so that means I have broken the SRP, even though the purpose of my method is to fill controls with data taken from the database? I'm doing the same thing with the method PopulateControlsFromItem - firstly i get info from the database and then i'm filling the controls from view with data. I could get rid of this method and place the code in the initialization function, but the code would look messy. Can you please give me a suggestion of how I should refactor my presenter class?
-
How would you test thisI have a presenter(int a MVP architecture). The initialization function gets some data from the database. First I populate the comboboxes and then i populate each control with data
IList payments = _dbOp.GetListOfItems();
_view.SetCbPaidtoAccount_DataSource(paidToItems, "Text", "PaymentId");etc...
OrderItem orderItem =_dbOp.GetItem(orderId)
if(item!=null)
PopulateControlsFromItem(orderItem);private void PopulateControlsFromItem(orderItem)
{
_view.SetPaymentType_Value=orderItem.paimentId;
etc...
}My question is.. how would you test the PopulateControlsFromItem method?
-
Drag and drop between my program and explorer [modified]Sorry, it was a typo(I meant clipboard). The application you sent me works perfectly under windows xp, but under vista it's not working anymore
-
Drag and drop between my program and explorer [modified]Thank you Eslam! I found that article too but it only supports copy from the console while I am more interested in a mouse drop rather than ctrl c
-
Drag and drop between my program and explorer [modified]Can you point me out in some directions of how to support drag and drop between my application and windows explorer? The only article that I found on this was the this one written by Michael Dunn, but it's implemented in C++ and it's not even working with Windows Vista. This article it's doing exactly what I need, but unfortunately it's not working under windows vista even though I'm running it with administrator rights
modified on Wednesday, June 11, 2008 9:33 AM
-
Resharper or CodeRushI decided that I should use a productivity enhancement tool, which one do you recommend?
-
How can i access event of other classMyEvent is not going to be null if somebody subscribed to this event, like you are doing in the main class
public MainClass()
{
//subscribe to the event from Parent Class
Parent.MYEvent += new Parent.MyDelegate(Parent_MYEvent);
}that means if your OnBeforeExpand function will be hit before you subscribe to the MyEvent in the main class, this event will be always null.
-
How to use sgen.exe in postbuild eventsit seems i get the same result using the batch file also, this is what i placed in the batch file "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\sgen.exe" "c:\myApp.exe" /f /out:"d:\new folder" /compiler:/keyfile:"d:\new folder\myAppsnk.snk" I found this post And they it's a bug with sgen but i'm not sure i understood the workaround
-
How to use sgen.exe in postbuild eventsas you can see in my post, the path is in quotes, it seems, according to this guy that's is a bug in sgen tool here I tried using a batch file but i get the same result
-
How to use sgen.exe in postbuild eventsI have to use SGEN on an strongly named assembly that uses XmlSerializer
"sgen.exe" //program that creates a serializer assembly
"$(TargetPath)" //location of the assembly that uses the serilizer
/f //override serializer assembly
/out:"$(TargetDir).." //output location of the serializer dll
/compiler:/keyfile:"d:\new folder\outlookSyncSign.snk" //location of strong name keyThe problem is that if the folder where the strong name key file has spaces the command will be unsuccessful. How can I overcome this without changing the name of the folder where the strong name resides?
-
MVPness :)My god, your desktop is so clean!
-
Project post build eventsI want to resign the assembly with a strong key but I get an error that the post build command exited with code 3?! Any idea what this means? If I manually resign the assembly the operation is successful.
-
How can i access event of other classIndeed, I wrote the answer with an Eventhandler delegate and after I noticed he needs a custom delegate I changed the code, but forgot to change the method parameters
modified on Monday, April 28, 2008 4:56 AM
-
How can i access event of other classDeclare the event static in your parent class and then subscribe to that event from the main class
public class Parent
{
public delegate void MyDelegate(string str);
public static event MyDelegate MYEvent;public void Myunc() { //trigger the event here if (MYEvent != null) { MYEvent("hello listeners"); } } } public class MainClass { public MainClass() { //subscribe to the event from Parent Class Parent.MYEvent += new Parent.MyDelegate(Parent\_MYEvent); } // called when event is triggered public void Parent\_MYEvent(object sender, EventArgs e) { } }
-
C# Functionality(DLL) to VB.NETyou have to add manually this [assembly: System.CLSCompliant(true)] in the AssemblyInfo.cs of your class library, visual studio is not doing it automatically
-
Benchmark not Benchingglad it helped
-
C# Functionality(DLL) to VB.NETyou c# assembly is probably not CLS compliant