|
Yes.
But you ought to process HTML on the way out as it's getting displayed on screen rather than store it in the database in HTML encoded format. This ensures the database stores the data in a platform neutral format, also because some ASP.NET controls perform their own HTML encoding (such as the ToolTip property, or Text property for TextBox controls), and you'll end up encoding the encoding and the user will see < on the screen instead of <
Use Server.HtmlEncode(outputString), but don't do this for control properties that already do their own encoding for above reason.
|
|
|
|
|
hi to all
i am using a radiobutton list ,and want to change the back ground color of the select item text.
please help me some one.
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
set AutoPostBack="True" and try following code
protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
{
RadioButtonList1.SelectedItem.Attributes.Add("style","background-color:Black");
}
please don't forget to vote on the post that helped you.
|
|
|
|
|
very very thank sir
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
how to change the forecolor of selected radiobuttonlist...
|
|
|
|
|
RadioButtonList.SelectedItem.Attributes.Add("style", "color:red;");
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Thanx ya!
Its working!
|
|
|
|
|
how to integrate more than one clipping in a single mediaplayer using html
|
|
|
|
|
I want to show the selected video clip in the asp page.so am using the embed object and iwant to pass the selected videos path to that object.i tried lot but none of them is working.embed object code below
<OBJECT id='mediaPlayer' width="320" height="320"
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
<param id="path" name='fileName' value=""
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="true">
<param name='showControls' value="true">
<param name='loop' value="true">
<Embed type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='media' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="true" showtracker='-1'
showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="363"
src="" autostart="true" designtimesp='5311' loop="true">
</Embed>
</OBJECT>
i used javascript to pass the value to the object but it is not working
javascript follows
function playAudio(){
var doc = document.getElementById('path');
var doc1 = document.getElementById('media');
doc.value=hdVideo.value;
doc1.src=hdVideo.value;
}
</script>
hdVideo is a hidden field,am setting value in this hidden field from their am taking the value.if am doing window.alert am getting the value,suppose if am hardcoding this value in the embed object it is working.but i want to pass the value at run time.
Then body onload event i called this javascript.
|
|
|
|
|
Hi everybody!
how to integrate more than one clipping in a single mediaplayer using html
Pandi
|
|
|
|
|
|
hi,
my requirement is that i have to enable user to type both string and also allow him to choose the image
For this,
i used ifrmae and file so that user can choose the picture which will be visible in ifram and also he can type the text.. all r working fine
problem is
in iframe i can have more than a picture and string so while saving how can i get the path to upload in server..
pls help me
|
|
|
|
|
|
there is a content placeholder in the master page , now in the content place holder , i have a button, i have to write the javascript function , how i should use the getelementbyid function to access this button control
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
if you want to call javascript in master page
getElementById('masterIdPage_buttonId')
if you want to call javascript in content page
getElementById('buttonId')
bEst rEgard
pAthan
|
|
|
|
|
<a href="http://www.codeproject.com/script/comments/forums.asp?msg=2291231&forumid=12076#xx2291231xx">http://www.codeproject.com/script/comments/forums.asp?msg=2291231&forumid=12076#xx2291231xx</a>[<a href="http://www.codeproject.com/script/comments/forums.asp?msg=2291231&forumid=12076#xx2291231xx" target="_blank" title="New Window">^</a>]
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Hi Sonia,
ContentPlace holder use to hold the pages [ page.aspx] . You can display any page inside the Content place holder.
But you question is not clear to me .can u kindly explain that what u need. Thank !!!
|
|
|
|
|
if th page is a simple page (.aspx), for getting the control id in the javascript funciton , i am using the following funciton
document.getelementbyid("id")
it is working fine here.
now i have another aspx page , which is having a buttong control.now the page is a master page.if i try to get the control in the javascrit function , i ma not being able to get it , it is displaying the null message
<contentplaceholder>
<script language ="javascript">
function abd()
{
var bu = document.getelementbyid("id")
}
</script>
</contentplaceholder>
i ma getting null in bu
y it is happening?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Do this ....
There should be no html, head, body, div tage....... delete all upto body tage.......... all html content place inside the content place holder
and youse your javascripts
<asp:Content ID="myid" ContentPlaceHolderID="ContentPlaceHolder1" runat="server" >
<input type=button ...........>
</asp:Content>
And dont forget to masterpage name in aspx page
<%@ Page Language="C#" MasterPageFile="~/control.master" Theme="MSN_Blue" AutoEventWireup="true" CodeFile="create.aspx.cs" Inherits="_Default" %>
<script langauge=javascript>
</script>
<asp:Content ID="myid" ContentPlaceHolderID="ContentPlaceHolder1" runat="server" >
<input type=button ...........>
</asp:Content>
Best Regards
-----------------
Abhijit Jana
View My CodeProject Articles
"Success is Journey it's not a destination"
|
|
|
|
|
still i ma not being able to acess the control in my master page.
ex i hav a textbox id called txt
now the code
document.getElementById("txt")
still saying null
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: now the page is a master page
check out view source.You found button id as masterpageID_ButtonId.
I mean if your master page name "master" and your button is "id" then you have to found with 'master_id' in javascript.
see my first post
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi
I am Exporting The dataGrid Data To Excel..i have done it but the problem is in my grid lots of data So i have used Paging in That when i m exporting the Grid Data insted of Exporting Whole Data it export only those data which shown in Grid and i want to export whole data..
pls tell me how can i acheive my target..
Thanks in Advance
Avesh
|
|
|
|
|
Try this..
Add the following code before export to excel.
GridView1.AllowPaging = False
GridView1.DataBind()
In the pageload set allowpaging true to the gridview
You can't do everything...
But you can do something...
So never refuse to do something that you can.....
|
|
|
|
|
Please can any one tell how to change the background color of MessageBox in windows application.. using ASP.NET2.0
Rashmi.M.K
|
|
|
|
|