|
Just make an external method in javascript that takes the url as input and processes it like:
function DeclareSWF(url)
var so = new SWFObject("vidHolder.swf", "myVideo", "604", "360", "8");
so.addVariable("thumbURL",'video_clicker.jpg');
so.addVariable("videoURL",url);
And in the server code just call it :
DeclareSWF('<%# Container.DataItem("VideoURL") %>')
|
|
|
|
|
Just make an external method in javascript that takes the url as input and processes it like:
<script type="text/javascript">
function DeclareSWF(url)
var so = new SWFObject("vidHolder.swf", "myVideo", "604", "360", "8");
so.addVariable("thumbURL",'video_clicker.jpg');
so.addVariable("videoURL",url);
</script>
And in the server code just call it :
DeclareSWF('<%# Container.DataItem("VideoURL") %>')
About : Islam
About : Me
|
|
|
|
|
but that doesnt solve my problem because you still have to call the javascript and pass a server side variable.
Ive already setup the function in the head of the aspx page but in my repeater i have to break into a script block to call 'DeclareSWF'.
How do you suggest i do that?
Because in the 6 years ive been doing asp.net if never figured it out!
Regards,
Guy
|
|
|
|
|
Hello worldwide developers.
here is my problem:
The business rule is that not just anybody should be allowed to register on the site, so only the users with a role "Property Manager" should be allowed to register new users....
So when she registers a new user, the new user will either be assigned the role "Property Manager" or "landlord"
The issue comes in now because we use the built in register control from the toolbox...which currently does not give an option for selecting roles. So at the moment a new user is not even given a role.
So my question is, how can i manipulate the register control?...or hard code it?...so that the Property Manager can select a role when registering new users.
Hope someone can help.
Thanks people
Dazz
|
|
|
|
|
what is assembly in asp.net? How types of Assembly. How implement in C#.net
Gagan Deep
|
|
|
|
|
see this
http://www.dnzone.com/ShowDetail.asp?NewsId=698
hi
|
|
|
|
|
Assemblies are of three types
1. Private Assemblies
2. Shared Assemblies
3. Sattelite Assemblies
you can look in to google for each of them
Paras Kaneriya The difference between genius and stupidity is that genius has its limits.
|
|
|
|
|
I'm using itextsharp and I'm having trouble getting the parser to read the html and put it in the pdf.
thx for ur help
BiG RaLpH
|
|
|
|
|
i am using ASP.net with C# and SQL Server2005i am using dataGrid view in an website, it has a an image column which is getting imageURL from a table in database.
i want to display picture through URL of such format
C:\images\abc.jpg
but image i not being displayed, image is displayed ig i use "images/abc.jpg"
can any one tell me how to display image using "C:\images\abc.jpg"
|
|
|
|
|
I don't think is possible. When executing from server, server have accsess only from Root of your specificied server.
But here is a fact.
when using \ in strings, it is intended to be special char
example:
\n - NewLine
\t - tab
\\ - Display \
you have to change.
C:\\images\\abc.jpg
|
|
|
|
|
You need to use virtual path only you can not user physical path in ASP.Net applications I mean you can but it will then find the file to clients hard drive.
Paras Kaneriya The difference between genius and stupidity is that genius has its limits.
|
|
|
|
|
string str = "SELECT cr_name, Trim(cr_pic), FROM criminal";
cr_pic contains image URL "E:\images\abc.jpg"
i want to trim "E:\" Is this possible and what will be the way to do so
|
|
|
|
|
update the table (I mean use the sql query)
Can u solve]
Soniagupta1@yahoo.co.in
|
|
|
|
|
i want to use the trip function in such scenerio
SqlConnection conPubs;
SqlCommand sc;
SqlDataReader dr;
conPubs = new SqlConnection("server=localhost;User ID=sa;Password=sasa;database=rescue15");
conPubs.Open();
string str = "SELECT cr_name, Trim(cr_pic), Trim(fing_print) FROM criminal ORDER BY cr_id DESC";
sc = new SqlCommand(str, conPubs);
dr = sc.ExecuteReader();
GridView1.DataSource = dr;
GridView1.DataBind();
but i thing i am not using correct sytax fot Trim() can u guide me in this scenario plz
|
|
|
|
|
Try to write a short subject line for your post. Putting the entire question in the subject line makes it too long to be useful.
You can't use C# functions in SQL.
The Trim function is used to remove spaces at the beginning and end of a string. What you need is a function like Substring . Look in the documentation for the SQL syntax of the database you are using.
---
single minded; short sighted; long gone;
|
|
|
|
|
you can use the following query...
string str = "Select cr_name, substring(cr_pic,4,len(cr_pic)-4) from criminal"
“The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep.”
|
|
|
|
|
you can use the following query...
string str = "Select cr_name, substring(cr_pic,4,len(cr_pic)-4) from criminal"
“The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep.”
|
|
|
|
|
i published the website after then on the same machine i tried to create the virtual directory of the same.after creating the virtual directory , i ws browsing the directory in IIS.there while browsing the directory , i got the following error.
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
Soniagupta1@yahoo.co.in
|
|
|
|
|
Go to IIS Manager, Locate you Virtual Directory, Right Click on it then Select Properties, In the Directory Tab -- Click on the Create Button...
then try accessing your site....it may work...
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
diectory tab u mean to say Virtual directory/ directory security?
Soniagupta1@yahoo.co.in
|
|
|
|
|
I asked you to click on the create button in the Directory Tab of the Virtual Directory Properties Window.
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
but there is not create button there in the directory tab
Soniagupta1@yahoo.co.in
|
|
|
|
|
If you are finding remove button in the same directory tab, then click on it and then again click on create button on the same button...
I think it will work..
Girish Kumar Sharma
|
|
|
|
|
still it is not working
Soniagupta1@yahoo.co.in
|
|
|
|
|
Have you created virtual directory in IIS
|
|
|
|