Asp.net Webform Display Alert and redirect

前端 未结 4 722
清歌不尽
清歌不尽 2020-12-10 07:05

I\'m currently stuck. I have a webform with a button that registers or saves a record. What i\'d like to is have it display a javascript alert and then redirect to a page. H

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-10 07:51

    protected void Save(..)
    {       
        // Do save stuff    
        ShowMessageBox();  
    } 
    
    private void ShowMessageBox()
    {        
        string sJavaScript = "";      
        Response.Write(sJavaScript);
    }  
    

提交回复
热议问题