Hello,
Q1 Book says that we can choose to share profile information between web application by having profile providers use the same ApplicationName value. But would it also be ok for applications to share roles, or would that represent a security risk?
Q2
If ProfileManager.AutomaticSaveEnabled is set to True, then when change is ...
I am building a pretty basic form app.
I can get a list of IP addresses available on the local machine. However, I want to also determine how these addresses are obtained (e.g. DHCP or static). How can I tell if a static IP address is configured on the system?
The goal is to inform a novice end-user (who may have no knowledge of the ne...
Disclaimer: I'm completely clueless about .net and COM.
I have a vendor's application that appears to be written in .net and I'm trying to wrap it with a web form (a cgi-bin Perl script) so I can eventually launch this vendor's app from a separate computer. I'm on a Windows Server 2003 R2 SE SP1 system and I'm using Apache 2.2 for the...
One of my colleague told me that implementing interfaces have an overhead. Is this true?
I am not concerned about micro optimizations, just want to know the deeper details this entails.
...
I have a datalist control that is not retaining it values during postback when the control causing the postback is outside of the update panel that the Datalist resides in. I have verified that viewstate is on for that usercontrol as well as all its parent controls.
My basic situation is that I have a Datalist that contains a user co...
A good acquaintance and past coworker called me up out of the blue and offered me a contract I really can't ignore. He's convinced I'll do fine with and pick up c# in no time ( past experience in -> c/c++ / PHP / Python / Lua ).
This question is in line with my two others:
PHP landmines in general
Python 2.x gotcha’s and landmines
...
I created a report as part of a C# application using Reporting Services and I cant find some functionality I am used to seeing in other environments. I believe both MS Access and Crystal reports have an option called "Keep Together" so that you can keep a specific grouping of data on one page instead of the information being split over ...
I noticed that in Windows 7, unlike XP, if a program crashes that I am debugging in Visual Studio 2008, I don't get the option to Debug the program. Rather, it just says that the program crashed and Microsoft is looking for a solution.
Right now, if my program throws an exception, I can't return back to the debugging session in VS 2008...
I've done some research, and there is very little (basically none) information on how to create a socket of type SeqPacket in C#
doing this will fail:
listenerSocket = new Socket(AddressFamily.InterNetwork, SocketType.Seqpacket, ProtocolType.Tcp);
I'm new to networking, so I'm probably doing something really stupid.
...
I'm architecting a .NET "web service" and an iPhone application that will consume these services. I'm curious if there are any best practices for architecting the protocol for exchanging data between the two. SOAP-based web services feel too heavy to me for an iPhone app. Perhaps REST, JSON, POX instead? Certainly the specifics of th...
Hey guys, I have a checkboxlist wich contains a list of services loaded from a database table... Each of these services can only be executed alone or with some other specific services. Like, If I select "Transfer Property" i cannot select "Register" at the same time...
I have a table which contains the relationships between Services and...
Hi All ,
i have a report and i print it using PrintVisual ,now i need to save it in PDF file but i don't know how export it in PDF.
Do you know how i can do it?
Thanks for your attention.
Nice Regards
:)
...
How can i create a realistic highlighter (simulating a real world highlighter pen) in .NET using GDI+? It is meant to be used on a graphics object not on selectable text.
Using a transparent brush (with alpha channel) doesn't do the job since everything below the area covered by the brush gets "fuzzy", and i would like the "foreground" ...
Hi there,
Let's say I have the formula =MyCustomFunction(D2), where MyCustomFunction is writen in an Excel AddIn using C#
How can I, in a sensible way, tell my formula to re-run when cell D2 is changed?
...
I have a Windows Forms custom control which acts like a panel in that it can contain any number of children. The number and type of the child controls are determined at runtime and so I need to work in a generic manner without knowing the exact child controls that might or might not be present.
I want to alter the background color of my...
Say I have a simple class like so
[Serializeable]
public class MyClass
{
public MyClass()
{
this.MyCollection = new List<int>();
}
public List<int> MyCollection { get; private set;}
}
If I try to deserialize this using XmlSerializer I get an error saying that MyCollection is readonly and cannot be assigned to....
Hi,
I am looking for a control that does the same as the user Defined Function control in Excel
So for example when you click on "Average", a control pops up allowing you to type in 2 numbers in text boxes. In the right hand side of the text boxs there is a button that when clicked allows you to select a range of values in excel and w...
I'm very new to sending data over a serial port through .net and I've noticed after implementing a TCP counterpart that I wouldn't get it that easy with serial!
So to start at the top, I am nearly there with my serial bi-directional communication implementation I am just getting stuck on a few things: -
My reads are being split across...
Why my Lucene.Net.Highlight is not accepting?
I included latest version of lucene.dll 2.0.0.4 also in my bin folder.
Please give any suggestions.
Thanks in advance
...
Hi,
I'm very new in WPF. I've got a ListBox where I want to set a template for an item (I called it Person). A TextBlock is to be used. The person has to public Properties: "Foreground" and "IsOnline". If "IsOnline" is true, I would use the "Foreground" property of the person, otherwise "Gray". That's all. My first template is:
<DataTe...