473,503 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to dispay message in asp.net with C#.net without usuing java script ?

5 New Member
hi,

i want to display error message in asp.net + C# application without using java script.
Nov 17 '06 #1
1 1445
aswa_thaman
1 New Member
hi,

i want to display error message in asp.net + C# application without using java script.

if ((drawinginfologin_username_txt.Text==uid1) && (drawinginfologin_password_txt.Text==pwd1) && drawinginfosoftware_privilegename_ddl.SelectedItem .Text==pri1)
{
Session["privname"] = pri1;
Response.Redirect("privilege.aspx");
//Server.Transfer(pri1);
}

dr.Close();
con.Close();
}


catch(Exception e1)
{
//Response.Write("err");
string s1="<Script language=javascript>alert('Login Failed Please Try Again');</Script>";
Page.RegisterClientScriptBlock("s",s1);
}
Nov 18 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
12055
by: Laura P | last post by:
Hi, I wasn't sure whether this should be posted in the Java are or in a Solaris thread, so I shall post it in both. Sorry for the duplication. I am new to Solaris and am having trouble...
0
1477
by: Mircea Pleteriu | last post by:
Hi all, I have created a .NET Windows control with c#. I have placed the control on a HTML page within the OBJECT element. Everything works fine up to now. Now, I wanna implement the...
7
1593
by: szabelin | last post by:
Hi I want to pop up a little window (sort of a message box), so I call MessageBoxA function during postback, and I get "error on page" icon. What's the way to popup a new window? Thanks! ...
9
2371
by: Mickey Segal | last post by:
The long-simmering Eolas patent dispute: http://www.microsoft.com/presspass/press/2003/oct03/10-06EOLASPR.mspx has led to an optional Microsoft Update: http://support.microsoft.com/kb/912945/en-us...
8
1817
by: GS | last post by:
Guys: I have a question, Is it possible to implement pop-up window without Java script, we don't want to use java script since it might get blocked by pop-up blocker. Thanks in advance. GS.
9
1826
by: srinivask | last post by:
hai just tell that how can i protect the java script code without seeing view source it should not the code. i want function to perform
1
2365
by: pdesai007 | last post by:
hello, i tried to upload an image in to server with asp and java script ( using AJAX) but it gave an error. so please give me any solution that help me to upload an image to server with java...
6
5117
by: bnashenas1984 | last post by:
Here you can see the script I found in google to refresh a page without hearing any click sound which is usual to hear when a link is clicked or a page is refreshed. <script...
0
725
by: CSINVA | last post by:
All my pages are .aspx, I want to be able to have people just type in the page name without having to type in .aspx, I know I can do this, I jst can't remember where I configure the default...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7280
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7330
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.