asp+ and vb.net QA Center

Source: Internet
Author: User
Tags config visual studio
Asp+ programming language is basically part of the. NET Framework's bottom layer, if this part is going to be a big change, the tools that are on the top of the. NET Framework will change even more, so the VB7 change in the language should be very small, or no longer change.

###################################################################################

After installing the. NET SDK, will VB6 become vb.net, and will not affect the workings of VB6 's original program?

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

File Date: 2001/02/06


After installing the. NET SDK, VB6 will not become a vb.net,vb.net Beta 1 attached to Visual Studio.NET Beta 1, while Visual Studio.NET Beta 1 has 3 CDs.

###################################################################################

Is there an alternative to the Win2000 Server that provides the ability to file files on the Web, and if not, in addition to the NT4.0 upgrade 2000?

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

File Date: 2001/02/06


asp.net the first 8-1 section of the book to introduce asp+ 's file features (whether it works under NT 4.0 or 2000).

--------------------------------------------------------------------------------
###################################################################################

Does the Config.web file mentioned in chapter II have one for each record, or should it be placed in a single record, and the rest of the subdirectories need not be set aside, or should the virtual catalogue be placed?

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

File Date: 2001/02/19


The effectiveness of the config.web and its subdirectories, if placed in the AAA record, the AAA can be no longer available, but if AAA's subdirectory wants to have its own setting, it can place another config.web file in its own catalogue.

The most special catalogue is the Wwwroot (if installation is not changed, the preset is C:\Inetpub\wwwroot), and the Config.web file in Wwwroot is in effect and all the subdirectories of the wwwroot are recorded in the catalogue.

####################################################################################

Does the session variable in the ASP Web appear to be transferred to the Asp+ Web page, or is there another way to read it?

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

File Date: 2001/02/19


Session in ASP and asp+ is really not the same, but the cookie is interlinked, because the cookie is stored in the browser, you can change the session by Cookie.

--------------------------------------------------------------------------------
####################################################################################

The Syria of storing and reading cookies in an ASP seems inappropriate for asp+?

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

File Date: 2001/02/19


The Syria for reading and storing cookies is described in the ASP Web page as textbooks:

Data1 = Request.Cookies ("Data1")
Response.Cookies ("data1") = Data1

And these two Syria are equal to the following: (The Value of which is the nature of the Cookie preset)

Data1 = Request.Cookies ("Data1"). Value
Response.Cookies ("Data1"). Value = Data1

But the asp+ does not accept the preset, so:

Data1 = Request.Cookies ("data1") ' Error
Response.Cookies ("data1") = Data1 ' Bug

Data1 = Request.Cookies ("Data1"). Value ' is correct
Response.Cookies ("Data1"). Value = Data1 ' correct


####################################################################################

If an ASPX web uses more than two pagelet (Pagelet in the 7th chapter), and the function is repeated (for example, both pagelet have defined Page_Load event procedures), is there a conflict?

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

File Date: 2001/02/19


The different pagelet (functions) are independent, so they can have their own Page_Load event programs.


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


####################################################################################

Is the asp+ to be added as an ASP?

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

File Date: 2001/02/19


