|
billcodes wrote: public B Getval()
There is no type called B. What makes you think there is ?
It would help if you told us the exact error message, and the line that generates it, but at first glance, I think this is your problem.
Your other problem is that this is the ASP.NET forum, which this question has NOTHING to do with, in any form. Pls use the C# forum in future.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
billcodes wrote: public B Getval()
{
BB b=new BB();
b.A=5;
b.B=1;
}
You also don't return anything. I *think* you wanted to write
public BB Getval()
{
BB b=new BB();
b.A=5;
b.B=1;
return b;
}
It's unusual for a non static method to return an instance of a class, I need to create a BB to call Getval, and get another BB.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Your propertys are completely wrong. You're trying to return _a but when you're setting the property you set _deno to a. Try this
class AA
{
public AA{}
private decimal _a;
public decimal A{ get { return _a; } set { _a = value; } }
}
|
|
|
|
|
I guess you meant to post this in the C# or VB.NET forum ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
use
base keyword to access all the base class variables.
|
|
|
|
|
Hi,
How to change keyboard language programmatically in asp.net. so that user can enter in their own language instead of specifying everything in Resource File
Thanks in Advance
|
|
|
|
|
The first step would be some sort of IP mapping to work out the location of your user, unless you ask them. But, given that an ASP.NET program never interacts with the keyboard directly the way a winforms app can, I'm not sure what it is you're asking. Are you talking about the language of the page, not the keyboard setting ? In that case, see my first sentence.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: The first step would be some sort of IP mapping to work out the location of your user, unless you ask them
I would rather use the browser locale setting.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Well, if that gets posted to the server, then use that. Assuming it is set correctly.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
How can I set paper size before printing a document using window.print()
|
|
|
|
|
you can't. You seem to have a shaky grasp of what javascript it designed for, and what it can hope to achieve.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
You can only call window.print to open the Print dialog box. After that the user will set the pagesize himself.
|
|
|
|
|
|
Could you pls send the code that you use for exporting. I think there might be problem about response encoding.
|
|
|
|
|
please share idea if any developed Floating login like www.ups.com.
please help me and also give me a sample code or any url if possible.
Thanks in advance.
tbhattacharjee
|
|
|
|
|
That can be easily done by DIV .
|
|
|
|
|
hello,
i have a GridView in Itemtemplate there are two link buttons
with command name "Edit"
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID='lnkYesHelp' CommandName='Edit' runat="server" Text='yes' Font-Bold="true"></asp:LinkButton>
<asp:LinkButton ID='lnlNoHelp' CommandName='Edit' runat="server" Text='no' Font-Bold="true"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
on when RowEditing event get fired how i know which button user clicked
|
|
|
|
|
I am developing a web application where, I have a content editor and preview
button. On click of the Preview button, i am showing a ModalDialogBox to see the changes in the editor.
But my concern is the content can be so lengthy and sometimes, 40 to 50 lines of text.
How can I pass the editor content to the modaldialog box in this case.
The preview I am trying to implement is similar to Codeproject message preview.
Any help would be appreciated.
CodingRocks
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
codingrocks wrote: The preview I am trying to implement is similar to Codeproject message preview.
If you have a close look at the preview you would notice that the ID of the Textbox is passsed in the URL. Thus you can access the content of the textbox by using the following javascript code.
window.opener.getElementByID("TextBoxID").value
Hope it helps.....
When you fail to plan, you are planning to fail.
|
|
|
|
|
|
I don't see any reason for this not to work. Are you sure it never gets called ? Where is the code in question ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
problem was in HTML code of the page, AutoEventWireup="true" was set to false. once i set it to true everything worked!
thank you
|
|
|
|
|
|
sorry but i didnt want to spam this board with trivial problems
i wont next time
|
|
|
|
|
nicromonicon wrote: sorry but i didnt want to spam this board with trivial problems
You know the question you have asked, it may be a problem for some others. So if the search in the forum they can easily get from the question. But, Now they couldn't.
nicromonicon wrote: i wont next time
|
|
|
|