15,891,372 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by rajh7 (Top 25 by date)
rajh7
28-Dec-11 12:46pm
View
There is already one routes.mapRoute with default routename. should I leaveit like that and add these two. Or i should replace that with one of these.
rajh7
25-Nov-11 15:44pm
View
what does it mean? could you show me please
rajh7
25-Nov-11 14:19pm
View
Thanks for your time
rajh7
25-Nov-11 14:18pm
View
anyways thanks a lot for your time i appreciate it.
rajh7
25-Nov-11 13:41pm
View
to be simple enough what i meant was .after the pages is poped up and when we see the page ...now i want to do some work in the class and enable the button. any ways i done get the document.ready().
rajh7
25-Nov-11 13:18pm
View
Yes you are right ..as soon as the page is loaded the button lost its state. it has null value. it had disabled value before by default. to my understanding the button is in the vew.aspx page. and i saw it in another place like protected global:: CNS.Web.Controls.Button transitionStageBtn; So I made a method in vew.aspx.cs( where button is available) that can return that button in user control class when i call it ok. now am at user control class and the method i made is returing the value successfully but only till the page is loading. after that its lot the value.
rajh7
25-Nov-11 13:03pm
View
Buttton is in the page and i accesed it in my user control class within the load method as i put it above. and i set the button to disable in the page already and when i check the button in my user control in page load its disable so good right...now i want to enable it after the page load is done...to do that i need to keep the state of the button right.
rajh7
25-Nov-11 12:59pm
View
this is my code
protected override void LoadToView(CaseStageDomObj caseStage) { if (caseStage != null) { currentStageLit.Text = caseStage.StageLocale; } Button b = (Button)((ViewComplaint)Page).ReturnTheButton(); _button = b; } This is the page load code ok. when the page is being loaded the value of the button is disabled.i can check that with debug mode right. now after the page is loaded i want to set the button to enabled after some activities done in some other place . how do I do it? Just look at the button only please.
rajh7
25-Nov-11 12:56pm
View
protected override void LoadToView(CaseStageDomObj caseStage)
{
if (caseStage != null)
{
currentStageLit.Text = caseStage.StageLocale;
}
Button b = (Button)((ViewComplaint)Page).ReturnTheButton();
_button = b;
}
This is the page load code ok. when the page is being loaded the value of the button is disabled.i can check that with debug mode right. now after the page is loaded i want to set the button to enabled after some activities done in some other place . how do I do it? Just look at the button only please.
rajh7
25-Nov-11 12:21pm
View
Yea I checked and the button is already there when the page is loading. but once the page is loaded right ...what i mean is ok the page is up now i can see the page now right...now when i go check the button value in debugging mode its not there its null. here is my code
protected override void LoadToView(CaseStageDomObj caseStage)
{
if (Stage != null)
{
currentStageLit.Text = caseStage.StageLocale;
}
Button b = (Button)((ViewComplaint)Page).GetTheButtonFromPage();
button _button = b;
}
rajh7
25-Nov-11 12:10pm
View
Yea you are right is asp.net. i acesed a button in my class but in page load . I need to have it saved so that i want to use the button once the page is loaded. So Can I use the similar code like the one you just showed me. Now I dont know how to retrieve the value back.? How do i code?
rajh7
25-Nov-11 12:02pm
View
Acctually I accessed a button property (in the page) in my user control class. I mean i could only access the button in the page load of my current class. but i want to use this button to do so validation after the page is loaded. so how can I store the button . button is Button type.
rajh7
24-Nov-11 14:35pm
View
To make an instance of the Page I tried the following
1) Page mypage = this.Page the it says key word this not awaylable in this context.
2) Page p = new Page();
now it says a initializer canot reference something like that
How can I make an instance please
thank you for your previous answers thos are valuable ..appreciate it
rajh7
24-Nov-11 14:09pm
View
I dont have any static key word in my method.
rajh7
24-Nov-11 13:26pm
View
My ViewComplaint class is a partial class its not static
rajh7
23-Nov-11 15:56pm
View
This is what he gave me a s a solution
object b;
object but;
foreach(object b in this.Controls())
{
if (TypeOf(b) == Button)
{
but Button = CType(b, Button);
// here pass but to global variable. if ur variable is butctrl then
butctrl=but
}
}
rajh7
23-Nov-11 15:54pm
View
I want to access the button in the controlmodel.cs and i want to disable it based on a condition whic is done in controlmodel.cs.
rajh7
21-Nov-11 9:33am
View
First declare one variable as object Globaly? which class do I put this code in and where exactly?
rajh7
9-Nov-11 14:38pm
View
Thanks it helped
rajh7
31-Oct-11 14:21pm
View
How do i add it whats the right syntax please?
rajh7
13-Sep-11 14:54pm
View
Thanks
rajh7
13-Sep-11 14:37pm
View
thanks
rajh7
13-Sep-11 14:37pm
View
thanks
rajh7
7-Sep-11 11:28am
View
thanks
rajh7
6-Sep-11 13:56pm
View
Does not help me ...can have more details in c# if u ca
Show More