As with the ASP, if the VB program in addition to the use of the single citation ('), if added in the HTML file, but also the use of <!--the text-->.


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




####################################################################################

In asp+ if a line is too long, it can move it to the next line anywhere, without having to add the ' _ ' symbol at the end of the first line like VB.

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

File Date: 2001/02/19

To use _.



####################################################################################

The parameters of the Page_Load event program

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

File Date: 2001/03/30


Q:
Page_Load (sender as Object, E as eventarges) are all used in sender and E, is this a asp+ rule or can be used at random? If a <script ... > </Script> There are two Sub ... End Sub, you can also use sender, E?

A:
Page_Load is an event program that asp+ preset, the event program will define the parameters (including "Numbers" and "types") in the same way as the Auxiliary program (function), and in the case of Page_Load, the parameters are two, and their types are equal to the Object and Eventarges, as the parameters of the Name "can be determined by us, for example:

Sub Page_Load (sender as Object, E as Eventarges)

Change into

Sub Page_Load (P1 as Object, P2 as Eventarges)

is also possible. It does not matter that two different sub have the same definition of sender parameters.

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



####################################################################################

Modification of the Grid8.aspx program

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

File Date: 2001/03/30


Q:
In the connection to the fifth chapter of the p.5-21 DataGrid (the program is located in the grid8.aspx of p5-23), I tried to change the link of the "student" to "name", but all the wrong messages, I just will:

<asp:boundcolumn datafield= "Learning" headertext= "school"/>

Change into:

<asp:hyperlinkcolumn datatextfield= "Name"
headertext= "Name"
datanavigateurlfield= "Name"
datanavigateurlformatstring= "Students.aspx?id={0}"
target= "_blank"/>

On the other hand, Studends.aspx's modifications are as follows:

ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0; Data source= "&
Server.MapPath ("Sample.mdb")
SQL = "SELECT * from to" Where name = "& Request (" id ")

A:
The problem is the studends.aspx modification:

SQL = "SELECT * from to" Where name = "& Request (" id ")

"Student" field is a number, but the "name" field is a string, so the above Syria the correct modification is:

SQL = "SELECT * from to", Where name = ' "& Request (" id ") &" "

Just precede the Request ("id") with a single citation.


####################################################################################

I can't do it in a way. NET Framework Beta1

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

File Date: 2001/03/30


Q:
Msdn.microsoft.com/downloads/default.asp the. NET Framework SDK Beta1 on chapter 2-5 of the book, "asp.net, because the. NET Framework SDK is Ta1 is too large to download successfully, is there any other pipeline to obtain the. NET Framework SDK Beta1?

My friend has Visual Studio.NET Beta 1, which will have the. NET Framework SDK Beta1?

A:
You can also find the. NET Framework SDK Beta1 on the "component update" CD-ROM of Visual Studio.NET Beta1, located in the \FRAMEWORKSDK catalogue of this disc.

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


####################################################################################

Now, how about making a Web page with asp.net? Would it not be possible to use the ASP.net Web page as it was written when the official version was launched?

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

File Date: 2001/01/29


asp.net now the version is Beta 1, the previous version of the Preview version, from the Preview version to Beta 1, there are certain programs have to be modified, but in small places, in proportion to see, about 10% are modified.

ASP.net's next version should be Beta 2, and then the official version, according to the site's judgment, the current. NET Framework structure has been roughly set, the more easily variable parts should be the Visual Studio.NET part, and asp.net closer to. NET Fr The amework of the bottom layer, so the difference is that the change should be small, the above cautious for reference.

In the near future, the ASP Web page has all been used asp.net. (Of course, the old ASP web doesn't change for a while)

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


####################################################################################


What about Asp+ 's future?

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

File Date: 2001/01/29


Previously, the ASP was a small program attached to IIS, and now asp+ is attached to the. NET Framework Software (and, of course, it needs to be done by helping IIS).

You can make sure that asp+ will become the primary tool for making a Web page for the Microsoft server, and that Visual Studio.NET also supports editing of the asp+ Web, so the development of the Asp+ Web page becomes easier.

If your Web Server is using Windows 2000 or NT, it's no wonder that you use asp+ as a website tool.

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


####################################################################################

Is the ASP still asp+?

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

File Date: 2001/01/29


is the current (January 2001) an ASP or asp+ for the university? is indeed very embarrassed.

From a functional perspective, asp+ is superior to ASP, and the ASP Web page is completely compatible with asp+, so learning asp+ is an indisputable choice, but the problem is that asp+ 's books are few, according to this site, currently there are only two asp+ books on the market, one for ASP.net first study (the King of the Glory) , a Preview of the Active Server pages+ (original book, Wrox published), but these two are not written for beginners.

If you can wait, the official edition of Asp+ will be available in August, and there will be a lot of asp+ books published, asp+ Web page as a textbooks (for beginners) will also be published at this time, or now the ASP for themselves to lay a little basis for the learning of asp+ would be a little more relaxed, Shouldn't waste time.


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




####################################################################################


Why ASP.net first study the "Visual Editing tools"?

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

File Date: 2001/01/29


In the. NET Framework Beta 1 release, software that is available for download is the. NET Framework SDK and Visual Studio.NET, where Visual Studio.NET provides video editing tools that can be edited directly. asp x file, its operating interface like VB, easy to use, but the Visual Studio.NET only provided to the MSDN Universal subscribers download, the general reader is not easy to obtain, so asp.net a book is not introduced.

When the Visual Studio.NET is officially listed or provided to the general user, the site will write another writing or introduction.


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

####################################################################################

Please ask ASP.net how score.xml the 6th chapter of the first study was made?

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

File Date: 2001/01/29


The code is as follows:

Dim FS as FileStream
Dim writer as StreamWriter
Dim Path as String
Dim ConnStr as String
Dim CMD as Adodatasetcommand
Dim ds As DataSet = new DataSet ()

ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data source=" & Server.MapPath ("Sample.mdb")

CMD = New Adodatasetcommand ("select * from score List", CONNSTR)
Cmd.filldataset (ds, "in grades")

Path = Server.MapPath ("Score.xml")
FS = New FileStream (Path, FileMode.Create, FileAccess.Write)
writer = New StreamWriter (FS, Encoding.default)

Ds. WriteXml (writer)

The above program will open the Sample.mdb data table and save it as a score.xml file in the repository.

Note: Remember to precede the. aspx file with:

<%@ Import namespace= "System.IO"%>
<%@ Import namespace= "System.Data"%>
<%@ Import namespace= "System.Data.ADO"%>



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.