|
I want to customize the editor. i am unable to customize the font name and font size. Any idea about this.
|
|
|
|
|
If you are referring to the HTML Editor control from the AJAX Control Toolkit, then the source code is available. Download it and modify as necessary.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
You may also wish to consider FCK Editor. It is quite flexible and easy to use.
|
|
|
|
|
Hi all,
my client have VPC and they want to consume it with webservice.
i am very new to development any help will be appriciated.
i have three files like.
1.CS_VPC_3Party_Order.html
2.CS_VPC_3Party_DO.aspx
3.CS_VPC_3Party_DR.aspx
i am not getting from where to start..please help me.
thanks
|
|
|
|
|
|
Thanks For Reply,
Actually i want to implement Capture And Authorize For Paypal in webservice.
i need to send information from webservice to paypal.
how can i do this.
Thanks
|
|
|
|
|
|
Hi
I have the following error showing on my website after uploading it to the webhost but the website has no error on my localhost on my laptop. I checked with my hosting company who confirmed there is no issue at their end. The website is www.JassimRahma.com and here is the error (note: my global file has the default events created by VS2008 but I didn't add any code to it):
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'JassimRahma.com.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="JassimRahma.com.Global" Language="C#" %>
Source File: /global.asax Line: 1
|
|
|
|
|
seems you forgot to upload something, probably related to JassimRahma.com.Global (is there a DLL with that name?)
|
|
|
|
|
Yes I have DevExpress DLLs which I already iploaded to the bin of the root. I also have the 51degree .gz file as well as .xml file which I uploaded to the App_Data
|
|
|
|
|
Urgent help plz as a title, or anywhere in the text, is considered very rude around here and will just get you ignored. This is a volunteer site and people will answer you on their time, not yours. It may be urgent to you, not any one else.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
A wild idea: is everything built with one and the same .NET version? You can't mix versions. Your main page seems to get handled by 2.0
|
|
|
|
|
My shared webhost doesn't provide a feature to schedule running an aspx page every (x)minutes.
I badly need the feature
Anywhere I can get it for free just for one aspx file hosted on my webhost?
Any solution?
|
|
|
|
|
There is no such thing. Do you understand how web applications work? You don't schedule a page, it is requested from a client.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Not quite true Mark... you can schedule a task to run an .aspx page same as you can schedule any other task, and that page's Load event could run some time-dependent job, such as fetching the latest data from a remote server and updating your own database. There may well be better ways of doing this, but all the same this could be done and under certian circumstances may even be a reasonable solution.
However, if the OP's web host doesn't give access to Task Scheduler they are screwed on this approach. I can't see any web host allowing this - unless they rent a dedicated (or virtual) server, of course, but not on a shared hosting environment.
[edit] I guess one could fake it by setting up a scheduled task on one's own computer to call the page every X minutes, or whatever....
modified on Sunday, October 3, 2010 4:39 PM
|
|
|
|
|
NeverHeardOfMe wrote: you can schedule a task to run an .aspx page same as you can schedule any other task
Yes, of course you can, but what would be the point. There are many things that can be done if given the time and resources but it doesn't make them correct. There are other, more appropriate means.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
There is no easy fix. Here are two ideas:
1. Most web hosts are UNIX based, and a lot of them offer a CRON service for periodic actions. You could create a PHP page there that accesses your ASPX page, then tell their CRON to activate your PHP page periodically.
2. You might be able to do this: have your aspx page send a delayed mail to your web host (most have some facility to not immediately send a mail, but wait either some period, or some specific time, or whatever is considered the night shift). Then set up your mail account to filter for that specific mail and get it processed by the original aspx page.
Warning: this basically means the page is keeping itself active, which can go wrong in two ways: if the delay becomes too small or zero, you get a busy loop, and the web host will eventually kick you out; and when the loop breaks for some reason, it will not restart automatically.
|
|
|
|
|
I have incoming messages to specific email address. I want to loop through all the messages in that account then INSERT the email subject to the article_title and the body to article_url
How can I do that please
|
|
|
|
|
i would imagine, depending on how you get your emails, that a simple foreach should do the trick. what format are your emails?
Three types of people in this world, those that can count and those that can't
www.casserlyprogramming.com
|
|
|
|
|
i want to convert a aspx web form into image file.but an error out of memory is occur when i execute following code.
using System;
using System.Data;
using System.Configuration;
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.Diagnostics;
using System.Drawing.Imaging;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.IO;
public class CaptureWebPage
{
private const string EXTRACTIMAGE_EXE = "IECapt.exe";
private const int TIMEOUT = 60000;
private const string TMP_NAME = "InBetween.png";
public CaptureWebPage()
{
}
private void Shot(string url, string rootDir)
{
Process p = new Process();
p.StartInfo.FileName = rootDir + "\\" + EXTRACTIMAGE_EXE;
p.StartInfo.Arguments = String.Format("\"{0}\" \"{1}\"", url, rootDir + "\\" + TMP_NAME);
p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = false;
p.Start();
p.WaitForExit();
p.Dispose();
}
private System.Drawing.Image Scale(System.Drawing.Image imgPhoto,int Width, int Height)
{
int srcWidth = imgPhoto.Width;
int srcHeight = imgPhoto.Height;
int srcX = 0; int srcY = 0;
int destX = 0; int destY = 0;
float percent = 0; float percentWidth = 0; float percentHeight = 0;
percentWidth = ((float)Width / (float)srcWidth);
percentHeight = ((float)Height / (float)srcHeight);
if (percentHeight < percentWidth)
{
percent = percentWidth;
destY = 0;
}
else
{
percent = percentHeight;
destX = 0;
}
int destWidth = (int)(srcWidth * percent);
int destHeight = (int)(srcHeight * percent);
System.Drawing.Bitmap pnghoto = new System.Drawing.Bitmap(Width,
Height, PixelFormat.Format24bppRgb);
pnghoto.SetResolution(imgPhoto.HorizontalResolution,
imgPhoto.VerticalResolution);
Graphics grPhoto = Graphics.FromImage(pnghoto);
grPhoto.InterpolationMode =
InterpolationMode.HighQualityBicubic;
grPhoto.DrawImage(imgPhoto,
new Rectangle(destX, destY, destWidth, destHeight),
new Rectangle(srcX, srcY, srcWidth, srcHeight),
GraphicsUnit.Pixel);
grPhoto.Dispose();
return pnghoto;
}
public string GetImage(string url, string name, string rootDir, int width, int height)
{
string fileName = rootDir + "\\" + TMP_NAME;
Shot(url, rootDir);
System.Drawing.Image thumbImage = System.Drawing.Image.FromFile(fileName);
Scale(thumbImage, width, height);
System.Drawing.Image scaledImg = Scale(thumbImage, width, height);
fileName = rootDir + "\\" + name + ".png";
if (File.Exists(fileName))
File.Delete(fileName);
scaledImg.Save(fileName, ImageFormat.Png);
return name + ".png";
}
}
protected void btnsave_Click(object sender,EventArgs e)
{
int Width, Height;
Width = Convert.ToInt32("1000");
Height = Convert.ToInt32("1000");
CaptureWebPage cwp = new CaptureWebPage();
string str="http://localhost:1108/bijliboardwap/showdetail.aspx?meterid="+meterid;
string imagePath = cwp.GetImage(str, " ", Server.MapPath("~"), Width, Height);
Response.Redirect("~/Default2.aspx?Path=" + imagePath);
}
|
|
|
|
|
Hi,
welcome to CodeProject.
Your question is very hard to read, with a lot of unformatted code. We recommend you use PRE tags (or the "code block" widget) to get code formatted properly, with indentation, and syntax coloring. You could still edit and improve your existing message! It is also good practice to be as specific as possible about compilation or run-time problems; e.g. an Exception tends to include a line number, telling us which line bombs is a big step forward.
I haven't looked at all the code, I want to signal GDI+ or .NET uses some strange exceptions when things go wrong. As an example (possibly spot on), Image.FromFile gives an OutOfMemoryException when the data in the file isn't using an image format the method understands.
So I suggest you:
1. look at the exact filepath you are using
2. consider whether you want a file on the client side or the server side
3. try and open said file, e.g. by double-clicking it in Windows Explorer; if explorer fails, so will FromFile.
|
|
|
|
|
If you go to google and search for microsoft you will see microsoft corporation the result and below that you will see some featured links from microsoft such as windows, support, etc and then you can see (more from microsoft.com)
What does this google technology called and how can I do it for my website?
|
|
|
|
|
jrahma wrote: What does this google technology called and how can I do it for my website?
That technology is called Crawling.Google searches for any content on all the pages available on Web.It even looks the tags, even seraches the entire pages for the searched keywords.
How many times a page is searched it makes your page get ranked higher and displayed in searched results on first few results. There are also many factors associated to it.
For details, Have a look
You dont need to do anything specific. Upload your site on web. Have really good contents that people are looking for. Also check above link for details.
|
|
|
|
|
When you create a web site on a new domain name, it will not automatically show up in Google results. Google is NOT reading the entire internet, it is not fetching random URLs. "All" it does is crawl from one page to the next, starting at some root point, and following (almost) all links it encounters. So putting up a new site as an island isn't going to work.
AFAIK in order for your web site to appear in Google results at all, you need to do at least one of these:
1. get your web site linked to on one or more pages that are already known to Google; communities such as Facebook, LinkedIn, CodeProject, ... may be a good starting point; a friend's site may be too.
2. report your home page to Google, see http://www.google.com/addurl/[^]; not sure if that really works though.
3. pay Google for a sponsored link; does not make sense to me, unless you're a big corporation.
And whatever you try, it takes a couple of weeks to get initial results!
Once your site is showing up in Google results, there are techniques to improve your ranking.
Search for Search Engine Optimization.
|
|
|
|
|
|