|
Hi,
I have a tab strip (telerik), with 3 tabs. Each tab strip opens a separate Web Control.
When i add javascript to first control's (pageload) on the first tab, the javascript works but when i add it in second or 3rd tab (user control page load),javascript doesnot render to page. (i cant see it in ViewSource)
Please note that i cannot add javascript in the designer for page so am adding the script at runtime on page load.
The javascript also works when added in Parent Page. It only doesnt work in 2nd,3rd tab controls. It starts working from 3rd tab when added on parent or first tab control. (and i am not allowed to add anything outside this 3rd tab control)
My code for script is
dim script as string = "<script language=""javascript""> function Check(){alert('hello');}</script>"
Page.ClientScript.RegisterClientScriptBlock(Me.GetType(),"mycustomScript",script,false)
Also i have tried RegisterStartupScript. The controls contains Ajax (RadControls) and script manager is added to parent page.The Manager Proxy is added to each page separately.
Please provide help in this regard
Best Regards
haseeb
|
|
|
|
|
Try this
ScriptManager.RegisterStartupScript(this, GetType(),
"ServerControlScript", script, true);
|
|
|
|
|
Use scriptmanager to register the script,It is required when we use ajax on the page.
Cheers!!
Brij
|
|
|
|
|
ok sorry i thought he used rad control with the scriptmanager control of ajax toolkist
|
|
|
|
|
hi, thanx for ur reply... if u mean to use something like this
dim cs as scriptmanager = page.clientscript
cs.RegisterClientScript(args)
then this also doesn't work. otherwise can u please provide a sample code...
Thanks ,
|
|
|
|
|
When we use ajax on our page a scriptmanager class is found on the aspx.cs page and then we use this class to register the script.The code will be like below.
ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), this.ClientID, "ShowMessage();", true);
Cheers!!
Brij
|
|
|
|
|
Hi all
I am working on a asp.net application. There is a requirement to create reports. I am using SQL server 2008. What is the best solution, RDL or RDLC?
Please advice
Thanks in advance
Prosanta
|
|
|
|
|
Prosanta Kundu online wrote: I am working on a asp.net application
If it is asp.net application
Use RDLC instead of RDl..! and present the reports in report viewer..!
If you want to use only reports then use rdl files and display it thr reportserver
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
RDL files creation is through SQL 2005->Report Designer and RDLC files creation is through VS 2005->Report Designer
also RDL and RDLC formats have the same XML schema but in RDLC files, some values (Query Text) are allowed to be empty, which means that they are not immediately ready to be published to a Report Server. The missing values can be entered by opening the RDLC file using the SQL Server 2005 version of Report Designer.......
thats what i think!!!
|
|
|
|
|
Archana,India wrote: RDL files creation is through SQL 2005->Report Designer and RDLC files creation is through VS 2005->Report Designer
Yes You are correct..!
After This I didnt Get it..!
I created Both Types of applictions..!
I got very Good help from this forum..!
http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/threads[^]
Archana,India wrote: The missing values can be entered by opening the RDLC file using the SQL Server 2005 version of Report Designe
I think You are talking abt parameters they can be left blank in any type of the file ..!
What exactly You are trying to develop..!
In rdlc files u need to display the files using reportviewer control ..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Respected,
Below is my code :
If Session("DataTableForPrint") IsNot Nothing Then
Dim st As String = "<script language='javascript'>" & _
"window.open(Report_fees_Collection.aspx)" & _
"</script>"
Page.ClientScript.RegisterStartupScript(Me.GetType(), "MyScript", st, True)
It not work please help me .
thanks
|
|
|
|
|
|
|
if you want to give true means no need to add script tag in string
|
|
|
|
|
Dear All,
I am searching for oops + asp.net web application on this site so that i can implement oops concept in my asp.net web project. please help me to send some links.
Thanks in advance
Yrishi
|
|
|
|
|
yrishi wrote: I am searching for oops + asp.net web application
This is For your project or wat?
if Yes..!
How can u search here..!build an asp.net application and implement oops concept..!You are in the learning stage so You have to work..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
|
Mr.sashidhar, I think while replying there is no need to cut and paste same line which is posted by user...(like I am searching for oops + asp.net web application) if you are interested to reply then reply it otherwise no need to do like that.
Think on this and correct me if i am wrong.
|
|
|
|
|
Hi,
currently i m using asp.net (c#) with sql server 2000. in database i have declared a column datatype as nvarchar(2000) and in frontend there is an "COMMENTS" text box where user will type and save the value. but if they trying to save any texts like HTML TAGS its getting error [ in this codeproject also i tried to put some sample tags but i cant ]. do i have any way to save such HTML format tags?
help me - Karan
|
|
|
|
|
|
hi i am user of asp.net using c# and my database is in sql express which is inbuilt with .net i would like to just know how to back up and restore database not using code.
thnaks
|
|
|
|
|
if you mean by not using code do you mean C# or SQL Code
|
|
|
|
|
I have CookieContainer, which contained some cookies. How to get cookies from CookieContainer?
|
|
|
|
|
|
Sir,
How can I do encryption using cryptography in asp.net.I searched google and got solution for 16 bit and 32 bit but I want high level encryption like 64 bit and 128 bit.Could any one know this pls help me?
Thanks
Denny
|
|
|
|