|
i want convert persian dateTime to miladi how can i do this.
|
|
|
|
|
I took a project from my friend on a CD, and i tried to open it in Visual Studio but it give me this following:
"one or more project couldn't be loaded in the solution for the following reasons"
the project file or web has been moved, renamed or is not on your computer.
These projects will be labeled as unavailable in Solution explorer. expand the project node to show the reason th project could not be loaded. "
Please any help will help me.
Thanks in advance
Assaf
|
|
|
|
|
That is because the solution is looking for the project at its original location (for example C:\projects\fooproject)
How to fix it? Copy the solution the harddisk, remove the unavailable project, and re-add it, using the correct path)
|
|
|
|
|
HI ALL,
I am getting following errors on rinning the downloaded source code of Tabstrip creation in ASP.NET 2.0 from this site itself.
How to remove all these.
Error 2:
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
D:\NMS_screens\tabcntrl\puneet\nsa\WebSite\web.config 54
Error 3:
Element 'TabularMultiView' is not a known element. This can occur if there is a compilation error in the Web site.
D:\NMS_screens\tabcntrl\puneet\nsa\WebSite\Default.aspx 17
Error 10: D:\NMS_screens\tabcntrl\puneet\nsa\WebSite\Default.aspx: ASP.NET runtime error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (D:\NMS_screens\tabcntrl\puneet\nsa\website\web.config line 54)
Please sent me the solution if anybody can.
Its Urgent
|
|
|
|
|
puneetneema wrote: Its Urgent
I know. Check this[^] and also this[^]
|
|
|
|
|
Hi,
I am new to sharepoint development, As i need to know how webparts can be write in c#.net and how to implement this in share point 2007.
Regards,
RAM
modified on Saturday, May 24, 2008 6:02 AM
|
|
|
|
|
Hi All,
I got a problem with saving the uploaded files by client to the server.
Since the files should be uploaded only when the form is completed which is in MultipleView control with the multiple file upload in the very first view, i took the entire Httpfilecollection into Cache on the first button click and saves it from the cache at the save button click. It is working fine in local machine but not when the application is published.
The multiple file upload is working in another form where im saving the files in the first button click itself so here the problem is with the caching the HttpFile Collection.
This is my code
in first button click
---------------------------
HttpFileCollection filecollection = Request.Files;
if (filecollection.Count > 0)
{
Cache.Insert("filecollection", filecollection, null, DateTime.MaxValue, TimeSpan.Zero);
}
in the save button click
----------------------------
HttpFileCollection filecollection = (HttpFileCollection)Cache["filecollection"];
if (filecollection != null)
{
if (filecollection.Count > 0)
{
for (int i = 0; i < filecollection.Count; i++)
{
HttpPostedFile newfile = filecollection[i];
if (newfile.FileName != "")
{
\\Code to save file
}
}
}
}
Please Help me on this
|
|
|
|
|
can i search a string in the aspx pages of virtual directory which is hosted on another machine ?
Or
If i host an intranet website on a particular server , i can access all it's pages through the remote computer .This is quite clear.My question is , How can make the buffer of text contents from those pages from the remote computer ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
modified on Saturday, May 24, 2008 5:13 AM
|
|
|
|
|
Pankaj Garg wrote: How can make the buffer of text contents from those pages from the remote computer ?
What do you meant by "buffer contents" ? Are you trying to access that site and to read the text ? Then use WebClient class. It has some methods to do that.
|
|
|
|
|
Hi
I create a xml file in the C# code during a button pressed event and it's created perfectly.
After creating the file, it suppose to be downloaded to the client.
The problem is that without any sensible reason, all the HTML code of that page is appended to the xml file when it's downloaded.
The command that is used to download is:
Response.WriteFile(fileName); //(fileName is a String)
I've already tried to use 'Response.Clear();' but it didn't help.
Please help me with that issue.
Thank you
|
|
|
|
|
Never mind, problem is solved.
Response.End(); was missing;
Thanks anyway
|
|
|
|
|
Hi,
I am a newbie in designing web services. In my web service, I have created a webmethod which is extracting some data from my SQL server and then show it following some queries. Now everything is running fine from my local pc.
But when I try to access my web service from a remote pc with my pc’s fixed IP (http://163.180.145.139/test1/Service.asmx) they show all the webmethods list but after clicking on any of the operations it shows: The test form is only available for requests from the local machine. You can check it too by following the above link.
1. Plz tell me how can I solve this problem so that everyone can access my webservice and sql server data through it stored in my localhost from remote pc.
2. Plz tell me why I can't access any data through the webservice by typing a line in the address bar like this: http://163.180.145.139/test1/Service.asmx/ShowSuppliers?str=1990. In some tutorials its said that it will work. But I am getting error: Request format is unrecognized for URL unexpectedly ending in '/ShowSuppliers'
For your information I'm using windows Xp, IIS 5, sql server 2005 enterprise edition, MVS 2005: C# for my work. Please let me know for any further info.
Thanks in advance
Faysal
|
|
|
|
|
in this function i validate textbox value and radio button on button click event
it work in internet explorer very well.
but not work in mozilla firefox what is the reason??
function check(cid)
{
var red=document.getElementById('rd');
var val="PH";
if(rd[0].checked==true)
{
val="KH";
}
var box1 = document.getElementById('txtsearch').value;
box1 = box1.replace(/^\s*|\s*$/g,'');
var box2 = document.getElementById('rd');
if(box2.checked==true)
{
if(box1=="")
{
alert("Please Enter a Keyword, Business or Category");
return false;
}
else
{
window.parent.location.href="../keywordsearch.aspx?kq="+document.getElementById('txtsearch').value+"&stype="+val+"&city="+cid;
}
}
else
{
if(box1.length<6 || box1.length>11 )
{
alert("Please Enter Phone Number(min:6 digit and max:10) ");
return false;
}
else
{ if(IsNumeric(box1))
window.parent.location.href="../keywordsearch.aspx?kq="+document.getElementById('txtsearch').value+"&stype="+val+"&city="+cid;
else
{
alert("Please Enter Only numeric Number ");
return false;
}
}
}
}
html code
/////////////////////////
please send me solution
thanks in advance
no knowledge in .net
|
|
|
|
|
Unknown Ajanabi wrote: if(rd[0].checked==true)
What is "rd" in above code?
I think "rd" is not an object.It must be "red"
please don't forget to vote on the post that helped you.
modified on Saturday, May 24, 2008 3:17 AM
|
|
|
|
|
if(rd[0].checked==true)
What is "rd" in above code?
I think "rd" is not an object.I must be "red"
"rd" is radio button id
no knowledge in .net
|
|
|
|
|
Have you used RadioButtonList control or just RadioButton?
Unknown Ajanabi wrote: if(rd[0].checked==true)
You can not use object ID at this way.
You have to get an object of control.
for example
if(document.getElementById('rd').checked==true)
please don't forget to vote on the post that helped you.
|
|
|
|
|
if(rd[0].checked==true)
You can not use object ID at this way.
You have to get an object of control.
for example
if(document.getElementById('rd').checked==true)
u r write but the check()event not work in mozilla firefox explorer
i wont to know the reason why is it noy work ??
no knowledge in .net
|
|
|
|
|
Hi friends
I have little problem here.
I am creating data tables dynamically.
I want to filter it using sql query string.
Suppose, I have four data tables with the same structure but records may be different.There are two fields ServiceMethod and Rates.
Now I want to filter all tables and want to get match records with the ServiceMethod.
Suppose,four records in First table,three records in other three tables,
and only two records(Service method) are same in all tables.
I want to that two records by filtering all tables and sum of rates and want to add matched records in new table and bind dropdownlist.
Can any guide me how to filter more than one tables using sql query if data tables are created dynamically?
Thanks in advance.
please don't forget to vote on the post that helped you.
|
|
|
|
|
Imran Khan Pathan wrote: Can any guide me how to filter more than one tables using sql query if data tables are created dynamically?
If you have multiple select statements in the query and you filled the results to a DataSet , obviously you will have multiple data tables.
Imran Khan Pathan wrote: Now I want to filter all tables and want to get match records with the ServiceMethod.
You can use Select() method in the DataTable instance to select rows matching to the specified criteria.
|
|
|
|
|
N a v a n e e t h wrote: You can use Select() method in the DataTable instance to select rows matching to the specified criteria.
How can I use select method for more than one tables?
We can use select method to filter just one table.If I have two tables and If I want to get relational data from these two tables,select method can not be useful.Am I right?
Thanks
please don't forget to vote on the post that helped you.
|
|
|
|
|
You are right. Select() can't be used across multiple tables. If all these tables belongs to one DataSet, I think you can use DataRelation to link it. I have not done that before, just a wild guess.
|
|
|
|
|
Currently I am doing this job this way.
I am passing Dataset to DistributeServices Method
Is there any better way?
private int MergeCount = 0;
private void DistributeServices(DataSet dsServiceRates)
{
DataTable dtFinal = new DataTable();
int CountTables = dsServiceRates.Tables.Count;
if (CountTables > 1)
{
for (int i = 0; i < CountTables; i++)
{
if (MergeCount == 0)
{
dtFinal = MergeService(dsServiceRates.Tables[i], dsServiceRates.Tables[i + 1]);
i++;
}
else
{
dtFinal = MergeService(dsServiceRates.Tables[i], dtFinal);
}
}
if (dtFinal.Rows.Count != 0)
{
}
else
{
}
}
else if (CountTables != 0)
{
}
else
{
}
}
private DataTable MergeService(DataTable dTable1, DataTable dTable2)
{
DataTable dtNew = new DataTable();
dtNew.Columns.Add("Method",System.Type.GetType("System.String"));
dtNew.Columns.Add("Rate", System.Type.GetType("System.String"));
foreach (DataRow dRow1 in dTable1.Rows)
{
foreach (DataRow dRow2 in dTable2.Rows)
{
if (dRow1["Method"].ToString() == dRow2["Method"].ToString())
{
MergeCount = 1;
AddRows(dtNew, dRow1["Method"].ToString(), decimal.Parse(dRow1["Rate"].ToString()) + decimal.Parse(dRow2["Rate"].ToString()));
}
}
}
return dtNew;
}
please don't forget to vote on the post that helped you.
|
|
|
|
|
string s = ",22,3,7,8,2,8,";
now I want to check
string has ,22, or not in starting only
,22, should be treated as a string not character.
please help me I need hardly any how
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
You can use StartsWith method of string.
string MyStr=",22,3,7,8,2,8,";
if(s.StartsWith(",22,"))
{
return true;
}
else
{
return false;
}
please don't forget to vote on the post that helped you.
|
|
|
|
|
thanks a lot
You get the best out of others when you give the best of yourself.
|
|
|
|