Converting From PSD To PNG?
Nov 29, 2010is there any software I can use that allows me to programmatacilly convert a PSD into a PNG in my asp.NET web application? Where transparenct and quality are preserved.
View 2 Repliesis there any software I can use that allows me to programmatacilly convert a PSD into a PNG in my asp.NET web application? Where transparenct and quality are preserved.
View 2 Repliesi'm having a hard time figuring the way on converting my string into an integer number.In my form I have a textbox control from which I get the selected date as string, using the substring method I divide it to month, day and year.The problem is that I cannot, for example, convert the following "12" into the actual integer number twelve. I tried using Int32.Parse or Convert.ToInt32 but still couldn't solve it.Here's my code behind for better comprehension (this doesn't do the trick):
[Code]....
I am converting a webforms app to mvc. I implemented localization in webforms this way: The user selects the language, which BTW can be an rtl language, and the selection goes into the user profile in order for it to persist the next time the user visits the site. I used anonymous profiles. also, I used resource files.The db tables have multiple rows for each language (with a language index field). I also used different style sheets for ltr and rtl languages since I don't use tables on my site (Is there another way instead of using separate style sheets?) What are the best practices for using localization in asp.net mvc ? can I and should I use resource files ? and profiles ? should I map the aspnet tables to linq-to-sql ?
View 1 Replieswe are in the process of upgrading our crappy cms system and the new assemblies have changed from int to int64. I'm running into a problem when trying to build now. here is one excerpt of code that is causing a problem.
IDictionary<int, string> aliases
= new UrlAliasApi().GetUrlAliasesByType(
Company.DataLayer.Enumeration.UrlAliasType.Recipe);
foreach (ContentBase recipe in mergedResultset)
{
// if alias exists, overwrite quicklink!
string alias;
if (aliases.TryGetValue(recipe.Id, out alias))
{
recipe.QuickLink = alias;
}
}
The error is
Error 323 The best overloaded method match for 'System.Collections.Generic.IDictionary.TryGetValue(int, out string)' has some invalid arguments Its referring to recipe.Id which is an Int64 value.
I have written a desktop application in vb.net. Now I need to convert it into a web application in asp.net. Can you please suggest how I might proceed?
View 1 RepliesI'm following the ASP.NET MVC Tutorial and having started in VB.NET I'm having trouble converting the following razor code:
I have got
<ul>
@For Each g As MvcApplication1.Genre In Model
<li> @g.Name </li>
Next
</ul>
but getting
Attribute Sepcifier is not a complete statement on both the <li> tags. I understand I need to use line continuation but can't figure out where.
I am trying to convert some code I wrote from VB to C# and it regards Date, Times, and TimeSpans
[Code]....
the First Issue I have is with formats, I have a countdown that displays days left to enter the drawing, I just want a + int displayed no decimals, right now it shows 343.91736271538735 days left to enter drawing.
On The Page it displays Something Like this:
Drawing Date: Sunday, January 1, 2010
Days Left to Enter: 343 Days left to Enter
Right Now it Displays
Days Left To Enter :343.062117332176 Days Left to Enter
im trying to convert this into a repeater but finding it a little difficult trying to figure out how to seperate it and make it work.
Basically the original code is HTML, and I want to use that but since my menu system is coming from a DB, I want to be able to bind that menu system and have it automatically just bind the menus with the x level deep nav bars etc... which this HTML code does:
[URL]
(download the zip file)
Sure, 1 repeater on the page but because this is generic, I know I dynamically have to create and add a repeater and bind the submenu items (and their children if any) to this repeater...and adding this repeater to the current item.
I have a text box; txtPriceQuoted, and want to submit it's value to my SQL Server Database, I get an error about the conversion:
"Conversion failed when converting the varchar value '12.5' to data type int."The error only occurs when there is a decimal point in the number, how should i convert it so that I can input the value into my database....?
I am trying to conver this to C# but Item is not a method in C#
Repno is a string variable of 3 characters
First if rep is not null
then
confirm that Repno the field salespnno from the query.
[code]....
[code]....
the above code only converts controls in dvtext (div) like label name and textboxname to pdf. after entering values into textboxes. it is not convert them to pdf. it only converts control names.
I want to convert HTML page to pdf .
View 2 RepliesThis is probably a simple one for C# people :-) I have this regular expression in javascript:
strVar = strVar.replace(/(specificattribute=)"s*([^"]+?)s*"/g, '$1"$2"');
It replaces leading and trailing spaces inside a specific attribute's value, globally (as per this example page: [URL]). I need to do the same on a string in C#, but when trying the above, the syntax checker chokes at the regExp. So I need the equivalent line of the above in C#.
is there any ready to go solution within the microsoft framework, regarding conversion of date to day?
For example, i would like to convert this string 21/03/2010 (dd/mm/yyyy) to Sunday
there is eny way to convert a string type to uniqueidentifier type .... when i insert or update data , i can give string as a parameter or i must to convert to uniqueidentifier type.?
View 4 RepliesIn ASP.net using VB, how can I Convert a number e.g 4.5 to french (4,5). And a quick question, when storing this in database, will It store as 4.5 or 45?
View 1 RepliesHow to convert SQL Queries to Linq.is their any tool available to convert SQL Queries to Linq
View 2 RepliesI have this code in c# and I want to convert this to T-SQL and put in stored proc. I'm having a problem in speed as I am processing more than 50000 records at a time and the Update statement slows it down. I was thinking stored procedure could help on my problem. here's what I have:
sqlStmt = "SELECT DISTINCT(phone_no) FROM TEMPTABLE WHERE sUSER='" + USERName + "' ORDER BY phone_no";
In C#.I have a list<object>.
I want to convert any datareader result (with data) to a list of objects.
How can I do that?
I am using this
List<JobsMeta> JobsMeta= _db.JobsMetas.Where(m => m.int_OrganizationId == null || m.int_OrganizationId == OrganizationInfo.OrganizationId).OrderBy(m => m.int_SortId).ToList();
ViewData["JobMeta"] = JobsMeta;
now using the view i want to loop through ViewData["JobMeta"]
<% foreach (var JobsMeta in ViewData["JobMeta"]))
What I'd like to do is a find-and-replace for certain words appearing in the body text of a web page. Every time a certain word appears in the body text, I'd like to convert that word into a hyperlink that links to another page on our site.
View 5 RepliesI wanted to know, if there is any way to convert a Powerpoint presentation [on the server] to images. Like, I have written a same code for the Desktop using PIA's. But was wondering if it is possible to do the same thing on the server?
View 3 RepliesIn my project, I have a database in SQL which was working fine. But now I have to make the application support oracle db too.
Some limitations I found out was that in Oracle, there is no bit field and the table name cannot be greater than 30 char. Is there any other limitation that I need to keep in mind.
I am trying to figure out the best way to convert a string object into a DateTime with only using the year. I have something like:
[Code]....
But it is still giving a "String was not a recognized as a valid DateTime." In the full context, I have a webpage with a formview on it and within the formview is a TextBox control that is taking a user input such as "1999" then an ObjectDataSource picks it up and runs it through a BLL. And within the BLL is where I am trying to convert it before it gets inserted into the database.
using c#,i need to Convert each page of a pdf file into separate images and display the images?
is it possible to do this without using 3rd party dll?