|
Try this:
http://www.beansoftware.com/ASP.NET-Tutorials/ProgressBar-User-Control.aspx
http://www.aspnettutorials.com/tutorials/themes/progress-bar-csharp.aspx
|
|
|
|
|
please help me.
I want progress bar with remaining time, how much % completed,how much file size in MB remaining while uploading file.
It should be editable(means I can alter in code as my requirement).
code should be free available.
I will appreciate.
I need hardly for that........
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
hi I am using a File Upload Component to upload files to the site. The problem is that it doesn't alllow me to upload any media (sound or video). Do you have any suggestions what alternative controls to use and from where to get them please?
Thanks
|
|
|
|
|
The standard file upload control is the only way to upload files, all fancy controls use the same functionality.
You can upload any file type you like. Your control may offer config options to block some types, but the standard control uploads anything.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Have you checked that the media files are not too big, that could be why they are not uploading
|
|
|
|
|
If the files are too big add this in web.config file
<httpRuntime maxRequestLength="100000" executionTimeout="9000"/>
|
|
|
|
|
How to Send Notification to one page to different page without redirecting page
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Are you saying you have two pages open at once and want to pass messages between them ?
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
yes one page load then it send Notification another to up grate Self
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
OK, so the second form is created as a child of the first ? Does the parent tell the child to update, or vice versa ? How is the second form launched ?
http://codepunk.hardwar.org.uk/bjs12.htm[^] is probably along the lines of what you need - you can't communicate on the server end, only on the client end.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
second Page already open some where
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
OK, then you can't do it. And, it has nothing to do with ASP.NET, and everything to do with HTML and javascript.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
public void PopulateGrid()
{
try
{
DataSet ds = FetchCyDetails();
if (ds.Tables["Cy"].Rows.Count == 0)
{
DataTable DummyTable = ds.Tables["Cy"].Copy();
DataRow dr = ds.Tables["Cy"].NewRow();
DummyTable.Rows.Add(dr.ItemArray);
Gridview1.DataSource = DummyTable;
Gridview1.DataBind();
Gridview1.Rows[0].Visible = false;
}
else
{
Gridview1.DataSource = ds.Tables["Cy"];
Gridview1.DataBind();
}
}
catch (Exception ex)
{
Response.Write(ex.Message.ToString());
}
}
public DataSet FetchCyDetails()
{
try
{
cmd = con.CreateCommand();
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@mode", 3);
DataSet dsCy = ExecuteQuery("sp", "Cy", false);
return dsCy;
}
catch (Exception ex)
{
Response.Write(ex.Message.ToString());
return null;
}
}
Regards
chandrasekar
kappsoft pvt ltd
|
|
|
|
|
This is, indeed, code. What does it do ? How does what it does differ from what you were hoping for ?
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
#clientside
function vaid()
{
var options = document.getElementById('CheckBoxList1').getElementsByTagName('input');
var ischecked=false;
var isval =0;
for(i=0;i<options.length;i++)>
{
var opt = options[i];
if(opt.type=="checkbox")
{
if(opt.checked)
{
isval++;
}
}
}
if(isval ==0)
{
prompt('Question','answer');
return;
}
}
</options.length;i++)>
#client side
#server side
int k = 0;
foreach (ListItem li in CheckBoxList1.Items)
{
if (li.Selected != true)
{
k++;
}
}
if (k == 0)
{
Response.Write("pls select");
}
#server side
Regards
chandrasekar
kappsoft pvt ltd
|
|
|
|
|
Hi,
The below code is working fine for writing as word document format, but i need to write the file as pdf format how can i acheive this one..any ideas?? im using vb.net 2.0.
Rgrds
Kanna.
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim dt As New DataTable
Dim datarow1 As DataRow
dt.Columns.Add("Trading Account")
dt.Columns.Add(" ")
dt.Columns.Add(" ")
datarow1 = dt.NewRow
datarow1(0) = "Hai"
datarow1(1) = "123"
datarow1(2) = " "
dt.Rows.Add(datarow1)
Dim datarow2 As DataRow
datarow2 = dt.NewRow
datarow1(0) = "Hai"
datarow1(1) = "123"
datarow2(2) = " "
dt.Rows.Add(datarow2)
DataGrid1.DataSource = dt
DataGrid1.DataBind()
Response.Clear()
Response.AddHeader("content-disposition", "attachment;filename=FileName.doc")
Response.Charset = ""
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.ContentType = "application.doc"
Dim strw As New System.IO.StringWriter
Dim htmlw As New System.Web.UI.HtmlTextWriter(strw)
DataGrid1.RenderControl(htmlw)
Response.Write(strw)
Response.End()
End Sub
|
|
|
|
|
This only works because Word works out what the data is. To create PDFs, you need to buy a PDF library.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
I have a very big trouble. 3 day along i try DEBUG.
but it's not easy, i read a lot of forums/ Than i did
First of all i delete temporary aspnet files (kill aspnet_ws)
I change setting to debug mode, i create a breakpoin, save project,
I goto DEBUG-options Check enable just my managed only code (i also try unchek this option No luck)
and i change optins in solution-property
There many flags i check Build website as part of solution
accesbility all chek, without manual check list(this option uncheck
start option use current page use def web ser and use aspnet debug havo also check flag true
msbuild use fixed name chek
Solution property page
COMMOn property
Current selection chek and name of my project
and project property aspnet debug enable
Configuration debug platform .net build (this option uncheck)
In IIS run debug = true aspnet=2.05///......
.net rulezz
|
|
|
|
|
I want to use TDD on a web base system written in C#.net 2.0. My web base is having some text boxes for user to input and save to the database using stored procedure. Those text boxes are also used for displaying value from the database. I have tried to search by google but no much detail can find. Hope anyone can give me a guild for this. Thanks a lot.
|
|
|
|
|
Hi, I've made a small web application with a ListBox which works well, but it is not very pretty with FireFox. The ListBox is populated automatically and its width changes with the contents. And when the list is empty, the width of the ListBox is about the width of the scrollbar... I've tried to fix its size, but I haven't been able to.
Anyone knows how I could do it?
Thanks!
|
|
|
|
|
Hi all,
i'm designing shopping cart.
but i have a problem by inserting item to the shoppoing cart.
when i add one item to cart,it added but when i add another item to cart with another ID the quantity of first item add(if i was added book1 and then i add another item for example book2 the quantity of book1 convert to 2 and book2 not be added in another row.
this is my code:
public void Insert(int Productid, double Price, int Quantity,string Productname, string Productimageurl)<br />
{<br />
int itemindex = itemindexofid(Productid);<br />
<br />
if (itemindex == -1)<br />
{<br />
cartitem newitem = new cartitem();<br />
newitem.Productname = Productname;<br />
newitem.Quantity = Quantity;<br />
newitem.Price = Price;<br />
newitem.Productimageurl = Productimageurl;<br />
items.Add(newitem);<br />
}<br />
else<br />
{<br />
items[itemindex].Quantity += 1;<br />
}<br />
lastupdate = DateTime.Now;<br />
}
and my function for itemindexofid:
private int itemindexofid(int Productid)<br />
{<br />
int index;<br />
foreach (cartitem item in items)<br />
{<br />
<br />
if (item.Productid == Productid)<br />
{<br />
return index=0;<br />
}<br />
index++;<br />
}<br />
return -1;<br />
}
i don't know where is problem.
thank you for your help.
Hoda
|
|
|
|
|
Saba02 wrote: if (itemindex == -1)
Then a new item is added, otherwise
Saba02 wrote: else
{
items[itemindex].Quantity += 1;
}
lastupdate = DateTime.Now;
}
The quantity increases.
So, I'd check with the debugger if itemindex is -1.
Saba02 wrote: return index=0;
Should this not be just 'return index' ???
Saba02 wrote: cartitem newitem = new cartitem();
newitem.Productname = Productname;
newitem.Quantity = Quantity;
newitem.Price = Price;
newitem.Productimageurl = Productimageurl;
items.Add(newitem);
Got it - you never set the productId in this code, so the search will always fail.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Dear Graus,
thank you for your responses.
i'm sorry for these questions.
i don't know how i defined 'return index=0' in this forum,
i was used this code:
private int itemindexofid(int Productid)<br />
{<br />
int index=0;<br />
foreach (cartitem item in items)<br />
{<br />
if (item.Productid == Productid)<br />
{<br />
return index ;<br />
}<br />
index++;<br />
}<br />
return -1;<br />
}
also now i correct my code with setting newitem.Productid = Productid;
but yet my problem exist.
Thank you,
Hoda
|
|
|
|
|
What happens if you step through your code in the debugger ? It still seems to me like this is where the problem is.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
I am going to develop a site in English as well as in arabic,for english no problem but for arabic version there are few problems.
Problems List
1)Is i have to maintain two separate databases 1 for English and 1 for Arabic, or a single database can handle both English and Arabic, if yes how it can be done, by using UTF or something like that.
2)How can I Insert Arabic in sqlserver2005 database and get them as in Arabic.
Help me , and suggest me if anyone has done this before.
|
|
|
|