Click here to Skip to main content
15,917,060 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
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 
Vicky, this sounds bizzare... although I had issues too when I would point to a javascript file instead of embedding it within the HTML. If you only want an alert box, then do this:

In your child page, add the following line within the Page_Load event:
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
  ...<br />
<br />
   if (!Page.IsPostBack) //executes only during the initial load<br />
   {<br />
      this.Button1.Attributes.Add("onclick", "alert('any message can go here...');");<br />
   }<br />
}


This would be a simple way to do alert. Try and see if it works, if not, send your source code to me NightHawk13@hotmail.com (if you feel comfortable doing so) and I will try to correct your code.

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
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 
Questionpaging Pin
ravikiranreddydharmannagari24-Nov-06 1:47
ravikiranreddydharmannagari24-Nov-06 1:47 
AnswerRe: paging Pin
Guffa24-Nov-06 2:19
Guffa24-Nov-06 2:19 
AnswerRe: paging Pin
sam L25-Nov-06 21:02
sam L25-Nov-06 21:02 
QuestionDropdown list problem Pin
Imran Khan Pathan24-Nov-06 1:01
Imran Khan Pathan24-Nov-06 1:01 
AnswerRe: Dropdown list problem Pin
RaviJJain24-Nov-06 1:43
RaviJJain24-Nov-06 1:43 
GeneralRe: Dropdown list problem Pin
Imran Khan Pathan24-Nov-06 2:15
Imran Khan Pathan24-Nov-06 2:15 

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.