Click here to Skip to main content
15,902,299 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionGod dam dates Pin
Sam Heller16-Aug-07 6:18
Sam Heller16-Aug-07 6:18 
AnswerRe: God dam dates Pin
ToddHileHoffer16-Aug-07 8:11
ToddHileHoffer16-Aug-07 8:11 
AnswerRe: God dam dates Pin
Not Active16-Aug-07 9:25
mentorNot Active16-Aug-07 9:25 
Questionwww.xtravels.com is not working inside the Host Server Pin
pubududilena16-Aug-07 5:41
pubududilena16-Aug-07 5:41 
AnswerRe: www.xtravels.com is not working inside the Host Server Pin
Michael Sync16-Aug-07 5:47
Michael Sync16-Aug-07 5:47 
GeneralRe: www.xtravels.com is not working inside the Host Server Pin
Sam Heller16-Aug-07 6:20
Sam Heller16-Aug-07 6:20 
GeneralRe: www.xtravels.com is not working inside the Host Server Pin
pubududilena16-Aug-07 21:00
pubududilena16-Aug-07 21:00 
QuestionHow to stop server side event firing based on client side event [modified] Pin
here2learn16-Aug-07 5:00
here2learn16-Aug-07 5:00 
hi all...i am making one ajax enabled website using microsoft ajax extension 1.0 and asp.net 2.0. i am sending my code in which i am facing problem.

===========================================================================
1) masterpage:

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage2.master.cs"
Inherits="MasterPage" %>




<title>Untitled Page




// some ajax related tags like script manager etc. <asp:contentplaceholder id="ContentPlaceHolder1" runat="server">






2) page which is making problem

<%@ Page Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true"
CodeFile="GetClient.aspx.cs" Inherits="GetClient" Title="Untitled Page" %>

<asp:content id="Content1" contentplaceholderid="ContentPlaceHolder1" runat="Server">
<asp:textbox id="txtClientNo" runat="server" size="20" autopostback="true" enableviewstate="true" onchange="return getClient();" ontextchanged="txtClientNo_TextChanged">


3) code behind:
// namespace
// namespace

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
Response.Redirect("somepage.aspx"); // some page is my another page
}
}
4) java script file:

function getClient()
{
alert("function working fine ");
return true; or return false // as tried with both
}

now my problem is that when i am entering any data in my textbox in my page GetClient.aspx then onchange event is firing and getCLient function is working fine, but independent to what i am returning from the javascript function either true or false, page is behaving in this way: below mentioned:-

in my textbox if i am using onchange="return getClient();" then always it is not firing server side, but if i am using onchange="getClient();" then it is firing server side always. what is wrong here?... Frown | :(

<asp:textbox id="txtClientNo" runat="server" readonly="true" size="20" autopostback="true" enableviewstate="true" onchange="return getClient();" ontextchanged="txtClientNo_TextChanged">

plz let me know if anyone knows solution to fire servber side based on true or false returned from client side function...
-- modified at 11:05 Thursday 16th August, 2007

Akhilesh Singh

AnswerRe: How to stop server side event firing based on client side event Pin
ToddHileHoffer16-Aug-07 7:48
ToddHileHoffer16-Aug-07 7:48 
GeneralRe: How to stop server side event firing based on client side event Pin
here2learn16-Aug-07 18:34
here2learn16-Aug-07 18:34 
QuestionEmail in ASP.NET : Plz it's very urgent Pin
.NET- India 16-Aug-07 3:04
.NET- India 16-Aug-07 3:04 
AnswerRe: Email in ASP.NET : Plz it's very urgent Pin
Sathesh Sakthivel16-Aug-07 3:10
Sathesh Sakthivel16-Aug-07 3:10 
GeneralRe: Email in ASP.NET : Plz it's very urgent Pin
.NET- India 16-Aug-07 3:20
.NET- India 16-Aug-07 3:20 
GeneralRe: Email in ASP.NET : Plz it's very urgent Pin
Michael Sync16-Aug-07 3:49
Michael Sync16-Aug-07 3:49 
AnswerRe: Email in ASP.NET : Plz it's very urgent Pin
Urs Enzler16-Aug-07 3:48
Urs Enzler16-Aug-07 3:48 
AnswerRe: Email in ASP.NET : Plz it's very urgent Pin
Not Active16-Aug-07 9:21
mentorNot Active16-Aug-07 9:21 
Questionasp.net 1.1 mail shows only ? mark when displays in yahoo account Pin
Rahees8316-Aug-07 2:32
Rahees8316-Aug-07 2:32 
AnswerRe: asp.net 1.1 mail shows only ? mark when displays in yahoo account Pin
Sathesh Sakthivel16-Aug-07 3:11
Sathesh Sakthivel16-Aug-07 3:11 
GeneralRe: asp.net 1.1 mail shows only ? mark when displays in yahoo account Pin
Rahees8316-Aug-07 18:02
Rahees8316-Aug-07 18:02 
QuestionHow to Update the Records in GridView Control Through Coding in asp.net2.0 Pin
mrgaddam16-Aug-07 2:22
mrgaddam16-Aug-07 2:22 
AnswerRe: How to Update the Records in GridView Control Through Coding in asp.net2.0 Pin
ooooooooppppppss16-Aug-07 2:27
ooooooooppppppss16-Aug-07 2:27 
AnswerRe: How to Update the Records in GridView Control Through Coding in asp.net2.0 Pin
ooooooooppppppss16-Aug-07 2:32
ooooooooppppppss16-Aug-07 2:32 
AnswerRe: How to Update the Records in GridView Control Through Coding in asp.net2.0 Pin
mrgaddam16-Aug-07 2:37
mrgaddam16-Aug-07 2:37 
QuestionHow to send fax from asp.net page in visualstudio2005 Pin
attalurisubbu16-Aug-07 2:19
attalurisubbu16-Aug-07 2:19 
AnswerRe: How to send fax from asp.net page in visualstudio2005 Pin
Talal Sultan16-Aug-07 2:30
Talal Sultan16-Aug-07 2:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.