|
Ok now i am creating a button to send data to a website with POST method
it works fine but the problem is when i press the button it shows me invalid referrer
Is there anyway to change webBrowser referrer?
|
|
|
|
|
Hi,
I'm trying to unbox a value stored in ViewState using the code below:
I can't seem to figure out what I'm doing wrong, can someone please perhaps point out what I'm doing wrong or perhaps an alternative?
<br />
(Int32)ViewState["totalLightsWatt"] = ((Int32)ViewState["totalLightsWatt"]) + (Int32.Parse(txtLightsQty.Text.Trim().ToString()) * Int32.Parse(cboLightsItems.SelectedValue.ToString()));<br />
Thanks.
R
|
|
|
|
|
hi,
you can't cast the left hand side, just drop the first (Int32) .
If your expression (that is the right hand side) does not have the type required by
the left hand side, make sure it is in parentheses (it is now) and cast it as in
ViewState["totalLightsWatt"] = (viewstatetype)(....); .
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Hi Luc
Thank you very much for your reply.
Your solution made my error very clear and I get what I did wrong now.
Thanks once again.
|
|
|
|
|
hi
how can i attach file to mail and send it using c# code ?
thank's
|
|
|
|
|
With a
System.Net.Mail.MailMessage
and a
System.Net.Mail.SmtpClient
Now I see you posted this twice and apparently ignored the response to your earlier post. You don't deserve an answer.
|
|
|
|
|
You asked this question yesterday here[^]. They replyee gave you the proper, correct answer. Why did you re-post the same question? Were you looking for someone to respond again, but do your work for you this time? This isn't rent-a-coder. People will give you information to get you going on the right path.
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
Hi all,
I am currently developing a windows application using C# and i am using Visual Studio.Net 2005.
I need this application to be a startup program. i need to create a system tray icon and add
it to my windows form. Then i have to edit the Double_Click event of the NotifyIcon control
such that the form will be minimized/maximized + set the ShowInTaskbar true/false depending
on whether the user wants to show or hide the application.
How should I do ?
Thanks in advance for any replies.
cheers,
peaceziz
|
|
|
|
|
|
How do you get it??
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
This[^] is what I got after a google.
|
|
|
|
|
Ok, ok, sorry guys, I understand
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
|
Thanks
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
I have a c# project and native c++ dll(with code) the dll is attached to c# code is there any way in which i can put a break point in c++ code and track down.i Use visual studio 2005
|
|
|
|
|
Yes, Visual Studio supports both C# projects and C++ projects inside a single solution. Add both projects to a solution in VS, you should be able to set a breakpoint in your C++ code.
|
|
|
|
|
But it does not hit the break point it says no source code availabe
|
|
|
|
|
Is the C++ dll you're using built in debug mode?
|
|
|
|
|
Hi
I am doing some image processing stuff with the help of Christian Graus articles available here. But he has performed all the image processing stuff directly on the form. Whereas i want to use picture box. And i have tried several ways but its not working.
Can any one help me out with any example of his Image Processing application over the picture box.
Thank You
James
|
|
|
|
|
james_dixon_2008 wrote: its not working
that does not tell us anything.
I don't think a PictureBox is a very useful Control, it gives more trouble than
it is worth.
I'd rather load and paint my Image myself, painting it either onto the Form or a simple
Panel. In both cases all painting must be handled by the Paint handler.
Whatever you do, for image processing, the first step is to perform the processing,
the second is to redraw it, either by telling the PictureBox to reload its Image (I guess
by reassigning its Image property), or the Form/Panel to redraw itself (by issuing an
Invalidate).
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Ok, I know there are some articles and I've looked at this. This is my question though. I have a form that is a container. Lets call that form Main. Ok I have two more forms ContactList and EditContactList.
Now to open ContactList this is the code:
Form f = new ContactList();
f.MdiParent = this;
f.Show();
Now ContactList has a menu bar that is suppose to open EditContactList. So how do I make it where ContactList opens EditContactList, but the parent for EditContactList is form Main? The articles always use f.MdiParent = this;
f.MdiParent = Main(); does not work.. so if you could help me out, I would appreciate it!
|
|
|
|
|
Form f = new EditContactList();
f.MdiParent = this.MdiParent;
f.Show();
|
|
|
|
|
awesome, thanks... so this.MdiParent means the form's (this) parent (MdiParent).
|
|
|
|
|
Yeah. The 'this' isn't strictly necccesary but it makes the code a little clearer.
|
|
|
|
|
hi
i want a control (like pictureBox) that display an image as map with pan & zoom tools to navigate in it, does exist that control?
thanks
|
|
|
|