C
C#•13mo ago
Mr.Mal

No link between aspx file and aspx.cs .Net framework 4.7.2

Hello everyone first post on this server. Sorry to bother you but impossible to make the link between the 2 pages even with the help of all the Stack Overflow topics that talk about the problem. MGBasePage inherits from System.Web.UI.Page Thanks in advance for your help
37 Replies
Mr.Mal
Mr.Mal•13mo ago
nobody for me 🥲
Kouhai
Kouhai•13mo ago
Are you getting a build error?
Mr.Mal
Mr.Mal•13mo ago
hi, yes not invalible in the current context with all id define in the aspx file
Kouhai
Kouhai•13mo ago
Can you show the error think ?
Mr.Mal
Mr.Mal•13mo ago
yes I will
Mr.Mal
Mr.Mal•13mo ago
Mr.Mal
Mr.Mal•13mo ago
sorry to have taken so long
Kouhai
Kouhai•13mo ago
So how did you create the aspx page file? Was is already created and you renamed it? @Mr.Mal
Mr.Mal
Mr.Mal•13mo ago
No I take this project
Kouhai
Kouhai•13mo ago
Also check your csproj file does it have entries like this?
<Compile Include="HttpDocs\BackOffice\adminCity.aspx.cs">
<DependentUpon>adminCity.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="HttpDocs\BackOffice\adminCity.aspx.designer.cs">
<DependentUpon>adminCity.aspx</DependentUpon>
</Compile>
<Compile Include="HttpDocs\BackOffice\adminCity.aspx.cs">
<DependentUpon>adminCity.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="HttpDocs\BackOffice\adminCity.aspx.designer.cs">
<DependentUpon>adminCity.aspx</DependentUpon>
</Compile>
Mr.Mal
Mr.Mal•13mo ago
I look no I don't have any file like that It would be at the root of the project ?
Kouhai
Kouhai•13mo ago
Yes it's the project file (.csproj)
Mr.Mal
Mr.Mal•13mo ago
nothing but neither is it on the server hosting the site (which is stable).
Kouhai
Kouhai•13mo ago
How did you open the project in visual studio?
Mr.Mal
Mr.Mal•13mo ago
I create a « asp.net web app(.net framework) : empty » and I paste all files I take all references and lib with error code through build error That’s all
Want results from more Discord servers?
Add your server