|
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
|
|
|
|
|
Hello all,
I want to insert a Hindi text value into a mysql5.1 database from an asp.net TextBox when a "INSERT" button is clicked. And I also want to retrive the same value from MySql5.1 to an asp.net TextBox when a "SHOW" button is clicked. Please help me how this will be possible. I am using Visual Studio 2005 and C# for code behind.
Thanks in advance
|
|
|
|
|
hi friends
In asp 2.0,we have File upload control,In this control allow to upload the multiple file (If you browse the button,Upload window will be open and select the multiple file into upload window..finally we upload the file)
In asp 1.1 ,we have html file upload control,here i need to open the upload window and select multiple file into upload window..finally upload the all the files..
but asp1.1,select single file only into upload window..i need to select more file into upload window
Is it possible?
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
Select File one by one using File Upload Control. Put a Add button on the form, OnClick of the Add button, add the file in a listbox. Add multiple file , then click on upload button to upload file taking the list from Listbox.
|
|
|
|
|
Exception Details: System.Web.HttpException: Request timed out.
I am using ReportViewer control.I have only problem in Exporting in PDF format.
I have made setting in web.config like
httpRuntime executionTimeout="900" in system.web tag
Also I have checked many attributes like sessionState,httpRuntime,httpCookies in web.config file. And also checked values for server.Scripttimeout.
Please tell me which setting can cause error while exporting the reports.
|
|
|
|