Hey Jason, thanks for your reply, I guess the solution you provided is ok for this situation or one where I dont have deep nested controls.
What if I have control A that needs to listen out for an event and control A is embedded in control B. How would I do this? Control B is on the form with a...
Hi, I have a basic form with a button and a usercontrol (which is just a label).
What I want to do is when I click the button, raise a custom event and have the usercontrol listen out for it.
Any ideas how i can do this? I have got as far as this.
The Event
---------
using System;
using...
I cant seem to make these readonly any ideas, thanks
for(i=0; i<document.forms[0].elements.length; i++)
{
{
document.forms[0].elements[i].readOnly = true;
}
Figured it out my url was incorrect, if anyone does want to know then you set the Credential property of the HttpWebRequest object, passing in the username and password, as seen below.
HttpWebRequest req = new HttpWebRequest();
req.Credentials = new NetworkCredentials("<your...
Hi, i had a look at the article, thanks but i dont want to write my own httpObject, I sure this must be easy with the HttpWebRequest class, but how do i pass the username and password?
so far got this
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
// Set some...
Hi, im trying to request some data from a server using HttpWebRequest and HttpWebResponse classes.However all communications with the servers are encrypted using the HTTPS (HTTP over SSL) protocol. I have been given my username and password from the vendor. Question is how do I pass these into...
I have the following code...
static void Main(string[] args)
{
for (int i = 0; i < 10; i++)
{
ThreadPool.QueueUserWorkItem(new WaitCallback(Method));
}
}
// This thread procedure performs the task.
static void Method(Object stateInfo)
{
//do...
Hi
I have a dataRow that has a field which contains a datetime.
Does anyone know how i can get it into the following format in C#
Friday, 15 June 09:11am
Thanks
Gary
Hi, does anyone know how I can achieve the following in c# as a string...
(1) The current year
(2) The current month
(3) The current Day
in the following format
20080422
im having problem with the 04 bit, DateTime.Now.Month.ToString() returns 4 not 04.
thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.