Ask a Question related to ASP.NET General, Design and Development.
-
nitc3 #1
microsoft.public.dotnet.framework.aspnet
How to access script tag attributes in asp.net from code behind?
Thanks in advance
Nitc
nitc3 Guest
-
find microsoft.public.dotnet.framework.aspnet.webservices online
This is a monthly reminder that at http://www.ugroups.com/Computers/viewforum.php?f=20 you can easily access... -
microsoft.public.inetServer.asp.general ?
Did something happen to the "microsoft.public.inetServer.asp.general" newsgroup? I haven't seen any new messages for a long time. Using... -
dotnet.framework.webservices ???
Can someone explain to me and other users of the forum why there are 2 newsgroups covering supposedly the same topic area: ... -
Problems with Microsoft.Net Framework SDK
I recently installed Microsoft.Net Framework SDK on my W2000 server because I wanted to run some ASP.NET Application, now I can run aspx pages from... -
Can't install Microsoft Framework
I have XP Professional. I want to install Visual Studio.net. But when trying to install Microsoft framework, it failed though I have installed IIS.... -
Natty Gur #2
Re: microsoft.public.dotnet.framework.aspnet
If i get you right, By accessing properties.
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377
Know the overall picture
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Natty Gur Guest
-
nitc3 #3
Re: microsoft.public.dotnet.framework.aspnet
Let me rephrase my question.
If you want to add <script language="javascript" src="/aspnet/scripts.js"></script> tag from the code behind page then how would you do it?
For eg. If you want to add link tag you can use this.LinkTag.Attributes["href"] = "Local/Styles/Style.css";
Thanks
Nitc
"Natty Gur" <natty@dao2com.com> wrote in message news:umyyQi5ODHA.2244@TK2MSFTNGP11.phx.gbl...> If i get you right, By accessing properties.
>
> Natty Gur, CTO
> Dao2Com Ltd.
> 28th Baruch Hirsch st. Bnei-Brak
> Israel , 51114
>
> Phone Numbers:
> Office: +972-(0)3-5786668
> Fax: +972-(0)3-5703475
> Mobile: +972-(0)58-888377
>
> Know the overall picture
>
>
> *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
> Don't just participate in USENET...get rewarded for it!nitc3 Guest
-
Natty Gur #4
Re: microsoft.public.dotnet.framework.aspnet
RegisterClientSideScriptBlock("BlockID","<script language="javascript"
src="/aspnet/scripts.js"></script>");
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377
Know the overall picture
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Natty Gur Guest
-
nitc3 #5
Re: microsoft.public.dotnet.framework.aspnet
Natty,
Had to make slight modifications and it worked!
The actual problem was if you do server.transfer to a page which is having an asp.net validations control the WebUIvalidations.js is not loaded some times and it displays an error stating to reinstall the js file by running aspnet_regiis -c command.
The possible solution for this problem is add this code from where you are performing server.transfer.
//ASP.NET bug fix which causes script file not to bind with page
string sEnvVersion=Environment.Version.ToString();
//From 1.0.3705.288 To 1_0_3705_288
sEnvVersion = Regex.Replace(sEnvVersion,"[.]","_");
//Register the client script
RegisterClientScriptBlock("BlockID","<script language=\"javascript\" src=\"/aspnet_client/system_web/"+sEnvVersion+"/WebUIValidation.js\"></script>");
Cheers
nitc3
"Natty Gur" <natty@dao2com.com> wrote in message news:#vFBO26ODHA.3768@tk2msftngp13.phx.gbl...> RegisterClientSideScriptBlock("BlockID","<script language="javascript"
> src="/aspnet/scripts.js"></script>");
>
> Natty Gur, CTO
> Dao2Com Ltd.
> 28th Baruch Hirsch st. Bnei-Brak
> Israel , 51114
>
> Phone Numbers:
> Office: +972-(0)3-5786668
> Fax: +972-(0)3-5703475
> Mobile: +972-(0)58-888377
>
> Know the overall picture
>
>
> *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
> Don't just participate in USENET...get rewarded for it!nitc3 Guest



Reply With Quote

