|
ya i m new in CP but i m trying to explain to u
well i m working on inventory managment project here when raw material come in store it creats entry in table one reciept no.,name ,quantity and all that.
user can see all the entry by gridview if user makes any mistake he can mend it,but when he click edit button it creats a new entry in secon table with remarks "value before edit" and when user click update button it again make new entry in table2 with remarks "value after edit" and backgroundcolor of that perticuler row should be changed
|
|
|
|
|
Hi,
I can show my report (CR of VS 2005) well in my development machine (ASP.Net with C#). But after deploying in my sever, the toolbar images of the report is not displaying well. It show as red color (X) mark.
I googled and tried in different ways. But I could not solve it. I tried in four ways so far such as by pasting aspnet_client in my project folder, creating another virtual diretry in my prj and linking with aspnet_client, adding CR of VS2005 in pre-requisitis while building and finaly building with Merge module. But I never got help from the above mentioned 4 ways.
Anybody can help me? I'm being struck in this for more than 5 days.
Note: Report is generating well with toolbar images in my development machine in both of running the application and deploying the application.
Balasubramanian K.
|
|
|
|
|
can you paster code of the report (CR)? it's must request one data source, and (CR).rpt files must in one directory.
|
|
|
|
|
In my report, I am using command. I've written some queries over there itself.
rptDocument = new ReportDocument();
rptDocument.Load(Server.MapPath("Reports/rptPendingCredit.rpt"));
crvPendingCredit.ReportSource = rptDocument;
crvPendingCredit.DataBind();
This followng is my code of my Crystal Report Viewer control
<CR:CrystalReportViewer ID="crvPendingCredit" runat="server" AutoDataBind="true" />
Previously I added some more in my control. But I removed again
<CR:CrystalReportViewer ID="crvPendingCredit" runat="server" AutoDataBind="true" HasCrystalLogo="False" EnableDatabaseLogonPrompt="false" EnableParameterPrompt="false"
GroupTreeImagesFolderUrl="/aspnet_client/system_web/2_0_50727/CrystalReportWebFormViewer3/images/tree/"
ToolbarImagesFolderUrl="/aspnet_client/system_web/2_0_50727/CrystalReportWebFormViewer3/images/toolbar/" />
Balasubramanian K.
|
|
|
|
|
I have completed an aspx application, which I wanted to provide the url for testing from my system. Means, the testers need to access my local system for testing the application.
Since I'm getting the url as http://localhost:(routing number)/directory/Default.aspx, I cannot give this url to them as they cannot access it. I tried to put my IP Address and computer name also, but it fails.
I published the site, and then provide the link. But I am getting an xml parser error: not well formed. It was not happening locally when I run from my system. How to solve this? How to provide the url?
Can anybody please help?
Thanks
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
meeram395 wrote: Since I'm getting the url as http://localhost:(routing number)/directory/Default.aspx, I cannot give this url to them as they cannot access it. I tried to put my IP Address and computer name also, but it fails.
I published the site, and then provide the link. But I am getting an xml parser error: not well formed. It was not happening locally when I run from my system. How to solve this? How to provide the url?
You have to create a Virtual Directory in IIS for your web application. After Deploying the web application it can be accessible in your network using IP address like
http://yourip/directory/default.aspx.
Step1: Install IIS in your system/ server.
Step 2 : Create Virtual Directory for that web application
Step3 : Set the default page,authentication mode and most importantly .Net framework version.
Read this article.[^]
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
if you syste/server don't install iis or .Net framework, At first ,you must install it's.
The .Net framework version and you application version must samed.About application version,you will look for application directory web.config file.
|
|
|
|
|
Thanks. It worked well. I performed all the above steps and it is working fine now.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
i want full file in database not only file name how can we do it.
|
|
|
|
|
you want export excel file from database, example application in this web,you'll search keyword of database to excel. I do it also.
|
|
|
|
|
Hi,
I write connection coding in Web config file.
The code is
<connectionstrings>
<add name="conn" connectionstring="Data Source=techdbserver;Initial Catalog=project;<br mode=" hold=" /> user name=sa;password=sa;<br mode=" providername="System.Data.SqlClient">
When i called it in the web form as
con = new SqlConnection(ConfigurationManager.ConnectionString["conn"].ConnectionString);
the following error appears.
'System.Configuration.ConfigurationManager' does not contain a definition for 'ConnectionString'
Can any one tell whats the error?
|
|
|
|
|
Hi,
You have not posted the code you wrote in Web.config file.
Secondly Please note and correct the syntax for accessing the connection string from web config in C#
con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString);
Thanks
Padmanabh
|
|
|
|
|
<br />
con = new SqlConnection(ConfigurationManager.ConnectionString["conn"].ConnectionString);<br />
This code contain two 'ConnectionString', So error appears does not contain a definition for 'ConnectionString'
it's right:
<br />
con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString);<br />
|
|
|
|
|
very easy.
Don't use the ConnectionStrings.
Use ConfigurationManager.AppConfig["myconn1"]
|
|
|
|
|
Dear All,
I have a web application from which I need to send an UDP datagram.
When I send the data through Synchronous mode it is working fine.
When I use asynchronous operation it is throwing the below error:
"A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied "
The code used is:
Asynchronous:
senderOfMessage = new UdpClient();
IPEndPoint remoteEndPoint = new IPEndPoint(IPAddress.Parse(serverIP), Convert.ToInt32(serverPort));
byte[] message = ASCIIEncoding.ASCII.GetBytes("Test Message");
senderOfMessage.BeginSend(message, message.Length, new AsyncCallback(OnSend), remoteEndPoint);
Synchronous:
Kindly help me to get rid of this issue.
Thanks a lot in advance.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
What are you trying to achieve by using UDP in a ASP.NET application?
|
|
|
|
|
Dear Navaneeth,
I have to send a message to a windows service, the windows service in turn sends a message to another external application which is not developed in .Net.
For sending the message to external application it used the UDP, so the same UDP is used o receive the message from the web application too in the window service.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Hi,
I uploaded my excel file into a folder(server), now i want to read that file from the folder, than i have to insert that excel into a database with same filds,
I have done this but from local system i can able to read a file not from the uploaded folder.
So how to read a excel file from folder....
Below code is the one i have used from local system, the connections string
String sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source='c:/valuefirst.xls';Extended Properties=Excel 8.0"; (its working)
How to take this excel sheet from server folder.
Pls help me,
thanx
krishna
|
|
|
|
|
krishnavaradharajan wrote: I have done this but from local system i can able to read a file not from the uploaded folder.
You can write a page that takes an id and feeds the excel file to the client from your DB.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thanks for ur reply.....
the connection string wht i given was this..
String sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source='
c:/valuefirst.xls ';Extended Properties=Excel 8.0"; (its working)
Aboue connection string is for reading from localsystem, so if i want to read from server folder the link wht can i give in Data Source.
And i tryed by giving complete link like below..
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=http://justmypixels.com/escorts/sms/sms.xls; Extended Properties=Excel 8.0";
It was showing the error like "Invalid internet address."
Can u pls short this out....
Thanx
krishna
|
|
|
|
|
String sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source='c:/valuefirst.xls';Extended Properties=Excel 8.0"; (its working)
This file working from local system, but uploaded to server folder happened error,
1.Don't find file, Data Source path is error, you'll use server map path.
2.is it Uploaded file in folder?check this file.
|
|
|
|
|
Procedure or Function 'SubmitRecord1' expects parameter '@ID', which was not supplied.this is the error i am getting while insert into data base using stored procedure can any body help me plz...
|
|
|
|
|
NRHSR wrote: Procedure or Function 'SubmitRecord1' expects parameter '@ID', which was not supplied
How can an error message be more clear?
|
|
|
|
|
pass parameter '@ID' value to Procedure or Function 'SubmitRecord1'
Mahendra Bisht.
|
|
|
|
|
I recommend a job at McDonalds. It seems that computing is too hard for you. The error means what it says.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|