Click here to Skip to main content
15,885,278 members

Yajjoj - Professional Profile



Summary

    Blog RSS
60
Authority
-33
Debator
4
Editor
0
Enquirer
81
Organiser
308
Participant
0
Author
non

Reputation

Weekly Data. Recent events may not appear immediately. For information on Reputation please see the FAQ.

Privileges

Members need to achieve at least one of the given member levels in the given reputation categories in order to perform a given action. For example, to store personal files in your account area you will need to achieve Platinum level in either the Author or Authority category. The "If Owner" column means that owners of an item automatically have the privilege. The member types column lists member types who gain the privilege regardless of their reputation level.

ActionAuthorAuthorityDebatorEditorEnquirerOrganiserParticipantIf OwnerMember Types
Have no restrictions on voting frequencysilversilversilversilver
Bypass spam checks when posting contentsilversilversilversilversilversilvergoldSubEditor, Mentor, Protector, Editor
Store personal files in your account areaplatinumplatinumSubEditor, Editor
Have live hyperlinks in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Have the ability to include a biography in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Edit a Question in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Edit an Answer in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Delete a Question in Q&AYesSubEditor, Protector, Editor
Delete an Answer in Q&AYesSubEditor, Protector, Editor
Report an ArticlesilversilversilversilverSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending ArticlegoldgoldgoldgoldSubEditor, Mentor, Protector, Editor
Edit other members' articlesSubEditor, Protector, Editor
Create an article without requiring moderationplatinumSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending QuestionProtector
Approve/Disapprove a pending AnswerProtector
Report a forum messagesilversilverbronzeProtector, Editor
Approve/Disapprove a pending Forum MessageProtector
Have the ability to send direct emails to members in the forumsProtector
Create a new tagsilversilversilversilver
Modify a tagsilversilversilversilver

Actions with a green tick can be performed by this member.


 
Pinnedhow to fix the path??? [modified] Pin
Yajjoj4-Sep-10 1:32
Yajjoj4-Sep-10 1:32 
hi all

my website is in the root directory witch is "/www.mywebsite.com/web/content/" where no problem with the path in this page

because I am using this



Dim appPath As String = HttpContext.Current.Request.ApplicationPath<br />
        Dim directory As String = appPath & "/upload/" & Left(TableName, 2) & "/"




to get the path and it's working very well.

but when i create a new sub folder and copy some pages from the root directory into the sub folder

my Images can't be displayed because the path has been change.

this it the link from the page in the root directory:

"http://www.mywebsite.com/upload/VE/TN/6/VEListing-66-Photo1.jpg?ts=9/4/2010 1:45:17 AM"



and this is the link from the page in the sub folder:

"http://www.mywebsite.com/ar/upload/VE/TN/6/VEListing-66-Photo1.jpg?ts=9/4/2010 1:45:17 AM"



so how can I make the link in the sub folder like this:

"http://www.mywebsite.com/upload/VE/TN/6/VEListing-66-Photo1.jpg?ts=9/4/2010 1:45:17 AM"




Ok let me explain more about this on:

first is I have two Directories and both of them has been set as Application Directories

as you can see here in the photo:
the photo is here

the /ar sub folder is an application and it's a copy of the original one in the Content directory....ok?

in the (ar/App_code) there is a class with the name "MGImages.vp" and course it's a copy of the origenal one in the (Content/App_code) .

this class duty is to display photos from the Upload sub folder.

this is the code witch will save the damn path of the photo


view plaincopy to clipboardprint?
Dim appPath As String = HttpContext.Current.Request.ApplicationPath
Dim directory As String = appPath & "/upload/" & Left(TableName, 2) & "/"
If ImageType.ToUpper = "TN" Then
directory += "TN/"
ElseIf ImageType.ToUpper = "LG" Then
directory += "LG/"
Else
directory += "OT/"
End If
this class is working very well in the Content directory because this will give me the right path:

"http://www.mywebsite.com/upload/VE/TN/6/VEListing-66-Photo1.jpg?ts=9/4/2010 1:45:17 AM"

Note: all Photos should be saved in the (Content/Upload) Folder for both directories "Content/ar"



but in the ar directory it will give me the wrong path :

"http://www.mywebsite.com/ar/upload/VE/TN/6/VEListing-66-Photo1.jpg?ts=9/4/2010 1:45:17 AM"

where the goal is to make the path like this one :

"http://www.mywebsite.com/upload/VE/TN/6/VEListing-66-Photo1.jpg?ts=9/4/2010 1:45:17 AM"



I want it to display the photos from Content/upload not from the content/ar/upload

so can any body help me with this????!!



thank you all
al hajjaj
modified on Monday, October 11, 2010 3:48 AM

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.