Click here to Skip to main content
15,910,277 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to find application URL while using separate script file in asp.net ? Pin
AspDotNetDev22-Jun-11 11:10
protectorAspDotNetDev22-Jun-11 11:10 
By "script file", I assume you mean JavaScript file. You can't call server-side functions from a JavaScript file. You will have to find a way to pass the URL to the JavaScript. One way would be to pass the URL in via the constructor (you would presumably call the JavaScript constructor from an ASPX page in a script block).

Though, I have found that I don't typically need to pass the URL of web services to the JavaScript if I am calling one of the methods using AJAX. Instead, I can add a service reference to the page's script manager (or in the case of a user control, the script manager proxy), then I can call the web service by name (e.g., ProjectName.UsrRoleService.SomeMethod(someParameter, function (resultData) { alert(resultData); });).

QuestionRemember sort order on paging for Datagrid Pin
vanikanc21-Jun-11 15:34
vanikanc21-Jun-11 15:34 
AnswerRe: Remember sort order on paging for Datagrid Pin
nainakarri21-Jun-11 20:30
nainakarri21-Jun-11 20:30 
QuestionHow to load the Iframe with hidden fields after the page load event Pin
Vimalsoft(Pty) Ltd21-Jun-11 8:24
professionalVimalsoft(Pty) Ltd21-Jun-11 8:24 
QuestionRedirect to UnAuthorized Page in Windows Authentication Pin
antony beula21-Jun-11 2:07
antony beula21-Jun-11 2:07 
AnswerRe: Redirect to UnAuthorized Page in Windows Authentication Pin
Not Active21-Jun-11 2:23
mentorNot Active21-Jun-11 2:23 
GeneralRe: Redirect to UnAuthorized Page in Windows Authentication Pin
antony beula21-Jun-11 2:40
antony beula21-Jun-11 2:40 
QuestionTextbox value doesn't change between postbacks Pin
benams21-Jun-11 1:20
benams21-Jun-11 1:20 
AnswerRe: Textbox value doesn't change between postbacks Pin
mcyogi21-Jun-11 1:37
mcyogi21-Jun-11 1:37 
AnswerRe: Textbox value doesn't change between postbacks Pin
Not Active21-Jun-11 2:26
mentorNot Active21-Jun-11 2:26 
Questionwhat are the configuratiions in the asp.net validation controls? and please give the code to the configurations? Pin
hariprasad.yandrapu20-Jun-11 22:25
hariprasad.yandrapu20-Jun-11 22:25 
AnswerRe: what are the configuratiions in the asp.net validation controls? and please give the code to the configurations? Pin
Not Active21-Jun-11 2:24
mentorNot Active21-Jun-11 2:24 
AnswerRe: what are the configuratiions in the asp.net validation controls? and please give the code to the configurations? Pin
thatraja21-Jun-11 19:38
professionalthatraja21-Jun-11 19:38 
Questionexception: Missing semicolon (;) at end of SQL statement [modified] Pin
benams20-Jun-11 8:32
benams20-Jun-11 8:32 
AnswerRe: exception: Missing semicolon (;) at end of SQL statement Pin
Parwej Ahamad20-Jun-11 8:38
professionalParwej Ahamad20-Jun-11 8:38 
GeneralRe: exception: Missing semicolon (;) at end of SQL statement Pin
benams20-Jun-11 8:41
benams20-Jun-11 8:41 
AnswerRe: exception: Missing semicolon (;) at end of SQL statement Pin
AspDotNetDev20-Jun-11 8:54
protectorAspDotNetDev20-Jun-11 8:54 
GeneralRe: exception: Missing semicolon (;) at end of SQL statement Pin
Parwej Ahamad20-Jun-11 8:55
professionalParwej Ahamad20-Jun-11 8:55 
GeneralRe: exception: Missing semicolon (;) at end of SQL statement Pin
benams20-Jun-11 23:13
benams20-Jun-11 23:13 
GeneralRe: exception: Missing semicolon (;) at end of SQL statement Pin
Parwej Ahamad21-Jun-11 0:26
professionalParwej Ahamad21-Jun-11 0:26 
GeneralRe: exception: Missing semicolon (;) at end of SQL statement Pin
benams21-Jun-11 0:39
benams21-Jun-11 0:39 
QuestionUpdateProgress on upddatepanel triggers Pin
Ali Al Omairi(Abu AlHassan)19-Jun-11 1:37
professionalAli Al Omairi(Abu AlHassan)19-Jun-11 1:37 
AnswerRe: UpdateProgress on upddatepanel triggers Pin
Parwej Ahamad20-Jun-11 8:35
professionalParwej Ahamad20-Jun-11 8:35 
GeneralRe: UpdateProgress on upddatepanel triggers Pin
Ali Al Omairi(Abu AlHassan)21-Jun-11 22:47
professionalAli Al Omairi(Abu AlHassan)21-Jun-11 22:47 
Questionhow to start MVC Pin
somasekhara77718-Jun-11 4:40
somasekhara77718-Jun-11 4:40 

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.