Click here to Skip to main content
15,918,808 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to get Client ID of div tag in asp.net Pin
anish27patel1-Jul-09 21:20
anish27patel1-Jul-09 21:20 
AnswerRe: How to get Client ID of div tag in asp.net Pin
Abhijit Jana1-Jul-09 21:23
professionalAbhijit Jana1-Jul-09 21:23 
GeneralRe: How to get Client ID of div tag in asp.net Pin
anish27patel1-Jul-09 22:04
anish27patel1-Jul-09 22:04 
AnswerRe: How to get Client ID of div tag in asp.net Pin
Brij1-Jul-09 21:23
mentorBrij1-Jul-09 21:23 
GeneralRe: How to get Client ID of div tag in asp.net Pin
anish27patel1-Jul-09 22:01
anish27patel1-Jul-09 22:01 
GeneralRe: How to get Client ID of div tag in asp.net Pin
Brij1-Jul-09 22:30
mentorBrij1-Jul-09 22:30 
AnswerRe: How to get Client ID of div tag in asp.net Pin
N a v a n e e t h1-Jul-09 22:23
N a v a n e e t h1-Jul-09 22:23 
AnswerRe: How to get Client ID of div tag in asp.net Pin
r a m e s h1-Jul-09 22:27
r a m e s h1-Jul-09 22:27 
You cannot use server side code like document.getElementById('<%=Parent.ClientID%>'); in your external .js file.

Declare a global variable in your page and store the id of div tag in it.
Then refer this variable in the .js file to get the client id.

Declare this variable in your page:

var yourDivId = '<%=Parent.ClientID%>';

Write this code in the .js file to get the above div id

var objDiv = document.getElementById(yourDivId);
QuestionHow to Call javascript function before running server side code.? Pin
rahul.net111-Jul-09 21:12
rahul.net111-Jul-09 21:12 
AnswerRe: How to Call javascript function before running server side code.? Pin
Brij1-Jul-09 21:36
mentorBrij1-Jul-09 21:36 
GeneralRe: How to Call javascript function before running server side code.? Pin
rahul.net111-Jul-09 23:16
rahul.net111-Jul-09 23:16 
Questionmaster page Pin
dotnetmember1-Jul-09 20:53
dotnetmember1-Jul-09 20:53 
AnswerRe: master page Pin
Abhijit Jana1-Jul-09 20:57
professionalAbhijit Jana1-Jul-09 20:57 
AnswerRe: master page Pin
Deepak the Cool1-Jul-09 21:03
Deepak the Cool1-Jul-09 21:03 
QuestionGoogle inner search in website Pin
suzzain1-Jul-09 20:16
suzzain1-Jul-09 20:16 
AnswerRe: Google inner search in website Pin
Abhijit Jana1-Jul-09 20:22
professionalAbhijit Jana1-Jul-09 20:22 
GeneralRe: Google inner search in website Pin
suzzain1-Jul-09 20:28
suzzain1-Jul-09 20:28 
AnswerRe: Google inner search in website Pin
r a m e s h1-Jul-09 20:32
r a m e s h1-Jul-09 20:32 
GeneralRe: Google inner search in website Pin
Abhijit Jana1-Jul-09 20:32
professionalAbhijit Jana1-Jul-09 20:32 
GeneralRe: Google inner search in website Pin
suzzain1-Jul-09 21:01
suzzain1-Jul-09 21:01 
AnswerRe: Google inner search in website Pin
Abhijit Jana1-Jul-09 21:20
professionalAbhijit Jana1-Jul-09 21:20 
GeneralRe: Google inner search in website Pin
suzzain1-Jul-09 21:35
suzzain1-Jul-09 21:35 
GeneralRe: Google inner search in website Pin
Abhijit Jana1-Jul-09 21:40
professionalAbhijit Jana1-Jul-09 21:40 
GeneralRe: Google inner search in website Pin
suzzain1-Jul-09 21:45
suzzain1-Jul-09 21:45 
GeneralRe: Google inner search in website Pin
Abhijit Jana1-Jul-09 22:28
professionalAbhijit Jana1-Jul-09 22:28 

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.