Click here to Skip to main content
15,911,646 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Removing GridView columns at runtime? Pin
SABhatti12-Mar-07 7:54
SABhatti12-Mar-07 7:54 
AnswerRe: Removing GridView columns at runtime? Pin
Rhys Gravell12-Mar-07 6:46
professionalRhys Gravell12-Mar-07 6:46 
Questionclose modal dialouge box Pin
yesu prakash12-Mar-07 4:46
yesu prakash12-Mar-07 4:46 
AnswerRe: close modal dialouge box Pin
SABhatti12-Mar-07 5:24
SABhatti12-Mar-07 5:24 
QuestionLogin Error Pin
reddyamar_uk12-Mar-07 4:33
reddyamar_uk12-Mar-07 4:33 
AnswerRe: Login Error Pin
badgrs12-Mar-07 5:48
badgrs12-Mar-07 5:48 
AnswerRe: Login Error [modified] Pin
RichardGrimmer12-Mar-07 6:48
RichardGrimmer12-Mar-07 6:48 
QuestionRetrieving Full URL from a relative url Pin
dabs12-Mar-07 3:20
dabs12-Mar-07 3:20 
Hi,

I have a web service that must return a URL as a return value from one of its requests. I want this URL to be full, i.e. it should include the same protocol (http or https), the same server name/port name and possibly subdirectory as the URL that was used to call this particular webservice.

Basically, what I would like to achieve is for the Webservice to run code like this:

String strFullUrl = RelativeUrlToFullUrl( String.Format( "~/SomeAspxPage.aspx?param1={0}", param ) );

I initially thought that Page.ResolveUrl would do that for me. However, I don't have access to a Page object within a Web Service, but apparently a System.Web.UI.WebControls.Image also contains a ResolveUrl method. Unfortunately, it only returns a URL relative to the root, but does neither contain the name of the server running the web application, nor the protocol.

Is there a function somewhere in ASP.NET that will do this for me? Doing this on the client side is probably possible, but is going to be less elegant so I would prefer if the webservice could handle this completely.

Regards,
Daníel



Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!

AnswerRe: Retrieving Full URL from a relative url Pin
Walter_H12-Mar-07 4:26
Walter_H12-Mar-07 4:26 
QuestionUpdating GridView row bound to ObjectDataSource Pin
mcs13012-Mar-07 3:47
mcs13012-Mar-07 3:47 
AnswerRe: Updating GridView row bound to ObjectDataSource Pin
mcs13012-Mar-07 16:52
mcs13012-Mar-07 16:52 
QuestionCan't Execute My content page Pin
Waheed AL Barghouthi12-Mar-07 3:46
Waheed AL Barghouthi12-Mar-07 3:46 
AnswerRe: Can't Execute My content page Pin
Imran Khan Pathan12-Mar-07 3:57
Imran Khan Pathan12-Mar-07 3:57 
GeneralRe: Can't Execute My content page Pin
Waheed AL Barghouthi12-Mar-07 6:28
Waheed AL Barghouthi12-Mar-07 6:28 
AnswerRe: Can't Execute My content page Pin
szukuro12-Mar-07 4:56
szukuro12-Mar-07 4:56 
QuestionCheckBox List Pin
w13RTH70Lo12-Mar-07 3:32
w13RTH70Lo12-Mar-07 3:32 
AnswerRe: CheckBox List Pin
SABhatti12-Mar-07 3:36
SABhatti12-Mar-07 3:36 
AnswerRe: CheckBox List Pin
Imran Khan Pathan12-Mar-07 3:41
Imran Khan Pathan12-Mar-07 3:41 
AnswerRe: CheckBox List Pin
postmaster@programmingknowledge.com12-Mar-07 4:28
postmaster@programmingknowledge.com12-Mar-07 4:28 
QuestionText Validation Pin
Wajihs12-Mar-07 3:15
Wajihs12-Mar-07 3:15 
AnswerRe: Text Validation Pin
SABhatti12-Mar-07 3:21
SABhatti12-Mar-07 3:21 
AnswerRe: Text Validation Pin
Spunky Coder12-Mar-07 3:31
Spunky Coder12-Mar-07 3:31 
QuestionAJAX Problem (paging, sorting, editing) [modified] Pin
SABhatti12-Mar-07 3:13
SABhatti12-Mar-07 3:13 
AnswerRe: AJAX Problem (paging, sorting, editing) Pin
badgrs12-Mar-07 5:45
badgrs12-Mar-07 5:45 
GeneralRe: AJAX Problem (paging, sorting, editing) Pin
SABhatti12-Mar-07 5:50
SABhatti12-Mar-07 5:50 

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.