Hi,
All of a sudden, when i click on button, it is not going to the .cs file rather than it is going to the design and shows the event their but i want to in .cs(i.e. code file) .
Please help!!!! :)
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Soft CornerPosted Mar 14, 2011, 8:51 AM
Ok Check Now .. looks like your problem solved :)
Soft CornerPosted Mar 14, 2011, 11:30 AM
sometime user just copied & pasted the pages or code in project,bcz of that also *.aspx.cs file didn't found the controls. Also
I just gone thro' this discussion & found some links to solve.
The 'controlname' does not exist in the current context
Vijay YadavPosted Mar 14, 2011, 10:38 AM
I didn't get you that hyperlink control was not registered with page means what? i want to know can please me?
Soft CornerPosted Mar 14, 2011, 10:15 AM
In your aspx page, hyperlink control was not registered with page, so i drop one of hyperlink from toolbox to design . that's it ..
Thanks.....
Vijay YadavPosted Mar 14, 2011, 9:33 AM
Thanks but may i know what was the problem? If it will encounter next time then what should i do? Can you tell me?..:)
Vijay YadavPosted Mar 14, 2011, 8:06 AM
All of a sudden, now its going in codebehind file but now the problem is that though the control exists on the page but in code behind it is givig error (i.e.The name 'cmbreligion' does not exist in the current context) for allthe controls. Do you have any idea and i'm also sending you the file, please have a look.
Soft CornerPosted Mar 14, 2011, 7:34 AM
i think now you should take a look at this rar file were i have took one Server control button and Html button.
solution is at your side only bcz still u havnt uploaded your code here :)
Vijay YadavPosted Mar 14, 2011, 7:16 AM
Can any one please help me out here, on click of a button the event get showned in design file rather than code-behind file. Any help would be appreciated!!!! :)
Vijay YadavPosted Mar 13, 2011, 5:34 AM
It is in VS 2008. And please find the attached file herewith.
Suthish NairPosted Mar 13, 2011, 5:33 AM
check the image
Suthish NairPosted Mar 13, 2011, 5:28 AM
Vijay YadavPosted Mar 13, 2011, 5:20 AM
I'm using server control and it is not nested but then also it is giving problem, any idea?
Suthish NairPosted Mar 13, 2011, 5:12 AM
html or server controls.
controls nested inside other controls?
Vijay YadavPosted Mar 13, 2011, 5:05 AM
I have used div of HTML but the textbox and buttons are asp control and yes, it start with "
Soft CornerPosted Mar 13, 2011, 4:55 AM
Looks like you drop or used html control in your design.. check with button control ,it should be start with