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
Hi guys i have a ssis package with a "Execute process Task" that executes a batch file. What I want to do by using expressions is to send multiple arugments do it.
Batch file looks like this....
cd %1
echo %1
pause
Ive set up my variables but how do i send mutiple values as the following...
Hi, does anyone know if there is a way of downloading files from a server using c#. Im trying to download files from a client they dont want to use FTP and its on an address like
https://xxxx.xxx.com so its using HTTPS protocol
thanks
Hi I am trying to convert the following value of type double 0.000001096492799312173 to string, the problem is that it is removing the last digit, "3". i.e as a result I get 0.00000109649279931217.
please Help any ideas?
Hi I want to connect to a sql 2000 database using the windows credentials of the request. The reason I'm doing this is because certain users have restricted access to some tables.
On IIS i have set windows authentication, question is what else would i need to do.
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.