|
The best way to do this is to make p1 and p2 controls on the one page. Then, you can change which control is visible, and viewstate will maintain the state of your pages. The other way to do it, is to put the parameters that define the search on the querystring, so when your user goes back, the same search is repeated, because the querystring defines it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
i am using confirm button extender with a button second thing i am using required field validator with that button also
when i click on button and any validator is active it shows confirm message but does nothing my requirement is if required validator field is active then confirm button must not work how can i do that???
i have tried confirm message box of javascript with that button and in that case if i use yes of confirm message box all the required validator fields are skipped even i have set causevalidation property to true
means i cannot achieve this thing both ways
any help would be apprciated.
umerumerumer
|
|
|
|
|
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
|
|
|
|
|
Could you please post this with correct format ? Its very difficult to read out for me .
|
|
|
|
|
Not understandable.
and use subject tagline which specify your problem in short.
Cheers!!
Brij
|
|
|
|
|
Hi...
Iam like to add a online chatting in my webform using asp.net with c# coding anybody give any idea to me...its like a gmail chatting...
Thanks.,
|
|
|
|
|
You are looking for This[^]
|
|
|
|
|
Set a javascript timer to poll a database every few seconds using xmlhttprequest. Use the Document Object Model to insert new text into the browser. You can determine what text is new using a timestamp, hash key, row count, or some combination.
|
|
|
|
|
Hi,
I want to take user's input into hindi language in textbox in asp.net.
Plz help
Regards
Jitendra
fd
|
|
|
|
|
|
set page localization to hindi and set the textbox font to any hindi font like krutidev10
|
|
|
|
|
Hi freinds,
Iam creating radio buttons at runtime it is working fine in internet explorer but with firefox it is very difficult to select radio button.
I am using ASP.NET c#,version 2.0
this is the code iam using,
RadioButton rd = new RadioButton();
rd.ID = "id" + i.ToString();
rd.Text = ans[i];
rd.GroupName = "dynrd";
And binding needed RB to Panel like this,
Panel1.Controls.Add(rd);
How to solve it....I can select radio button but it is very difficult to select.
modified on Monday, December 22, 2008 8:43 AM
|
|
|
|
|
what does 'difficult to select' mean ? It sounds like your firefox is not drawing the radio buttons well. You have to explain yourself better. If the buttons are too small, try using CSS to make them bigger perhaps ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi to all,
I have a problem.
Actually i have a table in a database.In which there are four rows whose first two words of a column resembles.I want one of it.
And i have around 15 such similar groups.I want one from each.
Help me out.
|
|
|
|
|
This is nothing but a SQL Problem. There is no relation with asp.net with this query . please post it to SQL Forum.
|
|
|
|
|
R1119 wrote: In which there are four rows whose first two words of a column resembles
I didn't get you.
Cheers!!
Brij
|
|
|
|
|
hi,
im doing a project in ASP.NET using C#. I have used a multiline text box in which when i type any url or mail id,it should be
displayed as hyperlink at once,and other typed data remains same.
for example[ this is just for example....other data..if you want...my email id is: abcd@hotmail.com . ]
Such type of working can be seen when sending mail,where after typing url it looks as a hyperlink.
likewise i also need such functionality in my project..
please help me.. soon.
|
|
|
|
|
A syntax highlighting textbox on the client side ? I doubt you can do that with javascript. Perhaps with an embeded .NET or java control ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hi,
Thanks for the reply.I have tried server.urlEncode() method and regular expression but still i was not able to achieve what i actually want.With the help of regular expression ,can you give me an idea to fulfill the purpose. or any other simple idea.
if so then please do send me the code.
|
|
|
|
|
how can i add a linkbutton dynamically to a datagrid and generate event for the linkbutton added to the datagrid?
|
|
|
|
|
You have to add Template Field at runtime.
|
|
|
|
|
Hi,
When we point any link, its address is getting shown in the status bar. How to hide the url, which is showing in the status bar, while pointing the link. (For all events of mouse)
Thanks in adv.
Balasubramanian K.
|
|
|
|
|
|
Thanks.
Yah! I tried. But I got all the events except onClick. Thats why I post here.
Balasubramanian K.
|
|
|
|
|
BalasubramanianK wrote: But I got all the events except onClick
I didn't get you ? You want also hide on on-click event ?
you can do it mouse out and mouse over but i am not sure about hinding on onClick event.
|
|
|
|