Click here to Skip to main content
15,888,803 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Obtaining the total rows of a gridview Pin
HRiazi19-Aug-06 1:01
HRiazi19-Aug-06 1:01 
GeneralThanks Hadi Pin
Jay_se20-Aug-06 18:25
Jay_se20-Aug-06 18:25 
Questionhelp wit dropdonwbox sql binding Pin
neodeaths18-Aug-06 22:22
neodeaths18-Aug-06 22:22 
AnswerRe: help wit dropdonwbox sql binding [modified] Pin
coolestCoder18-Aug-06 23:12
coolestCoder18-Aug-06 23:12 
AnswerRe: help wit dropdonwbox sql binding Pin
postmaster@programmingknowledge.com19-Aug-06 2:22
postmaster@programmingknowledge.com19-Aug-06 2:22 
GeneralRe: help wit dropdonwbox sql binding Pin
neodeaths19-Aug-06 8:39
neodeaths19-Aug-06 8:39 
QuestionCalling Java function on page load [modified] Pin
DineshSharma18-Aug-06 21:58
DineshSharma18-Aug-06 21:58 
AnswerRe: Calling Java function on page load Pin
Guffa18-Aug-06 22:44
Guffa18-Aug-06 22:44 
Don't write whole sentences in bold. It serves no purpose other than making it harder to read.

What you are using is not Java at all, it's Javascript.

DineshSharma wrote:
this.Attributes.Add("onload", "setObj('Dinesh','Sharma',550,30)"); not working


Standard question #1:
What do you mean by "not working"?


The Page object (that "this" references to) is the page itself, not a control on the page, so you can't add attributes to it. So I assume that the error message is that the object doesn't have any "Attributes" property.

Put an id on the body tag and make it a server tag, so that you can access it from code behind:

<body id="Body" runat="server">

Now you can declare the reference and put the call to the Javascript in the onload event:

protected HtmlGenericControl Body;<br />
<br />
Body.Attributes.Add("onload", "setObj('Dinesh','Sharma',550,30)");



---
b { font-weight: normal; }

GeneralRe: Calling Java function on page load Pin
DineshSharma18-Aug-06 23:46
DineshSharma18-Aug-06 23:46 
QuestionProblem in athuntication on webserver Pin
nabeelkhan18-Aug-06 21:58
nabeelkhan18-Aug-06 21:58 
QuestionSetting Conrol page (.ascx) dynamicly. Pin
NaNg1524118-Aug-06 21:46
NaNg1524118-Aug-06 21:46 
QuestionProblem in using PreviousPage Property [modified] Pin
Jay_se18-Aug-06 21:27
Jay_se18-Aug-06 21:27 
AnswerRe: Problem in using PreviousPage Property Pin
minhpc_bk19-Aug-06 4:00
minhpc_bk19-Aug-06 4:00 
GeneralThank you Pin
Jay_se20-Aug-06 18:06
Jay_se20-Aug-06 18:06 
GeneralRe: Thank you Pin
minhpc_bk21-Aug-06 0:40
minhpc_bk21-Aug-06 0:40 
GeneralThank you Again Pin
Jay_se21-Aug-06 3:08
Jay_se21-Aug-06 3:08 
QuestionSession.sessionID Pin
meghs11118-Aug-06 21:23
meghs11118-Aug-06 21:23 
AnswerRe: Session.sessionID Pin
Coding C#18-Aug-06 21:39
Coding C#18-Aug-06 21:39 
Questioncontext menu using javascript Pin
248912818-Aug-06 20:37
248912818-Aug-06 20:37 
AnswerRe: context menu using javascript Pin
Sathesh Sakthivel18-Aug-06 21:14
Sathesh Sakthivel18-Aug-06 21:14 
QuestionA problem with Cross Page Posting in ASP.NET Webpages Pin
Hussein Madani Ghomi18-Aug-06 20:02
Hussein Madani Ghomi18-Aug-06 20:02 
AnswerRe: A problem with Cross Page Posting in ASP.NET Webpages Pin
Sathesh Sakthivel18-Aug-06 21:21
Sathesh Sakthivel18-Aug-06 21:21 
QuestionHow to validate a textbox inside the datagrid [modified] Pin
kavithapuranik18-Aug-06 19:24
kavithapuranik18-Aug-06 19:24 
AnswerRe: How to validate a textbox inside the datagrid Pin
coolestCoder18-Aug-06 20:09
coolestCoder18-Aug-06 20:09 
QuestionAutosave using Ajax in every 10 sec. Pin
Amit Agarrwal18-Aug-06 18:59
Amit Agarrwal18-Aug-06 18:59 

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.