|
Ranger49 wrote: public Bitmap objBitmap = new Bitmap(300, 300);
public Graphics objGraphic;
public Pen myPen = new Pen(Color.Red);
Why are these public ? Why are they members at all ?
Ranger49 wrote: MakeUniqueFileName
Why does this not return the filename ?
It's probable you don't have write permissions on the folder, or it doesn't exist. Hard to say without seeing the error
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
The problem is that the enterButton_Click method (which should call a class to compute a fractal which then saves it to a Bmp pic file) never runs. Also my codefile in the App_Code ProduceImageFile.cs never is even run.
I wanted the enter.aspx to call the ProduceImageFile.cs but somehow that never happens.
In enter.aspx is a startButton_Click method which also never seems to fire, even though it does move you to the display.aspx which is intended to display the computed picture, the wanted calculations are never made on this click.
So there may not be any bugs in the code where I expected it, this code never is reached and executed!
About the App_Code folder, do you need to do something with the namespace or something to make sure the aspx (cs) file can find it?
Hope this is clearer now.
Thanks everybody.
Ranger.
Novice
|
|
|
|
|
Ranger49 wrote: About the App_Code folder, do you need to do something with the namespace or something to make sure the aspx (cs) file can find it?
No.
How are the buttons hooked up to events ? If they are created on the fly, they need to be created in the LoadViewState event, so that they exist when view state is restored, and their events are not lost.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: How are the buttons hooked up to events ?
I only got a enterButton_Click method.
Is there a LoadViewState event in the properties window of the button? I couldn't find it.
Ranger.
Novice
|
|
|
|
|
As it turned out the code was never even reached.
So I made an instance of the class that should generate a bmp file in the Page_Load handler of my enter.aspx.
Now it did run, but now I get the message:
Response.ContentType = "image/bmp"; not available in this context...! Which is the ProduceImageFile.cs (a class file)I checked all using statements, and I think I got all the ones I need.
When you type R you get Response and then you type '.' and C and get Response.ContentType, so I feel this should be available, but for some reason I get an exception that my application cannot handle the
Response.ContextType = "image/bmp"; statement.
Could anybody tell me how to fix this? It is kind of frustrating to have to spend days on simple things that don't want to work, simply because all those online help files only address the hard issues.
I tried these concepts in small projects and got them to run properly, then I tried to encorporate them in a larger application and again it refuses to function!
Ranger.
Novice.
|
|
|
|
|
how can I send email via asp.net 1.1 and C# and sqlserver2000?
I dont know how should I write for mail.smtpserver
plz tell me.
thanks alot. bye
|
|
|
|
|
Do you know the mail server you want to use ? If not, check your outlook settings.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
using System.Web.Mail;
#region SendMail
public bool SendMail(string TargetEmailAddress,string MessageBody)
{
try
{
MailMessage mailMsg = new MailMessage();
mailMsg.To = TargetEmailAddress;
mailMsg.From = "AnyEmailAddress";
mailMsg.Subject = "Subject Of Email";
mailMsg.BodyFormat = MailFormat.Html;
mailMsg.BodyEncoding = Encoding.UTF8;
mailMsg.Body = MessageBody;
SmtpMail.Send(mailMsg);
return true;
}
catch
{
return false;
}
}
#endregion
We Can Do Anything, If We Want It
|
|
|
|
|
Hi,
I have 2 web application hosted on 2 separate servers.In first application i had one anchor tag whose target=_None and href="url of 2nd application"
Is it possible to access the cookie which is created by first application in second application ? if yes how?
Any help on this.........
Regards,
Ritesh
|
|
|
|
|
I want to have a website with two sections; Admin and user section . How can I have two cookie path for authenticating purpose. As you might know we sepcify a path in web.config file for cookie path.
<forms name=".SiteAUTH" protection="All" timeout="120" path="/">
<credentials passwordformat="SHA1">
Is it neccessary for me to have two paths for the two section . How is this possible ?
What I want is to have to kind of users ; administrators and normal users .
|
|
|
|
|
Hi, I'm Tring to pass a String Parameter From .Net Application to .Net ASP Web Service.
I'm Sending A Valid String but the web service Gets Null String insted of the string that i've sent to it.
I must say that this same Web function Has another parameter, of inteter
type, and that this parameter is passing OK with the right value.
Thaks Ram.
|
|
|
|
|
Did you try creating a test web method and pass it the same string in the same method your currently using?
Outside of this, did you test your web service itself with good/known values?
|
|
|
|
|
Passing a string to a web service is nothing complicated. Actually, all values are passed as strings, so when you pass an integer value, it's converted to a string, sent to the web service, and converted back to an integer.
The most likely reasons for this to fail, is either that you are doing something wrong when passing the string value to the web service, or doing something wrong when using the value in the web service.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hello!
I use Visual Web Developer with IE6 (because my PC won't accept IE7) and today I was working on my projct and that suddenly I no longer got the question "run with debugging?"
I saw a message that in Internet Options (I assume of IE) I should remove a check from a box with 'Disable debugging'. Now I have a Dutch IE6 so I couldn't find the box, but I did remove a check from a box with 'disable script debugging' from it. But that didn't help.
It puzzles me that during the last week I often used the debugging mode with breakpoints and that everything worked fine and now I can no longer halt VWD with a breakpoint!
What do I do now?
Btw, my project is going really well, but all this is new to me, so I have yet to find out why certain code won't do what I want.
Please provide me with some advice.
Ranger.
Novice.
|
|
|
|
|
go yo web.config
change this line
<compiation>
to this
<compiation debug="true">
i hope this will help
|
|
|
|
|
In the web.config file I already set the debug="true" if this is what you mean?
Ranger.
Novice.
|
|
|
|
|
then help yourself brother
|
|
|
|
|
Hi
I would like to use a control to display pictures 2 side by side like this:
_____________________________________
| | |
| | |
| Picture | Picture |
| | |
|___________________|________________|
| | |
| | |
| Picture | Picture |
| | |
|___________________|________________|
| | |
| | |
| Picture | Picture |
| | |
|___________________|________________|
Is there a way to make a gridview do this rather than just list downwards?
The pictures are read from a database so if the gridview cant do this is there an ASP.NET control to do this or will I have to make my own that reads from the dataset provided?
Thanks
Dan
|
|
|
|
|
You can use a datalist control or a repeater for that matter.
The datalist control is probably a bit more flexible. You simply build a template that make up your html and bound fields, then you can set the repeat direction and how many to display in each row.
Hope this helps
|
|
|
|
|
That sounds like exactly what I want!
Thanks very much.
Dan.
|
|
|
|
|
Glad I could help
|
|
|
|
|
Gday everyone,
I have a new problem that I need some help
I have a horizontal menu using SiteMapDataSource. I need to put a separator or an image between menu items, I looked at menu control property, but it seems there is no such property to select.
Does anyone know how to do it? Please guide me.
Thanks in advance
eric
|
|
|
|
|
hi
i have a usercontrol(ASCX) that load(Page.LoadControl(...)) in popup window(ASPX) with window.showModalDialog(in javascript), but this page chaching.
what i do for no cache this page?
thank you
|
|
|
|
|
Use Response.Cache.SetCacheability ( <YOUR_PREFERENCE> ) in ASPX page...
|
|
|
|
|
Hi there
I have placed an AJAX accordion control on my aspx page as a menu using nested accordions. I have also implemented java script which causes the images on the accordion to change their image onMouseOver, and change back onMouseOut. What I am now striving to do is the when a image is clicked, the image remains on the "mouseOver" image. The problem here is that while on the click event my script runs and the image changes, the MouseOut script also runs, even if I DO NOT move the mouse off the image after the click. I appears that mouseOut runs by default after a onClick event.
Does anyone have a possible solution to the problem, as I have already wasted well over 6hours on this what is seemingly a mundane task.
Thanks
Devin
|
|
|
|