asp.net

Delete function skipped in asp.net

Hello everyone I am trying to make a page which allows me to delete job applicants from the db. My page works fine but whn i click on the delete button it reloads the page but doesnt delete the applicant and his details. I am using linq. Here is my code <%@ Page Language="C#" AutoEventWireup="true" CodeFile="ApplicantManagement.as...

How to customize calender control?

Hi, I am displaying calender using calender control. Each date is displayed as Link button. But i want only last 30 days(dates) from current date, to be enabled for client click. on those days i will write some code on SelectionChanged event. But goal is other dates must be disabled for click. They should not have link button. ...

ASP.NET Workflow CallExternalMethod

I'm not sure if im missing something obvious, with Windows Workflow used from within ASP.NET I don't really know how to get output from the Workflow back to the ASP.NET workflow. I have my workflow setup to handle external event, so my web page can invoke it, which works fine, but how do I get the information out again? Do I have to qu...

Strange Pager behaviour in ListView

Hi everybody, I have a standart Page within my ListView control on the page, And the Pager is work, however in order to move to next list of items i required to click on pager link twice before it actually moves to next set of items. The code for the pager is: <asp:ListView ID="lv_LostCard" runat="server" DataKeyNames="request_id" En...

How to Scrape websites, client side or server side?

I am creating a bookmarklet button that, when the user clicks on this button in his browser, will scrape the current page and get some values from this page, such as price, item name and item image. These fields will be variable, means that the logic of getting these values will be different for each domain "amazon, ebay" for example. ...

How can I make class into an array?

I was searcing for some information, and I found a method like this: public partial class Customer { private string customerIDField; private string companyNameField; private string contactNameField; private string contactTitleField; private string addressField; private string cityField; private...

Create partial classes in Asp.Net.

I have a small web application. This is what I want to do: Create partial classes to split up a code behind file. Why am I not able to create partial classes directly? If this is the codebehind file: using System; using System.Configuration.... public partial class _Default : System.Web.UI.Page { protected void Page_Load(object ...

On Postback, how to get the Column that I am sorting by in my GridView?

On Postback, how to get the Column that I am sorting by (by clicking on the column) in my GridView? ...

Getting values of dynamically added controls in ASP.NET

hello everyone thank you so much for providing help to me for my previous question as I'm developing application for education domain. In that I take panel control as panel1 and define a few dropdownlist controls in that panel as dropdown1, dropdown2 etc. dynamically in button1 click event and i want to use those controls' values in butt...

Why doesn't my gridview's column click toggle the sort direction?

Why doesn't my gridview's column click toggle the sort direction? It seems to only sort the rows the first time I click on it, any other clicks just refreshes the page w/o any change in sort direction. btw I have a OnSorting method that I call to update the sql query to sort. My Code: <asp:GridView ID="gvReport" runat="server" AutoGe...

Can enumerate only through first 20 or so cookies before I get the exception

Hello, The following code creates 100 cookies and then enumerates through them via postbacks. protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { for (int i = 0; i < 100; i++) { HttpCookie cookie = new HttpCookie("cookie num." + i.ToString()); cookie["Cookie"] = i...

Is it possible to host an ASPX web page, in a stand alone application, outside of IIS

I have a thick GUI application (possibly running as a service, but also just as a normal application) on a desktop. I would like to expose a web interface to the application for some remote monitoring and control of the application. I currently am hosting a WCF service that just returns HTML in the application, which works fine, but opt...

Website Architecture Module Versioning

I currently have an ASP.NET web application that is serving multiple clients from a single codebase. We use URL rewriting to detect which client is being served (pretty much a virtual vdir) and that drives which master page/themes/module version to run. Right now, each client can have a different version of a module or the default modu...

What to return from the DAL to BLL

Hello Everyone, I currently have an application which consists of: User Interface (web page) BLL (Manager & Domain Objects) DAL (DataAccess class for each of my Domain Objects). I use the following in the UI to search for a domain object. protect sub Button1_Click() { IBook book = BookManager.GetBook(txtID.Text); } Here is my BL...

How do you modify the web.config appSettings at runtime?

Hi, I am confused on how to modify the web.config appSettings values at runtime. For example, I have this appSettings section: <appSettings> <add key="productspagedesc" value="TODO: Edit this default message" /> <add key="servicespagedesc" value="TODO: Edit this default message" /> <add key="contactspagedesc" value="TODO: Edit thi...

How do I call unmanaged C/C++ code from a C# ASP.NET webpage

I have an ASP.NET website that uses C# and I'd like to call functions from an unmanaged C/C++ DLL. How do I do it? ...

How to use Stored Procedures w/ ASP.NET DataGrid

Question can also be: What is your preferred way of invoking stored procedures to fill a DataGrid? I am currently developing an ASP.NET Page, and I would like to know if Linq is the right way to go for use with my SQL Server DB. ADO seems nice too, so I would just like to have feedback on what is the most appropriate in general terms...

Use JQuery to call an asp:linkbutton click function

I have been playing around with a search control and i have noticed that when you try and press enter from within the textbox it submits the form but doesnt click the search button (like i want it to). My markup is: <div> <span>Search</span> <asp:TextBox ID="txtSearch" runat="server" Width="170" onkeydown="if ((event.wh...

VS2008, Add New Item, "Web Content Form" option is missing

Today I realized that I no longer have a ”Web Content Form” option (where you select a MasterPage) when I add new items to my ASP.NET web application. I know how to manually add a MasterPage to a web form, it’s just such a pain – and I really don’t understand why Web Content Forms suddenly are missing. Visual Studio Team System 2008, SP...

Visual Studio - 'Browse UDDI Servers' -> 404 ?

Hi - I have a ASP.Net application which implements a web service. Within the ASP.Net application there's a test script which consumes the web service and it all works etc. I have built a .NET console application and want to 'Add a Web Reference' so that the console app can consume the web service provided by the ASP.NET application. Whe...