Hello and welcome to CertForums.co.uk, here we host free active certification forums with links to the best free resources for Microsoft's MCSA MCSE MCDBA Cisco's CCNA CCDA and CCNP, and CompTIA's A+ Network+ i-NET+ and Security+ certifications in the UK. If you wish to post or use other advanced features you will need to register first. Registration is absolutely free and takes only a few minutes to complete so sign up today!

If you have any problems with the registration process or your account login, please contact support

Go Back   CertForums > Computing Support Forums > Programming & Scripting
Home Forums Register Search Today's Posts Mark Forums Read

request.mappath

Post New ThreadReply
 
Thread Tools Display Modes
  #1  
Old 06-Jan-2008, 08:52 PM
mridu_kr mridu_kr is offline
New Member
Posts: 17
Points: 0 mridu_kr has no points
Power: 2
None
Join Date: 02 Jan 2008
request.mappath

what is the difference between server.mappath and request.mappath?

 
Reply With Quote
  #2  
Old 06-Jan-2008, 09:15 PM
zebulebu's Avatar
zebulebu zebulebu is offline
Lifetime Member
Posts: 1,813
Points: 4621 zebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 points
Power: 68
None
Join Date: 07 Aug 2006
Location: Croydon - arsehole of the universe
Age: 34
Certifications: A few
WIP: NCDA, VCP
Dude

Second link in a basic Google search:

http://www.tech-archive.net/Archive/.../msg00767.html


Alright, so we we're going to plug up that hole?
Yeah, we can get it done tomorrow if price is no object...
yeeeuuuiiiyyyueee...
We'll get estimates.
Get estimates, yeah huh huh huh



My crappy youtube vids

Last edited by zebulebu : 06-Jan-2008 at 09:17 PM.
 
Reply With Quote
  #3  
Old 07-Jan-2008, 02:51 PM
mridu_kr mridu_kr is offline
New Member
Posts: 17
Points: 0 mridu_kr has no points
Power: 2
None
Join Date: 02 Jan 2008
thanks a lot.

 
Reply With Quote
  #4  
Old 12-Jan-2008, 05:36 AM
mridu_kr mridu_kr is offline
New Member
Posts: 17
Points: 0 mridu_kr has no points
Power: 2
None
Join Date: 02 Jan 2008
if they are same, then y dont they have a single name?

y use two names when the result is same?

 
Reply With Quote
  #5  
Old 12-Jan-2008, 09:16 AM
Fergal1982's Avatar
Fergal1982 Fergal1982 is offline CertForums News Posting Member
Their's not to reason why
Posts: 2,962
Points: 4417 Fergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 points
Power: 81
None
Join Date: 04 May 2004
Location: Aberdeen, UK
Age: 25
Certifications: ITIL Foundation
WIP: 70-536,70-294,(A+), Procastination+
Does it really matter? There are various reasons why it could be. For a start, one of them could be deprecated in favour of the other (much like msgbox versus messagebox in vb.net), or it could be that at one time they referred to something slightly different, but have now converged to have the same definition.

The important thing is that the result is the same, so which you use is down to personal preference.

Edit: In fact, its exactly like the difference between:
System.IO.File.Exists("C:\test.txt")

and

My.Computer.FileSystem.FileExists("C:\test.txt")

There isnt any difference, its just a different way of getting the same information. Its just a shortcut to get the same information. Rather than include two separate chunks of code in the framework, they have simply set one or the methods to point to the other, meaning that if they need to modify the method, they just do it in one place.

In personal programming, consider this:

Code:
Private Sub mysub()
        MessageBox.Show("The current time is " & Now.ToString)
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        mysub()
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        mysub()
    End Sub
You have created a single sub that returns the current time, but you have two buttons that need to perform the same action. I could have put the code into each of the click events individually, but instead I chose to write a third sub, and have the click events call that third sub. If I ever need to expand the functionality of the sub, I Only have to change it in one place.

the .mappath is essentially the same thing.


"Im Nerdy in the extreme and whiter than sour cream"


ObsidianPhoenix - my development blog




Last edited by Fergal1982 : 12-Jan-2008 at 09:56 AM.
 
Reply With Quote
  #6  
Old 09-Apr-2008, 07:22 PM
mridu_kr mridu_kr is offline
New Member
Posts: 17
Points: 0 mridu_kr has no points
Power: 2
None
Join Date: 02 Jan 2008
thank you for yr time n yr reply.

 
Reply With Quote
Post New ThreadReply Spread this thread: Submit this thread to digg Submit this thread to del.icio.us


Go Back   CertForums > Computing Support Forums > Programming & Scripting


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 05:15 PM.

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
CertForums.co.uk (C) copyright 2003-2007 All Rights Reserved. Content published on CertForums.co.uk requires permission for reprint.
Hosted by Lunarpages