Is there a way to convert images from RGB to CMYK? Thanks!
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# ::
using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Xml.Linq; using System.IO; using System.Collections.Generic; namespace iThinkerWebSite { public partial class photos : System.Web.UI.Page { // LinkedList<string> names = admin.getNames(); DirectoryInfo dir; FileInfo[] files; 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";
Sir,
Please guide
I am trying to retrieve xml from a small function in my .cshtml page. Its throwing me an error. This however, runs fine in a console/form environment.
It takes 3 parameters and 1 exception.
myDll.GetXML(year, username, uniqueidentifier, out ex);
When I run this page I get the error, "Conversion failed when converting from a character string to uniqueidentifier."
Or a stack of.
System.Data.SqlClient.SqlException (0x80131904): Conversion failed when converting from a character string to uniqueidentifier. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBeha
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.
Hi All,
Is it possible to convert the Report Document object as a byte array and store it in SQL , later retrieve and assing it to a report ?
Hi!
I'm having problems converting a VS 2003 project to VS 2008 (tried 2005 as well, same problem). There are several problems;a) I don't have VS 2003 installed.b) The project is a web service, however I'm not sure what type of VS project it was created as.c) The general knowledge about the project setup is..slim.
I get a error message using the conversion wizard, however, I'm not familiar with the tool and I cannot quite find any good information on Google for it, so I am left with a error message I do not understand.
Conversion Issues - myProject.csproj:Unable to open the Web site 'C:\local\path\to\project\myProject.csproj'. The Web site 'C:\local\path\to\project\myProject.csproj' does not exist.
The web service is not intended to run on the dev machine, it is copied to a test or a prod server. However, I do not know how this was done previously. I'm thinking that in order to convert, it has to access the server on which it should run (which is set somehow in a config maybe). But that doesn't actually make any sence..
If anyone could shed light on this, I would really appreciate it.
Thank you.
Hi guys,
So ive been converting an asp website to asp.net. What i did was run the migration wizard in the old VS2003, then when importing it bk into vs2008, i belive it upgraded it agin. I have been plodding along correcting basic erros and have come stuck with this one. Originallany the site has two input types, one for date and one for time. the new script is below with error im getting. I manged to get the date correct but the time is more tricky. Any suggestions would be appreciated.
Date = FormatdateTime(IIF(IsDBNull(MyRs1.Fields.Item("").Value), Nothing, MyRs1.Fields.Item("").Value), DateFormat.ShortDate) Time = FormatdateTime(IIF(IsDBNull(MyRs1.Fields.Item("").Value), Nothing, MyRs1.Fields.Item("").Value), DateFormat.ShortTime) Exception Details: System.InvalidCastException: Conversion from type 'Double' to type 'Date' is not valid.Source Error: Line 74: Line 75: 'TODO Need to correct the format Line 76: Time= FormatDateTime(IIf(IsDBNull(MyRs1.Fields.Item("").Value), Nothing, MyR Help converting vbscript to vb.net Can anyone help me convert the below vbscript to vb.net: On Error Resume Next Dim sRunTime,sSitupCount,sPushupCount,sRunMin,sRunSec,sRunScore,sCompScore,sBodyCompDim iCompositeScore Set oRE = New RegExp sRunTime = InputBox("Enter your run time")oRE.Pattern = "[0-5][0-9]:[0-5][0-9]" If oRE.Test(sRunTime) = True Then WScript.Echo "Pattern Match"Else MsgBox "You must enter a valid run time in the following format: ""mm:ss""." & vbCr & "Please run the application again." WScript.Quit(Err.Number)End If sRunMin = Left(sRunTime,InStr(sRunTime,":")-1)sRunSec = Right(sRunTime,InStr(sRunTime,":")-1) sBodyComp = InputBox("Enter your waiste measurement")oRE.Pattern = "[2-6][0-9].[0,5]" If Len(sBodyComp) = 2 Then sBodyComp = sBodyComp + ".0"End If If oRE.Test(sBodyComp) = True Then WScript.Echo "Pattern Match"Else MsgBox "You must enter a waiste measurement in the following format: ""nn.n""." & vbCr & "Please run the application again." WScript.Quit(Err.Number)End If sSitupCount = InputBox Converting from PHP to ASP Dear all friends Hi to you all. I am now looking for not only your help but als your advices and suggestions to my situation.here is the url of my current running PHP server http://www.yarnxchange.com/index.phpFIrst things I wish to know is which asp controls can replace the current PHP ones to act the same way1. In the top of the page the Latest news (News Ticker).2. Under the banner logo the black line has a streamer that read data from database and view them in sme way like marquee and when roll over it stops and when click i can go to the details page.3. In the bottom page The Yarn offers section . it shows data from mutiple tables but in the same place when click each item it displays the rows of its table in the right section . I think that there is a way or a data controller that can act the same way I wish your advice.For sure after that I wish to know your ideas , recommendations and advices to make the full conversion in the best way C# to VB: Converting to Boolean I am converting some C# code to VB, the following code is part of a functionif (bool.Parse(v["Parent"].ToString())) { e.Row.CssClass = "Parent"; } V is System.Data.DataRowView When I convert this to. If Boolean.Parse(v("Parent").ToString()) Then e.Row.CssClass = "Parent" End If The code throws an error "String was not recognized as a valid Boolean" But if I use this code If CBool(v("Parent").ToString) = True Then e.Row.CssClass = "Parent" End If It works fine, which is great, I am just curious why? Categories: ASP.NetWindows Application .NET Framework C# VB.Net ADO.Net Sql Server SharePoint Silverlight Others All
Date = FormatdateTime(IIF(IsDBNull(MyRs1.Fields.Item("").Value), Nothing, MyRs1.Fields.Item("").Value), DateFormat.ShortDate)
Time = FormatdateTime(IIF(IsDBNull(MyRs1.Fields.Item("").Value), Nothing, MyRs1.Fields.Item("").Value), DateFormat.ShortTime)
Exception Details: System.InvalidCastException: Conversion from type 'Double' to type 'Date' is not valid.Source Error:
Line 74: Line 75: 'TODO Need to correct the format Line 76: Time= FormatDateTime(IIf(IsDBNull(MyRs1.Fields.Item("").Value), Nothing, MyR Help converting vbscript to vb.net Can anyone help me convert the below vbscript to vb.net: On Error Resume Next Dim sRunTime,sSitupCount,sPushupCount,sRunMin,sRunSec,sRunScore,sCompScore,sBodyCompDim iCompositeScore Set oRE = New RegExp sRunTime = InputBox("Enter your run time")oRE.Pattern = "[0-5][0-9]:[0-5][0-9]" If oRE.Test(sRunTime) = True Then WScript.Echo "Pattern Match"Else MsgBox "You must enter a valid run time in the following format: ""mm:ss""." & vbCr & "Please run the application again." WScript.Quit(Err.Number)End If sRunMin = Left(sRunTime,InStr(sRunTime,":")-1)sRunSec = Right(sRunTime,InStr(sRunTime,":")-1) sBodyComp = InputBox("Enter your waiste measurement")oRE.Pattern = "[2-6][0-9].[0,5]" If Len(sBodyComp) = 2 Then sBodyComp = sBodyComp + ".0"End If If oRE.Test(sBodyComp) = True Then WScript.Echo "Pattern Match"Else MsgBox "You must enter a waiste measurement in the following format: ""nn.n""." & vbCr & "Please run the application again." WScript.Quit(Err.Number)End If sSitupCount = InputBox Converting from PHP to ASP Dear all friends Hi to you all. I am now looking for not only your help but als your advices and suggestions to my situation.here is the url of my current running PHP server http://www.yarnxchange.com/index.phpFIrst things I wish to know is which asp controls can replace the current PHP ones to act the same way1. In the top of the page the Latest news (News Ticker).2. Under the banner logo the black line has a streamer that read data from database and view them in sme way like marquee and when roll over it stops and when click i can go to the details page.3. In the bottom page The Yarn offers section . it shows data from mutiple tables but in the same place when click each item it displays the rows of its table in the right section . I think that there is a way or a data controller that can act the same way I wish your advice.For sure after that I wish to know your ideas , recommendations and advices to make the full conversion in the best way C# to VB: Converting to Boolean I am converting some C# code to VB, the following code is part of a functionif (bool.Parse(v["Parent"].ToString())) { e.Row.CssClass = "Parent"; } V is System.Data.DataRowView When I convert this to. If Boolean.Parse(v("Parent").ToString()) Then e.Row.CssClass = "Parent" End If The code throws an error "String was not recognized as a valid Boolean" But if I use this code If CBool(v("Parent").ToString) = True Then e.Row.CssClass = "Parent" End If It works fine, which is great, I am just curious why?
Can anyone help me convert the below vbscript to vb.net:
On Error Resume Next
Dim sRunTime,sSitupCount,sPushupCount,sRunMin,sRunSec,sRunScore,sCompScore,sBodyCompDim iCompositeScore
Set oRE = New RegExp
sRunTime = InputBox("Enter your run time")oRE.Pattern = "[0-5][0-9]:[0-5][0-9]"
If oRE.Test(sRunTime) = True Then WScript.Echo "Pattern Match"Else MsgBox "You must enter a valid run time in the following format: ""mm:ss""." & vbCr & "Please run the application again." WScript.Quit(Err.Number)End If
sRunMin = Left(sRunTime,InStr(sRunTime,":")-1)sRunSec = Right(sRunTime,InStr(sRunTime,":")-1)
sBodyComp = InputBox("Enter your waiste measurement")oRE.Pattern = "[2-6][0-9].[0,5]"
If Len(sBodyComp) = 2 Then sBodyComp = sBodyComp + ".0"End If
If oRE.Test(sBodyComp) = True Then WScript.Echo "Pattern Match"Else MsgBox "You must enter a waiste measurement in the following format: ""nn.n""." & vbCr & "Please run the application again." WScript.Quit(Err.Number)End If
sSitupCount = InputBox
Dear all friends
Hi to you all. I am now looking for not only your help but als your advices and suggestions to my situation.
here is the url of my current running PHP server http://www.yarnxchange.com/index.php
FIrst things I wish to know is which asp controls can replace the current PHP ones to act the same way
1. In the top of the page the Latest news (News Ticker).
2. Under the banner logo the black line has a streamer that read data from database and view them in sme way like marquee and when roll over it stops and when click i can go to the details page.
3. In the bottom page The Yarn offers section . it shows data from mutiple tables but in the same place when click each item it displays the rows of its table in the right section . I think that there is a way or a data controller that can act the same way I wish your advice.
For sure after that I wish to know your ideas , recommendations and advices to make the full conversion in the best way
I am converting some C# code to VB, the following code is part of a function
if (bool.Parse(v["Parent"].ToString())) { e.Row.CssClass = "Parent"; }
V is System.Data.DataRowView When I convert this to.
If Boolean.Parse(v("Parent").ToString()) Then e.Row.CssClass = "Parent" End If
The code throws an error "String was not recognized as a valid Boolean" But if I use this code
If CBool(v("Parent").ToString) = True Then e.Row.CssClass = "Parent" End If
It works fine, which is great, I am just curious why?
Hall of Fame Twitter Terms of Service Privacy Policy Contact Us Archives Tell A Friend