|
Hi,
I have created a asp site using Crytal reports when i host it it gives the folowing mechine. I have already installed the framework 2.0 but still not working please tell me what to do.
"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."
regrds
Ruwandi
rkherath
|
|
|
|
|
Is Crystal Reports installed properly on the machine ? Installing the framework is irrelevant to this error.
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,
I am trying on the server i need to host it on the server.i installed the frame work but what about the crystal.
without installing crystal reports software is there a nother way
regrds
Ruwandi
rkherath
|
|
|
|
|
Hello, I was hoping someone here could assist me with an issue I have. I need to be able to send email to people who are registered on my system. I wish to send them their username and their password. I keep getting an error when I try to send an email: "Failure sending mail."
I am not sure whether my port is incorrect or if I have a syntax error, but I have looked a many examples online and I can't figure out where I am going wrong. Everything seams normal but when I get to the Client.Send(Message) part, it throws the exception, "Failure sending mail."
Any help would be appreciated. The following is a class I call from the front end.
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Text
Imports System.Net
Imports System.Net.Mail
Imports System.Net.Mime
Imports System.Threading
Public Class EmailLibrary
Private SendTo As String
Private From As String = "******@gmail.com"
Private FromName As String = "****************"
Private Subject As String = "******************"
Private Body As String
Private SMTPServer As String = "smtp.gmail.com"
Private AccessKey As String = "******"
Private Port As Integer = 587
Public Sub EmailPasswordAndUserName(ByVal Name As String, ByVal Password As String, ByVal Email As String)
SendTo = Email
Body = "" & "Username: " & Name _
& "Password: " & Password _
& "Note: " _
& "We encourage you to change your password as soon as you receive this message." _
& "Please refrain from sharing your password with others."
Dim Message As New System.Net.Mail.MailMessage
Try
Message.To.Add(SendTo)
Message.From = New MailAddress(From, FromName, System.Text.Encoding.UTF8)
Message.Subject = Subject
Message.SubjectEncoding = System.Text.Encoding.UTF8
Message.Body = Body
Message.BodyEncoding = System.Text.Encoding.UTF8
Message.IsBodyHtml = True
Message.Priority = MailPriority.High
Dim Client As New SmtpClient(SMTPServer)
Client.Credentials = New System.Net.NetworkCredential(From, AccessKey)
Client.Port = Port
Client.Host = SMTPServer
Client.EnableSsl = True
Client.Send(Message)
Catch Ex As Exception
Throw Ex
End Try
End Sub
|
|
|
|
|
I hope Gmail may block the port.
Please try with the other Servers like live.com, yahoo.
Let me know if it works fine means Gmail Server is blocking.
Regards,
Satips.
|
|
|
|
|
Hello,
In my asp.net project's first page Form1.aspx, i am using a datagrid control which has a hyperlink column bound with Employee Code which gets its data from a SQL Server Database. When the user clicks the employee code, a new form Form2.aspx opens which should display all the Form1 data inside several control.
I am using a query string to transfer the employee code (EmpCode) into the next page and storing it into a variable (empcode). In next page i am using a data reader to fetch the data from the database by passing the stored variable empcode in the select statement.
My Problem is that I am unable to display the fetched values from the database into the lable controls using data reader. The code I am using is:
string empcode;
protected void Page_Load(object sender, EventArgs e)
{
empcode = Request.QueryString[0];
SqlConnection conn = new SqlConnection("Data Source=SID-710D1046244;Initial Catalog=Training;Integrated Security=True");
SqlDataReader dr;
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "Select * From [Training] Where EmpCode=@empcode";
cmd.Parameters.Insert("@empcode").SqlDbType.varchar,50).Value = empcode;
cmd.Connection = conn;
conn.Open();
dr = cmd.ExecuteReader();
while (dr.Read())
{
Label2.Text = dr.GetString(0);
Label3.Text = dr.GetString(1);
Label4.Text = dr.GetSqlInt32(2); // It Contains a numeric value
Label5.Text = dr.GetSqlBoolean(3); //It Contains a boolean value
Label6.Text = dr.GetString(4);
}
Please Please Help Me. Any kind of Help is greatly Appriciated
Thanks & regards,
Mini
|
|
|
|
|
Try this:
cmd.Parameters.AddWithValue("empcode", empcode); instead of cmd.Parameters.Insert.
And make sure that you pass the right employee code!
|
|
|
|
|
Thank you very much El. It is working. Just Help me in one more thing. my database has two fields named
1. Contact Number (bigint, Size:8) which contains numeric digits and
2. Marital Status (bit) which is a boolean variable.
How would I be able to insert there values in my lable controls??
in lable 5 and 6 respectivily.
I am getting an error saying:- "Cannot Implicitly Convert type int to string".
Help me again.
Thanks & regards,
Mini
|
|
|
|
|
Since the labels text property is that of a string, you should explicitly convert your result.
(string)dr["feild"]
ToString()
DirectCast
etc..
|
|
|
|
|
"Label4.Text = dr.GetSqlInt32(2).ToString(); // It Contains a numeric value
Label5.Text = dr.GetSqlBoolean(3).ToString(); //It Contains a boolean value"
Not sure what will happen if the value is DBNull...
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
if u r using c#
label5.text = dr["contact number column name"].tostring()
label6.text = dr["marital status"].tostring();
|
|
|
|
|
Hi,
I used a TreeView to display some data I have on a database and it's working fine.
One problem I noticed though, is that when I select a leaf node and pass its value to the following page, I am unable to browse my TreeView again when I click the "back" button of my browser. The VS debugger gives me the following error: "Response.Redirect cannot be called in a Page callback"
Any ideas on how to solve this problem?
Thanks in advance!
|
|
|
|
|
Pleeeaaase help!
Can anybody see why I get this error?
|
|
|
|
|
Hi
This is my 1st time using a master page in VisualStudio 2005.
Im havin a problem with adding a control to the master page and it is not shown in the content page/s.
i simply just dragged a button or textbox onto the masterpage and checked the content page but nothin is there.
Could someone please help me out.
|
|
|
|
|
Hey put one Content place holder and in then try to drag and drop the textbox and see it.Simply in the master page we cannot see any control.
Regards,
Satips.
|
|
|
|
|
ok. got it.
Thanks for the help.
|
|
|
|
|
Hi
Im still running into a problem. It worked perfectly with my masterpage and content page but now i add another web form and select the masterpage but the new web form doesnt reflect masterpage, has none of the controls.
|
|
|
|
|
If your working with master pages, the first page you should create for your site is the master page.
By default, a single content place holder is created on the master page. If you add more than one content place holder, thats fine, but each of your content pages (e.g. form1.aspx / default.aspx) need to have the same amount of content place holders.
That said, if you want all of your content pages to have access to "X" control(s), these controls should be placed on the master page itself, not on the content pages.
The place holders on the master page are just that, containers that will be populated from the containers on each content page that inherits this master page.
Hope this helps !
|
|
|
|
|
Thanks for the reply.
I have only placed the controls so far on my masterpage. The first content page that i created, that inherits from the masterpage, worked perfectly.but then i added another webform and specified that it must also inherit from the masterpage.. but its not showing the controls that i placed in the masterpage.
|
|
|
|
|
I't hard to know whats wrong with out seing what you've done. Are you sure you did not add a control inside the content place holder on the content page?
I'd be glad to have a look, just post a link to the dl. Or, if you want I can make a simple mock up for you to dl.
I'm sure its something small you missed.
|
|
|
|
|
all i did was make a master page. place 2 images and a menu control in the masterpage.
Then added a new web form and selected the masterPage to inherit. It did not inherit the controls until I added a content placeholder to the masterpage.It then showed the controls in the webform.worked perfectly..but now i wanted to add another webform to the site.which i did, and also selected the masterpage but its not showing any of those controls from the masterpage.
dont understand why it worked perfectly for the 1st page but not the 2nd.
If u have a simple mock up for me i would greatly appreciate it.
|
|
|
|
|
Sorry..i just figured it out!
it was a very small thing.
on the 2nd content page,within one of the content placeholders, i right-clicked and saw the option of Default to Master's Content.
Solved all my problems!
Thanks for the help though
|
|
|
|
|
You can download this one project, it was an example of using CSS, but you should be able to start the project, add pages, etc...
Click my site link in the signature, and about three posts down you'll see the dl link to the project.
If this does not help you, let me know.
|
|
|
|
|
The contents needs to be placed outside the masterpage contenct place holder.
The place holder is for displaying the items of the page using the master page.
So place your textbox outside the placeholder and include the masterpage file in your actual page.
Hope you are now clear with the masterpage concept...
and remember there is no head html or body or form tag in pages with masterpage associated.
Hope that helps!!!!
I was born dumb!!
Programming made me laugh !!!
--sid--
|
|
|
|
|
hi!
i have saved a brief history like a paragraphic way in the access database. wen i get the result, i get it with same line breaks and spaces i gave while writing text.
now prob is that wen i am trying to show this inforation on a literal control its coming in one line only.
how to get the data in the same way i entered while saving.
|
|
|
|