Solved

Convert ASP to ASP.NET 2.0

Posted on 2006-11-03
3
186 Views
Last Modified: 2010-04-16
<DIV ALIGN="CENTER">
      <INPUT TYPE="BUTTON" CLASS="AppButton" VALUE="VIEW THE APPLICATION" NAME="Print"
      onClick="FormNewWindow(this.form,'../Print/Ltr.asp')">
</DIV>


function FormNewWindow(objForm,strSubmitToThis,strWidth,strHeight,blnHelper,blnHideWarning)
{
}

Convert this button call to FormNewWindow from classic ASP to ASP.NET 2.0.  I want to use the .net button control not the html.

Thank you!
0
Comment
Question by:codeshelp
  • 2
3 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 125 total points
Comment Utility
Try:

    <div align="center">
       <asp:Button runat="server" CssClass="AppButton" Text="VIEW THE APPLICATION" ID="Print" OnClientClick="FormNewWindow(this.form,'../Print/Ltr.asp')" />
    </div>
0
 
LVL 3

Author Comment

by:codeshelp
Comment Utility
I get the following error:

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

Any ideas?
0
 
LVL 52

Expert Comment

by:Carl Tawn
Comment Utility
I don't think thats a problem with cause by the asp:Button, but by your web server not being configured correctly.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now