Hi all,
At the bottom is the head section of my aspx page. I want to set the src prop of the script at run time.
src="Scripts/iphonenavIE.js"
or
src="Scripts/iphonenavSafari.js"
If I add an ID and RUNAT props I get tons of unrelated errors on build and intellisense doesn't recognize the object. I'm using Web Application and cannot access the designer pages.
Can anyone tell me what I'm missing here???
I've tried
BTW it works with links.... but not scripts!
CODE BEHIND
At the bottom is the head section of my aspx page. I want to set the src prop of the script at run time.
src="Scripts/iphonenavIE.js"
or
src="Scripts/iphonenavSafari.js"
If I add an ID and RUNAT props I get tons of unrelated errors on build and intellisense doesn't recognize the object. I'm using Web Application and cannot access the designer pages.
Can anyone tell me what I'm missing here???
I've tried
Code:
IF .... Then
ClientScript.RegisterClientScriptBlock(Me.GetType(), "Navigation", "<script language='javascript' src='Scripts/iphonenavIE.js'/>")
Else
ClientScript.RegisterClientScriptBlock(Me.GetType(), "Navigation", "<script language='javascript' src='Scripts/iphonenavIE.js'/>")
End If
BTW it works with links.... but not scripts!
Code:
<link id="linkStyle" runat="server" rel="stylesheet" type="text/css" />
Code:
linkStyle.Attributes.Add("href", clsUtility.xReturnStyle())
Code:
<head>
<title>iPhone Navigation</title>
<link id="linkStyle" runat="server" rel="stylesheet" type="text/css" />
<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
<style type="text/css" media="screen">@import "Style/iPhoneNav/iphonenav.css";</style>
<script type="text/javascript" src="Scripts/iphonenavIE.js"></script>
</head>