|
-
Mar 31st, 2003, 02:01 PM
#1
Thread Starter
PowerPoster
Converting DreamWeaver Created Htm File Into aspx file
Hi, i don't like asp.net's ability to create htm files. Dreamwaever is MUCH beter. BUT i need/want to use ASP.NET to add my code.
When i open a dreamweaver created htm file into asp.net it opens fine and looks fine but when i double click on a button to insert code it creates a
VB Code:
<script id=clientEventHandlersJS language=javascript>
<!--
function Button1_onclick() {
}
//-->
</script>
instead of it creating an .aspx.vb file and letting me insert my code. I changed all the header information to
VB Code:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebApplication4.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
But it still isn't acting right. Any idea what i can do to get the HTML editing capapbilites of Dreamweaver and also use VS.NET to code my ASP.Net pages?
Thanks!
-We have enough youth. How about a fountain of "Smart"?
-If you can read this, thank a teacher....and since it's in English, thank a soldier.

-
Apr 1st, 2003, 04:36 AM
#2
I think it HAS to have the .aspx extension
And also, every aspx file has to have a form tag, and ONLY ONE form tag...
And also, all the buttons has to have a runat="server"...
-
Apr 1st, 2003, 09:41 AM
#3
PowerPoster
It is better to copy and paste the html into VS.Net aspx page. Then go through and fix all the stuff and add the proper declarations at the top of the page.
-
Apr 1st, 2003, 05:23 PM
#4
Thread Starter
PowerPoster
OK thanks. I kinda got it sorted out, but why can you only have 1 form tag? Say i want several different actions per page depending on what button the user clicks..
-We have enough youth. How about a fountain of "Smart"?
-If you can read this, thank a teacher....and since it's in English, thank a soldier.

-
Apr 1st, 2003, 09:15 PM
#5
PowerPoster
As long as all the buttons are in the form tags, and the event handlers are in place for the buttons, when the page gets posted back, the button that was pushed has its event fired. In that event is where you perform your specific action.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|