473,396 Members | 1,992 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

i have an issue in login page created using asp.net(vb.net)when i host my page.

hi...

I have an issue in my hosted page while i'm login

when i give an invalid email-id in my login page, the page does'nt show any alert message......
but i wrote coding to show that alert msg... it happens when i type those things at first time.

but,.. during second time when i login to this same page, i can get that alert msg...

for example..


hosted website : (http://localhost/test/) showing login page.
if i gave a invalid id, there is no error msg. the page is refreshed then the given userid and password textbox is cleared while the page is loading.

then the url is changed to : (http://localhost/test/login.aspx).... again i gave an invalid id,
Now,i can get that alert msg..

i want to know, why this happens?

and how can i get the alert msg while the page is loaded at the first time login...

any can help me please... i'm in dead line.
Mar 5 '08 #1
3 1257
nateraaaa
663 Expert 512MB
Do you have any code in the page_load method under

Expand|Select|Wrap|Line Numbers
  1.  if(!IsPostBack) 
  2. {
  3. //do something
  4. }
  5.  
[font=Verdana][size=2][/size][/font]
[font=Verdana][size=2]It sounds like it because the very first time the page loads you are not getting the desired result. If your message is inside this conditional statement try moving the code outside of this conditional statement.[/size][/font]
[font=Verdana][size=2][/size][/font]
[font=Verdana][size=2]Nathan[/size][/font]
Mar 5 '08 #2
[quote=nateraaaa]Do you have any code in the page_load method under

[code] if(!IsPostBack)
{
//do something
}
It sounds like it because the very first time the page loads you are not getting the desired result. If your message is inside this conditional statement try moving the code outside of this conditional statement.
-------------------------
Thanks for your reply,

I had a gridview functionality in the page load event,
but not the button click functionality.
To show the alert message, i have written code in the button_click event.
Mar 6 '08 #3
kunal pawar
297 100+
I guess there is problem, u written code in button_click event.
whats on first click it not shows message. and second time it shows message.

did u register Alert script in button_click event

can u show ur code on button_click event
Mar 6 '08 #4

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

Similar topics

1
by: Daniel | last post by:
when writing out a file from .net, when is the file created? after the bytes are all written to the hard drive or before the bytes are written to the hard drive?
0
by: Anthony Leuzzi | last post by:
I currently have a ASP website which requires a user to provide a user name a password. There is a section of the page will lists all of the ASP.NET applications the user has access to. These...
2
by: Sammy | last post by:
1- Is it better to use TABLEs or DIVs in an HTML/ASP.NET page? Why? 2- Is it better to form your response (HTML page) result from your ASP.NET page mostly using server side controls, or HTML...
1
by: microsoft.news | last post by:
Has anyone seen this? We are porting a web application from .NET 1.1 to 2.0 beta, and receiving errors "The type <dataset> already contains a definition for <event handler>" Looks like the error...
7
by: | last post by:
Hello, I would like to do the following from a asp.net button click: <form method="POST" action="https://www.1234.com/trans_center/gateway/direct.cgi"> <input type="hidden" name="Merchant"...
2
by: Brian Worth | last post by:
I have just upgraded from VB 4.0 to VB .NET 2002. One program under VB 4.0 was able to shut down or restart the (windows XP) machine using a series of API calls. (Getlasterror, GetCurrentProcess,...
0
by: zachariah | last post by:
Hi, I am using an Iframe within one of my web pages and the session timeout is set to 20 mintues in the web.config . The session expires for rest of the web pages and returns to default...
8
by: Fendi Baba | last post by:
I created an ASP.net page which opens excel. The data opens up correctly in MS office Excel 2007 but when we use a mahcine with MS Office 2003 we encountered a message, "Cannot read output file" Is...
4
by: John Devlon | last post by:
Hi, I'm trying to create a login page using the default login controle. I also would like to use a custom Ms Acces database instead of a sql server database. Can anyone please tell me how to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.