|
Suryanairg wrote: Parser Error Message: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
It looks like your server don't have crystal reports assemblies. You need copy that to server Global assembly folder.
|
|
|
|
|
plz all show me in details plz how can i integrate my web site with paypal to validate credit card no (e-commerce)
sorry plz in details coding and steps
really that's kind of all code project programmer thx a lot .
Kareem Elhosseny
|
|
|
|
|
I believe that paypal is the place to go if you want details on how to program the paypal API. I recall they have very good help pages.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
sorry
plz can u give me the url for these help pages because i cant reach to my need
thx for your attention
Kareem Elhosseny
|
|
|
|
|
|
I want to use credit card in my online shoping project
so that any customer can shop as his/her requirements online.
|
|
|
|
|
Integrate your APP with paypal. They provide payment gateway for shopping websites. Alternatively you can get credit cart information on your site itself and validate it with Authorize.NET.
|
|
|
|
|
Hi, awhile ago I had asked this same question after many failed attempts to display binary data in a label. I am trying to display other types of binary data like ms word, PDF documents etc using the same method that was used for displaying images. I am just guessing that it would mostly be the same. The following is what I have seen many people do when displaying images. They would use the ExecuteScalar() method of the SqlCommand class to read the BLOB, then caste the data by putting it in a byte array. After that they would stream it to the HTTP response and use a HtmlServerControl to display it in the browser. I was not able to get it to display text documents. How do I modify the code below to display other types of binary data? Thank you in advance for your help.
private void Page_Load(object sender, System.EventArgs e)
{
if(!IsPostBack)
{
CreateImage(Request["id"]);
}
}
End Sub
Private Sub CreateImage(ByVal id As String)
' Connectoin string is taken from web.config file.
Dim _con As New SqlConnection(System.Configuration.ConfigurationSettings.AppSettings("DB"))
Try
_con.Open()
Dim _cmd As SqlCommand = _con.CreateCommand()
_cmd.CommandText = "select logo from" + " pub_info where pub_id='" + id + "'"
Dim _buf As Byte() = CByte(_cmd.ExecuteScalar())
' This is optional
Response.ContentType = "image/gif"
'stream it back in the HTTP response
Response.BinaryWrite(_buf)
Catch
Finally
_con.Close()
End Try
End Sub
-- modified at 5:31 Monday 30th July, 2007
|
|
|
|
|
Same answer as last time. You need to know what the content is, and write the correct content type, so the browser knows how to try and display it.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi Christian, I already know that from when you told me last time. What I would like to know is after I write the content type can I do something like setting the text area to the byte array to display it? Thanks for your help.
-- modified at 6:03 Monday 30th July, 2007
|
|
|
|
|
If the data you get out is just text, you can just set the Text property of a text control, in order to put it there, yes.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I confused with the tiers in 3 tier architecture ? I heard that calling DAL from presentation layer is bad programming habit. Could you tell me, how this will affect program performance ? I always used to call DAL directly from presentation layer, and still it's working fine for me.
|
|
|
|
|
Quite plainly, it's an architecture issue and not a performance issue. Your app would probalby perform slightly better if it was all written in one place, given that it wouldn't have to interact with dlls. The issue is a clean design.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: Quite plainly, it's an architecture issue and not a performance issue.
Thanks, I also doubt this. Now cleared. I found an article on creating datalayer in MSDN. But they explained it with creating datasets design time. But I still feel comfortable with writing code for dataset with SQLAdapter. What do you prefer ? Design time or the other ?
|
|
|
|
|
I'm not sure I understand the question, but my preference is for writing 100% code, no designers. I'd prefer to have a framework within which my code specifies the stored procs to call, the parameters, and return the result.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i don;t have anough knowlege bcz i'm internee but i think if u don't use business logic layer and putting it's code in Presentation layer then and if u want to change interface or presentation layer then it's hard to do so
B asharatA li
Internee
METESYS Lahore
Pakistan
|
|
|
|
|
Hello,
I am trying to preview a picture from my hard disk before upload it to the server but I didn't success, no error occured but no picture is shown.
Please help here is the code
Thank you.
// width to resize large images to
var maxWidth=100;
// height to resize large images to
var maxHeight=100;
// valid file types
var fileTypes=["bmp","gif","png","jpg","jpeg"];
// the id of the preview image tag
var outImage="previewField";
// what to display when the image is not valid
var defaultPic="box_icons.jpg";
function preview(what)
{
var source=what.value;
var ext=source.substring(source.lastIndexOf(".")+1,source.length).toLowerCase();
for (var i=0; i<fileTypes.length; i++) if (fileTypes[i]==ext) break;
globalPic=new Image();
if (i<fileTypes.length)
globalPic.src=source;
else
{
globalPic.src=defaultPic;
alert("THAT IS NOT A VALID IMAGE\nPlease load an image with an extention of one of the following:\n\n"+fileTypes.join(", "));
}
setTimeout("applyChanges()",200);
}
var globalPic;
function applyChanges()
{
var field=document.getElementById(outImage);
var x=parseInt(globalPic.width);
var y=parseInt(globalPic.height);
if (x>maxWidth)
{
y*=maxWidth/x;
x=maxWidth;
}
if (y>maxHeight)
{
x*=maxHeight/y;
y=maxHeight;
}
field.style.display=(x<1 || y<1)?"none":"";
field.src=globalPic.src;
field.width=x;
field.height=y;
}
// End -->
Test it by locating a valid file on your hard drive:
Eric H.
|
|
|
|
|
Unable to find problem in your code since it is too big. I did this by simply specifying local image path to image tag src using javascript. Try that method.
|
|
|
|
|
Hello,
I simplify the problem, please see the following code:
// <!CDATA[
function Button1_onclick() {
document.getElementById("img1").src="C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Water lilies.jpg"
}
// ]]>
Thank you much
Eric H.
|
|
|
|
|
ayeleteric wrote: C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Water lilies.jpg
In javascript \ will be escaped. So use \\ instead of \ . I think this will solve your problem.
|
|
|
|
|
Thank you but it doesn't work too.
Eric H.
|
|
|
|
|
|
Thank you but this is the source that make me problem (see my first post)
Eric H.
|
|
|
|
|
what problem you got with the example script? any js error? you try to run in FF to see more detail with js error..
<< >>
|
|
|
|
|
1) What is FF
2) I do not get any error but when I am selecting a picture from my hard disk using the dialog box, no picture is previewed
Thank you
Eric H.
|
|
|
|