AddaByte    Programmers' Script Repository
Free and low cost software.
spacer
Find out about our beautiful fractal backgrounds at abm-enterprises


Newsletter Signup
Name
Email
 

  ASP.Net - Submit aspx form via javascript
 


Save up to 75% on software

Drive Clone

the best name in hosting


<b>on client javascript side:</b>
    function goSubmit()
    {
        __doPostBack('PagePostBack', '');

        
    }


<b>then on server codebehind side:</b>

        private void Page_Load(object sender, System.EventArgs e)
        {
            sLogSource = "Page_Load()";
            thisReferer = Request.ServerVariables["http_referer"];

            try
            {
                ClientScript.GetPostBackEventReference(this, string.Empty);
                if (IsPostBack)
                {
                    string eventTarget = (this.Request["__EVENTTARGET"] == null) ? string.Empty : this.Request["__EVENTTARGET"];

                    if (eventTarget == "PagePostBack")
                    {
                        doSubmit();

                    }
                }

            }
            catch (Exception ex)
            {
                if (ex.Message.ToUpper().IndexOf("THREAD WAS BEING") == -1)
                {
                    clsLogWriter oLog = new clsLogWriter();
                    oLog.AddLogMessage(sPageSource + "." + sLogSource, clsLogWriter.MessageType.Error, 0, ex.Message, ex.StackTrace);
                    oLog = null;
                }
            }

        }
  What does it do?
   no description given
 
  Features
  Added by Added Downloads Rating Popularity

  rpgivpgmr

5:11:05 AM Tuesday, April 7th 2009

9

not rated

 
 
  About the file
  Size Download Rate It  

  1459 KB
  download this file
 
 
  Comments
no comments
 
  Add your comment
 Email  
 Subject  
 Comment  
 Verification code:

 
    All comments are screened by the admin prior to being posted
     
 
  Contacts
  Report Abuse