Click here to Skip to main content
16,012,352 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow to send image with email in asp.net Pin
atulmandilkar24-Nov-06 21:23
atulmandilkar24-Nov-06 21:23 
AnswerRe: how to send image with email in asp.net Pin
Vasudevan Deepak Kumar24-Nov-06 21:36
Vasudevan Deepak Kumar24-Nov-06 21:36 
Questioncreate column of datagrid Pin
ptvce24-Nov-06 19:54
ptvce24-Nov-06 19:54 
AnswerRe: create column of datagrid Pin
iamrashida8325-Nov-06 5:33
iamrashida8325-Nov-06 5:33 
QuestionTrouble in using Master page and javascript ??? Pin
vicky45724-Nov-06 7:49
vicky45724-Nov-06 7:49 
AnswerRe: Trouble in using Master page and javascript ??? Pin
iamrashida8324-Nov-06 9:33
iamrashida8324-Nov-06 9:33 
GeneralRe: Trouble in using Master page and javascript ??? Pin
vicky45725-Nov-06 14:05
vicky45725-Nov-06 14:05 
AnswerRe: Trouble in using Master page and javascript ??? Pin
Grapes-R-Fun24-Nov-06 14:15
Grapes-R-Fun24-Nov-06 14:15 
Hi Vicky!

That approach dowsn't work because during page rendering (i.e. result page from server to client) the names of controls change IF you have created a nested environment. For example, if you have a master page that has ContentPlaceHolder1, and one nested child page displayed through that ContentPlaceHolder1 with a text box control and a button (with their default names) this would be rendered with these id's:

ctl00_ContentPlaceHolder1_TextBox1 (instead of TextBox1)
ctl00_ContentPlaceHolder1_Button1 (instead of Button1)

If you have a nested master page, then the controls would have these id's:

ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder1_TextBox1 (instead of TextBox1)
ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder1_Button1 (instead of Button1)

You can pass those control id's to your javascript, it should work. However, there are other ways of 'programmatically' retrieving the server control's id, but that requires interfacing with ICallbackEventHandler and yada yada yada... I find it best to keep things simple Smile | :)

BTW Vicky, I couldn't see your code! Can you paste it once more so maybe I could be more specific in my answer?

Nila

"...for that, I will need a large cup of coffee and a brand muffin!" -Samantha Bea

GeneralRe: Trouble in using Master page and javascript ??? Pin
vicky45725-Nov-06 14:01
vicky45725-Nov-06 14:01 
GeneralHere is the code ... Pin
vicky45725-Nov-06 14:02
vicky45725-Nov-06 14:02 
GeneralCode again... Pin
vicky45725-Nov-06 14:04
vicky45725-Nov-06 14:04 
GeneralRe: Code again... Pin
Grapes-R-Fun27-Nov-06 4:18
Grapes-R-Fun27-Nov-06 4:18 
GeneralStill having problem... Pin
vicky45727-Nov-06 12:06
vicky45727-Nov-06 12:06 
GeneralRe: Still having problem... Pin
Grapes-R-Fun28-Nov-06 2:26
Grapes-R-Fun28-Nov-06 2:26 
GeneralRe: Trouble in using Master page and javascript ??? Pin
Grapes-R-Fun27-Nov-06 4:09
Grapes-R-Fun27-Nov-06 4:09 
AnswerRe: Trouble in using Master page and javascript ??? Pin
Anshuman Singh24-Nov-06 19:20
Anshuman Singh24-Nov-06 19:20 
AnswerRe: Trouble in using Master page and javascript ??? Pin
ayeleteric24-Nov-06 20:45
ayeleteric24-Nov-06 20:45 
QuestionReport Viewer control Pin
bzrocker24-Nov-06 6:24
bzrocker24-Nov-06 6:24 
QuestionIsPostBack and NotIsPostBack Pin
saravanan0524-Nov-06 5:32
saravanan0524-Nov-06 5:32 
AnswerRe: IsPostBack and NotIsPostBack Pin
Not Active24-Nov-06 5:39
mentorNot Active24-Nov-06 5:39 
AnswerRe: IsPostBack and NotIsPostBack Pin
Britney S. Morales24-Nov-06 11:17
Britney S. Morales24-Nov-06 11:17 
AnswerRe: IsPostBack and NotIsPostBack Pin
GaryWoodfine 24-Nov-06 23:48
professionalGaryWoodfine 24-Nov-06 23:48 
Questionprint wide hmtl Pin
tiagodll24-Nov-06 4:48
tiagodll24-Nov-06 4:48 
AnswerRe: print wide hmtl Pin
Not Active24-Nov-06 5:44
mentorNot Active24-Nov-06 5:44 
AnswerRe: print wide hmtl Pin
Dominic Pettifer24-Nov-06 13:32
Dominic Pettifer24-Nov-06 13:32 

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.