|
Using VS2005 with SP/1 on XP Pro...
I have a aspx/aspx.cs file pair. When I rebuild the website, I get the following error:
error ASPNET: Make sure that the class defined in this code file matches the "inherits" attribute, and that it extends the correct base class (e.g. Page or UserControl).
Here's the "inherits" line in the "erboard_dashboard.aspx" file:
Inherits="erboard_dashboard"
and here's the class definition in the "erboard_dashboard.aspx.cs" file:
public partial class erboard_dashboard : CBasePage
As you can dsee, everything matches.
The CBasePage base class is there in the project, and the class name is highlighted to inidcate that the IDE knows where it is.
What am I missing?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I've seen this happen when the code behind doesn't define a namespace. If you don't put the code in a namespace, I think the folder names can be prepended to the class name. Try putting a namespace, any namespace, around the class, and then fully qualify it in the asp. So
ASPX:
inherits="JohnRocks.erboard_dashboard
.cs:
namespace JohnRocks
{
class erboard_dashboard : CBasePage
{
and so on. Also, try removing the _ from the class name, if that doesn't work. .NET uses the _ to create class names that include the names of folders, perhaps that is an issue....
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
i want to create pop up window in my windows forms through code.im using c#. is there any code for it??
software student
|
|
|
|
|
If you're using Windows Forms, why are you asking in the ASP.NET forum ? Assuming you mean windows forms, you really need to buy a book and read it, this is a very straightforward question. You create a dialog class, create an instance, and call ShowDialog on it.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
I am using ASP.NET with Infragistics for my application....
In the UltraWebGrid, when i click the values in the row should get populated into their appropriate textboxes there...
I am new to Infragistics and need help from someone here...
Thanx in Advance....
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
|
|
|
|
|
Dear all,
I am using asp.net2.0,C# , SQl2000.
I am using checkboxlist(whose enableviewstate is true). I access its value(ie item selected) first button click it work fine but on second button click event . it does not hold selected item value.
Please guide me
thanks
imaran khan
|
|
|
|
|
Are you reseting it's data source on postback ? This will lose the selection. use IsPostback to only load it the first time
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Hi,
I am clicking an image in the parent page and pop up window is displayed.
iam disabling the parent window by using
this is working fine in IE
but it is not worinkingw with Fire Fox
Any any body can give me the idea.
plzzzzzzzz
its urgent
thanks in advance
with thanks and regards,
kaushik pulpa
|
|
|
|
|
kaushik490 wrote: plzzzzzzzz
its urgent
ROFLMFAO
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
The self object is not defined in the standard. Use the window object instead.
There is no onblur event on the body element. Use the onblur event on the window object.
kaushik490 wrote: plzzzzzzzz
its urgent
zzzzzzzzzz
how urgent can it be?
---
single minded; short sighted; long gone;
|
|
|
|
|
hi,
i have to realted queries
1> i have two websites, www.main.com and www.second.com in asp.net
i want that when anyone signs in www.main.com and clicks a link to www.second.com then user shud redirect to the requested page without showing the login page of www.second.com
2> how i can see/edit the content of the authentication cookie generated.
Any code / reply / reference welcome
thnx
|
|
|
|
|
Seriously dude. you have been asking this question over, and over, and over. Are you hoping for a different response to the ones you've been given ?
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Yep, i implemented the things like that, but the problem is that, then i keep the same cookie name for the two sites , it works, but i need to have different names for the cookies for each sites.Then it do not works, any solution to this please
|
|
|
|
|
hi friendz,,
I am using MS.net 1.1
In my application,I am listing the list of employees with name and image in datagrid.I done it successfully.
Now i requiremnt is, when I mouse over that image i want to open a frame over to form(like a child window) and show his details in it.
how i open a frame when mouse over to an image???
thankx in advance
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
Vipin dev wrote: how i open a frame when mouse over to an image?
Is there a MouseOver event that can get triggered? If so, have it invoke the frame. I am sure this can be done with some kind of dynamic HTML trick.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi i am using some links in one of my form...,
Those links i want in all my other forms too...,
I dont like to give each and every forms those links...,
So i like to give those links in some javascript....,
To call that javascript in all forms that links want to be come there...,
Its possible?,
This is my code:(That Inside "div" things want to come in script)
How to do that,Plz help me...,
<form id="clock" method="post" runat="server">
<div class="horizontalcssmenu">
<TABLE id="Table1" style="Z-INDEX: 103; LEFT: 8px; POSITION: absolute; TOP: 136px; HEIGHT: 15px"
width="700" bgColor="#cde686" border="0">
<TR>
<TD style="WIDTH: 836px">
<ul id="cssmenu1">
<li style="LEFT: 4px; BORDER-LEFT: #202020 1px solid; WIDTH: 144px; TOP: 0px; HEIGHT: 1%">
<A style="WIDTH: 160px; HEIGHT: 1%" href="default.aspx">Master</A>
<ul style="LEFT: 0px; TOP: 0px">
<li>
<A href="frmCompanyMasterDetails.aspx">Master Company</A>
</li>
<li>
<A href="frmProjectMaster.aspx">Master Project</A>
</li>
<li>
<A href="frmprojectrpt.aspx">Report</A>
</li>
</ul>
</li>
<li>
<A href="Login.aspx">LogOut</A>
</li>
</ul>
<br style="CLEAR: left">
</TD>
</TR>
</TABLE>
</div>
<asp:hyperlink id="hplchequeissued" style="Z-INDEX: 102; LEFT: 992px; POSITION: absolute; TOP: 328px" runat="server" ForeColor="Indigo" Width="96px" Height="24px" NavigateUrl="frmChequeissuedstatement.aspx" Visible="False">Cheque Issued</asp:hyperlink>
</form>
Regards,
Magi
|
|
|
|
|
It's possible, but why would you want to use Javascript for that?
Just put the menu in a user control.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi Mr.Guffa,
I need it in script only...,
Becoz The links will come inside the and - tag...,
Regards,
Magi
|
|
|
|
|
Hi all
In a data grid i have two such columns where it acts as a link to a different page. But problem is since i have two response.redirect statements its executing the first one only. My condition is after redirecting to different page i am populating that page with some details( example if i am clicking on cand id 1 then in the next page detail will of cand whose id is 1) so i am using session varible. The code what wrote is
If (......I want the condition.....) Then
lbCand_Id = e.Item.FindControl("Label5")
Session("CAND_ID") = lbCand_Id.Text
Response.Redirect("Update_Feedback.aspx")
Else
lbCand_Id1 = e.Item.FindControl("Label1")
Session("Cand_ID1") = lbCand_Id1.Text
Response.Redirect("Summary.aspx")
End If
Pl tel me in if condition what i have to write like datagrid1.item... something like that.so that i can execute both the conditions.
Thanks and Regards
Prakash Mishra(Banglore,India)
|
|
|
|
|
Hi in datagrid template column u have the hyper link or outside the grid u have?,
If inside the grid u have the hyperlink,then u can access the link using this code:
For Each MainGRD As DataGridItem In Me.dgrdmain.Items
dim Candid as HyperLink=ctype(maingrd.FindControl("Idofhyperlink"),HyperLink)
Next
Here candid is the hyperlink now...,
U can use ur if condition based on that candid...,
Did u got it?,
Regards,
Magi
|
|
|
|
|
hi magi
I already wrote the code its working fine my problem is i want to write a condition (if else)so that i can execute my code, Pl see the code in post.
So just tell me the if condition. Like suppose i click on the 1 column of the grid some thing like this( datagrid1.item.....)
Regards
Prakash Mishra(Banglore,India)
|
|
|
|
|
Hi i think this is ur probs...,
In datagrid ur displaying the candidate id and his photo...,
Based on the candi id selection it want to open another child window and show his details ?,
If its yes...,
Use this way,.
In ur datagrid property bulder select the hyperlink column and there u can see "Url format string", There give some other aspx page form and ur passing parameter...,
Means it should eb like this:
frmCashflowStatementLink.aspx?candid={0}
Then there itself see the "target" dropdown box there u select "-new"
Then Go to that child page(for me i have taken this one frmCashflowStatementLink.aspx)
In ur pageload not postback method give this code:
txtLinkID.Text = Request.QueryString("candid")
Then in ur sqladapater query u check with that txtlinkid value...,
If its correct display those values like...,
This only u asked na?,
Regards,
Magi
|
|
|
|
|
Hi magi i just asked the IF condition in vb for the data grid
eg
if( first column is selected)
do some thing
else
do some thing
I want to know in the bracket what i have to write, any r u form bangalore?
Regards
Prakash Mishra(Banglore,India)
|
|
|
|
|
.
why didnt u can use query string for passing candid?
In datagrid , create a template column with hyper link
like
<<code> <asp:TemplateColumn HeaderText="News Heading">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle Width="35%"></ItemStyle>
<ItemTemplate>
<asp:HyperLink Runat =server CssClass=Newslink NavigateUrl ='<%#GetURL(DataBinder.Eval(Container.DataItem, "NewsId").ToString())%>' ID="Hyperlink1">
<%#DataBinder.Eval(Container.DataItem, "NewsHeading")%>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateColumn>
</code> >
in c#
<br />
protected string GetURL (string fldval ) <br />
<br />
{ <br />
<br />
string SzOpenwindow="";<br />
<br />
<br />
SzOpenwindow="javascript:openMywindow('yourpage1.aspx?&id="+ fldval +"','View',500,320)";<br />
<br />
return SzOpenwindow; <br />
<br />
}<br />
writa js
function openMywindow(url,name,iWidth,iHeight)
{
var iLeft = (screen.availWidth-500 - iWidth/ 2);
var iTop = (screen.availHeight-420 - iHeight / 2);
var features;
var objwindow;
features = "width="+iWidth+",height="+iHeight+",left="+iLeft+",top="+iTop;
features += ",screenX="+iLeft+",screenY="+iTop;
features += ",scrollbars=1,resizable=0,location=0";
features += ",menubar=0,toolbar=0,status=0";
objwindow = window.open(url,name, features);
}
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
Give command name property to both link.
Like as for link1 CommandName="Link1"
and link2 CommandnName="Link2"
Now U can use If condition on GridView rowcommand event
If(commandName=="Link1")
{
//code is here for link1
}
else if(commandName=="Link2")
{
//code is here for link2
}
Best Regard
Pathan
---------------------------------------------------
|
|
|
|