|
crystal report is working fine on local but giving blank page on server and not giving any exception...
|
|
|
|
|
|
Any idea of a website or any other accessible location to get an idea on how to develop a website for someone who has no knowledge in programming languages?
|
|
|
|
|
|
How transactions are handled in web applications you worked with? Using ADO.NET [BeginTransaction], Stored Procedure [TCL] or Entity Framework [SaveChanges() to insert, update or delete on the database which is wrapped in a transaction] or any other way? Please share your experiences and learnings on this topic. Thanks a lot in advance.
modified 23-Feb-14 10:34am.
|
|
|
|
|
|
Thanks for your reply. I will visit the links and figure out best for me.
|
|
|
|
|
Hi
i bind a gridview and one of the column show the data this form "aaa#;7" i want show just "aaa", how can i remove "#;7" from the end of data in gridview column when it bindings.
Thnaks
|
|
|
|
|
Hi,
You need to add a RowDataBound to your GridView.
Then, in the GridView_RowDataBound(object sender, GridViewRowEventArgs e) method, you'll be able to access e which will provide you with access to the individual cells of that row where you can specify a formatter.
Example :
protected void OnRowDataBound(object sender, GridViewRowEventArgs e)
{
GridViewRowEventArgs ea = e as GridViewRowEventArgs;
if (ea.Row.RowType == DataControlRowType.DataRow)
{
DataRowView drv = e.Row.DataItem as DataRowView;
Object ob = drv["Phone"];
if (!Convert.IsDBNull(ob))
{
Int64 iParsedValue = 0;
if (Int64.TryParse(ob.ToString(), out iParsedValue))
{
TableCell cell = ea.Row.Cells[4];
cell.Text = String.Format(System.Globalization.CultureInfo.CurrentCulture,
"{0:(###) ###-####}", new object[] { iParsedValue });
}
}
}
}
Light or darkness, we must choose ...
|
|
|
|
|
I created an Asp application, for finder option child window is used.when we select the finder option is opened, selected value from grid view is showing the text box(eg..id and name).These two text box values pass to parent page, after selection in child page.while passing from child to parent page, parent should not refresh or postback.
|
|
|
|
|
My users (typically using IE8 or IE9) are downloading DOC/DOCX files from a secure folder in an ASP.NET 4.0 web forms site. The "Trusted Documents" security feature is causing my users to see an "Enable Editing" button which must be clicked before they can edit (or even print) the doc. Problem is, when they click this button Word seems to refetch the document and in the process...loses the fact they are logged in! Thus instead of the document loading a moment later, my "Login Required" web page loads inside Word 2010...
This is very annoying to users as they must then close the document and redownload it - at which point (having trusted the document already) it opens just fine. Is there a way around this unpleasant user experience? I cannot move the files to any area which wouldn't require a login...and I certainly cannot remove a security feature from end user machines...
|
|
|
|
|
What caching headers are you sending with the document? Try allowing the users to cache the document for a reasonable length of time.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Oooh yeah...that reminds me of a "no-cache" security requirement that was imposed upon me.
Well thanks for the tip. I may just have to advise users to download the doc locally, then open it.
|
|
|
|
|
Make sure you're specifying Content-Disposition: attachment so that they get the "open/save" dialog instead of opening the document within the browser.
For IE users, you can also send X-Download-Options: noopen in the headers to hide the "Open" button, which should force them to save the file.
http://blogs.msdn.com/b/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Quote: How to test load of a web service.
I have developed a web service that handles user login information,and after login it transfers huge data from one server to another server like daily 1 lakh records or more daily from one user.I want to test how much load it can take for transferring data from one server to another server.The application can have only 100 login users but data transfer is big. so i am worried about data transfer when all users login at same time and transfers data at the same time. Plz help me. I want
|
|
|
|
|
Please edit this question and remove all the encoding so it shows as plain text.
|
|
|
|
|
|
|
If I have a form/view that will display 1 or more partial views based on user responses. Where do I need to place the AntiForgeryToken? In the parent view? In the partial views? Both?
Currently, I have it in the partial views, but we are occasionally getting an error:
Type:System.Web.Mvc.HttpAntiForgeryException
Message:A required anti-forgery token was not supplied or was invalid.
The error is reported in production only, we are unable to reproduce it on developer machines (typical).
My theory is that when multiple partial views are represented a mismatch of tokens occurs and the error is reported. My thinking is to move the token to the main/parent view.
Am I on the right track? Anybody had to deal with something similar?
Thanks in advance for the feedback.
|
|
|
|
|
Hello,
The site I am working on gets its data from small XML files (a few KB) that are refreshed every minute by external tools.
Knowing that multiple users will view pages, I think the best way would be to put them as static XmlDocument objects.
private XmlDocument bodyStatuses = new XmlDocument (myfile));
My first question is: knowing that the file will be refreshed on a regular basis, when is the "new" object actually created (pointing to the new version of the file, with new handle, etc..) ?
Can I safely assume that ASP manages that for me ?
Second question, in the same vein. When I use the same XmlDocument in multiple instances of a user control placed on the same page, could I also put my XML file as static in the user control ? so that it is only opened once (1st user control), and read once per user control ?
I am OK in C#, but new to ASP, so I don't know how such things are handled internally, and I would not want to hinder performances with bad coding habits
Thanks in advance.
|
|
|
|
|
Hi All,
I develop an ASP.Net Web Application that handle the daily work requests such as vacations, overtime, Leave Work, etc....
This process as the following:
1. the employee request from his account a vacation request.
2. the manager see this request and can approve or reject it.
My need when the user insert his request I want to send an auto-alert (Notification) like messenger alert for the manager,
Is it possible by the asp.Net (web application).
How can I do that?
Thank You.
|
|
|
|
|
If you want the server to push messages to the client, SignalR[^] is probably the best place to start.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Respected Sir, I want to send an sms through ASP.Net Without any Gateways . So please Send me the Source code to send free Sms....
Thanking you
Yours faithfully
(SharathMadhav)
|
|
|
|
|
|
Hi ,
Can we write a pure JSON REST service using classic ASP ?. My client requirement is to write it in classic ASP not .net. Could you please help.
Regards
Subin
|
|
|
|