|
|
I hate you !!! (Previous dude)
There is a LiveSound tool that you can use ... but it's EXPENSIVE !!!!
Otherwise you'll have to use AJAX (Let my cry with you !) :,-(
|
|
|
|
|
Which Kind of this Error
Value of type 'System.Globalization.CultureInfo' cannot be converted to 'String'.
|
|
|
|
|
KhandelwalA wrote: Value of type 'System.Globalization.CultureInfo' cannot be converted to 'String'.
KhandelwalA wrote: Which Kind of this Error
This is Type casting Error.
|
|
|
|
|
KhandelwalA wrote: Which Kind of this Error
What made you think that it can be converted to string?
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.
|
|
|
|
|
Using themed css files requires a header control on the page. (e.g. <head runat="server" />).
|
|
|
|
|
anushh wrote: Using themed css files requires a header control on the page. (e.g.
What does it mean ? What is your question ? Can you please little bit of clear?
|
|
|
|
|
He simply posted the error message(that too with a smily )
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.
|
|
|
|
|
Did you even try once to find the reason.
A simple google search would have helped you and saved a lot of your time. Plus, learning things yourself will help you improve.
In between, have a look at this[^].
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 friend
My web services give the error of 404 how i resolved to this problem please help me.
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
Eventure Technology
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Piyush Vardhan Singh wrote: My web services give the error of 404
When you are getting this error? Did you searched in google for Error Code 404?
|
|
|
|
|
404 usually indicates that the client was able to communicate with the server but the server could not find what was requested.
You need to check the uri for the webservice.
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 am using HttpFileCollection for uploading multiple files.
It works fine,but problem arises when i am using same HttpFileCollection in another SendExternalMail().
I am not getting byte values.its bytes values are zero.
Here is the code.
public void SendInternalMail()
{
HttpFileCollection hfc = Request.Files;
if (hfc.Count != 0)
{
for (int i = 0; i < hfc.Count; i++)
{
if (!string.IsNullOrEmpty(hfc[i].FileName))
{
Int32 File1Length = hfc[i].ContentLength;
Stream File1Stream;
File1Stream = hfc[i].InputStream;
//Here i am getting proper byte values
byte[] btFileContent = new byte[File1Length];
File1Stream.Read(btFileContent, 0, File1Length);
IsZip = 1;
string strflname = hfc[i].FileName;
strExtension = System.IO.Path.GetExtension(strflname);
strflname = System.IO.Path.GetFileName(strflname);
strImageType = hfc[i].ContentType;
if (strImageType == "image/pjpeg" || strImageType == "image/bmp" || strImageType == "image/gif" || strImageType == "image/x-png" || strImageType == "image/tiff")
{
objZipUnZip.UploadImage(strflname, btFileContent, strImageType, File1Length, Convert.ToInt32(Session["UserCode"]), out objCode);
strVal = strVal + objCode + ",";
}
else
{
if (objZipUnZip.ZipFiles(btFileContent, strflname, strExtension, IsZip, Convert.ToInt32(Session["UserCode"]), out iFilecode))
{
strVal = strVal + iFilecode + ",";
}
}
}
}
}
public void SendExternalMail()
{
string strAttach = string.Empty;
string strSendAttach = string.Empty;
string strFileName = string.Empty;
string strFileAttachment = string.Empty;
bool bFlag = false;
for (int i = 0; i < hfc.Count; i++)
{
if (!string.IsNullOrEmpty(hfc[i].FileName))
{
Int32 File1Length = hfc[i].ContentLength;
Stream File1Stream;
File1Stream = hfc[i].InputStream;
//Here i can't get byte value,all values are zeros
byte[] btFileContent = new byte[File1Length];
File1Stream.Read(btFileContent, 0, File1Length);
IsZip = 0;
string strflname = hfc[i].FileName;
strExtension = System.IO.Path.GetExtension(strflname);
strflname = System.IO.Path.GetFileName(strflname);
strImageType = hfc[i].ContentType;
if (strImageType == "image/pjpeg" || strImageType == "image/bmp" || strImageType == "image/gif" || strImageType == "image/x-png" || strImageType == "image/tiff")
{
objZipUnZip.UploadImage(strflname, btFileContent, strImageType, File1Length, Convert.ToInt32(Session["UserCode"]), out objCode);
strVal = strVal + objCode + ",";
}
else
{
if (objZipUnZip.UploadFile(strflname, strExtension, btFileContent, IsZip, Convert.ToInt32(Session["UserCode"]), out iFilecode1))
{
strVal = strVal + iFilecode1 + ",";
}
}
}
}
}
Kindly help to solve this issue.
Thanks.
Regards,
PUJA FALDU
|
|
|
|
|
Hi All,
I have one datarow which contains some rows. Now i am copying values from datarow to arraylist using forloop.
But this is again taking some time.
Now i want copy values form datarow to arraylist or array without using forloop.
Is there any way to implement this using LINQ or any other concept.
The code which i used is mentioned below.
DataTable myTable = null;
DataRow[] foundRows = null;
ArrayList RequiredList = new ArrayList();
Array[] arrayForData = null;
ArrayList arrayListFordata = new ArrayList();
DataSet dsForData = null;
if (Session[strSessionDataList] == null)
{
CatalogController _controller = new CatalogController();
Session[strSessionDataList] = arrayListFordata;
}
else
{
dsForData = new DataSet();
dsForData = Session[strSessionDataList] as DataSet;
myTable = dsForData.Tables[0];
if (myTable.Rows.Count > 0)
{
foundRows = myTable.Select("val like '" + item + "%'");
arrayForData = new Array[foundRows.Length];
foundRows.CopyTo(arrayForData, 0); This is not working, it is giving runtime error like type mismatch
//for (int count = 0; count < foundRows.Length; count++)
//{
// RequiredList.Add(foundRows[count].ItemArray[0].ToString());
//}
//for (int count = 0; count < myTable.Select("val like '" + item + "%'").Length; count++)
//{
// RequiredList.Insert(count, myTable.Select("val like '" + item + "%'")[count].ItemArray[0]);
// //foundRows.ItemArray[count] = myTable.Select("val like '" + item + "%'")[count].ItemArray[0];
//}
}
}
if (RequiredList.Count == 0) RequiredList.Add("Fail");
//return RequiredList;
modified on Wednesday, July 1, 2009 4:31 AM
|
|
|
|
|
Try using Property
objRow.ItemArray
|
|
|
|
|
Hi,
I want to maintain state of radiobuttons while paging in gridview control.Is there any solution plz reply me asap.
Thanks
Farogh Haider
Web developer
|
|
|
|
|
|
Thanks, for reply
Actually, I have developed this project like as online quiz and there is one question is display at a time and there is two buttons(Next & Previous) and I am using radiobuttonlist to populate options of that question.
I want to maintain state of checked option when i click on previous/next button
Farogh Haider
Web developer
|
|
|
|
|
Solution 1:
Store in session
Solution 2:
Create a temporary datatable and keep on updating the radio button status there.
Niladri Biswas
|
|
|
|
|
hello
Reading this article on TreeView control...[^], it shows how to either bind a xml file on disk to TreeView control via "XmlDataSource"
<br />
<div><br />
<asp:TreeViewExpandImageUrl="Images/closed.gif"<br />
CollapseImageUrl="Images/open.gif"ID="TreeView1"<br />
Runat="server"DataSourceID="XmlDataSource1"><br />
<DataBindings><br />
<asp:TreeNodeBindingDataMember="Category"<br />
ValueField="ID"TextField="Name"><br />
</asp:TreeNodeBinding> <br />
<asp:TreeNodeBindingDataMember="Description"<br />
ValueField="Value"<br />
TextField="Value"><br />
</asp:TreeNodeBinding><br />
</DataBindings><br />
</asp:TreeView> <br />
</div><br />
<div><br />
<asp:XmlDataSourceID="XmlDataSource1"Runat="server"<br />
DataFile="~/Data/Categories.xml"><br />
</asp:XmlDataSource><br />
</div><br />
My question are:
1. how can we bind an in-memory (not on disk) XmlDocument object to a XmlDataSource? and thus TreeView control? In the article author has suggested an alternative - OnTreeNodePopulate event - however, this is not suitable for my case as my whole list/hierarchy is loaded in one go, not once-per-node.
2. how can we set navigation Url? in standard "web.sitemap", you can do this with siteMapNode's "Url" attribute. But now that, as in above example, uses my own custom Xml... how do we do this?
Thanks
dev
|
|
|
|
|
Hi I am populating a Dropdownlist using clientside script.Later, when I am trying to access the dropdownvalue from server side code,it's coming blank.
I have tried the following:
string val=DropDownList1.Text;
I have also tried
string val=DropDownList1.Attributes["value"];
But none worked.
Please guide me to solve this.
CC26
|
|
|
|
|
If you are populating the Dropdown using client side script(JavaScript), then you cannot read dropdown value at server.
Dropdown clears when page post back.
If you need to read the value, save the selected value of dropdown into the hidden text box, using JavaScript(Before Page Post Back). Now read the textbox value.
|
|
|
|
|
Thanks Aman ....that's a great n working reply....even i was also thinking of the same solution.
CC26
|
|
|
|
|
Hi fellow coders,
I'm trying to do a HTTP GET request but I get this error: Unable to read data from the transport connection.
Below is my code:
Dim web As New System.Net.WebClient
Dim stream As Stream = web.OpenRead(URI)
Dim reader As StreamReader
reader = New StreamReader(stream)
strResult = reader.ReadToEnd
Note I cant do POST as the URI does not support that.
Thank you in advance.
|
|
|
|
|
This question has NOTHING to do with ASP.NET
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
|
|
|
|