Hello its my code where I giving out paging of view:
<div style="float: right;">
<%= Html.RouteLink("<<", new { page = 1 }, new { title = "first page" })%>
<% if (this.Model.HasPreviousPage)
{%>
<%= Html.RouteLink("<", new { page = (Model.PageIndex - 1) }, new { title = "previous page"})%>
<%}...
Hi ,can you please show me how to send an SMS to a mobile phone through ASP.Net web Application.
I will very much appreciate it if you can help me with that.
Thank you in Advance.
Austin
...
I have a class in a separate file (stripped out a lot for simplicity)
public class navigation
{
// Adds to menu
public static void addMenuToList(ListView parent)
{
parent.Items.Add(newItem);
}
}
Where parent is a control on my .net page:
<asp:ListBox SelectionMode="Single" Rows="8" id="parent" ...
Hi,
I have a wcf service that is used to download files. Its working alright (finally), but i can see that when it downloads the CPU usage goes around 75%.
Please advise
Client Code
FileTransferServiceClient obj = new FileTransferServiceClient();
Byte[] buffer = new Byte[16 * 1024];
CoverScanZipRequest req = new CoverScanZipRequest(...
I have implemented the standard Login control and everything works fine.
However when i enter an invalid URL it gets redirected to the Login page.
e.g.
mywebsite.com/xxx correctly gives a 404
but
mywebsite.com/xxx.aspx causes a redirect to the login page
I am using ASP.NET 3.5 on Windows Server 2008.
I have set up the web.config...
I have sql query like shown below the sql server says that their is error in HAVING and ORDER bY is their any error with syntax near HAVING and ORDER BY, can anyone help.
SELECT Id,
Name1,
ZipCode,
StreetName,
StreetNumber,
State1,
Lat,
Lng,
Keyword,
( 6371 * ACOS( COS( (12....
Currently, when I want to use Microsoft Chart Controls on a website, I need to add the following onto every aspx page where I want to use it:
<%@ Register Assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>
...
Trawling through the 'net I'm getting lots of conflicting posts as to whether the HTTPModule route is single threaded or multithreaded by default.
I'm trying to debug rapidly differing performance within local, UAT and deployment environments and am wondering whether there is a pinch point with HTTPModule that I've been previously unawa...
Hello there! I'm trying to use the new Html helper extension Serialize() from the furthure assembly..
If you take a look at:
View
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<List<MvcApplication2.Models.ProductViewBinding>>" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/...
Hello,
Im using ASPxCalendar in EditItemTemplate in DetailsView Control.
<EditItemTemplate>
<dxe:ASPxCalendar ID="ASPxCalendar2" runat="server" SelectedDate='<%# Bind("DateEnd") %>' ClientInstanceName="calDateEndClient">
</dxe:ASPxCalendar>
</E...
I need to screen scrape a web page and change its style to match the look and feel of the site where it will be displayed in. Is this possible? I'll be using asp.net to do the screen scraping.
Thanks
...
I have an ASP.NET page that contains a gridview.
I have to create columns dynamically based on a datatable, some field type info and some header texts.
I do that by creating templates.
It created the grid fine and all looks good, however when i click a checkbox and the checkedchanged event fires then something odd happens
The first t...
Hello everyone!
I have to add to my textBox a WatermarkExtender from ajax control toolkit (it is already instaleed properly) . Problem is that when I try pull the TextBoxWatermarkExtender from the toolbox Visual studio 2010 dont alow's me to do that.
this the source code of default.aspx
<%@ Page Language="C#" AutoEventWireup="true" C...
Hi all:
I have div which it is hidden by default , when the use clicks show link the following javascript method is called:
function ChangeControlVisibility(elementID) {
var element = $("#" + elementID);
if (element.css('display') != 'block' && element.css('display') != 'table') {
element.show();
var tempElemen...
I am having an ASP.NET/C# Web application hosted in IIS6. My requirement is to send a mail whenever the Website is down without using any third party tool. How can I accomplish this job programmatically (of course using C#)? Thanks in advance!!!!!
...
I'm trying (SQL Server Compact) to add primary key constraint on existing table that has some rows in it. While adding primary key I'm getting the error:
"A duplicate key cannot be inserted into a unique index"
I don't what this is, can anyone help me with this?
...
So I need to fix a query in a large application that I'm not familiar with. The application is live, and the issue is urgent. The query is killing our server. I found the query that is causing the issue, and I know how to fix it. I found it in phpMyAdmin's status or SHOW processlist. But I don't know which script is actually running it. ...
Hello
I'm looking for a horizontal tree view control that creates nodes in the following way -
|_______|
|
_______________________
| |
|_______| ...
Hello,
I ve two aspCalendar controls on the website. I would like to perform validation (date from Calendar2 should be greater then date from Calendar 1).
<asp:CompareValidator ID="CompareValidator1" runat="server"
ErrorMessage="CompareValidator"
ControlToValidate="Calendar2"
Operator="GreaterThanEqual"
Type="Date"
...
I am trying to build a web app project using C#. and i am getting the error message "A namespace doesnot containmembers such as fields or methods". Error Code 7. and file name is my CSS file that it is showing with Row number and column no. 1. I am using Visual Studio 2008, and the first class created(body) is blue underlined. I have che...