|
We are seeing this error related to an http file transfer request
WCF error, System.ServiceModel.CommunicationException the maximum message size quota for incoming messages has been exceeded.
I've seen several posts related to this message, with the general response of just bump it to the max.
What if you want to force a limit on the file transfer size. We want to allow the user to only transfer files 60MB(62914560) and smaller.
Which setting should be set to 62914560? maxStringContentLength or maxArrayLength?
Is there overhead for the envelope around the request? In other words will the max allowed download file size be 60MB? Or is it smaller, file size + request overhead <= 60MB?
If it is the latter, can this be determined. Is the overhead fixed size? Or is the overhead a function of other settings (eg-maxBytesPerRead)?
Does SSL impact the file (overall message) size? How much?
I'm trying to understand exactly how it works. Changing the size seems arbitrary. How do I know what the correct setting value is to allow downloads of files that are only 60MB or less. One of the things I am seeing is that a zip file of 53776931 bytes will throw the exception. Prior to the download, I'm checking the size of the file and it is clearly less than 60MB. What is causing the message to exceed the maximum message size?
|
|
|
|
|
Hi All,
I had been out for a while in Client side programming. I have a repeater control in which I have 12 text values to show for each month, then I have a label in which I want to display the sum of all these Textbox values for each row.
Means the Text boxes will appear first and in the last I have a label.
I want to sum all these textbox values and put it in the label for each row. And whenever textbox value changes that should change the value of label also.
Can anybody please help in achieving this? I am also searching. If you know any link etc, please help me. It would save lot of my time.
Thanks in advance.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
|
Thanks for your help. But in the examples they are putting the total after all the rows in the footer of the Repeater. I want it on the same row at the end of the row I have a label there I want the sum of all columns of each row.
I am googling, but if you know something please help me.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
Hi Friends,
I am new user for jQuery and jqGrid. I am trying to implement jqGrid with client side pagination. It is not working at my end. I am using .net 4.0 web service to get json respons.
This is my web service code
public string GetMessage(string FDate,string TDate,string Status)
{
databaseDataContext dc = new databaseDataContext();
var v = (from v1 in dc.WBS_MESSAGEs
where v1.TransStatus == Status && v1.CreatedDate >= fromDate
&& v1.CreatedDate <= toDate
select new
{
v1.MessageID,
v1.Task,
v1.Remark,
v1.CreatedDate,
Object = (v1.ObjectID == "2" ? "Business Partner" :
v1.ObjectID == "30" ? "Journals" : "Unknown")
});
if (v.Count() > 0)
{
System.Web.Script.Serialization.JavaScriptSerializer js = new System.Web.Script.Serialization.JavaScriptSerializer();
return js.Serialize(v.ToList());
}
else
{
return null;
}
}
This is my JavaScript / jqGrid code
function callMessage(p0, p1,p2,ctrlName) {
$.ajax({
type: "POST",
url: "SAPBOne.asmx/GetMessage",
data: '{ "FDate":"' + p0 + '" ,"TDate":"' + p1 + '","Status":"' + p2 + '"}',
contentType: "application/json; charset=utf-8",
dataType: "json",
error: function (data) {
alert(data.statusText);
},
success: function (data) {
var thegrid = jQuery(ctrlName)[0];
thegrid.addJSONData(JSON.parse(data.d));
}
});
};
$(window).load(function () {
var qString = get_query();
jQuery("#jsonmap").jqGrid({
url: callMessage(qString.p0, qString.p1,'Success','#jsonmap'),
datatype: 'json',
colNames: ['Message ID', 'Object', 'Task', "CreatedDate", 'Remark'],
ajaxGridOptions: { contentType: 'application/json; charset=utf-8' },
colModel: [
{ name: 'MessageID', index: 'MessageID asc', sortable: true, align: "center", width: 55 },
{ name: 'Object', index: 'Object', width: 120, jsonmap: "Object" },
{ name: 'Task', index: 'Task', width: 80, jsonmap: "Task", align: "center" },
{ name: 'CreatedDate', index: 'CreatedDate', jsonmap: "CreatedDate", align: "center", formatter: 'date', formatoptions: { srcformat: 'yyyyMMdd', newformat: 'd-M-y @ H:i:s' }, width: 140 },
{ name: 'Remark', index: 'Remark', width: 300, jsonmap: "Remark" }
],
serializeGridData: function (postData) {
return JSON.stringify(postData);
},
loadtext: "Loading...",
rowNum:5,
rowList: [5, 10],
pager: '#pjmap',
sortname: 'MessageID',
sortorder: "desc",
viewrecords: true,
gridview: true,
loadonce:true,
sortorder: "desc",
sortname: 'MessageID',
caption: "Success",
pgbuttons: true,
height: 'auto',
refreshtext:'Refresh',
repeatitems: true,
emptyrecords: "No records to view"
});
jQuery("#jsonmap").jqGrid('navGrid', '#pjmap', { edit: false, add: false, del: false });
I am stuck here.
Your help will be highly applicable.
s
|
|
|
|
|
|
I am designing an online examination question block which is to be displayed in grid , for which I am using Gridview tool. However , each row contains question number which is to be displayed as columns as given below
Currently it is displaying as
1
2
3
4
But I need this to be displayed as
1 2 3 4
When the user clicks the question number , corresponding question to be displayed in question block
|
|
|
|
|
|
Ha ha if i have to display 100 question do you want me to create 100 tab .......
|
|
|
|
|
Of course you can do that, and then display them ten by ten for example
Light or darkness, we must choose ...
|
|
|
|
|
Hi, I have 'strange' problem with updating received value from another html page:
Supposing I have two pages A and B.
The Page A sent a value (some component with the
name 'selection') by using method Submit in javascript:
Page A
-------
function foo(..) {
...
document.forms["form"].submit();
window.close(); //the page will be closed after sending the value
}
Page B recived the value in the Page_Load:
------
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
if (Request.QueryString.HasKeys())
{
string navigate = Request.QueryString["selection"];
this.tbValue.Text = navigate;
}
}
The variable 'navigate' has the value sent from the page A thus TextBox.Text is set properly by this value inside the method, but finally is NOT displayed for the client Page B. How to handle this problem of refreshing Textbox so that the value is displayed?
thanks for all useful advice.
|
|
|
|
|
tarzn wrote: document.forms["form"].submit();
window.close();
I assume you're running the script from a popup window. Have you set the target attribute on your form to point to the parent window? If not, you'll be loading Page B in the popup window, which you're then closing.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
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.
|
|
|
|
|