|
Hello Everyone,
I want to embed any music player like Real Player and Window Media Player to run the Audio/Video in this media player ...........
Suggest me the way for this problem...............
|
|
|
|
|
|
I have two questions to ask in this forum
1) How to include java script file in .aspx file?
2) I wrote a following class with a function called JavaScriptFunction. The issue I am facing is when I am using this function to display message, the background of web page was white ie no style sheets were applied to .aspx page and no others controls were displayed. When I click on “ok”, I am coming back to same page.
The code for the JavaScriptFunction is as follows
public static void JavaScriptFunction(string alertmessage)
{
System.Web.HttpContext.Current.Response.Write("");
System.Web.HttpContext.Current.Response.Write("alert('" + alertmessage + "')");
System.Web.HttpContext.Current.Response.Write("");
}
.
Thanks in advance
surya
|
|
|
|
|
1) How to include.....
<script src="path.js" type="text/javascript"></script>
2) I wrote a following
Instead of response.Write ,try this
Page.RegisterStartupScript("p", "<script>alert('" + alertmessage + "');</script>");
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
The way I understand about your problem is that you want to show a page with or without stylesheet dynamically by clicking a button.
In ASP.NET 1.1, you should handle this functionality in base page. There should be one property that allow users to change the path of CSS. In my project, we allows users to change the themes dynamically. Since there is no build-in theme system in ASP.NET 1.1, we handled it in base page.
In ASP.NET 2.0, you can have more than one theme. So, you can change one plain theme to another theme dynamically by changing themeId or Skin ID.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
suryany72 wrote: How to include java script file in .aspx file
Frnd,
between
<title>
<script language="javascript">
//Code of script
</script>
suryany72 wrote: a function called JavaScriptFunction
<title>
<script language="javascript">
function CallMe()
{
alert("Hello World");
return false;
}
</script>
call this function on click of any button
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Hi..
Could any one tell me how to add a variable value(or property value) from codebehind to a function in a javascript file?
I am too late but i will never give up
|
|
|
|
|
Something like that?
button.Attribute.Add("onclick","func('val');");
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Sorry I didn't mean as a parameter for a function.I mean something like the following:
<br />
function donow()<br />
{<br />
var b=ss;
}<br />
And the script file isn't running by clicking a button.it is an ordinal script block in a javascript file.
I am too late but i will never give up
|
|
|
|
|
TheEagle wrote: function donow()
{
var b=ss;//where ss value is set from code behind
}
I don't think it can be done directly.
But you can use server-side hidden field to commute between client-side and server-side.
<input id="Hidden1" type="hidden" runat="server"/>
In Form_load
<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
Hidden1.Value = "13";<br />
}
You can set like that..
In Client-side ~
<script language="javascript" type="text/javascript"><br />
function getvalue(){<br />
var var1 = document.getElementById('Hidden1').value;<br />
}<br />
</script><br />
So, Even thought you can't set like that "var b=ss; " directly. but you can set "hidden.value = ss;" and then, var b = hidden.value ;
Hope it helps.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
I did as you told me and it works.
But I think if it is possible to set the variable in code behind using
ClientScript.RegisterClientScriptBlock it will be more secure.Because I brought the value of the variable from database.So in the codebehind it will be something as the following:
<br />
ClientScript.RegisterClientScriptBlock(this.GetType(),"MyScript",<br />
"<script language='javascript' src='functions.js'>function getvalue(){var var1 ="+ss+<br />
";}</script>");<br />
But it didn't work with me...Any way if I couldn't find any more secure solution I will continue using your solution which will solve my problem too.
Thank you very much for helping me all the time.
I am too late but i will never give up
|
|
|
|
|
Hi all
In my asp.net project in a form i want to disable a particular item in a combobox
Like if this is condition
make the 3rd item in the combobox disable or hiden.
How to do it??
Thanks & Regards
Prakash
Prakash Mishra(Banglore,India)
|
|
|
|
|
try this code
ddl.Items[3].Enabled = False;
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
Hi imran i tried that before but its not working i think the syntax is not correct i am working with VB as the lang.
Prakash Mishra(Banglore,India)
|
|
|
|
|
so try this code
ddl.Items(0).Enabled=false
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
DPOption.Items(3).
After this there is no enabled option.
Prakash Mishra(Banglore,India)
|
|
|
|
|
DPOption.Items.RemoveAt(3)
this worked thanks for the help
Regards
Prakash Mishra(Banglore,India)
|
|
|
|
|
hi friends
I am working webapplication
i use form authenticaion method.
how to i connect the database in form authentcation ?
how to encrypt the password to save database.
regards
saravana
|
|
|
|
|
Hi,
You can encrypt the password easily by using SHA or MD5 algorithms. And save encrypted pwd after generating. And also there are cryptography classes are there to encrypt the password.
Regards,
Niranjan
|
|
|
|
|
hi,
i designed a datagrid using C# with asp.net,in that datagrid updating & deleting function are working proper.
if i delete the data in the datagrid, the modification must took place only in that page not in the database,the database should not affected,i am using sql 2000 as backend, please help me.
jai prakash
|
|
|
|
|
You have two option here.
1. Take one field in database,set flag 0 for deleted record.
2. create new Datatable dynamically and bind it with DataBase table and just remove rows from this table and rebind gridview with this table.
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
What pathan telling is exactly correct.
You can try those options.
Regards,
Niranjan
|
|
|
|
|
Hi,
This is from Chandrakanth.
I am using GridVeiw Control and in that I have one DropDownList.
My problem is i would like to Bind the Data to that DropDownListbox in that GridView Control.
How can i bind the data to that DropDownList Box In that GridView Control.
Can any one give me reply for this.
Thanks in Advance
With Regards
Chandrakanth
Chandrakanth
|
|
|
|
|
Find out dropDownlist control from gridview and bind it
ie. on RowDataBound Event
<br />
((DropDownList)e.Row.Cell[CellNo].FindControl("ControlId")).DataSource=DataSet;<br />
((DropDownList)e.Row.Cell[CellNo].FindControl("ControlId")).DataBind();
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
hello everyone,
I have a small doubt regarding of how to generate reports.
Using SQLREPORTINGSERVICES how to generate a report in .net2005.
Plz anyone help me in this issue.
ok byeeeee
Murali
|
|
|
|