MMC Administration Tool - ASP.NET 2.0

2007-05-28 Thread Swapnil_B1
---

New Message on MumbaiUserGroup

---
From: Swapnil_B1
Message 1 in Discussion

  
MMC Administration Tool - ASP.NET 2.0  
One new, important feature in ASP.NET 2.0 is the ability to read/edit the 
configuration files in local machine or remote machine. In ASP.NET 1.x, editing 
of the configuration files was not supported. Only option to edit a 
configuration file is to treat the configuration file as an xml file and update 
that xml file. The major drawback in this method is that you need to treat all 
the sections in the configuration file as XML Node, which is not strongly 
typed. Hence, you can do only string manipulation to update any configuration 
settings in that file. However, in ASP.NET 2.0 you have strongly typed API’s to 
read/edit the configuration files.  
This article series describes the various options available in ASP.NET 2.0 to 
read/edit the configuration files. The various options available to read/edit 
the configuration files are  
1) Using ASP.NET Microsoft Management Console(MMC)  
2) Using Web Site Administration Tool  
3) Using Configuration API’sIn the first part of this article, I have explained 
about  
Using ASP.NET Microsoft Management Console (MMC)  
In ASP.NET 2.0, you can manage configuration file from IIS itself i.e. the 
configuration management API is integrated with IIS itself. This feature is 
available as Microsoft Management Console (MMC), which can be accessed from the 
properties settings of any website in. Using this console, administrator can 
modify both machine.config file and web.config file.  
A new ASP.NET tab is included in the IIS site properties window, In this tab, 
you can specify the version of asp.net for that web application. In previous 
release, if you want to change the aspnet.version for a web application, you 
need to use command line utility aspnet_regiis, which comes with .NET 
Framework. Now you can do this from IIS itself. If you want to edit 
machine.config, you can press Edit machine.config file button. Similarly, if 
you want to edit web.config file, you can press edit configuration. Both this 
button will invoke a separate window, which has option for editing various 
sections in config file as mentioned below.  
1) General Tab – which contains the list of all the connection Strings with 
facility to Manage and add new. It also contains the App Settings section and 
displays both the Key and value.  
2) Custom Error Tab – Custom Error Mode “Remote Only”, “On”, and “Off” option. 
Default redirect URL property with List of Inherited Custom errors and Local 
errors.  
3)  Authorization Tab – Contains the various Inherited and Local Authorization 
roles with Allow / Deny options.  
4) Authentication – Contains the properties to set the Authentication Mode and 
Cookie information in case of Forms Authentication. Also contains the Provider 
section to Configure Membership Providers and Role Providers.  
5) Application Tab – Contains Common compilation, page and runtime settings 
like default language, default theme etc. Contains Globalization settings like 
encoding request and response information and identity settings.  
6) State Management Tab – Contains the Session state settings like session 
mode, cookieless mode and SQL server settings in case of SQLServer session 
mode.  
7) Locations Tab- contains the list of Locations and allow to add and manage 
the locations  
One of the much requested feature in.Net Framework 1.1 is to update the config 
file programmatically which has been included in .NET 2.0 as Configuration 
class. Other then Configuration class, now you have an option to edit the 
configuration file using MMC snap in and a web admin page. Even you can 
customize this web admin page for your application. With all these options, 
configuration is made simpler in .Net Framework 2.0.  
Swapnil (Swaps)  
http://swapsnet.spaces.live.com/

---

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the Remove link below. On the 
pre-addressed e-mail message that opens, simply click Send. Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]


Downloading a File with a Save As Dialog in ASP.NET

2007-05-28 Thread Swapnil_B1
---

New Message on MumbaiUserGroup

---
From: Swapnil_B1
Message 1 in Discussion

  Folks,   This seems to be a common question that we hear frequently: How do I 
download a file from a Web site, but instead of displaying it in the browser 
see it as a file that can be saved (ie. see the Save As dialog)?  
Normally when you link a file that file will always display inside of the 
browser because the browser loads it and automatically determines the content 
type based on the file extension. So when you click on a link like a jpg image 
the browser knows it's an image and will display that image. You can of course 
always use the browser short cut menu and use the Save Target As option to save 
the file to disk.  
If you want to do this automatically when a link is clicked from the server 
side, you have to send the file back yourself rather and add a couple of custom 
headers to the output. The way to do this is to use Response.Transmit() to 
explicitly send the file from your ASP.NET application and then add the Content 
Type and Content-Disposition headers.  
Check out this link for futher details and code snippet. 
http://west-wind.com/weblog/posts/76293.aspx   Swapnil (Swaps) 
http://swapsnet.spaces.live.com/

---

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the Remove link below. On the 
pre-addressed e-mail message that opens, simply click Send. Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]


Hi Madhumita,

2007-05-28 Thread SrikantP
---

New Message on MumbaiUserGroup

---
From: SrikantP
Message 1 in Discussion

Hi Madhumita,
 
can u tell me the Question is coming for this DUMP only or the Question is 
coming from outside also, 
pls give this asnwer why bcoz i want to give this exam ASAP.
 


---

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the Remove link below. On the 
pre-addressed e-mail message that opens, simply click Send. Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]