|
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
|
|
|
|
|
my problem is like
i hv send send a form to a user's mailbox from my site after filling the form data user submits it.and after submitting data shuold be entered in my sites database.my site is built using ASP.NET &C#
please help me
alok tripathi
|
|
|
|
|
If the email is HTML and does a submit to your web site, then you need to have them submit to an ASPX, get the values you need out of the form and put them in the database.
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 )
|
|
|
|
|
OK, I give up. If I have a plain text file as an embedded resource (web resource) in an assembly for a web app, how the heck do I acquire the text that it contains at runtime? I don't want a URL to it, I want the actual text itself so that I can programatically assign it to various HTML elements.
|
|
|
|
|
Let me confess that am not the best there is in Javascript and am doing something about that. I have created a custom multi-column dropdownlist comprising of a fixed length textbox and a dropdown whose length is limited only by the longest text on the list. It is however faced with a few problems. When the control is positioned near the right side of the page, I want the dropdown to extend to the left side of the page. I need someone to give me guidelines (links, ideas, code listing) on how I can make it exhibit my desired behaviour. Thanks in advance
|
|
|
|