Solved

Convert ASP to ASP.NET 2.0

Posted on 2006-11-03
3
187 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
ID: 17869736
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
ID: 17890529
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
ID: 17891163
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

932 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

20 Experts available now in Live!

Get 1:1 Help Now