.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Post New Web Links

C++ Q&A: Color Support, Console Apps, and Saving User Settings

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net
 

More Related Resource Links

ASP.NET Workflow: Web Apps That Support Long-Running Operations

  

Integrating workflow into ASP.NET applications means communicating with activities via a workflow queue and hosting the runtime in the global application class. We'll show you how.

Michael Kennedy

MSDN Magazine January 2009


ASP.NET AJAX 4.0: New AJAX Support For Data-Driven Web Apps

  

Here is an ASP.NET AJAX data-driven Web application that takes the best features from server- and client-side programming to deliver an efficient, user-friendly experience.

Bertrand Le Roy

MSDN Magazine October 2008


.NET Matters: Handling Messages in Console Apps

  

Many developers who use the Microsoft .NET Framework think that application type is tied to the libraries that can be used in that application. Stephen Toub clarifies.

Stephen Toub

MSDN Magazine June 2007


Least Privilege: Teach Your Apps To Play Nicely With Windows Vista User Account Control

  

User Account Control in Windows Vista keeps the OS safe from intentional and accidental configuration changes.

Chris Corio

MSDN Magazine January 2007


App Lockdown: Defend Your Apps and Critical User Info with Defensive Coding Techniques

  

Whether you're storing database connection strings, user credentials, or logon info, you'll need to practice good defensive programming techniques to avoid those surprise situations in which your data is exposed. In this article, author Kenny Kerry shows you how.

Kenny Kerr

MSDN Magazine November 2004


User Preferences: Manage User Settings in Your .NET App with a Custom Preferences API

  

There are plenty of options out there for managing user preferences including custom configuration files, the Windows registry, and the isolated storage. But each option has its pros and cons -- and a bad choice can make life difficult. In this article, the author evaluates various options and identifies the characteristics of a good preferences API. Based on those characteristics, he introduces an API that is specifically designed for preferences management, one that offers the best of all the options.

Ray Djajadinata

MSDN Magazine July 2004


Mobility: Add Keyboard Support to Compact Framework Apps by Trapping Windows Messages

  

The Compact Framework Control class doesn't provide direct access to Windows messages. However, with P/Invoke, a few lines of native code, and the Compact Framework MessageWindow class, it's still possible to access underlying Windows messages. This can be used to work around any .NET Framework features, including keyboard support, that are not included in the Compact Framework.

Alan Pulliam

MSDN Magazine April 2004


GDI+: A Primer on Building a Color Picker User Control with GDI+ in Visual Basic .NET or C#

  

Although most developers and APIs use the RGB scheme when working with colors, it's not the only available way to represent or select colors. For instance, the standard Windows color-selection dialog box allows you to work with the HSL color scheme in an indirect way. In this article, the author describes several color selection schemes, and uses GDI+ (via the System.Drawing namespace) to create a component that makes it possible for your own applications to provide a simpler, friendlier color chooser. Along the way, you'll get tips to help you use GDI+ in your own apps.

Ken Getz

MSDN Magazine July 2003


Login to SPSite\SPWeb through console app using user/password

  
Hi,I'm developing some basic console application which interacts with SharePoint site through the object mode. I'm using:SPSite site = new SPSite(MySiteUrl); SPWeb web = site.OpenWeb(); This way, current windows user is acessing the site. Is it possible to supply the user with username/password to be able to acess with different credentials than current?Thanks in advance!

Use ASP.NET Membership store for user settings with Windwos Authentication

  
I am evaluating ASP.NET Membership for an intranet Silverlight app. I want users to be automatically authenticated for my application with their windows logon.Thus I configured Windows Authentication.I would like to store user settings like email-address in using the SqlMembershipProvider and not AD. It seems that storing user settings using the SqlMembershipProvider is not supported with Windows Authentication. Is this really so (using .NET 4)? If so: What is the rationale behind this?IMHO authentication, user settings and authorization are distinct aspects.User settings could easily be stored (identified by user name) using the SqlMembershipProvider with authentication and password management being supplied by Windows. What is the recommended solution for my scenario?

