|
I'm trying to add a reference to a web service on a remote sharepoint 2003 server and I keep getting an error:
There was an error downloading 'https://portal.example.com/site/_vti_bin/usergroup.asmx'.<br />
<br />
The request failed with an empty response.
It comes up with a description that looks right in the web page view though. Here's a quick screenshot:
http://i223.photobucket.com/albums/dd58/armo_2007/webservice.png[^]
I'm connected to the Internet through a proxy, could this be the issue? Or security on the server?
It's my first time using a web reference so I'm probably doing something stupid, any help would be appreciated.
|
|
|
|
|
How do they work?? Any tip/article would be appreciated.
ps. Well, dont misunderstand me for I'm an old man and for there are many proxy avoidance websites out there to use for free, I was just wondering "how can they do that".. Where I live, even YouTube is blocked!
Thank you guys
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Have you come up with any good ideas?
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
|
Hi,
i want to retrive data from database to arraylist ---
i wrote the code --but the content of arraylist is showing "sysytem.data.datarow"...please check my code and give me solution.
mycode is :
ArrayList empList = new ArrayList();
string connection = @"Provider=Microsoft.Jet.OLEDB.4.0;" +
@"Data source= C:\NorthWind.mdb";
OleDbConnection myconnection = new OleDbConnection(connection);
myconnection.Open();
//OleDbCommand mycommand = new OleDbCommand("select * from cellproducts", myconnection);
//OleDbDataReader empReader = mycommand.ExecuteReader();
OleDbDataAdapter da = new OleDbDataAdapter("select * from cellproducts", myconnection);
DataSet ds = new DataSet();
da.Fill(ds, "cellproducts");
foreach (DataRow row in ds.Tables[0].Rows)
{
empList.Add(row);
}
return emplist;
murali krishna
|
|
|
|
|
I don't get it - what's your problem?
You are adding "row" which is a DataRow-object to your ArrayList - so of course all the items of your ArrayList will be "DataRow"s.
With "showing" I guess you are talking about the ToString() function (or maybe you are adding the ArrayList to a listbox or something - and yes this will show the datatype.
So maybe you can tell us what you want to do with the content of the list and then we will try to help you.
|
|
|
|
|
Here i want to store database values in arraylist ( upto now ).
then after some i want to use that arraylist values into datagrid or table.
murali krishna
|
|
|
|
|
avvaru.murali wrote: then after some i want to use that arraylist values into datagrid or table.
So why do you need the ArrayList? You already know how to load the data into a DataTable and that can be used directly as the datasource for a dataGrid (or any other data bound control for that matter).
|
|
|
|
|
Hi All,
Could you help me please.
" I want to change my line color while debugging, the line which is yellow by default.
But i want to change line color from yellow to Dark green (or) any other color.
How it is possible?
Please help me.
Thanks
|
|
|
|
|
Sophia Rekhi wrote: How it is possible?
Yes
Menu:
Tools > Options
Enviroment > Fonts and Color > Display Items
Here you can choose any display item and Change the ForeColor and BackColor
|
|
|
|
|
Hi Abhijit,
Thanks a lot for u r help.
|
|
|
|
|
Hi Friends ,
i have a grid and i binded a dataset to it .
now if i update any thing in grid it should reflect the changes in the datset.
what i want is i have button when i clicked that it should show me the modifed data set.
i am not able to do this as its post back it is loosing all the data.
Thanks in advance
Phani
|
|
|
|
|
I do not figure out what you actually mean, but I guess using the Cache might help.
SkyWalker
|
|
|
|
|
Hello all...
Can any one please tell me how can we add .rpt and .cri extensions in IIS (windows 2000 with crystal reports 9 installed on the same). For crystal report 8 we need to map these extensions to "C:\Program Files\Seagate Software\WCS\Wcsinsapi.dll" but this is not the case with CR 9, so i am wondering if anybody knows how will it work for crystal report 9(CR 9).
If anyone knows how to do it, that will be a great help...
People often say that motivation doesn't last. Well, neither does bathing - that's why we recommend it daily
Akhilesh Singh
|
|
|
|
|
Hi All,
I am working on a project that requires handling of custom events. Some class will raise the DataEvent of RaiseEventClass. I have to implement event handler for the DataEvent in the RaiseEventClass. Please help me how to implement event handler. Please show some codes if possible.
Below is the skeleton of the class.
Thanks in advance!
public class RaiseEventClass
{
public delegate void RaiseEventDelegate(ArrayList files);
public event RaiseEventDelegate DataEvent;
public void SearchFiles(ArrayList list)
{
DataEvent(list); //raising event for testing
}
}
A.Asif
|
|
|
|
|
|
First you should change
A.Asif wrote: public void SearchFiles(ArrayList list)
{
DataEvent(list); //raising event for testing
}
to
<br />
public void SearchFiles(ArrayList list)<br />
{<br />
if (DataEvent != null)<br />
DataEvent(list);
} <br />
just to handle the case when no handler is attached to the event.
Then if you've got an RaiseEventClass object (call it "myObj") and want to handle the event just use
myObj.DataEvent += new RaiseEventDelegate(myHandler )
where myHandler is a function like
<br />
void myHandler(ArrayList files)<br />
{<br />
}<br />
By the way: afert typing "+= new" in the line where you attach the event you can hit <tab> twice and VS will write a handler-function for you (so you don't have to check the delegate to know exactly what kind of parameter / return you have to use)
One other comment:
you should include a "sender" parameter in every event you write (like object sender, or RaseEventClass sender - this helps you handle events from many sources in the same handler function and is always a good pattern.
|
|
|
|
|
I create a dll in runtime the code is following
<br />
Microsoft.CSharp.CSharpCodeProvider pr = new Microsoft.CSharp.CSharpCodeProvider();<br />
CompilerParameters cp = new CompilerParameters();<br />
string pathtoicon = @"f:\nido\em.ico";<br />
<br />
cp.CompilerOptions = "/target:library" + " " + "/win32icon:" + "\"" + pathtoicon + "\"";<br />
cp.GenerateExecutable = true;<br />
cp.IncludeDebugInformation = false;<br />
cp.EmbeddedResources.Add(@"E:\7.jpg");<br />
cp.OutputAssembly = "dgt.dll";<br />
cp.GenerateInMemory = false;<br />
cp.ReferencedAssemblies.Add("System.dll");<br />
cp.ReferencedAssemblies.Add("System.Data.dll");<br />
cp.ReferencedAssemblies.Add("System.Deployment.dll");<br />
cp.ReferencedAssemblies.Add("System.Drawing.dll");<br />
cp.ReferencedAssemblies.Add("System.Windows.Forms.dll");<br />
cp.ReferencedAssemblies.Add("System.Xml.dll");<br />
cp.TreatWarningsAsErrors = false;<br />
CompilerResults cr = pr.CompileAssemblyFromFile(cp);<br />
But cannot get the 7.jpg image back from the dll
I know there is no namespace and class but how can i get it back
Help me out plz
|
|
|
|
|
|
Hii
Could anyone please tell me that how to set the password of MYSql Database in runtime with C#.
Actually what currently i have done is i have installed MYSql and configured it and set the password there and i have hard coded the password in the connection string.
Is there any way to choose and set the password of MySql Database at runtime through C# code.
Any help will be appreciated.
Thanking You
Imran
|
|
|
|
|
set password = password("newone"); is the query for changing password. Try passing this through ExecuteNonQuery() .
|
|
|
|
|
|
ImranTech,
Just use AppConfig.
Regards,
Gareth.
|
|
|
|
|
hello frnds,
i have a windows application developed in C#.Net 2.0, i want to transafer a textbox value to anoter form Text how can i do that.
let consider i have frmOne having a textbox txtOne, a button OK, and another form frmTwo
i want to set the value of textbox as a text of frmTwo when i click button Ok
my code is here
//Click event of OK button
frmTwo frtwo = new frmTwo()
frtwo.text = txtOne.text
frtwo.show()
but faliled..
where i am wrong???
please help ????
thankx in advance
-koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Overload form2's constructor which accepts a string value as parameter. Pass the first textbox value to this when you are invoking form2.
frmTwo frtwo = new frmTwo(txtOne.text)
frtwo.show() Inside for2 constructor, assign the value to respective text box.
|
|
|
|