asp.net

How can I call jquery function from javascript code?

I'm using RadAjaxPanel by telerik and it has ClientEvents-OnResponseEnd client-side event. So I've written JavaScript function: function OnResponseEnd(ajaxPanel, eventArgs) { // call jQuery here }; and my question is how to call jQuery function inside? I'd like to manipulate some html elements with .slide(..) function. ...

Visual Studio thinks my controls are missing, but they're not. "The name xx does not exist in the current context"

When working with an ASP.NET application in Visual Studio 2008, my errors window often contains a list of errors such as; The name 'txtUsername' does not exists in the current context. When I double click on the error, it will go to the source, show the control underlined in red, then realise it's mistake and remove those errors. It'...

Looping through Dataset

Hi All, While looping through a Dataset which code snippet should I use, should I go for 2 foreach or a single for snippet1: for (int i = 0; i < ds.Tables["TableName"].Rows.Count; i++) { // My Code } snippet2: foreach (DataRow dr in ds.Tables["TableName"].Rows) { foreach (DataColumn ...

how to find linkbutton in a formview in order to write code for changing mode?

Hi... I have a web form which contains a formview(fv). how can I find a linkbutton within it (lnkbtnEdit) in order to write code for changing mode? thank you ...

Asp.Net (vb) Force Postback in code-behind

Hi, I'm in need of a way to force a postback or page reload in codebehind. Tried using some javascript but didn't get it to work. Browsing the net I see the first question is "why"? Circumstances are that I have a dropdownlist on autopostback, and the gridview datasource's selectparameter is derived from the selected value of that drop...

Create .NET Custom Control Button for CRUD

Hello there, I am thinking to create a Custom Control button that would do a CRUD tasks for me. Let me elaborate: I wanted something that save time to writeup code on every UI for CRUD tasks. I am here becuause I want to make sure the approach I am taking should be verified before I am putting hours and taking strain. A Custom (could ...

Implementing a Custom Membership Provider with slightly bizarre requirements

Building a new Mobile Web Platform for Mobile Users to purchase & download content on their handsets. In the past we've used a completely bespoke login mechanism but I'm investigating using a Custom Membership Provider for the next version of the Platform. The thing is, we have some slightly odd "login" mechanism requirements, so I'm no...

Adding CSS Class on RowDataBound

I'm trying to append a CSS class to a row on RowDataBound. I'm using the alternating css class property against the GridView, so I'm assuming this is applied on RowDataBound. If you assign a CSS class programatically to the CssClass property of the row within the RowDataBound event then the alternating row style css class is not applie...

"The specified module can not be found" in asp.net application.

I just tried to copy my entire web application to a new instance of Visual Studio 2008 on another (virtual) machine. It builds just fine, but when I try to run the applicaton I just get the message "The specified module could not be found". Does anyone have an idea how I can find out which module this message refers to? Because there a...

How to get row from dataset with sql query?

i need to take some row. They came from sql TARIH (sql column) is smalldatetime format. But give me error : DataRow[] rows = dsChart.Tables[0].Select("TARIH<='" + datestart + " " + txtStartDateTime.Text + "' and TARIH>='" + dateend + " " + txtEndDateTime.Text+"'"); Cannot perform '<=' operation on System.DateTime and System.String. ...

ASP.NET TimeOut expired on: Membership.ValidateUser(username, password)

The same copy of my asp.net web application running on another server keeps throwing this error every now and then: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. The error occurs on the follow...

ASP.NET and Entity Framework in Layered Architecture - using Entity Framework for ORM only

I have an ASP.NET application that uses a layered architecture e.g. presentation layer, business logic layer, data access layer. I don't want to the business layer to have to know anything about how the data access layer is implemented and I'm not looking to bind the Entity's directly to a data control using the EntityDataSource or anyt...

Looking for Microsoft Index Server ASP.NET samples

i am not a programmer, but i can frankenstein code snippets with sufficient proficiency that if, by the grace of a few good souls, i could come across some sample ASP code that acts as a GUI to the ms index server, i could certainly make it work and look good. if anyone can offer any help, i would do a backflip. but i won't put it on yo...

OpenXml Sdk

Hi I've asked on the OpenXml Sdk forum but that place seems about as active... not very active. I'm doing some server side excel output using the OpenXML Sdk v2 ctp. Has anyone here had any experience using this - mpre specifically: Is there a way to add subtotals to data in a spreadsheet using the SDK? or do i need to manually iterate...

ASP.NET GridView HeaderRow

Is it possible to set the a gridview's headerrow property from the aspx code? I'd like to be able to include extra controls to the header such as textbox for filter. I can do this from the C# code behind by dynamically adding the controls, but doing this seems to introduce some suitable problems that I'd rather avoid. ...

How do I expose the columns collection of GridView control that is inside a user control

See edit. I want to be able to do this in the aspx that consumes the user control. <uc:MyControl ID="MyGrid" runat="server"> <asp:BoundField DataField="FirstColumn" HeaderText="FirstColumn" /> <asp:BoundField DataField="SecondColumn" HeaderText="SecondColumn" /> </uc> I have this code (which doesn't work). Any ideas what I...

paypal dynamic return address

I have a single product, a file that is dynamically created and I need a paypal to return a customer after payment is done to the address of the file. Simple Buy Now button is elegant but if I put <input type="hidden" name="return" value="http://www.mysite.com/x727x7e.dat"&gt; into a button's code, simple browser's Page - View Source ...

How to implement user configurable web pages in a ASP.Net/AJAX web app

Hi, I need some advice to save me re-inventing the wheel. Our windows app is being redesigned as a web app [ASP.Net/AJAX dot Net 3.5 - SQL Server 2005 DB] and we are at the begining of the process. One of the requirements is that the customer should have some control over the page layout .i.e. type of controls, position of controls ...

LinqDataSource and DateTime Format

I'm trying to create a LinqDataSource to bind to a DropDownList in an ASP.NET form. I only want to show the elements according to a date (which is one of the fields in the database). Basically, the elements I want to show are the ones that will happen in the futures (i.e. after DateTime.Now). I was trying the following markup : <asp:...

Using Entity Framework as Data Access Layer

In my ASP.NET application I want to implement by data acess layer using the Entity framweok so I can use it as an ORM tool. But I dont want the rest of the application to care that I'm using this or be polluted by anything entity frameowrk specific. I cant seem to find anyone who is using the entity framework exclusively in their Data a...