Clr-AddIns saving addin settings

  
Hi, I am loading a UIElement from an addin which is used as the AddIns settings interface: private void Settings_Click(object sender, RoutedEventArgs e) { SettingsWindow sw = new SettingsWindow(); FrameworkElement settingsUI = null; this.Dispatcher.Invoke((Action)delegate() { settingsUI = SelectedAddIn.PopulateSettingsIU(); }); sw.rootGrid.Children.Clear(); if (settingsUI != null) sw.rootGrid.Children.Add(settingsUI); sw.ShowDialog(); } This loads a UIElement that consists of the following: <UserControl x:Class="PakBusIPAddin.PakBusIPSettingsDialog" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:settings="clr-namespace:TestAddin.Properties" Height="400" Width="400" Unloaded="UserControl_Unloaded"> <StackPanel> <Label Content="This is a test dialog for the PakBus IP Settings"/> <GroupBox Header="NL100 Settings"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height=&

Sharepoint user profiles in C:\Documents and Settings on server, WSS_AdminService.log

  
Hi!I've discovered today that desktop user profiles for certain sharepoint users are being created on the server in the Documents and Settings folder. Only 50 have been created - a small portion of our user base; Every folder is being created with a WSS_AdminService.log file in it, which is approx 380 mb in size...its definitly starting to take its toll on storage space.I can't see any pattern as to why a folder is created for a particular user or not.Does anyone have any ideas on what could be causing this, or how to control it? Thanks so much!Z

Clr-AddIns saving addin settings

  
Hi, I am loading a UIElement from an addin which is used as the AddIns settings interface: private void Settings_Click(object sender, RoutedEventArgs e) { SettingsWindow sw = new SettingsWindow(); FrameworkElement settingsUI = null; this.Dispatcher.Invoke((Action)delegate() { settingsUI = SelectedAddIn.PopulateSettingsIU(); }); sw.rootGrid.Children.Clear(); if (settingsUI != null) sw.rootGrid.Children.Add(settingsUI); sw.ShowDialog(); } This loads a UIElement that consists of the following: <UserControl x:Class="PakBusIPAddin.PakBusIPSettingsDialog" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:settings="clr-namespace:TestAddin.Properties" Height="400" Width="400" Unloaded="UserControl_Unloaded"> <StackPanel> <Label Content="This is a test dialog for the PakBus IP Settings"/> <GroupBox Header="NL100 Settings"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height=&

Running console apps on host vs dev machine

  
I've always assumed that you could not run code against a remote SharePoint server outside of webservices. Is this correct or is there something similar to the ICredentials / NetworkCredentials objects that you use for webservices.   I wanted to use an app I wrote on a MOSS 2007 Dev machine but the SPS 2003 machine does not have the needed libraries v12.0 libraries. This makes sense but of course I tried to get it to run anyways. Now I'm in the middle of installing Visual Studio on a SPS 2003 dev machine and wanted to see if there was a different way.   Thanks

Enable/Disable controls dynamically based on User settings

  
In my project I have a requirement that all controls in each window shall be enabled or visible dependent on user and the admin shall be able to change is a user will be able to use or see the control. I made a very simple test application that creates a user and gives him a list (will be loaded from db in real app) of the name of the controls in the window and also his settings. Then after initializing the window I use reflection to find the controls and set their isenabled/visibility properties. This solution does the thing but I'm wondering if there is a better solution. The main issue here is that each control must be set per user and thus roles wont work appropriate and also that I need to be able to change the settings at runtime.  

Executing SharePoint console application without sharing user credentials

  

I have a console application, which uses SharePoint object model to do some business operation, therefore it has been deployed on SharePoint server. Without sharing username/pwd, earlier we allow several users to access this console application by providing remote desktop file (.rdp) file. This .rdp file (ver5.1) contains username and encrypted password. With recent version 6.0 of .rdp, it still prompts for password. You may argue that it is due to security constraint.

What is the best approach to allow more users to run this console application without sharing user credentials, without modifying the console application.

Thanks in advance

 

J Justin

 


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend