CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 8/4/2007 9:21:31 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 11 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
jwillbe
Asp.Net User
path problem8/4/2007 9:21:31 AM

0/0

hi, i am having prob writing into a xml file, here is the code

maptable.WriteXml("C:\Documents and Settings\user\Desktop\website\Data.xml")

i was unable to write into the xml file when i tried to change the path to  maptable.WriteXml("Data.xml") or ("./Data.xml")

 it only works when i use the full path. has anyone came across the same prob?many thx in advance
 

robert.westerlu
Asp.Net User
Re: path problem8/4/2007 9:57:04 AM

0/0

If you want to get the absolute path, you could use the MapPath method.

In a class inheriting from Page:

string filename = Server.MapPath("~/data.xml");
In a class inheriting from Control or such a thing:
string filename = Page.Server.MapPath("~/data.xml");

In a class that has no access to the Page object:

string filename = HttpContext.Current.Server.MapPath("~/data.xml");
 
 

Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
jwillbe
Asp.Net User
Re: path problem8/4/2007 11:33:01 AM

0/0

   hi, robert , thx for replying, i m a little new to programming, where show i put the piece of code? this is what i did

Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
       
        Dim filePath = HttpContext.Current.Server.Map("~/Data.xml")
        Dim mapid As Integer = GridView2.SelectedRow.Cells(0).Text
        Dim mapData As New eEventTableAdapter
        Dim maptable As New mapData.eEventDataTable
        mapData.FillBy(maptable, mapid)
        maptable.WriteXml(filePath)
End Sub

jwillbe
Asp.Net User
Re: path problem8/5/2007 12:54:25 PM

0/0

anyone?

robert.westerlu
Asp.Net User
Re: path problem8/5/2007 1:36:30 PM

0/0

I'm not really sure what you are asking for now. However, the call above seems to be inside a Page, so you could just go with Server.MapPath("~/data.xml")


Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Integrating Functional and Temporal Domains in Logic Design: The False Path Problem and Its Implications Authors: Patrick C. McGeer, Robert King Brayton, Pages: 212, Published: 1991
Algorithms and Data Structures: 2nd Workshop, WADS '91, Ottawa, Canada, August 14-16, 1991 : Proceedings Authors: Frank Dehne, Jörg-Rüdiger Sack, Nicola Santoro, Pages: 495, Published: 1991
Graph-theoretic Concepts in Computer Science: 27th International Workshop, WG 2001, Boltenhagen, Germany, June 14-16, 2001 : Proceedings Authors: Andreas Brandstädt, Van Bang Le, Pages: 327, Published: 2001
Foundations of Software Technology and Theoretical Computer Science: Eighth Conference, Pune, India, December 21-23, 1988 : Proceedings Authors: Kesav V. Nori, Sanjeev Kumar, Pages: 519, Published: 1988
Recent Advances in Parallel Virtual Machine and Message Passing Interface: 9th European PVM/MPI Users' Group Meeting, Linz, Austria, September 29-October 2, 2002 : Proceedings Authors: Dieter Kranzlmüller, Peter Kacsuk, Jack Dongarra, Jens Volkert, Pages: 462, Published: 2002
Decision Networks Authors: N. A. J. Hastings, J. M. C. Mello, Pages: 196, Published: 1978
A Minimum Path Problem Reconsidered Authors: Carlos Ernesto S. Lindgren, Pages: 26, Published: 1969
Proposed Solution for the Minimum Path Problem Authors: Carlos Ernesto S. Lindgren, Pages: 0, Published: 1967
Graph Theory: A Problem Oriented Approach Authors: Daniel A. Marcus, Pages: 240, Published: 2008

