|
Hi all,
I have a requirement.Is it possible to upload videos to Youtube from asp.net.Because I have some video files and the client wants to view or play this video from youtube.Is it possible?If yes,Pls give some links or give some help.
Thanks
Denny
|
|
|
|
|
Have you tried reading youtube to see if they offer some sort of API to auto post videos ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
|
Great and useful link.
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|
|
You can directly go to youtube and upload it. If you want to upload through program code then you probably have to check whether there is any API exposed or not. Without using the API, you will never be able to upload through code.
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|
|
|
|
Either you love IT or leave IT...
|
|
|
|
|
Hi all ,
I want to display pdf on the browser using using C# can any one help to solve this problem . Thanks in advance
Thanks
Amit
|
|
|
|
|
add response.redirect("The PDF file path") in the code
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
The probem is pdf creation is handled by back hand which is in java...and they sending bytes to me......i dont have any direct path.....
|
|
|
|
|
Amit Patel1985 wrote: back hand
Its back end and not back hand
Amit Patel1985 wrote: i dont have any direct path.....
you can write the byte array to he Response.Output
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
hi i m using asp.net c#
n i m trying to save data in to data base it give error at time of save
code is
cmd.CommandText = "select invoice_no from invoice where invoice_no=(select Max(invoice_no) from invoice)";
adp.Fill(ds, "dm");
foreach (DataRow dm in ds.Tables["dm"].Rows)
{
Label2.Text = dm["invoice_no"].ToString();
}
Label2.Text = Convert.ToString( Convert.ToInt32(Label2.Text) + 1);
// add in the table material incoming
cmd.CommandText = "Select * from invoice";
adp.Fill(ds, "re");
dr = ds.Tables["re"].NewRow();
cb = new SqlCommandBuilder(adp);
adp.Update(ds.Tables["re"]);
dr = ds.Tables["re"].NewRow();
dr["invoice_no"] = Convert.ToString(l);
//dr["enterby"] = Label64.Text; //ddlinby.SelectedIndex.ToString();
dr["po_no"] = TextBox2.Text;
dr["dc_no"] = TextBox3.Text;
dr["comp_name"] = TextBox4.Text;
dr["comp_add"] = TextBox5.Text;
dr["tin_no"] = TextBox42.Text;
dr["total_vat"] = TextBox34.Text;
dr["prod1"] = TextBox35.Text;
dr["prod2"] = TextBox36.Text;
dr["prod3"] = TextBox37.Text;
dr["prod4"] = TextBox38.Text;
dr["prod5"] = TextBox39.Text;
dr["prod6"] = TextBox40.Text;
dr["prod1_q"] = TextBox12.Text;
dr["prod2_q"] = TextBox13.Text;
dr["prod3_q"] = TextBox14.Text;
dr["prod4_q"] = TextBox15.Text;
dr["prod5_q"] = TextBox16.Text;
dr["prod6_q"] = TextBox17.Text;
dr["prod1_p"] = TextBox18.Text;
dr["prod2_p"] = TextBox19.Text;
dr["prod3_p"] = TextBox20.Text;
dr["prod4_p"] = TextBox21.Text;
dr["prod5_p"] = TextBox22.Text;
dr["prod6_p"] = TextBox23.Text;
dr["vat"] = TextBox31.Text;
dr["total"] = TextBox30.Text;
dr["price"] = TextBox33.Text;
ds.Tables["re"].Rows.Add(dr);
cmd.CommandText = "Select * from invoice";
cb = new SqlCommandBuilder(adp);
adp.Update(ds.Tables["re"]);
and error is
String or binary data would be truncated.The statement has been terminated.
at this line
adp.Update(ds.Tables["re"]);
pls help me
|
|
|
|
|
Hi,
You are trying to save a value whose size is exceeded the maximum limit set for the column in which it is going to be saved. Check all values which you are setting in the datarow. Some value may be crossing their expected size.
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|
|
You have to check your input data. I think if you read a design pattern you can do this on better way. Say! your code is really horrible to understand. You have to try to use classes and generic collections if you want to manage your code.
But if you check your input data, you can find the wrong input data type or data length. Good luck!!!
|
|
|
|
|
iam having a grid data like this
Empno Ename Path
1 xyz x/y/z
1 xyz x/y/z
1 xyz x/y/z
in one case i dont want path column not to display in the grid it is easy that in grid rowdatabound cell(3)visible = false but it is a template field.so how can i hide the headertext and data column
|
|
|
|
|
Just Dont define it in the grid view means u will have a code like this
<asp:templatefield headertext="Id" sortexpression="Id">
<edititemtemplate>
<asp:label id="Label1" runat="server" text="<%# Eval("Id") %>" <="" asp:label="">
<itemtemplate>
<asp:label id="Label1" runat="server" text="<%# Bind("Id") %>" <="" asp:label="">
remove those according to your requirement
|
|
|
|
|
hi
i was little bit confused will u explain cleary tha why sort expression is needed
|
|
|
|
|
Hey i just posted that if in your project if you don't need any template go to the source part there you can edit your Grid view
|
|
|
|
|
hi
i m new to asp.net.I hav to show dashboard in my page.one dashboard has 9 images.so i m taking two tables and getting 6 images in one table and 3
images in second table to reduce scrolling.i m refreshing page after every 30 seconds. i m making visibility true/false alternatively on every refresh.its working fine.
but now i m having more than one dashboard.each dashboard hav refresh time attached with it.now i hav to dynamically change the dashboard after
fixed time interval.
e.g.
dashboard1 hav 9 images and 30 seconds
dashboard2 hav 9 images and 40 seconds
how to change this refresh time and dashboard dynamically
this information i hav in database
|
|
|
|
|
Use javascript timer or timer control in .net
|
|
|
|
|
Hello one and all,
I am having small requirement. I am having some data stored in SQL DB. I am displaying that data in a grid view as follows
Id Name Filename
1 Dorababu dora.doc
2 Khan khan.pdf
3 XYZ XYZ.jpg
all these filenames are displayed in link button inside grid view. What i need is when i click on particular name like .oc or .pdf or .jpg i would like to get the following thing as Open Save Cancel as we get when we are downloading an attachment from mail. Can an one give me the code for my requirement please.
Thanks in Advance,
M.Dorababu
|
|
|
|
|
Use filename in simple href tag.
|
|
|
|
|
Can you tell what to do actually my code is like this
<ItemTemplate>
<asp:LinkButton ID="Link1" runat="server" Text='<%# Bind("filename") %>' ></asp:LinkButton>
</ItemTemplate>
So can you tell what to do here
|
|
|
|
|
use a hyperlink instead of linkbutton and give the path of the file in its NavigateURL attribute.
Regards,
Kapil Thakur
(Where's there is Kapil , there is a way) - thakur.kapil@gmail.com
|
|
|
|