Solved

Convert ASP to ASP.NET 2.0

Posted on 2006-11-03
3
191 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 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

726 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