|
Yes im getting the client id of the webpart itself.
and its style is also set as display =none
but how can i close it so it may be available in design view
Cutting short... Is there a way to implement close and minimize verb using javascript on client side.
For instance you can see...
www.smartjungle.com
Please answer...
-- modified at 7:29 Thursday 15th November, 2007
Bye
|
|
|
|
|
I want to convert video files(.wmv and .avi) uploaded on my site to get converted to .flv. Searching the web I found ffmpeg(http://ffmpeg.mplayerhq.hu/) is a command line software which does the required conversion. But i don't know if it can be used with .NET. If it can be used then how..? If not then what is the other solution...?Can anyone help..?
|
|
|
|
|
You can start any process from .NET with process.start. ASP.NET obviously has nothing to do with the process of the actuial conversion
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
thanks for the reply Christian,
I got it .... to do the same i have found an executable called ffmpeg.exe. can you tell me exactly what parameters do i need to pass and how do i use it in my asp .net project using c# such that the generated .flv video is of same dimension and quality as the original avi video. Following may be useful to you.
download ffmpeg.exe (http://ffdshow.faireal.net/mirror/ffmpeg/)
FFmpeg Documentation (http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html)
download ffmpeg.c (http://svn.mplayerhq.hu/ffmpeg/trunk/)
|
|
|
|
|
Hey its working for me. There are some sites e.g. http://www.mediasoftpro.com/ where they give already built dll which we can easily implement in our project. All such dlls are actually wrapper to the free tool ffmpeg.exe which can convert videos and audios from one format to another. So i thought to use the tool itself instead of the wrapper dll. I have tried very simple example n its working for me so thought to share it it with all.
Download ffmpeg.exe from (http://ffdshow.faireal.net/mirror/ffmpeg/). you will get a dll along with it (pthreadGC2.dll) keep both the exe and this dll together.
FFmpeg Documentation (http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html) will be required for the syntax.
If you run it via command prompt then this is the syntax
ffmpeg -i inputfilename outputfilename
If it is to be executed via .net then follow what Christianhad suggested in the post before. Process.Start can be used to execute an executable.Do remember to give write permission to the asp worker process on the folder where the resultant flv file will be saved. If you dont then the program will run without any error or warning but output file will not be produced.
One more thing it do not convert .wmv files to .flv . Is there any way out to it........?
|
|
|
|
|
In the database , there are two tables.the second one has id of the first one. i mean there is primary-foreign key relationship.
Now i am comming back to the point , in the itemtemplate , the record are from first table and in the edit item template , there is a gridview, which contains the record from second table(second table contains the foreign key field), so there in the edit item template , how i should display the pertaiing records from second table.
records are currently appearing in item template.problem is in the edit item template.
Please help.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Can u be a bit more specific...
|
|
|
|
|
i have to put the grid view in the edit item template of the the grid view , the inner gridview will have thedata from different table and outer gridview will have data from another table.how to implement this thing. cueerntly the item template is working .
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
What you're looking for is called a master detail view. I would usually use nested repeaters to create such a view, because of the control you get when using them. However, there is a bunch of google[^] hits on doing it in a gridview, I'm not sure if they will help tho, because you want the edit template to show the detail view ? You may need to roll your own solution with a repeater, I'm not sure.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
this is the sort of thing i wanted to do
but i want the show button in the gridview which will show the pertaining records.it should not show the pertaining records directly
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: this is the sort of thing i wanted to do
wow,,,, what a link...
Hello miss.. please think twice before updating anything here
U have put link but Miss yr link is of yr localhost so how anyone else come to know that wt u want ?
Thanks,
Sun Rays
Rate this post if you like answer.
|
|
|
|
|
sir , i committed any mistake?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Click on the link... u vl find ur mistake...
But It will be good if we can see what exactly u want and how far u have done... Try if u can do something.
|
|
|
|
|
sir, i merely wanted to display a gridview in a gridview sample.it is showing the same.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Ok fine. Now go home open the codeproject and click on the link.
U are there so u can access yr localhost but we (other) cant do that...
Thanks,
Sun Rays
Rate this post if you like answer.
|
|
|
|
|
OK - to reiterate what I've said before: read your book. Giving me a link to your local machine won't work, localhost on my machine is MY file system. Not yours.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian , sorry for all the misunderstanding , actually the thing is , the link belongs to the sample , which i explored on the net.it's not my pogram link
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: this is the sort of thing i wanted to do
this sort of thing you can do only in your system.
Regards - J O H N -
<- Life is not measured by the number of breaths we take, but by the moments that take our breath away. ->
|
|
|
|
|
|
Have you any idea about DataRelation?
If yes follow following code
DataSet ds=
DataRelation dr = new DataRelation("new_relation",ds.Tables[0].Columns["PKey"],dst.Tables[1].Columns["Pkey"]);
ds.Relations.Add(dr);
parentGridView.DataSource=ds.Table[1];
parentGridView.DataBind();
Now onRowDataBound event of parent gridview
GridView rp = (GridView)(e.Row.FindControl("ChildGridViewID"));
rp.DataSource=((DataRowView)(e.Row.DataItem)).CreateChildView("new_relation");
rp.DataBind();
bEst regard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Thank Sir
Let's try the code.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
hi frns
i have developed one application in that i have one gridview in that i have one column (filename)with hyperlink when i click on that link i am getting the filedownload window asking to save or open but i want the file to be displayed directly instead of asking in the browser.
any suggestions grately appreciated
regards
sunilwise
-- modified at 4:35 Thursday 15th November, 2007
|
|
|
|
|
Link to a page which takes the filename off the URL and does a Response.BinaryWrite to send the file into the browser to be displayed.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
its working in local system but if i try to open it in another system which is connected through lan again that filedownload window is opening sir
|
|
|
|
|
This is a sure sign that your overall design is broken, because it's working when your code can assume that the client is the server.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|