|
Hi everyone, I am developing one web application using C#.Net. I want to add facility for up loading the video file. When user upload video at that time I WANT TO CONVERT IT INTO WMV FORMAT for that I am using WMcmd.vbs command line WMV converter my complete line is
EXEC master..xp_cmdshell 'CScript.exe D:\setup\WMCmd_20070322\WMCmd.vbs D:\Tarun\project\1.avi D:\Tarun\project\144.wmv -v_mode 1 -v_bitrate 500000 -v_keydist 30 -v_buffer 10000 -v_quality 100 -v_preproc 5 -v_width 320 -v_height 240'
I am trying to run it into sql server and it gives message that Query executed successfully. but on system tray it will display one message like "Microsoft (R) Console Based Script Host stopped working and was closed".
So how can I execute this procedure to convert any format's file to another format's file. from command line only. or suggest me the another WMV converter which can convert movie clip to wmv format from command line. It's very urgent pls if u can then help me.
Thanks.
TarDuk - A Memory Beyond The Life.
Always eagar to make some thing creative.
|
|
|
|
|
Hi,
I am trying to displaying image when the user clicks on upload button after browsing image by FileUpload COntrol. This time I just displaying image not saving image. ANd saving it afterwards.
This works fine but the problem is that when user browse image from system drive like: C:/ then this arrangements does not display image.
Have anybody idea for this problem then replay me immediately.
Thanks in advance.
Naresh Patel
|
|
|
|
|
N a r e s h P a t e l wrote: Have anybody idea for this problem then replay me immediately.
FYI - this is rude.
Where are people browsing from ? If they browse the file system, how does this relate to ASP.NET ? Or do you mean if the site is on the local machine and you browse to a page ? How does that matter, will anyone do that when it deploys ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have created one com dll in VC Win32 appl. and now i want to use that in ASP.Net it gives an error.
Best Regards,
Chetan Patel
|
|
|
|
|
Wow.
Try reading the post on how to ask questions
1 - what is the error message ?
2 - what does the dll do ?
3 - are you expecting to call it on the server, or the client ?
4 - why are you using a COM dll at all ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have a text box. It's input should be integer. I want to validate this
text box so that it's value should be integer. What validation control
shouuld I use.
seema
|
|
|
|
|
The regex one seems like the best bet to me.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
RegularExpressionValidator
Set ValidationExpression="\d+" accept only integer value.
OR
CompareValidator
Set Property Type="integer"
ValueToCompare="0"
Operator="greaterthanequal"
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
Hi !!
How to allow paging in DataList?
Plz Reply soon.Its urgent.
Thanx
|
|
|
|
|
Hi, check the following link for paging in datalist
http://www.dotnetjunkies.com/Tutorial/70E24E50-C179-4563-B053-2742516BF05B.dcik
Hope that helps
|
|
|
|
|
|
I have a grid view. In that gridview I have somecheck boxes in EditItemTemplate. I need to validate those check boxes. I am using customValidate controls and java script to validate check boxes. but it gives me error message that IsActiveCheckBox is not found in current context. Mat be checkbox is in EditItemTemplate field. I am not sure. How can I fix this.
e'g
function ValidateIsActiveCs(source, args)
{
args.IsValid = document.getElementById('<%=IsActiveCheckBox.ClientID %>').checked;
}
<asp:CheckBox ID="IsActiveCheckBox" runat="server" Checked='<%# Bind("MyColumn") %>' />
<asp:CustomValidator ID="cvlIsActive" runat="server" ClientValidationFunction="ValidateIsActiveCs" ErrorMessage="This field should be checked">*</asp:CustomValidator></td>
<div class="ForumSig">seema</div>
|
|
|
|
|
IS IsActiveCheckBox your checkbox's ID?
If yes take it as ElementID
Try this code
args.IsValid = document.getElementById('IsActiveCheckBox').checked;
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
Hi,
Write a server side Function
public string GetCheckBoxId()
{
CheckBox chk = (CheckBox)GridView1.Rows[rownum].Cells[cellno].FindControl("IsActiveCheckBox");
return chk.ClientID;
}
then use this function inside java script
<br />
args.IsValid = document.getElementById('<%=GetCheckBoxId()%>>').checked;<br />
To succeed, we must first believe that we can.
Sherin Iranimose
|
|
|
|
|
Hi i am sunil and i am in big trouble....
I am writing a asp.net with C# application and i am uploading it on webserver..
Now in my application i am using FILEUPLOAD which saves only MS WORD File..
After saving, i wanna count the Characters and Words of that word file but i dont use the Microsoft DLL..
And i having a problem over here...
So please Help me..
Its Urgent..
Sunil
|
|
|
|
|
Hi after or before saving this file just open this file using streamreader or like that class(File handling). then make it single string then its easy by String.substring() method.
|
|
|
|
|
I'm having a problem which I thought would be a very simple thing but is
> > turning out to be a difficult challenge. I have a web form with several input
> > fields and I have a single checkbox, not a checkbox list. Before the form can
> > be submitted I want to require that the checkbox be checked. Sounds simple
> > but non of the validation controls seem to work correct for this, or maybe
> > I'm just not using them correctly. I have done several searches but I can't
> > seem to find any examples of this type of thing being done. Which is very
> > surprising because this sort of checkbox is a very common thing. i.e. "I
> > agree to the terms....." Can anyone point me to an example? I'm using ASP.NET
> > 2.0
Thanks
seema
|
|
|
|
|
Seema,
No one can help you unless see your code....So please post your code!! In the meantime you can look into...
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:CheckBox ID="ChkName" runat="server" Text="Email Require" />
<asp:Button ID="btnSubmit" runat="server" Text="Click Me" />
</div>
</form>
</body>
</html>
Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
If Me.ChkName.Checked = True Then
Response.Write("Selected")
Else
Response.Write("Not Selected")
End If
End Sub
Thanks!!
-- modified at 15:06 Wednesday 19th September, 2007
Amit Gugnani
|
|
|
|
|
Hi all....
I've a DataGrid dat have 15 columns to display. It becomes so large dat it does'nt fit on de page.I want to do horizontal scrolling in DataGrid.Is it possible??
if ny1 know abt it kindly do tell me or some other way to apply horizontal scrolling in DataGrid.
Thanks in advance
|
|
|
|
|
There isn't any built scrolling properites but you may declare your datagrid within a div tag. Set the hight and width and there is a div scroll property.
<your grid="">
|
|
|
|
|
Hi Friends,
I am using Asp.net menu bound to a xml file. menu item shows up to 5 levels of menu.
My problem is I want to show menu hierarchy on top of the page.
like we do using sitempapath while using web.sitemap as data source.
Can any one hlep me how I can show
sitemappath when I am using xml as data source.
|
|
|
|
|
Hi
I want to implement forum in my project.Can i use wordpress (which
is availalbe with php) with my asp.net application.
Thanks.
Rahul.
|
|
|
|
|
Hi All,
i want to change datafield property of a gridview column from code behind (column is a bound field). below is my gridview, here i want to change datafield of second column from "ClientNumber" to "ProductNumber" based on some user action on the page. how can i achieve it from code behind(<b>C#</b>)
<code>
<asp:GridView ID="grdSR" runat="server" AutoGenerateColumns="False" BackColor="InactiveCaptionText" Visible="true">
<Columns>
<asp:TemplateField HeaderText="Add">
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
<HeaderStyle HorizontalAlign="Justify" VerticalAlign="Top" />
<ItemTemplate>
<asp:CheckBox ID="CheckBox1" runat="server" /></ItemTemplate></asp:TemplateField>
<asp:BoundField DataField="ClientNumber" HeaderText="ClientNumber">
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
<HeaderStyle HorizontalAlign="Justify" VerticalAlign="Top" /></asp:BoundField>
<asp:BoundField DataField="ClientName" HeaderText="ClientName">
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
<HeaderStyle HorizontalAlign="Justify" VerticalAlign="Top" />
</asp:BoundField>
</Columns>
<HeaderStyle BackColor="#2A76B2" ForeColor="White" />
<AlternatingRowStyle BackColor="White" BorderColor="Gainsboro" BorderStyle="Solid" /></asp:GridView>
</code>
does anyone have any idea about this?
People often say that motivation doesn't last. Well, neither does bathing - that's why we recommend it daily
Akhilesh Singh
-- modified at 10:52 Wednesday 19th September, 2007
|
|
|
|
|
Try something like this:
<br />
((HyperLinkColumn)grdSR.Columns[X]).DataField = "NewDataField";<br />
Where X is the index of the column you want to edit
|
|
|
|
|
Hi All,
My problem is when inserting data into database(Perfomance issue) line by line. Is their any tecnic like in a single hit to database can insert all the data atatime and update in database.
Thanks,
Priya.
Priya
|
|
|
|