asp.net

LinkButton's OnClick does not fire in IE8

The following works just fine in Chrome. <asp:LinkButton runat="server" ID="lbEdit" OnClick="lbEdit_Click"> <button type="button" class="edit"> Edit </button> </asp:LinkButton> And here is the CSS for button and its subclass. button { padding: 3px; } button.edit { background:#3f6096; border:none; ...

jQuery - Two dialog boxes, only one click event is working

I'm using ASP.NET and jQuery. I have two dialog boxes, each of which have a button with a click event. The form started with one, and everything worked fine. You could enter a fax number, click a button, and stuff would happen. Adding in the second dialog box caused problems. The button in the first one just stopped working, but t...

How to create DbCommand

Hi, I'm using a method in the EnterpriseLibrary.Data.Database namespace called public virtual object ExecuteScalar(DbCommand command) I'm wanting to use this method to execute a scalar-valued function. However the I'm not sure how to even create the DbCommand. Could someone please tell me how to create it because it won't let me inst...

asp.net mvc application improving Efficiencey suggestions

Please can any body provide me suggestions for standards that you feel are necessary or are areas where effciency/maintenance would improve through standardization. Like GUI,Controller,Repository. Any ideas reagrding ViewModels can be specified under the Controller section? if we place any good results? Thanks ...

jqGrid: using multiple methods to filter data

My requirement is to show a page with multiple filters to apply to grid data. Suppose we are talking about Orders and an order has the following attributes public class Order { public int OrderID public DateTime OrderDate public DateTime ShipmentDate public int OrderTotal public int OrderStatus } Inside the jqgrid...

Convincing legacy application VB6 developers to make the switch to C#

I know this question could be similar to others but really I'm looking for reasons why VB6 developers should switch to C#. My company recently approved project to be written in C#, so we have a lot of VB.Net programmers, however, we have some legacy app developers as well that are in VB6. We have a time frame to re-write those apps in...

no reaction when drilldown

I want to drill-down my MSchart with ASP.NET 4.0. The main chart chtType was displayed successfully. I need to display the other chart Chart1. Public mSeries1, mSeries2 As Series Public mChartArea As ChartArea Public ocmd As SqlCommand Dim cnn As SqlConnection = New SqlConnection( "foo") chtType.Series(0).PostBackValue = "#AXISLABEL...

Format Date in Bind Statement inside a ListView

Hi, is there a way that I can format a Date binded in a ListView? I have this snippet of ListView <ListView ID="lvView" runat="server"> <ItemTemplate> //... some bounded data <asp:Label ID="lblDate" runat="server" Text='<%# Bind("RequiredDate") %>' /> //... another bounded data </ItemTemplate> </ListView...

jQuery $(document).ready() not firing

Hi all, Using jQuery 1.4.2 from Google hosted Code. Is there a reason why the following javascript does not fire all 3 document.ready functions when the document is ready? The first $(document).ready() function, which renders headers, and the second, which gives a 'Foo' alert box triggered, but subsequent ones in new <script> blocks ...

ASP.NET 2.0 -how do I include files containing server-side code?

I want to be able to load a customized log in page depending on a couple of parameters passed into the querystring. Each customized login page needs to be able to dynamically display log in errors and possibly have other variables passed in. Let's say the dynamic login page looks like this (over-simplification here): <form> <% if (has_...

Display text in multiline inside a grid view in asp.net

I am using a grid view in my asp.net application. In one column i need to display description(minimum 5 characters. Maximum 255 characters).i am using a label to hold description in that grid view. But my problem is that if the description is larger it stretches in the browser and show it in one line. I want to display description in m...

Troubleshooting ASP.Net caching - CacheDuration property seems to have no effect

I'm trying to get ASP.Net to cache the response of a web service request by setting the CacheDuration property of the WebMethod attribute: [WebMethod(CacheDuration = 60)] [ScriptMethod(UseHttpGet = true)] public static List<string> GetNames() { return InnerGetNames(); } The above is a method on an ASP.Net page (I've also tried mov...

What is the difference between float and float? return type in C# property

Possible Duplicate: What does DateTime? mean in C#? Hi All, I recently came across with some code in C# where float? is used as return type. I want to know what is the concept behind using this and in which scenario we need to use it against normal float return type. Thanks ...

Image wont render on my aspx page after adding master page..if not changed ID ..what else could be the reason?

used the following code to get rid of the system generated ID:- Banner.ascx.cs protected override void Render(System.Web.UI.HtmlTextWriter writer) { StringWriter Html = new StringWriter(); HtmlTextWriter Render = new HtmlTextWriter(Html); base.Render(Render); writer.Write(Html.ToString().Replace("id=\"ctl00_ContentPlace...

Extract plain text from HTML text in asp.net

I have used a rich textbox control,ckeditor in my case,When any formatting is done to the text the formatted text is populated in the datagrid.But I want to extract only the plain text in the grid and trim the length of data to 80 characters while populating. The query for updating the answer is as follows protected void btnUpdate...

Custom Error Page not showing

For some reason, when I get an ASP.NET runtime error, it's not loading my custom error page <customErrors mode="On" defaultRedirect="app_offline.htm" redirectMode="ResponseRewrite"> <error statusCode="404" redirect="app_offline.htm"/> <error statusCode="500" redirect="app_offline.htm"/> </customErrors> That's in my web.con...

NOSQL database Selection for forum.

Hi i am developing a FORUM i am using asp.net, c# language for code. I have read a article about NoSql i inspired a lot from there advantage over RDBMS (sql) so i was thinking that should i use NoSql concept for Forum DataBase or not. I am not a expert in database. So can u suggest me should i use NoSql? Currently I am using sql(rdbms)....

Constraints of text that is showing in asp.net Label's

Hi, everyone! Could someone tall me how I can limit count of line of text, that is showing in asp.net Label control? Thanks! ...

how to hide the numeric pager in list view

I am using a list view with page size 10 and added a numeric data pager for paging.everything is working fine but how i can hide the page number shown below when the data in list view is less than 10 and show it only data is greater than 10. pls help me out.... ...

determining the index of item in the list view or grid view when using paging.

i have the following problem concerning the index:: my source code:: <table style="width: 80%"> <tr> <td> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> ...