Click here to Skip to main content
15,906,463 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionMaster Page Pin
senthilsstil19-Dec-07 18:21
senthilsstil19-Dec-07 18:21 
GeneralRe: Master Page Pin
_AK_19-Dec-07 18:44
_AK_19-Dec-07 18:44 
GeneralOpening different files from the browser Pin
Anuradha61219-Dec-07 17:55
Anuradha61219-Dec-07 17:55 
GeneralRe: Opening different files from the browser Pin
N a v a n e e t h19-Dec-07 19:57
N a v a n e e t h19-Dec-07 19:57 
GeneralRe: Opening different files from the browser Pin
Anuradha61219-Dec-07 20:10
Anuradha61219-Dec-07 20:10 
GeneralRe: Opening different files from the browser Pin
N a v a n e e t h19-Dec-07 20:21
N a v a n e e t h19-Dec-07 20:21 
QuestionHow to call a javascript function from App_Code class [modified] Pin
Niya19-Dec-07 17:39
Niya19-Dec-07 17:39 
GeneralRe: How to call a javascript function from App_Code class Pin
N a v a n e e t h19-Dec-07 20:14
N a v a n e e t h19-Dec-07 20:14 
Niya wrote:
How can i call a javascript function from App_Code class.


You can't call a JS function from app_code. JS works on client and classes will be executed on server.

Niya wrote:
i need to pass the navigate URL string to a javascript code.
i dont know where the javascript function is to write because in App_Code there is no aspx file


You can make use of HTTPContext class. It provides static methods to get access to the current page object. Using that you can give RegisterClientScript() which registers a client script to the current page. See the following code.
System.Web.UI.Page p = (System.Web.UI.Page)HttpContext.Current.CurrentHandler;
p.RegisterClientScriptBlock("JSName", "JSScript");


All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

My Website | Ask smart questions


GeneralRe: How to call a javascript function from App_Code class Pin
Niya19-Dec-07 23:29
Niya19-Dec-07 23:29 
Questionhow to call a server side sub procedure through a javascript function Pin
jagan12319-Dec-07 17:37
jagan12319-Dec-07 17:37 
AnswerRe: how to call a server side sub procedure through a javascript function Pin
_AK_19-Dec-07 19:08
_AK_19-Dec-07 19:08 
GeneralChecking pbm in checkboxlist when we check the checkbox in grid Pin
SreejithAchutan19-Dec-07 17:09
SreejithAchutan19-Dec-07 17:09 
GeneralObtaining the Request Object for a Web Service Pin
Skippums19-Dec-07 13:34
Skippums19-Dec-07 13:34 
AnswerRe: Obtaining the Request Object for a Web Service Pin
Skippums20-Dec-07 8:50
Skippums20-Dec-07 8:50 
GeneralAccessing Control from Master Page Pin
DotNetXenon19-Dec-07 10:04
DotNetXenon19-Dec-07 10:04 
GeneralRe: Accessing Control from Master Page Pin
pmarfleet19-Dec-07 10:55
pmarfleet19-Dec-07 10:55 
GeneralProblem Calling Web Service From Production Environment Pin
AdamNThompson19-Dec-07 10:01
AdamNThompson19-Dec-07 10:01 
GeneralTransparent GIFs Pin
Monin D.19-Dec-07 9:12
Monin D.19-Dec-07 9:12 
GeneralLinq Query to sort in Column-Header in GridView Pin
Terppe19-Dec-07 5:59
Terppe19-Dec-07 5:59 
Questionhow to convert .aspx page to .pdf document in asp.net [modified] Pin
gopal_Pandey19-Dec-07 4:12
gopal_Pandey19-Dec-07 4:12 
QuestionProblem With RegisterClientScriptResource Pin
scorpion_man198219-Dec-07 3:58
scorpion_man198219-Dec-07 3:58 
GeneralRe: Problem With RegisterClientScriptResource Pin
ToddHileHoffer19-Dec-07 4:44
ToddHileHoffer19-Dec-07 4:44 
GeneralRe: Problem With RegisterClientScriptResource Pin
scorpion_man198219-Dec-07 9:46
scorpion_man198219-Dec-07 9:46 
GeneralRe: Problem With RegisterClientScriptResource Pin
ToddHileHoffer20-Dec-07 1:22
ToddHileHoffer20-Dec-07 1:22 
GeneralGC.Collect question Pin
V.19-Dec-07 3:45
professionalV.19-Dec-07 3:45 

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.