|
ad3z wrote: bigfoot
|
|
|
|
|
your best bet would be to try Source Forge or something like that
|
|
|
|
|
Hi,
I have a web service method call RegisterMember() that takes some inputs from the client app. do some processing and then send the result to an external url (http://someexternalurl/RegisterMember.aspx), which would registered the member on their database.
I am using HttpWebRequest to POST the data to the external url. I set up a test environment and run my web service. The result "The member has been registered" is returned to the client app. but nothing happens on the POST request. That is, no record were inserted into the database. Is my syntax for HttpWebRequest correct? Is there a security setting on the Web Service? If I were to invoke the url (http://localhost/test/RegisterMember.aspx?fname=test&lname=test) directly, the record get created so I don't think that is the problem.
My code for the web service is shown below:
<pre>
[WebMethod]
public string RegisterMember(string fname, string lname)
{
//process the data here ...
//POST data to external url
string cSeparator = "&";
ASCIIEncoding encoding = new ASCIIEncoding();
string cPostData = "Fname="+ fname + cSeparator + "Lname=" + lname;
byte[] data = encoding.GetBytes(cPostData);
// Prepare web request...
HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create("http://localhost/test/RegisterMember.aspx");
myRequest.Method = "POST";
myRequest.ContentType = "application/x-www-form-urlencoded";
myRequest.ContentLength = data.Length;
Stream newStream = myRequest.GetRequestStream();
// Send the data.
newStream.Write(data, 0, data.Length);
newStream.Close();
//returns to client app
return ("The member has been registered");
}
</pre>
Thanks,
Khuan
|
|
|
|
|
hi all,
one more question concerning dataGrids.
How can i resize the table contained in the dataGrid so that it fills the dataGrid till it borders only. I mean to fit in the width not height.
i need it programmaticaly
thanks in advance,
Help me cz i will help you when you need
|
|
|
|
|
Have you tried width 100%?
|
|
|
|
|
HI
I need to make a proxy website for my project. Ny idea how to do that?
Sankalp Verma
|
|
|
|
|
Can you please explain what the hell a proxey website is?
|
|
|
|
|
i am also want to know how to use proxy in your application.
i want to write a program with a proxy function.
who can tell me how to do this?
thx
I think therefore I am
--~--~---------~--~----~------------~-------~--~----~
My Blog and Website:
http://www.cnblogs.com/pinzui/
http://www.pinzui.cn
http://jnlinux.org
--~--~---------~--~----~------------~-------~--~----~
|
|
|
|
|
What exactly do you mean by a proxy website.
|
|
|
|
|
a website that provides an http proxy. Kidiot's use them to try and bypass thier schools netnanny software, and then wonder why they got busted when the bigbrotherware finds pron in thier IE cache.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
That's what I thought, but I was hoping (against all hope) that I was wrong.
|
|
|
|
|
Is the OP's bio any indication of his age?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Until you mentioned it I didn't think to look. I just posted on the most likely assumption. The bio did probably rule out an IT person trying (foolishly) to bypass his employers netnanny software though.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
hi,
I have file1.xml (with more no.of tags, no repetition), and i need to search/extract the value for the given 'tag' ,
I use c# for coding,,, can i use dataset/xsd concept and readxml method.
And in some cases after retrieving the searched value i have to modify and save it back
(the task is to work on edi-documents)
Could u anybody please help me to solve this
-- modified at 1:30 Friday 5th January, 2007
|
|
|
|
|
You should be able to use a DataSet. In addition, you might want to look at XPath. Here's the link on MSDN: MSDN XPath documentation[^]
|
|
|
|
|
Or ofcourse if the xml file is small and a really basic xml file, you can try the XmlTextReader object, which is more easy to use. XPath is quicker though, but you might want to consider the xml text reader...
|
|
|
|
|
How to create string array collection?
I am using this when i want to create string arrays and fill it with data and i don't know how many strings i should create.
thanks
|
|
|
|
|
Try using ArrayList
Do your best to be the best
|
|
|
|
|
You can use either:
System.Collections.Specialized.StringCollection
Uri
|
|
|
|
|
Yes christmas was good,and I left my brain in a bottle some where.
How do you convert char[] into strings and char[] into numbers ( greater that 10 eg 1234). I can manager sigles chars but the brain isn't fully functioning yet and I got new year to go yet!
Thanks.
|
|
|
|
|
to convert char[] into numbers you could loop through it converting each individual char into a number. Each time you move onto the next char you just multiply the number you are creating by 10 and then add the new character to it.
|
|
|
|
|
Thanks, but their must be better way on carring out a 'atoi' with char arrays in .Net, and still cannot find a way to convert an array of chars which is delimitted into a string.
|
|
|
|
|
The String class has an overloaded constructor that allows you to pass in a char array.
char[] myChars = new char[] {'A', 'B', 'C'};<br />
string myString = new string(myChars);
EDIT: oops missed the other post that points out the string constructor
|
|
|
|
|
int val = int.Parse(new string(myChars));
Luc Pattyn
|
|
|
|
|
I am implementing a Case Based Reasoning (CBR) system and I would like some help with the comparison part. There are lots of cases stored in a SQL database which I query to narrow the search field but I still have several cases to compare. Each case has 10 pieces of information which I am comparing to a new case to find out how similar they are. Does anyone know a good way to do this similarity check other than just looping though each case? I am trying to find the quickest way possible.
Thanks
Adam
|
|
|
|