Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 11th, 2004, 11:03 AM
Authorized User
 
Join Date: Apr 2004
Location: nasik, maharashtra, India.
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to debuajm Send a message via Yahoo to debuajm
Default convert asp function to asp.net

i have to use this function in my asp.net. this function i have used in my asp website and that is working fine now i don;t know how to use xml and i want to convert this function in asp.net
can any body help me to convert this page in asp.net.i am very thankful to you.

=========================================
function addObject(dict, Element)
        set elmData = domReq.createElement(Element)
        keysAr = dict.Keys
        itemsAr = dict.Items
        For i = 0 To dict.Count-1
            if (VarType(itemsAr(i)) <> 1) AND (VarType(itemsAr(i)) <> 0) then
                if (VarType(itemsAr(i)) = 8) then
                    if (left(keysAr(i), 10) = "attribute:") then
                        elmData.setAttribute mid(keysAr(i), 11), itemsAr(i)
                    else
                        appendChild keysAr(i), itemsAr(i), elmData
                    end if
                elseif (VarType(itemsAr(i)) = 9) then
                    set itemTemp = itemsAr(i)
                    itemAr = itemTemp.Items
                    keyAr = itemTemp.Keys
                    set elmTemp = domReq.createElement(keysAr(i))
                    For a = 0 To itemTemp.Count-1
                        if (left(keyAr(a), 10) = "attribute:") then
                            elmTemp.setAttribute mid(keyAr(a), 11), itemAr(i)
                        else
                            appendChild keyAr(a), itemAr(a), elmTemp
                        end if
                    Next
                    elmData.appendChild elmTemp
                else
                    idArTemp = itemsAr(i)
                    For x = 0 To UBound(idArTemp)
                        set idTemp = idArTemp(x)
                        itemsTempAr = idTemp.Items
                        keysTempAr = idTemp.Keys
                        set elmTemp = domReq.createElement(keysAr(i))
                        For z = 0 To idTemp.Count-1
                            if (left(keysTempAr(z), 10) = "attribute:") then
                                elmTemp.setAttribute mid(keysTempAr(z), 11), itemsTempAr(z)
                            else
                                appendChild keysTempAr(z), itemsTempAr(z), elmTemp
                            end if
                        Next
                        elmData.appendChild elmTemp
                    Next
                end if
            end if
        Next

        elmReq.appendChild elmData
    end function 'end function addObject


========================================

__________________
Devang Ajmera
sr.Software engg.
Xpanxion int pvt ltd
India.
Phone No:-+91-98903-74412(M)
MSN ID : ajmera_devang@hotmail.com
yahoo   : debuajm
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert html to pdf file by using asp.net in c# dey.susanta.kolkata ASP.NET 2.0 Professional 4 September 19th, 2016 07:20 AM
Convert an image into tumbnail (ASP.NET C#) richie86 ASP.NET 1.0 and 1.1 Basics 3 March 8th, 2007 12:37 PM
convert bytes[] into base64binary in asp.net bharat_agarwal XSLT 1 June 20th, 2006 02:04 AM
Convert ASP to ASP. Net jourys ASP.NET 1.0 and 1.1 Basics 3 February 22nd, 2006 08:11 AM
Convert ASP web application to ASP.NET Steve777 ASP.NET 1.0 and 1.1 Basics 3 June 2nd, 2005 07:26 AM



All times are GMT -4. The time now is 10:02 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.