コード例 #1
0
 /// <summary>Page Load.</summary>
 public void Page_Load
 (
     object sender,
     EventArgs e
 )
 {
     Ajax.Utility.RegisterTypeForAjax(typeof(SoundPlayerPage));
     if (!Page.IsPostBack)
     {
         HtmlInputFileSound.Focus();
         Page.SetFocus(HtmlInputFileSound);
         SoundPlayer soundPlayer = UtilitySoundPlayer.SoundPlayerInitialize();
         Cache["SoundPlayer"] = soundPlayer;
     }
 }
コード例 #2
0
  /// <summary>Page Load.</summary>
  public void Page_Load
  (
   object     sender, 
   EventArgs  e
  ) 
  {

   String  exceptionMessage  =  null;

   ServerMapPath = this.MapPath("");

   /* 
   FilenameConfigurationXml = Server.MapPath( FilenameConfigurationXml );
   */

   if ( ServerMapPath != null)
   {
    FilenameConfigurationXml = ServerMapPath + @"\" + FilenameConfigurationXml;
   }//if ( ServerMapPath != null)

   UtilityXml.XmlDocumentNodeInnerText
   (
        FilenameConfigurationXml,
    ref exceptionMessage,         
        UtilityImage.XPathDatabaseConnectionString,
    ref DatabaseConnectionString
   );

   if ( exceptionMessage != null )
   {
    Feedback = exceptionMessage;
    return;
   }//if ( exceptionMessage != null )

   if ( !Page.IsPostBack )
   {
   	HtmlInputFileSource.Focus();
   	Page.SetFocus( HtmlInputFileSource );
    HtmlInputFileSource.Attributes.Add("autocomplete", "on");
    HtmlInputFileSource.Attributes.Add("autocomplete", "on");
   }//if ( !Page.IsPostBack )
   	
  }//Page_Load