Friday, 24 May 2013

Edit Web.config File Using C# .NET

we can Programatically Change Web.config File Using C#  .NET.

ASP.NET Provides Two namespaces for Configuration Settings
System.Configuration, System.Web.Configuration.

So If we want to Change the Any Mail Server Settings and ConnectionString Settings, We can do all these can Modify easily instead opening the File and Changes and Saving Back. Instead of Doing all These Things, Create an UI for Changing All these Things for Admin so that web.config file can change from that Place Only.

Here is the sample Example for Changing the SMTP Server  IP Address.

Using the namespaces of configuration:




using System.Configuration;

using System.Web.Configuration;

 

Config File:

 

<appSettings>

<addkey="SMTPServer" value="64.59.71.11" />

</appSettings>

C#:

 

Configuration ConfigObj = WebConfigurationManager.OpenWebConfiguration("~");

AppSettingsSection AppObj = (AppSettingsSection)ConfigObj.GetSection("appSettings");

if (AppObj != null)

{

AppObj.Settings["SMTPServer"].Value = txtSmtpIP.Text;

ConfigObj.Save();

}




 

 


 

 
 

Tuesday, 21 May 2013

MUGH May UG Meet

MUGH May UG Meet

Microsoft User Group Hyderabad

Saturday, June 1, 2013 at 9:00 AM (IST)

Hyderabad, India

Event Details


Microsoft User Group Hyderabad  UG Meet

Microsoft User Group Hyderabad invites you to Monthly UG Meet on 1st June'13
Agenda:
TIME TOPICS & SPEAKER
09:00 A.M - 09:35 A.M Registration
09:45 A.M - 10:45 A.M Building Realtime Web Applications With SignalR & ASP.NET MVC

Shravan Kumar, Thomson Reuters
10:45 A.M - 11:00 A.M Break
11:00 A.M - 12:00 P.M Building Apps for Office

Pranav Ainavolu, Thomson Reuters
12:00 P.M - 12:45 P.M TBD
12:45 P.M - 01:00 P.M Discussion

Targeted Audience: Developers, Architects, IT Pro only

Event to be held at the following time, date, and location:

Saturday, June 1, 2013 at 9:00 AM (IST)
                                                                               
Microsoft India Development Center, Building 3 MPR Halls
Hyderabad
India

View Map

Attend Event

 
 
Share this event on Facebook and Twitter

We hope you can make it!

Cheers,
Microsoft User Group Hyderabad

Saturday, 4 May 2013

How to add Dynamic Items to Ext.carousel.Carosel In sencha Touch

A Small Example for  Sencha touch Carousel, How to Add Dynamic Items to the Carousel .

In the Below Code is the Carousel for 3 Items of Normal way of Writing in the Sencha Touch.



  Ext.create('Ext.Carousel', {
                fullscreen: true,
                id: 'AddingDynamicItems',
                items: [
                        {
                            html : 'Item 1',
                        },
                        {
                            html : 'Item 2',
                        },
                        {
                            html : 'Item 3'
                        }
                     ]
                });

To add these above carousel Items  Data Dynamically, add the listeners and do Your Logic,
See the Following Sample Code.


             listeners:
                {
                    'initialize': function( me, eOpts ) {
                          for (i=1; i<=3; i++) {
                                me.add({
                                 html : 'Item ' + i
                                 //add your Logic.
                                  });
                           }
                        }
                    }