|
Is there any other way of doing this ..
To use HttpServerUtility one needs Server object...
|
|
|
|
|
You can also use HttpUtility.UrlDecode().
---
b { font-weight: normal; }
|
|
|
|
|
Hi all,
I’m currently developing a Client/Server application based on Socket, on which the client runs a UI and submit some request which will be send to the server then the client exit. Then the server manipulates these data on his side.
1. I’m trying to force a simple dialog to run at the client machine, on which the user provide an answer from that dialog (Yes/ No) and click O.K.
2. The server then receives this feedback and does something.
I need some help on this issue, I’ll appreciate it. Thanks
Kind Regards,
Mohammad
|
|
|
|
|
mohammad929 wrote:
I need some help on this issue, I’ll appreciate it. Thanks
What exactly is the help you need?
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
I want to render simple HTML on a form without the overhead webbrowser control.
I'd like to render IMG, H1, TABLE tags - and ideally INPUT tags too.
I appreciate that implementing a full web browser is no simple task, but this is much simpler.
Anyone come across any suitable code (even in another language)?
Thanks
Robin
|
|
|
|
|
May this help
XHTMLStatic [^]
And there are another one at code project but i dont remember its name its some thing like draw html
MCAD
|
|
|
|
|
|
|
Hi,
i have a handle some aplication... how can i simulate click on some coordinate or keyboard typing?
Greetings
|
|
|
|
|
Hello...
To simulate a click or keyboard typing you can use SendMessage to send a spefied message to the window...
|
|
|
|
|
Hi,
i have two images :
- image A
- image B - is small part image B
how to find location(x,y) image B in image A?
Greetings
|
|
|
|
|
Hi,
In a relational database, I would to like to know the performance difference between of using a string and an integer as the primary key field for the tabl;e. Will a column field of integer be indexed faster than a string column field ?
Thanks
|
|
|
|
|
|
Hi!
When I try to send udp-packets broadcasted in my local LAN by this code:
<br />
Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);<br />
s.SendTo(Encoding.ASCII.GetBytes("Some text to send"), new IPEndPoint(IPAddress.Parse("192.168.0.255"), 11000));<br />
And do the receive with this:
<br />
client = new UdpClient(11000);<br />
IPEndPoint EP = new IPEndPoint(IPAddress.Any, 11000);<br />
byte[] buffer = client.Receive(ref EP);<br />
I always get two messages received! My explanation for this is, that udp is connectionless and by broadcasting it it's returned by some other device - I don't know.. Can you explain it to me and give a tip how to avoid it?
|
|
|
|
|
Hi,
Is it just me or does the ListBox class in .net 2.0 exhibit some odd behaviour?
For instance, when I use the mouse wheel to scroll it seems to do some weird redraw-from-the-top update method.
Also, it flickers like crazy when resizing. I've tried enabling the double buffering mode to no avail. I have overridden it to draw icons next to the text which works fine, but it seems to clear the entire background, not just the dirty area, every time.
As a sanity check I then placed a stock ListBox control on a new form to see if it works in its standard mode but it exhibited the same symptoms. The odd thing is it doesn't do this with .net 1.1.
Does anyone else suffer from this or know of a solution?
Regards,
Shane
Shane Stevens
Technical Director
Blue Tongue Entertainment
www.bluetongue.com
|
|
|
|
|
hi
im using MS access database to keep my data and using visual studio .net 2003 to design forms...
i want to know how to retrieve data from access to my forms in visual studio .net.. what codes must i write in visual studio .net or must i use some access wizard to do what i want?
thanks!
|
|
|
|
|
see System.Data.Oledb Namespace[^]
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke
|
|
|
|
|
ok, now i want to check with you>
where do i write my codes to connect to my database from within my app? do i write the codes in a new form or the form i've been using all along to create my app?
thanks!
|
|
|
|
|
nidhelp wrote:
ok, now i want to check with you>
where do i write my codes to connect to my database from within my app? do i write the codes in a new form or the form i've been using all along to create my app?
if you have to get many data when you start your appliactio use splash screen to connect and get the data
and when the you got the data show the form that deal with data
But general rule try to separate the code that access and manipulate the database and put it in dll and call it from your win forms
MCAD
|
|
|
|
|
Its more of a preference for the programmer but security-wise and readability i agree it has to be put in a different form. I usualy do my queries in a different form, pass it to another dll for sorting, editing, etc then finally pass it to my win app or web app.
Hope that helps!
Kampai!!!
|
|
|
|
|
Hi, examine the following code.. for my puspose it works fine..
but, -How do I check 'myType' realy exists ???
public static object Construct(Type myType)
{
return System.Activator.CreateInstance(myType);
}
|
|
|
|
|
What do you mean? If you get that type as argument myType it does exist
If you mean something like System.Activator.CreateInstance("MyType",...); then it throws exception as described in MSDN[^]
You can use Assembly.GetType Method (String)[^] to determine if type is in assembly, it returns null if type wasn't found.
Never forget: "Stay kul and happy" (I.A.)
David's thoughts / dnhsoftware.org / MyHTMLTidy
|
|
|
|
|
i was using the old system.web.mail classes.
and try to sent emails with net.mail, but i get an exception:
System.Net.Mail.SmtpFailedRecipientException was unhandled by user code
Message="Mailbox unavailable. The server response was: 5.7.1 Unable to relay for bla@bla.bla"
host property of SmtpClient must be set up! but what is default smpt host? is it "localhost"? i get an exception if i use it.
if i use this code it work for me (System.Web.Mail):
SmtpMail.SmtpServer = null;
SmtpMail.Send(mail);
because the name of the local SMTP server is used!!!!!!
WHAT NAME IS IT? how can i find it out?
i need the name to set the property Host of SmtpClient (System.Net.Mail).
thanks
thank u for ur advice
|
|
|
|
|
You have to specify SMTP-server, which you will use for sending mail...
I did following:
myClient = new SmtpClient(serverName, Convert.ToInt32(serverPort));
where serverName is IP-adress of SMTP-server.
--
Digitally yours, Bounz
|
|
|
|
|
Bounz wrote:
myClient = new SmtpClient(serverName, Convert.ToInt32(serverPort));
You may use IPAddress or the Dns Name of the server also. But the quicker trick would be CDOSys can be configured to relay to the local server and have the local server relay to a SmartHost in the network, which would do all relay, authorization checks etc to send the mail.
That way, our application is freed up from using a slow costly network communication resource through its process.
Vasudevan Deepak Kumar
Personal Web: http://www.lavanyadeepak.tk/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|