|
I'm wondering if you people could help me...
I have a .aspx page with menu's, links, etc. in sidebar form.
Is it possible for other pages to include that page in the content?
Possible something like:
<asp:page id="linkPage.aspx" runat="server"></asp:page>
?
-= Reelix =-
|
|
|
|
|
Reelix wrote: Is it possible for other pages to include that page in the content?
User controls (ascx) files ? You can include them and will be rendered along with the content page.
|
|
|
|
|
Hi,
I want to create a flat dropdown box in asp.net. i know for Dropdown does not support in IE and FireFox , but except that is there any other way to do it ? or can we create a custom control for that ?
Please give some idea .
Thanks in advance !!!!
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|
|
Abhijit Jana wrote: I want to create a flat dropdown box in asp.net
You can mimic this behavior by using DIV s I guess. Then wrap it as a custom control.
|
|
|
|
|
Hi Navaneeth,
Thanks for your reply. can you kindly more details on that?
I am trying to do it using one textbox, image button and a Listbox and trying to make custom control..... but i think your approch would be better . so please give me more details.
Thanks again !!!!
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|
|
Here[^] is somewhat related one. It use mouseover event, you have to change that to click. Put a image which have a down arrow.
It's tough to get all these working. Once you are able to make it working on the HTML page, create a new custom control creation project, and wrap all these functionalities as a custom server control.
Hope it helps.
|
|
|
|
|
Navaneeth, thaks for reply. i am trying to developed a custom control and hope i will do it. and if i success , then it will be my next code project article.
Thanks for your reply.
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|
|
Abhijit Jana wrote: then it will be my next code project article.
Looking foreword to read it.
|
|
|
|
|
Hi All,
i am using the Localization in my appliation.
my problem with the date format.here i am using different language.
my current application is working fine for default date format that is (MM/dd/yyyy). when i change to different language, then the date format is changes, then the problem with the validation control.
I am using server side validation control which support the date format (MM/dd/yyyy)only, if the date format is (yyyy/dd/mm)or (dd/MM/yyyy)then the validation does not work. How can i validate the date for different language.i,e different format.
Please help me.
Murali
|
|
|
|
|
Hello friends,
Can anybody tell me how to check manually whether the Email-id entered in textbox is valid or not, without using Regular Expression validator control.
Thanks,
Nagendra
|
|
|
|
|
You can use regular expressions in javascript, which is what the validator does, you can do some nasty string mashing because you refused to use the right tool for the job, that's about it really.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello,
Thanks, i got the solution from this site only.
Thanks to u too Chris.
|
|
|
|
|
currently i m using asp.net with c# (.net 2005, 2.0 framework)
i would like to generate reports in CRYSTAL REPORTS.
i searched in google.. i cant find the exact place for me (i m a beginner to crystal reports)
where can i download E-Book for Crystal reports for .net 2005, so that i can learn from basics to expect level?
kindly guide me - KARAN
|
|
|
|
|
can i write dir="rtl" in javascript in
window.open('','','letf=0,top=0,width=280,height=180,toolbar=0,scrollbars=0,status=0')
|
|
|
|
|
Sure, if you like. It will help if you spell 'left' correctly.
What do you expect this to do ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i wrote window.open ,i want when my window is open all of content be right to left means dir be "rtl"
|
|
|
|
|
I don't know, but I am guessing if you'd tried it, you'd have found your answer by now.
A quick google leaves me thinking this is generally good CSS, but not in javascript for window.open
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I've checked many times for the incorrect syntax. But couldn't find any. There's no given location for the specific error. Here is the error and Stack Trace given when I run the appliication.
<pre>
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.Data.SqlClient.SqlException: Incorrect syntax near the keyword 'Order'.
Stack Trace:
[SqlException (0x80131904): Incorrect syntax near the keyword 'Order'.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +925466
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +800118
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +186
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1932
System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +31
System.Data.SqlClient.SqlDataReader.get_MetaData() +62
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +297
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +1005
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +132
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +122
System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +12
System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +7
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +141
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +137
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +83
System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1770
System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e) +92
System.Web.UI.WebControls.ListControl.PerformSelect() +31
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
System.Web.UI.WebControls.ListControl.OnPreRender(EventArgs e) +26
System.Web.UI.Control.PreRenderRecursiveInternal() +86
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041
</pre>
|
|
|
|
|
miss nadia wrote: There's no given location for the specific error
It would be in the query you given in SQLDataSource .
|
|
|
|
|
miss nadia wrote: How can I know the location
Walking through the StackTrace, doesn't it indicate the affected classes from your application?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Vasudevan Deepak Kumar wrote: Walking through the StackTrace, doesn't it indicate the affected classes from your application?
I doubt, since OP uses nasty SQLDataSource for binding.
|
|
|
|
|
True. And for a beginner, it would be a significantly scary.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
What does it means by OP? does this error looks complex? i hope it is not since i'm a beginner. i will post the codes and hope all of you will help.
|
|
|
|
|
The error is obvious. How many places do you use the keyword 'order' in your code ? Perhaps if you post your SQL we can help ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I'm using Web User Control for Order.aspx file. This is SQL code for Order.ascx.
<pre>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ProjectConnectionString %>"
SelectCommand="SELECT Order.OrderNum, Order.OrderDate, Order.CustEmail, Order.Subtotal, Order.Shipping, Order.Total,
Customers.LastName, Customers.FirstName, Customers.Address, Customers.City, Customers.State, Customers.PostCode, Customers.Phone, Customers.Country
FROM Order
INNER JOIN Customers
ON Order.CustEmail=Customers.Email
WHERE Order.OrderNum=@OrderNum
ORDER BY Order.OrderNum">
<SelectParameters>
<asp:SessionParameter Name="OrderNum" SessionField="OrderNum" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString="<%$ ConnectionStrings:ProjectConnectionString %>"
SelectCommand="SELECT [ProductId], [Name], [Price], [Quantity], [Total], [OrderNum]
FROM [OrderItems]
WHERE ([OrderNum]=@OrderNum)
ORDER BY [ProductId]">
<SelectParameters>
<asp:ControlParameter Name="OrderNum" ControlID="FormView1"
PropertyName="SelectedValue" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
</pre>
|
|
|
|