Web:
Shortest path problem - Wikipedia, the free encyclopedia Nov 7, 2008 ... In graph theory, the shortest path problem is the problem of finding a path between two vertices (or nodes) such that the sum of the weights ...
Hamiltonian path problem - Wikipedia, the free encyclopedia Dec 7, 2008 ... In the mathematical field of graph theory the Hamiltonian path problem and the Hamiltonian cycle problem are problems of determining whether ...
Shortest Path Problem -- from Wolfram MathWorld Dec 10, 2008 ... Common algorithms for solving the shortest path problem include the Bellman-Ford algorithm and Dijkstra's algorithm. ...
Aqsis - Forum - General - BOOST Lib Path Problem Aqsis is a Renderman compliant rendering solution.
The rook path problem This problem is also known as the chess/rook.path problem in the rec.puzzle FAQ. Let M(n,m) be the number of paths from one corner to the other corner in ...
single-destination shortest-path problem Definition of single-destination shortest-path problem, possibly with links to more information and implementations.
Path problem - Dev Shed Path problem- Other Programming Languages. Visit Dev Shed to discuss Path problem.
FLV Relative path problem | LongTail Video The problem is the movies will not play at all with a relative path, e.g: flashvars="......file=files/movie1.flv......" They only play if the player and the ...
SSRN-Sensitivity Analysis for Shortest Path Problems and Maximum ... Jan 22, 2004 ... SSRN-Sensitivity Analysis for Shortest Path Problems and Maximum Capacity Path Problems in Undirected Graphs by Ramkumar Ramaswamy, ...
CodeProject: Shortest Path Problem: Dijkstra's Algorithm. Free ... Aug 13, 2007 ... Using Dijkstra's Algorithm for finding shortest path problem; Author: dsdws; Section: Algorithms & Recipes; Chapter: General Programming.

Videos:
Shortest Path Problem The shortest path problem is a zero/one integer programming network problem.
Genome Assemby, Chinese Postman, and Virtual Clusters Google Tech Talk May 11, 2007 ABSTRACT In the first half of the talk I will discuss several algorithmic results affecting whole genome ...
DAH! Path of the Furon - 04 - It's a tutorial. You got a ... Destroy All Humans! Path of the Furon - xbox 360 - Mission 04 - It's a tutorial. You got a problem with that? ***WATCH IN HIGH QUALITY ...
Find the Longest Path - Algorithm Song Longest Path algorithm song sung to the tune of Billy Joel's Longest Time by Daniel Barret. ###### Lyrics ###### Woh, oh-oh-oh Find the ...
The Path to Supreme Bliss (Amolak Sehgal) Who is not looking for happiness in life? Every one is. The only problem is that when the moments of happiness arrive in our lives, they don't ...
Genome Assemby, Chinese Postman, and Virtual Clusters Google Tech Talk May 11, 2007 ABSTRACT In the first half of the talk I will discuss several algorithmic results affecting whole genome assembly ...
Andrew Goldberg. Курс "Алгоритмы на графах". Лекция 01 (01.06 ... An Efficient Point-to–Point Shortest Path Algorithm. We study the point-to–point shortest path problem in a setting where preprocessing is ...
PixieDust Dynamic shortest path solution Illustrates how the PixieDust multi agent system can be used to solve dynamic shortest path problem with chemotactic pixies and a diffusion ...
Mad Marketing Podcast 5: Converting Problems into Product Profits If Hollywood stars get rich leveraging their biggest problems, why can’t you? Instead of running from those puppies (or griping about them), why ...
Path of diver video problem Path of diver video problem




Search This Site:










cannot debug web parts -page on my local machine

just curious really..

master page load

how do i use viewstate in a server control?

using integrated windows authentication and external access

problems when i publish my clubsite at microsofts www.vwdhosting.net service

cannot defrag after vwd installation

unable to debug web app - "duplicate name exists" error

is it a bug? my personalization table was not correctly updated during upgrade.

design opinion

installation of visual web developer express 2008

login setup

ssl for login.aspx only

cross-browser capabilities of the menu control

checking authentication from unsecured page

creating dynamic urls for javascript <script> tags

please tell me i don't have to use a server control!

visual studio 2005 professional and windows 2003 server

web custom control and project time support...please help me!

css skin 2 -0 problem

create stored procedures in vwd

ppc c++ socket question

problem with roles

feature i am looking in dotnetnuke

set profile theme

newbie-vwd2008 and sqlserver 2005

signcode error

dynamicmenuitemstyle doesn't work well together with dynamichoverstyle in menu control

user.identity.isauthenticated works different in iis and casini

v3beta1 clubstarterkit merged with classifieds - up/running in medium trust

 
All Times Are GMT