| Subject | Question | # of Responses |
| Debuggind tip/trick in VS2010 | If you have an application which has been migrated from previous versions of Visual Studio there is a little trick you have to do if you have written your exception handling code a certain way. Say you have a function in business layer that is calling a data access layer method and you are explicity throwing an exception from the data acces layer when there is an error in dataaccess , you will find out that VS2010 will break at the 'Throw' statement. To work around it, go to VS 2010 and do Ctrl + Alt + E.
it will take you to an 'Exceptions' window where you can uncheck the User handle checkbox infront of the Common language runtime exceptions.
There are lots of options available and more granular control if you like that.
| 0 |
| VS 2010 "Go to definition" | I have a solution with several projects in it. Its an ASP.NET solution migrated from VS 2008 to VS 2010. I have noticed that in my webproject which has project reference to a business project (class library) when I right click on a class name or method name and select "go to definition" it takes me to Object browser and not the actual code in the business project.
Any one else is facing the same problem. | 4 |
| detect scroll on aspx | How do you detect a scroll on an aspx? Server side preferred, but client side OK. After detecting it I would write code.
Thanks, Johnny | 0 |
| ASP.NET Listbox and javascript | I am maitaining an ASP.NET application originally written in 1.1 but migrated to 3.5 version of the .NET framework, its using lots of dynamically loaded user controls so I have a hard time integrating Ajax, the problem I have is, on one user control there are two List box controls one showing Employees available to be assigned to a certain project , the other list box i shows employees that are assinged to a specific project.
The user wants to double click on one of the items in the "assigned" list box and wants to know the detail about that employee preferably in a pop up window. I added a button beside the list box and call it "Detail" and tied javascript to the click event but the problem is, the javascript window opens even if they select mulitple items which I dont want, in case they select multiple items I want to give them a message as to select just one employee.
Is there a way we can conditionally add the snippet of javascript to the click event or any event for that matter.
Thanks
Ash | 3 |
| Default for Datetime | Paul,
I want to set a default for a datetime field in one of my SQL Server tables, what should I set it to? any recommendations?
In my application I dont differentiate between a null value and a default value for that datetime field.
Thanks
Ash | 1 |
| Log out from website | Hi,
I have custom log off button, when user clicks this button, I want to make sure that user is logged out from the application even if user click the back button on the brower then I want to take them to login screen. it does not work because I tried Session.Abandon, Session.Clear, FormsAuthentication.SignOut() even all this, when I click on back button I am taken to the last screen in the application, seems like I am still logged in. I hope this makes sense. I using ASP.NET Membership using SQL.
Thanks | 3 |
| "msolap.asp" for 2008 environment | Hi,
What replacement for msolap.asp and datapump.dll used in AS 2000 to be used in AS2008 environment?
| 0 |
| News Letter to our customers | Hi,
Does anybody have experience sending out newsletter to their customer base about 160,000 customers. Could I write something in VB.NET using System.mail classes or is better to purchase something.
Thanks | 1 |
| What is your take on ASP.net MVC? | Hi Paul -
What is your take on MVC for ASP.net?
I understand better testability, separation etc. But, putting that aside, what is the advantage and hidden issues I will face for true enterprise development? I must admit, the added structure has caught my eye.
I'm not at all indicating that I like struggling with the ASP.net WebForms page life cycles, controlling viewstate, dealing with controls in javascript etc. But, these are known issues to me and I am able to work with known issues and my end result is normally pretty darn good.
With that being said, I am very willing to take a chance with a new pattern to get away from the WebForms paradigm. Even with best intentions, it is a headache to maintain and extend when changes come down the pipe.
ASP.net MVC looks promising as I read two books and watch countless videos and read blog posts. However, I remember being presented with the same euphoria feeling when we went to WebForms oh, 8 years ago.
I am very interested in hearing feedback from real enterprise developers who have developed, deployed and maintained both WebForms and MVC applications for the enterprise.
What was your experience and recommendations?
Thank you, Richard | 1 |
| Proper LINQ syntax to enable AppRole on connection | I am building a WCF Service that includes a LINQ to SQL class. One of the requirements is to use AppRole for the connection. I ensured I set my connection string to have pooling turned off as this causes issues with AppRole. I thought code similar to below would work..
Dim _Customers as New List(Of Customers)
Using _CustDB As New MyLinqToSQLDataContext(ConnectionString)
'Set AppRole
Dim result As Integer = _CustDB.ExecuteCommand("exec sp_setapprole @rolename={0}, @password={1}", "rolename", "password")
If result <> 0 Then
Dim CustQuery = From customers in _CustDB.CustomerTable Where customers.CompanyID = "Acme"
....
End If
End Using
However, this resulted in the following error:
"Application roles can only be activated at the ad hoc level"
I can not find any information in regards to LINQ and using SQL AppRole on Google that has been of any use. So any guidance in this would be greatly appreciated. | 3 |
|