-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: spprivate
Message 2 in Discussion

 
To migrate an ASP page into a Web Forms project         In Solution Explorer 
right-click the project, point to Add, then click Add Existing Item.       In the Add 
Existing Item dialog box, find the ASP page to migrate, then choose Open.  Tip   In 
the Files of type box, select Web Files to view all Web files. 
When you migrate the file, it is physically copied from the file's original location 
to the location of your Web Forms project, and it appears in Solution Explorer.    In 
Solution Explorer, right-click the file name, choose Rename, and change the file name 
extension to ".aspx".  
This causes two confirmation dialog boxes to appear, one after the other.       Do the 
following:       The first dialog box notes that changing the file name extension may 
invalidate the file format for use with some applications. Click Yes.      The second 
dialog box indicates that there is no code-behind class file associated with the new 
.aspx file. Click Yes to add the code-behind class file.  Tip   You can click the Show 
All Files button in Solution Explorer to see all the files associated with this 
project. If you expand the tree below your newly migrated file, you should see the 
code-behind class file.       Open the new .aspx file.  
By default, the file opens in Design view. If there are syntax errors on the page, the 
designer will open the file in HTML view. In that case:          Try switching to 
Design view. It will not be displayed; instead you will see a message indicating 
syntax errors.        Fix the errors and try switching to Design view again.  Note   
By default, switching between views causes the Web Forms Designer to apply automatic 
formatting. This can fix some syntax errors, such as missing quotation marks. For 
details, see <MSHelp:link tabIndex=0 
keywords="vxurfFormatHTMLOptionsDialogBox">Format, HTML/XML, Text Editor, Options 
Dialog Box</MSHelp:link>.  In HTML view, inspect the file to ensure that the file 
contains an HTML <form> element within the HTML <body> tags. If not, add a <form> 
element. In the opening tag, add the Runat = "server" attribute so that it looks 
similar to the following: <form id="Form1" method="post" runat="server">      
Determine whether the file contains calls to COM components � for example, ADO code. 
If so, add the AspCompat attribute to the page directive in HTML view: <%@ Page [...] 
AutoEventWireup="false" AspCompat="true" %>  Save the form, compile the project, and 
view the page in the browser. For details see Compiling and Running Web Forms Pages.   
 Check for issues that appear in the Task List window and resolve them. For more 
information see <MSHelp:link tabIndex=0 keywords="vxurfTaskListS">Task List 
Window</MSHelp:link>.       Repeat Steps 8 and 9 until your form is working properly.  
************************** 
DLL Import 
The dllexport and dllimport storage-class attributes are Microsoft-specific extensions 
to the C and C++ languages. They enable you to export and import functions, data, and 
objects to and from a DLL. These attributes explicitly define the DLL�s interface to 
its client, which can be the executable file or another DLL. Declaring functions as 
dllexport eliminates the need for a module-definition (.DEF) file, at least with 
respect to the specification of exported functions. Note that dllexport replaces the 
__export keyword. 
  
HTH 
Satheesh

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to