|
hifiger2004 wrote: Literal ltlBodyTitle = (Literal)Master.FindControl("Literall1");
ltlBodyTitle.Text = "<b>hello</b>"; // Error here in this line
What is the error ? I assume a null reference ? We have an ASP.NET forum, you know.
This sort of code is ugly as sin. You should try to never do this. Instead, create a base page that returns a strongly typed version of your master page, and use it's methods to set things like this.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Yes, it works using basepage.
Thanks
hifiger2004
|
|
|
|
|
hi
IIS 7.0 with windows server 2008 showing following error
while creating crystal report in asp.net 2.0
The maximum report processing jobs limit configured by your system administrator has been reached.
thanks in advance
|
|
|
|
|
singh.sunder wrote: The maximum report processing jobs limit configured by your system administrator has been reached.
Do you have a question that you should ask of your system administrator?
|
|
|
|
|
Hi,
We need to modify the Print limit in the System registry. or In the source code/Program, Create Crystal report Document object inside Using().
Note(caution): Modify registry harm the system.
Please follow following steps to Modify the print limit in the registry.
1) Click Start > Run. The Run dialog box appears.
2) Type “regedit” in the Open field. Click OK. The Registry Editor appears.
Navigate to the appropriate registry key value as documented below.
Crystal Reports 10.0.x
HKEY_LOCAL_MACHINE\SOFTWARE\Crystal Decisions\10.0\Report Application Server\ InprocServer\PrintJobLimit
Crystal Reports 10.2 (Visual Studio .NET 2005 bundle)
HKEY_LOCAL_MACHINE\SOFTWARE\Crystal Decisions\10.2\Report Application Server\ InprocServer\PrintJobLimit
Crystal Reports Basic for Visual Studio 2008 (Visual Studio .NET 2008 bundle) HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\10.5\report Application server\InProcServer\ PrintJobLimit\PrintJobLimit
Crystal Reports XI Release 1 (11.0.x) HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.0\Report Application Server\InprocServer\PrintJobLimit
Crystal Reports XI Release 2 (11.5.x) HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\Report Application Server\InprocServer\PrintJobLimit Crystal Reports 2008 (12.x.x) HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Report Application Server\InprocServer\PrintJobLimit
Regards,
S.Mohanraj.
|
|
|
|
|
Hello!
I am a web developer using asp.net in C#.
I use the Flash upload control for multiple files upload I found on this site and I've modified it to upload images, insert details about them to the Access database and create Thumb Images.
This work great on my local machine and worked fine on my server until about two weeks ago
now my applications keeps crashing at different points of the upload(I try uploading the same images each time and each time it crashes after different image file).
I am uploading about 20 MB of images each one is about 0.5-0.8MB of size.
I don't get any asp error but the flash gives me an http 500 error.
The help team of my server keep telling me it's because I am on a shred server and say that I am using too much resources but I don't think that uploading couple of images is too much resources.
Can you help me?
I can upload my code if it's needed but I don't believe something is wrong with my code because this worked in the past.
Thank you very much!
Nadav.
|
|
|
|
|
Have you considered upgrading or switching to another provider. If your current host doesn't like the amount of resources you are using then this is the best option.
The other thing you can do is optimize your content to lessen the amount of bandwidth your are using:
- optimize your images
- minify javascripts and if you have several scripts on one page try to put them into one file.
- implement caching and add expires headers -epecially to images, icons and js
- make fewer http requests
- configure ETags
- reduce cookie size
|
|
|
|
|
I want to store the IP address of visitor to my site in Mysql.
I wanted to know if it is possible through HTML or JAVA, if yes then please help in code.
If the only solution is PHP , then please tell me how can i work simultaneously work with JSP and PHP database code.
As i am working on JSP coding, Please tell how to embedded the php code and use it.
Don't know PHP.
Please help
|
|
|
|
|
|
public static string getIP(HttpContext rq)
{
string userIP;
HttpRequest Request = HttpContext.Current.Request;
if (rq.Request.ServerVariables["HTTP_X_FORWARDED_FOR"] != "")
userIP = rq.Request.ServerVariables["REMOTE_ADDR"];
else
userIP = rq.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
if (userIP == null || userIP == "")
userIP = rq.Request.UserHostAddress;
return userIP;
}
April
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 21:56pm.
|
|
|
|
|
I was doing C# programming 4 the past 2 years. Now I am going to do it including Web development.
But is there a documentation to be done for web site development.
Thank you
|
|
|
|
|
CoderForEver wrote: But is there a documentation to be done for web site development.
You should find lots of it at The Official ASP.NET home[^].
|
|
|
|
|
Hi I think you should do a documentation for the initial development project and update with regular changelogs afterwards. Perhaps you wouldn't need to go as deep as u do in systems dev but it depends on the functionality of the website as they are nowadays applications in their own rite.
|
|
|
|
|
Hi Guys,
I am a .Net Developer, and I am not very familiar of the best top 5 web host providers for php/mysql/wordpress who can actually cater around 10 domains or even more?
It would be a great help if you can help me find, if not the best, just the top 5 web host providers for php/mysql, wordpress, blog related. We will be needing this as soon as possible.
Thanks
hifiger2004
|
|
|
|
|
You can check
www.hostway.com
www.IXWebhosting.com
Also, can you share a good .net host with minimum downtime
|
|
|
|
|
uk2.net[^] are my faves - fantastic support, excellent service and whm/cPanel. Free SSL certs on some packages.
1and1 [^]- good service, rubbish support
WFCS[^] fairly good business host
Heart Internet[^] - not tried these guys yet but they're next on my list
|
|
|
|
|
Hi Guys,
I'll check the links you gave me.
Thank you.
hifiger2004
|
|
|
|
|
www.herehost.com
|
|
|
|
|
I am about to make a personal website for myself. Can anyone guide me which sections to include in the website ? I also want the site to help me achieve my business goals. As I am a website developer I want to announce my skills in my site so that people can give me projects to do for them. Any suggestions please ?
I don't know exactly how to arrange my site. I get overwhelmed
|
|
|
|
|
|
Marc Firth wrote: IF you want an example see my portfolio[]
Your site is very empty. I want something that attract visitors;a profound site. I also want the site to be extensible so that more categories can be added later.
Marc , how has your site helped you in attracting customers ? How much has it been economically helpful to you ?
If you are a girl ... then ...
|
|
|
|
|
devboycpp wrote: Your site is very empty.
If you say so.
Personally, I think it has everything I need.
-contact information
-cv
-portfolio
I have more work than I can handle.
After all it's a portfolio and I don't want to detract too much from that important information.
devboycpp wrote: I want something that attract visitors;a profound site.
Doesn't everybody?
devboycpp wrote: how has your site helped you in attracting customers ? How much has it been economically helpful to you ?
It is an example site which links to other sites I have made. It has been quite helpful in showing new customers the quality of the sites I can build. The site was never designed to be a business but rather a "personal website" to help me achieve my "business goals".
devboycpp wrote: I also want the site to be extensible
Then make sure you seperate your menus from the rest of your code and make it clear how to add more items.
|
|
|
|
|
Nice to get feedback from people who can help you isn't it? I guess OP has a great career in consulting ahead
|
|
|
|
|
We run Lawson software and are upgrading to a new version. The asp and html/js that worked in the former version no longer work. Here is
the issue:
Ops puts a file "gllogin_status.txt" in the Lawson index directory if the database is down. The js checks the document.referrer and then
, if successful, the browser needs to appear without toolbars (messes up Lawson users). In my research so far it seems the js can
either:
FYI: new_url = asp page which checks for gllogin_status.txt
1) window.location.href = new_url;
the problem with this is that I have not found a way to turn off the toolbars after this code runs
2) window.open(new_url, "name", "status=1,location=0,menubar=1,titlebar=0,scrollbars=1,resizable=1");
this way I get the toolbars turned off, but I have two browser windows open and they both look like Lawson windows.
I would like to close the parent window but we do have IE as the browser standard. Is there a way to do this?
If no way to close the parent window in IE, is there a way to redirect the old window to the user's home page to avoid some confusion?
Any help would be greatly appreciated!
modified on Wednesday, October 7, 2009 11:53 AM
|
|
|
|
|
I have a php page that is leaking pretty bad. I'm not sure if this belongs in this forum or the php one but I don't think it's the php that giving me problems. I've tried to use tools like drip and sieve to help narrow the problem down, but I'm not exactly sure how to fix it. I've tried nulling and deleting variables to clean stuff up but it's still not helping. Can someone give me a hand at cleaning my code up? I'm fairly new at the mem leak stuff. Thanks.
Sorry for the large amount of code.
<?php
include_once $_SERVER["DOCUMENT_ROOT"] . "/include/header.php";
include_once $_SERVER["DOCUMENT_ROOT"] . "/include/dbfunctions.php";
header("Cache-Control: no-cache");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="refresh" content="3600">
<html xmlns:"http://www.w3.org/1999/xhtml">
<head>
<? include_once $_SERVER["DOCUMENT_ROOT"] . "/include/scripts.php"; ?>
<script type="text/javascript" src="/scripts/sortabletables.js"></script>
<script type="text/javascript" src="/scripts/reverse.js"></script>
<script type="text/javascript">
var updateTopObj;
var day = $.getUrlParameter("day");
var page = $.getUrlParameter("page");
$(document).ready(function(){
updateTopObj = new UpdatablePage({
updateFunction: updateTop,
interval: 4000,
dataType: "xml",
url: "/resources/Events.xml"
});
updateTopObj.update();
updateTopObj.start();
$('#EventsTable').styleTable({});
$('.table-sortable').click(function(){
$('tr','#EventsTable').removeClass("odd").removeClass("even");
$('#EventsTable').styleTable({});
parent.OMC.pause(frameId);
});
});
function updateTop(xml){
var $xml = $(xml);
var $root = $('eventsInfoTable', $xml);
var $numDays = $('eventRec', $root).length;
var $dayMenuTable = $('#DayMenuTable');
var $dayMenuBody = $('tbody',$dayMenuTable).empty();
var $newDayRow = $('<tr></tr>').appendTo($dayMenuBody);
var $date_xml = $('date',$root);
var $index_xml = $('dayIndex', $root);
var $pages_xml = $('numPages', $root);
var $records_xml = $('numRecords', $root);
var date_arr = [];
var index_arr = [];
var page_arr = [];
var records_arr = [];
$('eventRec',$root).each(function(i){
$date_xml = $('date',this).text().substring(0,5);
date_arr[i] = $date_xml;
$index_xml = $('dayIndex',this).text();
index_arr[i] = $index_xml;
$page_xml = $('numPages',this).text();
page_arr[i] = $page_xml;
$records_xml = $('numRecords',this).text();
records_arr[i] = $records_xml;
});
for(i=0; i<date_arr.length; i++){
if(date_arr[i] != "00/00"){
$dayParam = index_arr[i];
}
}
if(!day){ day = $dayParam;}
for(i=date_arr.length-1; i>=0; i--){
if(date_arr[i] != "00/00") {
$topPageNum = parseInt(page_arr[i])-1;
if(index_arr[i] == day){
if(!page){page = page_arr[i]-1;}
$cell = $('<td width=45><a href="/webpage/events.php?day=' + index_arr[i] + '&page=' + $topPageNum + '" class="submenuSelected" onclick="parent.OMC.play(frameId);">' + date_arr[i] + '</a></td>').appendTo($newDayRow);
$('#dayTitle').empty().append(date_arr[i]+' Events Log');
} else $cell = $('<td width=45><a href="/webpage/events.php?day=' + index_arr[i] + '&page=' + $topPageNum + '" class="submenuNormal" onclick="parent.OMC.play(frameId);">' + date_arr[i] + '</a></td>').appendTo($newDayRow);
}
}
$cell = $('<td><form action="CSV.php" target="_blank" method="GET"><input type="submit" class="genCSVLink" value="View Weekly CSV"/></form></td>').appendTo($newDayRow);
var $pageMenuTable = $('#PageMenuTable');
var $pageMenuBody = $('tbody',$pageMenuTable).empty();
var $newPageRow = $('<tr></tr>').appendTo($pageMenuBody);
for(i=date_arr.length-1; i>=0; i--){
if(index_arr[i] == day){
$totalPages = parseInt(page_arr[i]);
$pageInc = 20;
$totalInc = parseInt(($totalPages-1)/$pageInc)+1;
$currentPage = parseInt(page)+1;
$currentInc = parseInt(($currentPage-1)/$pageInc) + 1;
if($currentInc != 1){
$prevPage = ($currentInc-1)*$pageInc-1;
$cell = $('<td width=20><a href="/webpage/events.php?day=' + index_arr[i] + '&page=' + $prevPage + '" class="submenuNormal" onclick="parent.OMC.play(frameId);">Prev</a></td>').appendTo($newPageRow);
}
for(j=0; j<=page_arr[i]-1; j++){
$pageNum = parseInt(j)+1;
if(($pageNum >= ($currentInc*$pageInc)-$pageInc+1) && ($pageNum <= ($currentInc*$pageInc))){
if($pageNum == $currentPage){
$cell = $('<td width=20><a href="/webpage/events.php?day=' + index_arr[i] + '&page=' + j + '" class="submenuSelected" onclick="parent.OMC.play(frameId);">' + $pageNum + '</a></td>').appendTo($newPageRow);
} else{
$cell = $('<td width=20><a href="/webpage/events.php?day=' + index_arr[i] + '&page=' + j + '" class="submenuNormal" onclick="parent.OMC.play(frameId);">' + $pageNum + '</a></td>').appendTo($newPageRow);
}
}
}
if($currentInc != $totalInc){
$nextPage = ($currentInc*$pageInc);
$cell = $('<td width=20><a href="/webpage/events.php?day=' + index_arr[i] + '&page=' + $nextPage + '" class="submenuNormal" onclick="parent.OMC.play(frameId);">Next</a></td>').appendTo($newPageRow);
}
if($currentPage == $totalPages){
if(records_arr[i] == 0){
var $startRecord = 0;
var $endRecord = 0;
} else{
var $startRecord = ($currentPage-1)*100+1;
var $endRecord = records_arr[i];
}
} else if($totalPages == 0){
var $startRecord = 0;
var $endRecord = 0;
}
else{
var $startRecord = ($currentPage-1)*100+1;
var $endRecord = ($currentPage)*100;
}
$('#RecordsMenuTable').empty().append('Displaying records ' + $startRecord + ' to ' + $endRecord + ' of ' + records_arr[i]);
}
}
$.ajax({
type: "GET",
url: "/resources/DAY"+day+"_PG"+page+".xml",
dataType: "xml",
success: function(xml){
var $eventsXml = $(xml);
var $eventsRoot = $('eventsTable', $eventsXml);
var eventsBody = document.getElementById('EventsBody');
var numNewRows = $('eventRec', $eventsRoot).length;
var $currentRows = $('tr', $(eventsBody));
var numRows = $currentRows.length;
$('th', $('#EventsTable')).removeClass("table-sorted-asc").removeClass("table-sorted-desc");
var docFragment = document.createDocumentFragment();
var newTable = false;
if(numNewRows != numRows){
$(eventsBody).empty();
newTable = true;
}
var trElem, tdElem;
$('eventRec', $eventsRoot).reverse();
if(newTable) {
$('eventRec', $eventsRoot).each(function(i){
$record = $(this);
trElem = document.createElement('tr');
docFragment.appendChild(trElem);
$record.children('dateTime').each(function(i) {
tdElem = document.createElement('td');
trElem.appendChild(tdElem);
tdElem.innerHTML = $(this).text();
});
$record.children('type').each(function(i) {
tdElem = document.createElement('td');
trElem.appendChild(tdElem);
tdElem.innerHTML = $(this).text();
});
$record.children('source').each(function(i) {
tdElem = document.createElement('td');
trElem.appendChild(tdElem);
tdElem.innerHTML = $(this).text();
});
$record.children('eventId').each(function(i) {
tdElem = document.createElement('td');
trElem.appendChild(tdElem);
tdElem.innerHTML = $(this).text();
});
$record.children('assAlrm').each(function(i) {
tdElem = document.createElement('td');
trElem.appendChild(tdElem);
tdElem.innerHTML = $(this).text();
});
$record.children('username').each(function(i) {
tdElem = document.createElement('td');
trElem.appendChild(tdElem);
tdElem.innerHTML = $(this).text();
});
$record.children('desc').each(function(i) {
tdElem = document.createElement('td');
trElem.appendChild(tdElem);
var cellText = $(this).text();
$('bullet', $(this)).each(function(i){
tempText = $(this).text();
cellText = cellText.replace($(this).text(),"<br>•"+tempText);
});
tdElem.innerHTML = cellText;
});
eventsBody.appendChild(docFragment);
});
}
if(newTable) {
eventsBody.appendChild(docFragment);
$('#EventsTable').styleTable({header:false, title:false});
} else {}
trElem = null;
delete trElem;
tdElem = null;
delete tdElem;
numNewRows = null;
delete numNewRows;
numRows = null;
delete numRows;
newTable = null;
delete newTable;
cellText = null;
delete cellText;
$eventsRoot = null;
delete $eventsRoot;
$eventsXml = null;
delete $eventsXml;
eventsBody = null;
delete eventsBody;
$record = null;
delete $record;
cellText = null;
delete cellText;
}
});
$xml = null;
delete $xml;
$root = null;
delete $root;
$numDays = null;
delete $numDays;
$dayMenuTable = null;
delete $dayMenuTable;
$dayMenuBody = null;
delete $dayMenuBody;
$newDayRow = null;
delete $newDayRow;
$date_xml = null;
delete $date_xml;
$index_xml = null;
delete $index_xml;
$page_xml = null;
delete $page_xml;
$records_xml = null;
delete records_xml;
date_arr = null;
delete date_arr;
index_arr = null;
delete index_arr;
page_arr = null;
delete page_arr;
records_arr = null;
delete records_arr;
dayParam = null;
delete dayParam;
topPageNum = null;
delete topPageNum;
i = null;
delete i;
$pageMenuTable = null;
delete $pageMenuTable;
$pageMenuBody = null;
delete pageMenuBody;
$newPageRow = null;
delete newPageRow;
$totalPages = null;
delete $totalPages;
$pageInc = null;
delete $pageInc;
$totalInc = null;
delete $totalInc;
$currentPage = null;
delete $currentPage;
$currentInc = null;
delete $currentInc;
$prevPage = null;
delete $prevPage;
j = null;
delete j;
$pageNum = null;
delete $pageNum;
$cell = null;
delete $cell;
$nextPage = null;
delete $nextPage;
$startRecord = null;
delete $startRecord;
$endRecord = null;
delete $endRecord;
}
function cleanup() {
delete updateTopObj;
delete day;
delete page;
}
</script>
<title>Events</title>
</head>
<body onUnload="cleanup();">
<div class="whiteSubmenu"><table id="DayMenuTable" border="0"><tbody></tbody></table> </div>
<div class="tableSpacer"></div>
<div class="whiteSubmenu"><table id="PageMenuTable" border="0"><tbody></tbody></table> </div>
<div id="RecordsMenuTable" border="0"></div>
<hr>
<div id="dayTitle" style="color:#191970;font-size:12pt"></div>
<table id="EventsTable" title="" class="mainView table-autosort">
<thead>
<tr>
<th class="table-autosort table-sortable:default" style="cursor:pointer">Timestamp</th>
<th class="table-autosort table-sortable:default" style="cursor:pointer">Type</th>
<th class="table-sortable:default" style="cursor:pointer">Source</th>
<th class="table-sortable:default" style="cursor:pointer">ID</th>
<th class="table-sortable:default" style="cursor:pointer">Associated Alarm</th>
<th class="table-sortable:default" style="cursor:pointer">Username</th>
<th>Description</th>
</tr>
</thead>
<tbody id="EventsBody">
</tbody>
</table>
</body>
</html>
|
|
|
|