Click here to Skip to main content
15,887,596 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to press back button and keep ur results Pin
Abhijit Jana22-Dec-08 3:27
professionalAbhijit Jana22-Dec-08 3:27 
GeneralRe: How to press back button and keep ur results Pin
samerh22-Dec-08 3:45
samerh22-Dec-08 3:45 
GeneralRe: How to press back button and keep ur results Pin
Abhijit Jana22-Dec-08 3:50
professionalAbhijit Jana22-Dec-08 3:50 
GeneralRe: How to press back button and keep ur results Pin
Christian Graus22-Dec-08 11:06
protectorChristian Graus22-Dec-08 11:06 
AnswerRe: How to press back button and keep ur results Pin
arunvtyc22-Dec-08 3:29
arunvtyc22-Dec-08 3:29 
AnswerRe: How to press back button and keep ur results Pin
Christian Graus22-Dec-08 10:55
protectorChristian Graus22-Dec-08 10:55 
QuestionPlease guide related to Confirm Button Extender. Pin
mr_muskurahat22-Dec-08 2:47
mr_muskurahat22-Dec-08 2:47 
QuestionCan anyone ? Pin
learningman22-Dec-08 2:25
learningman22-Dec-08 2:25 
w. steels soup to nuts series tried to build online auction but he never finished the add auction page i tried to add a detailsview to insert i set the mode to insert and tried to write this code

Imports Microsoft.VisualBasic
Imports System.Security.Permissions
<ComponentModel.DataObject(True)> _
Public Class Auctions
Public Shared Sub InsertAuctions(ByVal auction As Auction)

End Sub
Public Function GetAuctions() As Data.DataTable

Dim AuctionsTable As New AuctionSiteTableAdapters.AuctionsTableAdapter()

Return AuctionsTable.GetAuctions()

End Function

Public Function GetAuction(ByVal AuctionID As Integer) As Data.DataTable

Dim AuctionsTable As New AuctionSiteTableAdapters.AuctionsTableAdapter()

Return AuctionsTable.GetAuctionByID(AuctionID)

End Function

Public Function SearchAuctions(ByVal SearchString As String) As Data.DataTable

Dim AuctionsTable As New AuctionSiteTableAdapters.AuctionsTableAdapter()

Try

Return AuctionsTable.SearchAuctions("%" + SearchString + "%")

Catch

Return New Auction("No Matching Records!")

End Try

End Function


Public Function GetAuctionsByDate(ByVal StartDate As DateTime, ByVal EndDate As DateTime) As Data.DataTable

'If My.User.IsInRole("Admin") Then

If StartDate < EndDate Then

Dim AuctionsTable As New AuctionSiteTableAdapters.AuctionsTableAdapter()

Dim dt As Data.DataTable

dt = AuctionsTable.GetAuctionsByDate(StartDate, EndDate)

If dt.Rows.Count Then
Return dt
Else
Return New Auction("No Matching Records!")
End If


Else

Return New Auction("Dates must be in order!")

End If

'Else

'Return New Auction("User Must Be Logged In!")

'End If

End Function


End Class

Public Class Auction
Inherits Data.DataTable

Sub New()

Dim AuctionDataTable As New AuctionSite.AuctionsDataTable

For Each col As System.Data.DataColumn In AuctionDataTable.Columns

Me.Columns.Add(New System.Data.DataColumn(col.ColumnName))

Next

End Sub

Sub New(ByVal ErrorString As String)

Me.New()

Me.Rows.Add.Item(3) = ErrorString

End Sub

End Class


But when i debug i get this!


Server Error in '/Auction3' Application.
--------------------------------------------------------------------------------

Cannot create an abstract class.
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.MissingMethodException: Cannot create an abstract class.

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:


[MissingMethodException: Cannot create an abstract class.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +103
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +268
System.Activator.CreateInstance(Type type, Boolean nonPublic) +66
System.Web.UI.WebControls.ObjectDataSourceView.BuildDataObject(Type dataObjectType, IDictionary inputParameters) +39
System.Web.UI.WebControls.ObjectDataSourceView.ExecuteInsert(IDictionary values) +270
System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) +72
System.Web.UI.WebControls.DetailsView.HandleInsert(String commandArg, Boolean causesValidation) +390
System.Web.UI.WebControls.DetailsView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +602
System.Web.UI.WebControls.DetailsView.OnBubbleEvent(Object source, EventArgs e) +95
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
System.Web.UI.WebControls.DetailsViewRow.OnBubbleEvent(Object source, EventArgs e) +109
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +115
System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +132
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +177
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

I wish someone could help me and i wish everyone a safe and happy holliday Smile | :) Laugh | :laugh:
AnswerRe: Can anyone ? Pin
Abhijit Jana22-Dec-08 2:30
professionalAbhijit Jana22-Dec-08 2:30 
AnswerRe: Can anyone ? Pin
Brij22-Dec-08 2:45
mentorBrij22-Dec-08 2:45 
QuestionLive Chatting Pin
smraj150322-Dec-08 2:02
smraj150322-Dec-08 2:02 
AnswerRe: Live Chatting Pin
Abhijit Jana22-Dec-08 2:09
professionalAbhijit Jana22-Dec-08 2:09 
AnswerRe: Live Chatting Pin
jabdal22-Dec-08 7:55
jabdal22-Dec-08 7:55 
QuestionTake Hindi inputs in textbox in asp.net Pin
jitendrakrpandey22-Dec-08 1:41
jitendrakrpandey22-Dec-08 1:41 
AnswerRe: Take Hindi inputs in textbox in asp.net Pin
Abhijit Jana22-Dec-08 2:07
professionalAbhijit Jana22-Dec-08 2:07 
AnswerRe: Take Hindi inputs in textbox in asp.net Pin
Shuaib wasif khan9-Sep-09 13:46
Shuaib wasif khan9-Sep-09 13:46 
QuestionProblem with dynamic radio button [modified] Pin
B8722-Dec-08 1:08
B8722-Dec-08 1:08 
AnswerRe: Problem with dynamic radio button Pin
Christian Graus22-Dec-08 11:28
protectorChristian Graus22-Dec-08 11:28 
QuestionGet one row from every group of records Pin
R111922-Dec-08 1:03
R111922-Dec-08 1:03 
AnswerRe: Get one row from every group of records Pin
Abhijit Jana22-Dec-08 1:06
professionalAbhijit Jana22-Dec-08 1:06 
AnswerRe: Get one row from every group of records Pin
Brij22-Dec-08 1:42
mentorBrij22-Dec-08 1:42 
Questionhyperlink +multiline text box Pin
pragya_chaubisa22-Dec-08 0:11
pragya_chaubisa22-Dec-08 0:11 
AnswerRe: hyperlink +multiline text box Pin
Christian Graus22-Dec-08 0:23
protectorChristian Graus22-Dec-08 0:23 
GeneralRe: hyperlink +multiline text box Pin
pragya_chaubisa22-Dec-08 0:55
pragya_chaubisa22-Dec-08 0:55 
Questiondynamically add a linkbutton to datagrid Pin
sudhakk21-Dec-08 23:47
sudhakk21-Dec-08 23:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.