|
Don't use VBSCript at all, because it only runs in IE. Use javascript.
As you obviously can't work out how to use google, here is the search:
http://www.google.com.au/search?sourceid=navclient&ie=UTF-8&rlz=1T4ADBS_enAU225AU226&q=vbscript+head+body+html[^]
which gave me this page:
http://msdn2.microsoft.com/en-us/library/3945y0f9.aspx[^]
Which says:
"You can use SCRIPT blocks anywhere in an HTML page. You can put them in both the BODY and HEAD sections. However, you will probably want to put all general-purpose scripting code in the HEAD section in order to keep all the code together. Keeping your code in the HEAD section ensures that all code is read and decoded before it is called from within the BODY section.
One notable exception to this rule is that you may want to provide inline scripting code within forms to respond to the events of objects in your form. For example, you can embed scripting code to respond to a button click in a form: "
Have you even looked at your book yet ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello sir,
i searched in the articles, as these minute things , don't lie in the books , that's y i asked it here.
how precisely , u elaborated this topic.
Thanks....
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
OK, well, I found it with google in < 20 seconds.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi
i have used From tag in Content Page ..and try to Retrive From Tag using request.From .but it gives me null ref error
Jintal Patel
|
|
|
|
|
Ok, Why do you using form tag in content page. Because master page using reason is change the dinamic area in a form. Actually you have one form.
Best Regards...
|
|
|
|
|
how to create manu control in asp.net(1.0)?
advance thanks.
|
|
|
|
|
ps.srinivasan wrote: manu
Menu
ps.srinivasan wrote: how to create manu control in asp.net(1.0)?
Have the Menu Items (Text and Link) in a XML File. Use Hyperlink in Repeater Control to Build the Menu. (Hint:- Bind the XML File contents (Text and Link) to the Hyperlink Control's Text and NavigateURL Property).
Regards - J O H N -
|
|
|
|
|
wohhhhhh
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
From Datatable How to bind a particular column to arraylist...,
Advance Thanks,
Regards,
Magi
|
|
|
|
|
create object of ArrayList and add that column in arraylist
for example
ArrayList arr=new ArrayList();
foreach(DataRow dr in DataSet.Table[0].Rows)
{
arr.Add(dr["ColumnName"].ToString());
}
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi Pathan Thanks For ur reply...,
Now another probs,
In that dataset column i have some repeated text are there...,
I dont want repeat the same string...,
Suppose have the dataset column :
Line1
Line1
Line2
Line2
In that I want to bind only ones that string...,
How to do that...,
Ex:
Line1
Line2
Regards,
Magi
|
|
|
|
|
So try following code
if(!arr.Contains(dr["ColumnName"].ToString()))
{
arr.Add(dr["ColumnName"].ToString())
}
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Thanks Lot...,
Regards,
Magi
|
|
|
|
|
Magh_M wrote: Thanks Lot...,
Welcome
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hello Everyone,
I've to design a datagrid with a window on hovering.
Below i'm giving the URL of the site as i want to do .
please have a look at my prob............
http://www.propertyvertical.com/simple_search_new.asp?for=1&city_id=CHD
|
|
|
|
|
I Think you have created an infinitive loop in populating datagrid. I Cant help you if i don't have enought information ( Code snipset woud also help)
|
|
|
|
|
when iam data to an html text box its coming in a single line but i want this to come in multiple line how it is posssible.
|
|
|
|
|
use html textarea control instead of input textbox
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi,
I have a CheckBox1 in the Header Template of the DataList. and other checkboxes in the item and alternate template.. What i want to do is, When i select/deselect the CheckBox1 (header template), All other CheckBoxes in (item and alternate template) should select/unselect correspondingly.
I use Div inside all the templates instead of Tables. The problem is, I am not able to capture any of the Event of CheckBox1..
Any Suggestions plz..
Regards
mukul
|
|
|
|
|
how should i call my javascript function when the page is of master type.i mean the javascript code is under the content tag.
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript" language="javascript" >
function abc()
{
if(confirm('ok'))
{
}
}
</script>
</content>i mean there is no body tag(because of master type page).hpow should i call the abc() function on browser closing
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
-- modified at 2:04 Saturday 3rd November, 2007
|
|
|
|
|
But master page has a body tag.You can call in master page.
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
i have 6 aspx page and a master page , all the pages have paster page property.i don;t want to fire the event on all page closing(if i wrie the onunload function on the ody tag of the measter page, it will fire on every form closing).only on a particular page i want to display the messagebox.how should i do that.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
I have found out one solution from asp.net forum so try out this
in master page body tag give it an id and runat server
string attributeKey = "onload";
string attributeValue = "SomeJavaScriptFunctionCall()";
HtmlGenericControl body = (HtmlGenericControl)this.Master.FindControl("BodyTag");
body.Attributes.Add(attributeKey, attributeValue);
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
i have to place this code at form load
and what's the meaning of
string attributeValue = "SomeJavaScriptFunctionCall()";
i think , a function which is defined in the master-page source file , i have to call that function ?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: a function which is defined in the master-page source file , i have to call that function ?
Yes
please don't forget to vote on the post that helped you.
|
|
|
|