?
Solved

Convert ASP to ASP.NET 2.0

Posted on 2006-11-03
3
Medium Priority
?
192 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
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 Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

752 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