473,761 Members | 5,848 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Scripting.Dicti onary alternative

Hi,
I am porting an existing ASP applcation to ASP.NET which heavily depends on Mainpulation through Scripting.Dicti onary. Can anyone help me out with an alternative to use of Scripting.Dicti onary.
Secondly, most of the migration done through VS.NET wizard has placed the existing ASP code in <Script> tags in an aspx place. Does the runtime take <script language="VB" runat="Server"> tag as a .NET code and compile it or leaves it for interpretation at runtime each time the page is accessed.
Last but not the least, the VS.NET debugger acts strange and makes silly jumps where as at times to on comments while going through the script tags.

Thanx ..... for atleast reading this - if not replying :)
Adnan
Nov 18 '05 #1
1 3180
Hi,

1. You have a couple of options here. The one that probably maps the closest
is the HashTable, however the ArrayList, SortedList the ListDictionary,
StringDictionar y and the HyrbidDictionar y may also be options. Depends on
exactly what you are wanting to do. Search msdn.microsoft. com to see the
differences between them. Also, this article has some good info on choosen
between them
http://msdn.microsoft.com/library/de...netchapt13.asp.
2. You really want to move the code that is inline (in script tags in .aspx)
to code behind classes. " the development experience in Visual Studio .NET
2003 is much richer when using code-behind classes. The ability to compile
the code, see all build errors at once in Visual Studio .NET 2003, and step
through your code using the Visual Studio .NET 2003 debugger can drastically
reduce the effort required to maintain and update an application." this
article explains more
http://msdn.microsoft.com/asp.net/us...ptimizing.aspx.
2.b. Page logic code that is written inside <script runat=server> blocks
within an .aspx file and dynamically compiled the first time the page is
requested on the server.
Page logic code that is written within an external class that is compiled
prior to deployment on a server and linked "behind" the .aspx file at run
time. for more info visit
http://support.microsoft.com/default...en-us;305141#4

Hope this helps,
Michael

--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Adnan" <Ad***@discussi ons.microsoft.c om> wrote in message
news:27******** *************** ***********@mic rosoft.com...
Hi,
I am porting an existing ASP applcation to ASP.NET which heavily depends
on Mainpulation through Scripting.Dicti onary. Can anyone help me out with
an alternative to use of Scripting.Dicti onary.
Secondly, most of the migration done through VS.NET wizard has placed the
existing ASP code in <Script> tags in an aspx place. Does the runtime take
<script language="VB" runat="Server"> tag as a .NET code and compile it or
leaves it for interpretation at runtime each time the page is accessed.
Last but not the least, the VS.NET debugger acts strange and makes silly
jumps where as at times to on comments while going through the script
tags.

Thanx ..... for atleast reading this - if not replying :)
Adnan

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

125
7207
by: Raymond Hettinger | last post by:
I would like to get everyone's thoughts on two new dictionary methods: def count(self, value, qty=1): try: self += qty except KeyError: self = qty def appendlist(self, key, *values): try:
8
5592
by: Rodd Snook | last post by:
I have an application which makes extensive use of the Scripting.Dictionary object. I'm not doing anything silly like putting them outside the page scope -- just creating quite a few of them and stuffing quite a lot of data (from and MS SQL database) into them. On Windows 2000 server, everything is fine. If the data structures get really big it slows down, but for normal operation it's no problem. Recently our hosting provider moved to...
9
9992
by: What-a-Tool | last post by:
Dim MyMsg Set MyMsg = server.createObject("Scripting.Dictionary") MyMsg.Add "KeyVal1", "My Message1" MyMsg.Add "KeyVal2", "My Message2" MyMsg.Add "KeyVal3", "My Message3" for i = 1 To MyMsg.Count Response.Write(MyMsg.Item(i)) next
2
3428
by: Tim Chmielewski | last post by:
I have been trying to read values from a form into an array on a page without much success and was told to use a Scripting.Dictionary instead. There are a variable number of fields on the form as it is different according to which product is ordered (as are the fields that are used to create the record.) This is my first attempt: set OrderInfo = Server.CreateObject("scripting.dictionary") set OrderInfo("prodid") =...
2
2232
by: Vaibhav | last post by:
dear all, i wonder if someone help me.. i am trying the create a dictionary obejct in asp but its giving the error Error Type: (0x8002801D) Library not registered
17
4206
by: Karl Irvin | last post by:
To use the Textstream object, I had to set a Reference to the Microsoft Scripting Runtime. This works good with A2000 Is the Scripting Runtime included with A2002 and A2003 so the Reference won't be broken when my app is opened with those versions. Also is the Scripting Runtime included as part of the A2000 Runtime Engine which some of my customers use.
8
3758
by: Howard Kaikow | last post by:
Historically, auntie virus software has issued false positives against code using the Scripting Runtime. Does .NET have a native replacement for the Scripting runtime? For example, is there the equivalent of a "CompareMethod" for the Collection object as for the Dictionary object?
6
11528
by: Oenone | last post by:
Could someone suggest a good native .Net collection object that provides similar functionality to the COM Scripting.Dictionary object? Specifically I need to be able to add items with an associated key, retrieve them by key or by index within the collection, and determine whether an item exists in the collection by querying with its key. The HashTable was looking good as it does virtually all of these things, but it doesn't seem to be...
3
7554
by: jaffar.kazi | last post by:
Hi All, I have a VB COM component that has an object of type Scripting.Dictionary. Each element of this again has Scripting.Dictionary type members. I need to access this in C#, and am not able to do so. Could anyone provide me with source code for the same? Thanks in Advance. Regards, --Jaffar
0
9522
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9336
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10111
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9948
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9765
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8770
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7327
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6603
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.