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.
                                  });
                           }
                        }
                    }


Wednesday, 3 April 2013

Hyderabad Chapter Launched

 
We at C# Corner has the vision of organizing offline events in various cities to help users mingle and discuss new emerging developments in this field.

At C# Corner MVP Summit, a good group of our MVPs from Hyderabad, Kolkata, and other cities discussed they are capable of running chapters in their cities. Some of the up coming chapters are Kolkata, Hyderabad, Jabalpur (all 3 in INDIA) and LA, USA. 

We are successfully organizing chapter events all across the globe, including countries like India, US, and Turkey. In India we are successfully organizing chapter meets in Delhi/NCR, Mumbai, Thiruvananthapuram.

Our next stop is another high-tech city “Hyderabad”.
Register for the event here.


Title: Asp.Net Vs. Asp.Net MVC


Date: 07-April-2013 10:00 AM To 12:00 AM

Venue: Ascendia Technology Solution, 3rd Floor, Softsol Building(Beside Mindspace), Hytech City, Madhapur Hyderabad

Below is the details agenda

10:00-10:15 AM What is c-sharpcorner chapter by
Krishna Garad
10:15-11:00 AM Asp.Net Vs. Asp.Net MVC By Ramesh Samarala
11:00-11:30 AM Sample Demo application using Asp.net MVC By Ravi Pinjarkar
11:30-12:00 PM Razor vs. aspx engine By Krishna Garad
 

Charminar

Thursday, 28 March 2013

Free eBook: Better Unit Testing with Microsoft Fakes guide

We are pleased to announce v1 of the Better Unit Testing with Microsoft Fakes guide, under Visual Studio Test Tooling Guidance, which allows you to get familiar with the Microsoft Fakes framework, to be in a position to promote, position and use it effectively. Download Now

This eBook contains practical guidance for migrating to and unit testing with Microsoft Fakes. Practical walk-throughs allow you to navigate basic and advanced concepts, giving you a comfortable and confident start in implementing Microsoft Fakes as a mocking solution.

Reference: MSDN

Saturday, 16 March 2013

How to Remove Cross Sign in Textbox in IE 10



Recently I am Using Windows8 and IE10. 
In Internet Explorer 10, I Observed lot of Changes in Text boxes, Scroll Bars and Combo Boxes....

Take a Look at the Below screenshot some Text in Input control.

 


These icons are coming by default IE 10 engine, so started think to remove these icons by CSS.

I thought there might be an some IE-specific CSS Rules.


Then I searched in msdn Dev Center I saw there are so selectors Pseudo-elements,
Using of these IE CSS Classes we can Applies more than one style to clear text Input control.


 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>IE10</title>
    <style type="text/css">
    ::-ms-clear
        {
             display: none;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    </div>
    </form>
</body>
</html>


Reference: