thanks, it worked
- A programmer's national anthem; "AAAAAHHHHH!!!!"
thanks, it worked
- A programmer's national anthem; "AAAAAHHHHH!!!!"
i am creating a directory using code string path="C:/My Documents/"; Directory.CreateDirectory(path);
directory is created successfully and i can view it in my c drive, now if i tries to upload a file using code if (FileUpload1.HasFile) { path += FileUpload1.FileName; FileUpload1.SaveAs(MapPath(path)); }
it produces an error message showing "virtual path 'C:/My Documents/fileName' does not exists" while path do exists in my drive. any suggestion about the reason of this error. Thanks in advance.
- A programmer's national anthem; "AAAAAHHHHH!!!!"
Hi, Can I use <% = and %> tags to insert ASP.NET code snippets into my HTML? If yes? why doesn't the following code work?
<asp:RadioButton id="<% = r[i]["ID"].ToString() %>" runat="server" />
Also, if I use something like:
<asp:RadioButton id="SomeID" value="<% = r[i]["Value"].ToString() %>" runat="server" />
Any Ideas?
- A programmer's national anthem; "AAAAAHHHHH!!!!"
Thanks Sandeep, I'll be obliged. :) hope to hear from u soon...
- A programmer's national anthem; "AAAAAHHHHH!!!!"
Yes, it's like (NOTE: I am typing it by hand (as the code is not in my laptop right now), so please ignore any syntax errors )
namespace LSW
{
class SignUp : System.Web.UI.Page
{
...........
...........
and I trying to access it with inherits="LSW.SignUp"
which throws unresolved symbol error. strangely enough, as soon as I remove the namespace (from both the class and the inherits
attribute), the code starts to work... Warmest Regards,
- A programmer's national anthem; "AAAAAHHHHH!!!!"
Thanks, and yes it is so, but what is the fix? :)
- A programmer's national anthem; "AAAAAHHHHH!!!!"
Well, yes, it does look like it... why? is it wrong? Warmest Regards,
- A programmer's national anthem; "AAAAAHHHHH!!!!"
Hello, I am getting a strange problem in my projects (ASP.NET/C#), whenever I try to put the classes into a namespace, an error is generated saying that it cannot resolve the symbol i.e.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MyPage.aspx.cs" Inherits="MyPage" %>
works fine, but
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MyPage.aspx.cs" Inherits="MyNamespace.MyPage" %>
doesn't! any ideas why this might be happening? Warmest Regards,
- A programmer's national anthem; "AAAAAHHHHH!!!!"
Thanks for the reply pal, have tried that already, doesn't matter what the name of the class is, it still won't compile... :(
- A programmer's national anthem; "AAAAAHHHHH!!!!"
Hello, take a look at the following line of code...
<%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="false" Inherits="_Default" %>
however, if I put the class _Default
in a namespace, say MyNamespace
and try the following line:
<%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="false" Inherits="MyNamespace._Default" %>
VS generates an error:
Could not load type 'MyNamespace._Default'
Any help would be highly appreciated...
- A programmer's national anthem; "AAAAAHHHHH!!!!"
I thought the same when I first looked at the error message, but the funtions is public. Do I need to put 'public' before 'class' as well?
- A programmer's national anthem; "AAAAAHHHHH!!!!"
You take the values and run the query through an SQLCommand Object, that's the simplest solution...
- A programmer's national anthem; "AAAAAHHHHH!!!!"
Hello, (call it my laziness or my haste that I am post a question straight here instead of consulting the reference books) I have a point class in my project called FoxPoint, can I make a 2D array like this: FoxPoint[,] strokes = new FoxPoint[4, 10];
It's giving me strange errors:
Error 1 Inconsistent accessibility: parameter type FOX_CSharp.FoxPoint[*,*]' is less accessible than method 'FOX_CSharp.ConComp2Form.DrawBoundries(FOX_CSharp.FoxPoint[*,*])' C:\...\FOX_CSharp - Integrated - Aug 05 06\FOX_CSharp\ConComp2Form.cs 195 21 FOX_CSharp
- A programmer's national anthem; "AAAAAHHHHH!!!!"
Hello, I have an array of, say 40, elements, and I want all the elements to contain 255 when the array is initialized, is there a way to do it? (like in C++, we did int array[40] = {255};
)
- A programmer's national anthem; "AAAAAHHHHH!!!!"
Hello, Is there a way to create native exe from VS.NET? I have an application that would be used by a client who I don't think would have .NET framework. - A programmer's national anthem; "AAAAAHHHHH!!!!"
Is there a way to use a C DLL to use in a C# Application? :) - A programmer's national anthem; "AAAAAHHHHH!!!!"
Iain Clarke wrote:
A CDocument is supposed to have no idea about how its data is displayed
Yup! but we break the rules sometimes! ;) Actually, I just need a refrence to a DC (the View's DC) to set some parameters, I am not doing any drawing... - A programmer's national anthem; "AAAAAHHHHH!!!!"
Dear All, how can I get a pointer to DC (that is associated with the View):-> from the document class? I need a pointer to DC to do some manipulation... I am using: CDC *pDC = AfxGetMainWnd()->GetDC(); .... .... AfxGetMainWnd()->ReleaseDC();
but it's not working as expected... - A programmer's national anthem; "AAAAAHHHHH!!!!"
I said it's not my libraries that crash, it's .NET that crashes (my library returns the values as expected) - A programmer's national anthem; "AAAAAHHHHH!!!!"
What is correct? giving negative height? I did that and CLR returned an exception... - A programmer's national anthem; "AAAAAHHHHH!!!!"