|
Thanks a lot for your reply, I'm going to check that code...
Wal
http://www.waleedeissa.com
|
|
|
|
|
hi there
i have two asp script files following.
problem is
first page has been redirected and session("test") variable was empty.
is that a bug?
a.asp
<%
Session.abandon
session("test")="foo"
response.Redirect "b.asp"
%>
b.asp
<%
response.write session("test")
%>
|
|
|
|
|
No, it's not a bug. It does exactly what you told it to do.
The Session.Abandon method marks the session to be abandoned when the request finishes. Anything that you put in that session object will go away when the session object goes away.
---
single minded; short sighted; long gone;
|
|
|
|
|
I am getting errors trying to load a page with ReportViewer object on it. Runs ok on my pc.
*checks server*
Our test server has Business Objects XI installed, as well as IIS.
The version of the CrystalDecisions assemblies are 11.0.33
*checks pc*
The same assemblies on my PC with Studio, are 10.0.33 and 10.2.36, but when I view that folder remotely from the server before copying, EVERY assembly I see is 11.0.33, just like the local drive.
Should I try copying the files anyway, or is there an installer I should be using?
"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..."
"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."
|
|
|
|
|
hi
If Firefox and IE7 support the tag OnBefroeUnload and OnUnload event or not? But that events are work well in IE6, how i use it in IE7 and ff.
otherwise any other events for that? how i update datas whenever the page before unload
Pls help to me...
Thanks
kalai
-- modified at 10:02 Thursday 13th September, 2007
|
|
|
|
|
Indeed they are both supported in IE 7 and FireFox (i tested with 2.0.0.6). Just try it:
<html>
<body OnBeforeUnload="alert('before');" OnUnload="alert('unload');">
</body>
</html>
|
|
|
|
|
Hi, i tried it work well
Thanks
|
|
|
|
|
I am trying to send the value 1063920.0000 as decimal type to XML Webservice at that time i'm encountering following error.
"SoapException: Server was unable to process request. --> Arithmetic overflow error converting numeric to data type numeric.
The statement has been terminated.
".
Please help me to solve this
Prashant V C
|
|
|
|
|
I'm trying to validate on client side with requiredfields but my big problem is if the page with requiredfields was activated when i want to go to another page am unable to click buttons cause nothing was putted on those required fields.So how do i control my requiredfields to only work on a certain click not on page activation.
Tsepo "mafunwa" Barnabas
DUT
|
|
|
|
|
Set the Page_ValidationActive javascript variable to false in the button's OnClick event.
This works:
In your ASPX (had to remove beginning angle brackets to get it to render on CP ):
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
asp:RequiredFieldValidator runat="server" id="rfv" ControlToValidate="txt" ErrorMessage="Error"></asp:RequiredFieldValidator>
asp:TextBox runat="server" ID="txt"></asp:TextBox>
asp:Button runat="server" ID="btn" Text="Go" OnClick="btn_Click" />
</div>
</form>
<script>
function TurnOffVal()
{
Page_ValidationActive = false;
}
</script>
</body>
</html>
And in the code behind:
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
btn.Attributes.Add("onclick", "TurnOffVal();");
}
protected void btn_Click(object sender, EventArgs e)
{
Response.Redirect("http://www.codeproject.com");
}
}
|
|
|
|
|
Plz write me how to make the website live.
|
|
|
|
|
me how to make a website live. (who says developers don't have humor )
Anyways Assming you have finished developeing your site and want to put it live:
First you'll need a server to deploy your website on (this server should have a permanent connection to the net or your website will be offline when the server is)
Then you'll need to register a domain you want your site to be in eg. http://www.mysite.com , you can do this at www.thatip.com , also before you can register your domain you'll need to find out the IP address of the server mentioned above and find out if it is a dynamic IP static IP, this youll need to setup your ThatIP account (note: if your IP is dynamic you'll need a program like WinIP on the server to keep track of your IP changes)
Once your site is registered and properties set you'll need to deploy the website on the server using a program like apache or IIS(Microsoft: Assuming you have windows XP you must install this from the XP disk as it is not installed by default). look up a muanual on how to deploy your specific web technology on the net there should be one on google. also if you are running a ASP.NET site you'll have to register your class library using the command promt depending on your asp.net version. eg, c:\windows\microsoft.net\framework\[myframeworkversion]\aspnet_regiis.exe /i
Hope this helps
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
Using C#, I have to create DLL components specifically used for Web applications. Difference between components for windows and web applications.
How to use C or C++ .h files in C#.net
VN
|
|
|
|
|
Hi, over the last 7 moths I have been coding dynamic websites, and for 5 months been working with ajax.
I would like to know how can I speed up the data access speeds and in general website speed.
1) Dataset .xsd file as a data access layer: I used this in some of my Windows applications as data access layer: is there any advantage to using this instead of the conventional way of creating a query string and filling a dataset using a SQLDataAdpater?
2)LINQ <-- not sure what this is, but is there any advantages to using this how on .NET Fw 2 I saw this get realeased with the Visual studio Orcas
3) Stored Procedures < - I had lots of mixed commetary about this (Some say its precompliled other dont)
4) Putting all your ASPX & ASPX.CS code in a single line and saving the file makes the file smaller (thus faster to load on client) ???
If anyone can point me to a good tutorial or documentation that explains these issues it would be greatly appricated.
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
Step one. Max out your memory on the database server. If it holds a maximum of four gigs get a new server that can hold more. Memory is the best way to get speed for data processing. A fast CPU cant hurt either. With data, it's all about the processing. To get speed you need WIDE PIPES.
Step two. If you are interested in performance, the more layers you add, the slower you will be.
1. .xsd is the filename extension for an XML schema which means you are really talking about data transfer via XML. This carries a lot of overhead as a method of transporting data.
2. LINQ is Microsoft's new language for ameliorating various enteties (data sets, XML, class objects) using a single query language. Again good for amelioration, but carries overhead which means you are sacraficing speed.
3. Stored procedures. (YES!! Use them! Use them often!)
4. NO, that's just wrong. It all ends up as .NET assemblies in the Common Language Runtime anyway. If anything, it will slow down people's ability to grok the code.
As far as tutorials go, wikipedia your terms and you'll have a better understanding of what you ask.
Dot Net Rocks! and Arcast(Ron Jacobs) have a lot of good podcasts with this topic. Listening to podcasts is one of the most efficient ways to pick up on the basics.
I am sure there are a lot of optimizations that take place on your database server software of choice. I'm not a DBA though so I really can't speak to that. A good reference will help here. (Or you can just hire a good DBA!)
|
|
|
|
|
Hi Guys,
I'll be starting to work on web app that would send out massive mails for our clients campaign (approx 20k per batch), the webserver's and mail server are being hosted on our end so we have the complete control of the platform.
I'm just wondering:
1. What would it takes me to maintain a high volume of mails being received by our mail server
2. Would it be possible to have another mail server where we could crate a load balance for the volumes of mails?
3. Can you give reference / URL where I could check on the design for this kind of web apps.
Thanks
Dom
|
|
|
|
|
Don't cross post... oh yeah also don't send SPAM
|
|
|
|
|
led mike wrote: oh yeah also don't send SPAM
+1 and amen to that!
|
|
|
|
|
On a page we've got an HTML select defined as follows:
"Half this game is ninety percent mental." - Yogi Berra
If you can read thank a teacher, if you can read in English, thank a Marine.
|
|
|
|
|
I'm interested to see your code... I tried doing a quick implementation to see what happens, and while i can manage to lock the scrolling in FF, it doesn't seem to be possible in IE6...
function moveUp()
{
var list = document.getElementById("theList");
var sel = list.selectedIndex;
if ( sel > 0 )
{
repositionOption(list, sel, sel-1);
}
}
function moveDown()
{
var list = document.getElementById("theList");
var sel = list.selectedIndex;
if ( sel < list.length-1 )
{
repositionOption(list, sel, sel+1);
}
}
function repositionOption(list, sel, index)
{
var scroll = list.scrollTop;
var opt = list.item(sel);
list.remove(sel);
opt.selected = false;
try
{
list.add(opt, list.item(index));
}
catch(e)
{
list.add(opt, index);
}
list.scrollTop = scroll;
opt.selected = true;
}
every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- C hris L osinger, Online Poker Players?
|
|
|
|
|
Ah thanks, didn't know about scrollTop. It still doesn't quite pull off the default IE 7 behaviour which continues to scroll to keep the selected index in view, but works well enough. Here is what we use:
function orderSelect($down,$oName,$fName,$EXCLUDE) {
if(typeof($oName)!="object"){var $obj = document[$fName][$oName];} else {$obj = $oName;}
$sl = $obj.selectedIndex;
var scroll = $obj.scrollTop;
if($obj.options[$sl].text==$EXCLUDE || $obj.options[$sl].value==$EXCLUDE){alert("This item cannot be altered.");return false}
if ($sl != -1 && $obj.options[$sl].value > "") {
$oText = $obj.options[$sl].text;
$oValue = $obj.options[$sl].value;
if ($obj.options[$sl].value > "" && $sl > 0 && $down == 0) {
if($obj.options[$sl-1].text==$EXCLUDE){alert("This item cannot be moved into that position.");return false}
$obj.options[$sl].text = $obj.options[$sl-1].text;
$obj.options[$sl].value = $obj.options[$sl-1].value;
$obj.options[$sl-1].text = $oText;
$obj.options[$sl-1].value = $oValue;
$obj.selectedIndex--;
$obj.scrollTop = scroll;
} else if ($sl < $obj.length-1 && $obj.options[$sl+1].value > "" && $down == 1) {
if($obj.options[$sl+1].text==$EXCLUDE){alert("This item cannot be moved into that position.");return false}
$obj.options[$sl].text = $obj.options[$sl+1].text;
$obj.options[$sl].value = $obj.options[$sl+1].value;
$obj.options[$sl+1].text = $oText;
$obj.options[$sl+1].value = $oValue;
$obj.selectedIndex++;
$obj.scrollTop = scroll;
}
return true;
} else {
alert("Please select an item first.");
return false;
}
}
orderSelect is called in the onclick event for an image input. Thanks for the help!
|
|
|
|
|
Ah, well that's a bit different. Try restoring the scroll position before modifying the selected index - that ought to let FF keep the selection in view. If not, then try also changing <span>$obj.selectedIndex++</span> to <span>$obj.options[$sl+1].selected = true</span> .
every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- C hris L osinger, Online Poker Players?
|
|
|
|
|
Hello dear friend
I want to create popup menu in javascript like www.alexa.com ..
when alexa site open it give small popup menu so i want to create this type of menu..
can anybody give me info about that
thanking you
|
|
|
|
|
Dudhat wrote: can anybody give me info about that
No.
There are... thousands of different designs and implementations for such things. Without knowing what your requirements and constraints are, it's pretty much pointless to try and pick one for you. Personally, i don't care much for 'em. It's a web page, not a desktop app - you have enough menus already.
So,
Try doing a search here on CP. Then do a search on Google. Then check out this site[^]. Then sit and think about all that for a good while. Maybe talk to other people involved in whatever it is you're making, see what they think.
Then, when you have a specific question, come on back...
every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- C hris L osinger, Online Poker Players?
|
|
|
|
|