Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Convert ASP to ASP.NET 2.0

Posted on 2006-11-03
3
Medium Priority
?
193 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

604 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