|
I have three tables in the school database: students,exams,subjects. my Problem is how i can take the take the subjects records and admission no from students and use them to create a table call marks at the click of a button. Note: the no of records are unpredictable.
Student Table contains fields: admno,name,form
exam contains fields: ExamName
subjects: SubjectName,SubjectID
The Marks table final result should be
admno,name,form,ExamName,subject1,subject2,...subjectn(Based on the no of subjects in the subject table)
. Am using vb.net with mysql. Kindly assist. it has given me headache for weeks
|
|
|
|
|
This question belongs in the Database forum, it is not a .NET issue.
|
|
|
|
|
i have copied it to the database...kindly assist me to answer from there
|
|
|
|
|
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="frmSMS.aspx.cs" Inherits="frmSMS" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:updatepanel id="UpdatePanel1" runat="server" updatemode="Conditional"
ChildrenAsTriggers="False">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
</Triggers>
<contenttemplate>
<center>
<div>
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</div>
</center>
</contenttemplate>
</asp:updatepanel>
<asp:updateprogress id="UpdateProgress1" runat="server" associatedupdatepanelid="UpdatePanel1" displayafter="2000" dynamiclayout="true">
<progresstemplate>
<center>
<asp:Image ID="Image1" src="~/images/loading.gif" runat="server" />
</center>
</progresstemplate>
</asp:updateprogress>
</asp:Content>
|
|
|
|
|
OK, so what? Did you read the error message? It's telling you exactly what you have to do to fix the problem.
|
|
|
|
|
The control with ID 'UpdatePanel1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The control with ID 'UpdatePanel1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidOperationException: The control with ID 'UpdatePanel1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.]
System.Web.UI.UpdatePanel.get_ScriptManager() +474740
System.Web.UI.UpdatePanel.RegisterPanel() +2515953
System.Web.UI.UpdatePanel.OnInit(EventArgs e) +19
System.Web.UI.Control.InitRecursive(Control namingContainer) +140
System.Web.UI.Control.InitRecursive(Control namingContainer) +311
System.Web.UI.Control.InitRecursive(Control namingContainer) +311
System.Web.UI.Control.InitRecursive(Control namingContainer) +311
System.Web.UI.Control.InitRecursive(Control namingContainer) +311
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +480
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
|
|
|
|
|
Ok. That still doesn't change my answer. You very simply need to drop a ScriptManager on the page, just like the error message says.
|
|
|
|
|
Thank you dave kreskowiak.
I use toolkit script manager. plz help
|
|
|
|
|
Are you kidding me? Help with what? All you had to do was drag a ScriptManager from the ToolBox to your form! What's so hard about that?
|
|
|
|
|
when i add scriptmanager following error show. I already user tool kit script manager in master file.
Only one instance of a ScriptManager can be added to the page.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Only one instance of a ScriptManager can be added to the page.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidOperationException: Only one instance of a ScriptManager can be added to the page.]
System.Web.UI.ScriptManager.OnInit(EventArgs e) +2515087
AjaxControlToolkit.ToolkitScriptManager.OnInit(EventArgs e) in f:\TeamCity\buildAgent\work\80acd78aa4c25314\Server\AjaxControlToolkit\ToolkitScriptManager\ToolkitScriptManager.cs:195
System.Web.UI.Control.InitRecursive(Control namingContainer) +140
System.Web.UI.Control.InitRecursive(Control namingContainer) +311
System.Web.UI.Control.InitRecursive(Control namingContainer) +311
System.Web.UI.Control.InitRecursive(Control namingContainer) +311
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +480
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
|
|
|
|
|
Information like this would have been handy in your first post. Take the script manager off of the page that isn't the Master page.
You NEVER said you were using a Master page and Child pages. This kind of information is CRUCIAL to the problem!
You need a ScriptManager on the Master page and ScriptManagerProxy controls on the Child pages if any of those children are using scripts.
|
|
|
|
|
How To Show Dll code in asp.net thanks in advance
|
|
|
|
|
You'll need to add more detail than that I'm afraid. What DLL code? Where does it reside? Is this decompiled code or source you already own?
|
|
|
|
|
|
And what actually this ILSpy would help the OP with?
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
What do you mean by the DLL code in ASP.NET?
Do you know that you can use the dll libraries in ASP.NET, by adding these .dll libraries inside the bin folder of your ASP.NET website or web application. You can then consume them in your project.
If you wanted to write their code in HTML markup, then you can use the <code> element in your ASP.NET website, and write the code inside it, or you can also use the <pre> element to preview the code inside your website.
Which one of these above mentioned scenarios are you looking forward for?
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Hai
This is Tarun
I want to do CRUD Operations in Windows Forms Using Entity Framework.
Would you please tell me how to do this.
I already tried this article <a href="http://www.codeproject.com/Articles/221931/Entity-Framework-in-WinForms">Entity Framework in WinForms</a>[<a href="http://www.codeproject.com/Articles/221931/Entity-Framework-in-WinForms" target="_blank" title="New Window">^</a>] But Here It did n't enable entitydatasource control in this.
Kindly Reply me
|
|
|
|
|
You should post your message in the forum at the end of the article so that the author can respond to you.
|
|
|
|
|
Better yet, forget the article entirely and just pick up a book on Entity Framework and work through it.
|
|
|
|
|
Good Afternoon All,
Apologies if this is in the wrong section, I recently tried to install an application on my personal computer & received the following message - I have also proven the installer as it worked perfectly on my wife's computer.
Any Help you could provide would be very much appriciated.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at DigiCheck.Form1.ProcExec(String command, String options)
at DigiCheck.Form1.Form1_Shown(Object sender, EventArgs e)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///D:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
DigiCheck
Assembly Version: 2.4.0.0
Win32 Version: 2.4.0.0
CodeBase: file:///D:/Program%20Files%20(x86)/Sicura%20Systems/DigiLive/DigiCheck.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///D:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///D:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///D:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///D:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
DevLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///D:/Program%20Files%20(x86)/Sicura%20Systems/DigiLive/DevLib.DLL
----------------------------------------
MySql.Data
Assembly Version: 6.5.4.0
Win32 Version: 6.5.4.0
CodeBase: file:///D:/Windows/Microsoft.Net/assembly/GAC_MSIL/MySql.Data/v4.0_6.5.4.0__c5687fc88969c44d/MySql.Data.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///D:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///D:/Windows/Microsoft.Net/assembly/GAC_64/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///D:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///D:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///D:/Windows/Microsoft.Net/assembly/GAC_64/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitdebugging="true">
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
|
|
|
|
|
The fact that the application worked on one machine doesn't prove anything.
Apparently, it can't find some file that it's looking for.
There is not much you can do unless you own the source code to this application. Do you?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
You are missing a referenced file that your application needs.
You will need to check through the files that you have referenced in the project and make sure they are on the destination machine or include them in your installer
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|
|
Member 11401121 wrote: I recently tried to install an application on my personal computer
This forum is for programmers - people who make software.
Your question suggests you are a user - someone who uses software.
As such the correct place to go to for help for an application is the place where you got the application or the place that created it.
|
|
|
|
|
I recently found this article Writing Reliable .NET Code[^] and I'm very interested in the topic but for my taste it's a too high altitude flyover. Google wasn't able or not willing to show me articles that cover the exact same topic but are a bit more hands-on. Does anyone have some pointers for me?
|
|
|
|
|
I'm not sure if this is what you are looking for but the book Code Complete by Steve McConnell is widely considered one of the best books on writing great software.
Link here[^]
"There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." - C.A.R. Hoare
Home | LinkedIn | Google+ | Twitter
|
|
|
|