View Complete Post
Hi every one ... How are you ??
OK ... I want to make album ... I try to make it using buttons( next & pre ) using imageButton control and variable (i)
So ... each next (++i) & pre ( --i) to show allimages in directory ("photo")
Here my code in C# ::
public partial class photos : System.Web.UI.Page
// LinkedList<string> names = admin.getNames();
static int i = -1;
static int l = 0;
protected void Page_Load(object sender, EventArgs e)
dir = new DirectoryInfo(MapPath("photo"));
files = dir.GetFiles();
//l = (int)names.LongCount();
l = files.Length;
if (l == 0)
Label2.Text = "No Photo to Display !!";
Image2.ImageUrl = "images/ith.png";
I have a program which rewrites a url to a form website.com/Default.aspx/name/articleid
The Program works fine ,but after URL rewriting my css sheet and images are gone .
I am new to this and I have read that I should map my css and images to root.
So ,I hav done some change to the path files of css and images but it stilll doesnt work .
Plz help me over this ......
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TBV.aspx.cs" Inherits="TBV" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>Article Page</title> <link rel="index" href="~/" title="Home" /> <link rel="Stylesheet" media="screen,projection" type="text/css" href="~/css/main.css" /> <link rel="stylesheet" media="print" type="text/css" href="~/css/print.css" /> <link rel="stylesheet"
I have a piece of code that writes string into an image and save it. It works on one of my site and but not the other. The image.save is not working. If this is a permission problem, which account should I change? I use win server 2003 and IIS 6, and have given ASPNET, NETWORK SERVICE, and anonymous user write access.
Build a Visual Basic add-in that lets you copy C# code and paste it into Visual Studio as Visual Basic using the code converter of your choice. Scott Swigart shows you how.
MSDN Magazine February 2006
MSDN Magazine December 2005
MSDN Magazine September 2003
Scalable Vector Graphics (SVG), a W3C graphics standard built around XML, is one of several vector graphics technologies that allows fast, lightweight drawings such as charts and graphs to be rendered on the fly in an appropriate viewer. There are many advantages to such vector graphics, including conservation of bandwidth and storage media, and flexibility. This article explains these benefits and shows you how to easily add powerful, dynamic, interactive visual elements to your Web applications.
MSDN Magazine July 2003
Edited by Nancy Michell
MSDN Magazine September 2001