ArcGIS_SimpleEdit_CSharp\ArcGIS_SimpleEdit_WebAppCSharp\Default.aspx.cs
// Copyright 2011 ESRI // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // You may freely redistribute and use this sample code, with or // without modification, provided you include the original copyright // notice and use restrictions. // // See the use restrictions. // public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, System.EventArgs eventArgs) { // Make sure control initialization only occurs during initial page load or on page refresh if (!IsPostBack) { try { // Populate the service type drop-down list with the service types in the // AddActionLocation.ServiceType enumeration serviceTypeDropDownList.DataSource = System.Enum.GetNames(typeof( AddActionLocationService.ServiceType)); serviceTypeDropDownList.DataBind(); } catch (System.Exception exception) { string jsErrorAlert = string.Format("<script>{0}</script>", Utility.GetJavaScriptErrorString(exception)); Response.Write(jsErrorAlert); } } } }