Click here to Skip to main content
15,905,782 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: getting FLV file time length [Donot waste ur time in giving lectures Vasudevan Deepak K] Pin
Paul Conrad23-Dec-07 8:05
professionalPaul Conrad23-Dec-07 8:05 
GeneralSecure Url Pin
DotNetXenon18-Dec-07 4:25
DotNetXenon18-Dec-07 4:25 
GeneralRe: Secure Url Pin
DigiOz Multimedia18-Dec-07 7:03
DigiOz Multimedia18-Dec-07 7:03 
GeneralRe: Secure Url Pin
Michael Sync18-Dec-07 15:59
Michael Sync18-Dec-07 15:59 
GeneralRe: Secure Url Pin
N a v a n e e t h18-Dec-07 19:34
N a v a n e e t h18-Dec-07 19:34 
GeneralRe: Secure Url Pin
Michael Sync18-Dec-07 20:28
Michael Sync18-Dec-07 20:28 
GeneralRe: Secure Url Pin
DotNetXenon2-Jan-08 10:45
DotNetXenon2-Jan-08 10:45 
GeneralIrregular responses from the server Pin
Jedidah18-Dec-07 4:01
Jedidah18-Dec-07 4:01 
try<br />
				{<br />
					SqlDataReader reader = null;<br />
					components.login comp_login = new Boncet.components.login();<br />
					reader = comp_login.checkUser(usernametxt.Text,pwdtxt.Text);<br />
					<br />
					if(reader.HasRows)<br />
					{ <br />
						reader.Read();<br />
						Session["appeid"]	 = reader.GetString(0);<br />
						Session["emp_id"]	 = reader.GetString(0);<br />
						Session["fname"]	 = reader.GetString(1);<br />
						Session["lname"]	 = reader.GetString(2);<br />
						if(Convert.ToString(reader["mname"]).Length == 0)<br />
						{<br />
							Session["mname"] = ".";<br />
						}<br />
						else<br />
						{<br />
							Session["mname"] = Convert.ToString(reader["mname"]);<br />
						}<br />
						Session["pword"]	 = reader.GetString(4);<br />
						Session["dept"]		 = reader.GetString(5);<br />
						Session["unit"]		 = reader.GetString(6);<br />
						Session["appraiser"] = reader.GetString(8);<br />
						Session["appaid"]	 = reader.GetString(9);<br />
						Session["grp"]	     = reader.GetString(13);<br />
						//Session["appaid"]	 = usernametxt.Text;						<br />
						string userid		 = usernametxt.Text;<br />
<br />
						Response.Redirect("index.aspx?pemp_id=" + userid+"&nam="+Convert.ToString(Session["fname"])+<br />
						"&lnam="+Convert.ToString(Session["lname"])+"&dep="+Convert.ToString(Session["dept"])+<br />
						"&uni="+Convert.ToString(Session["unit"])+"&grop="+Convert.ToString(Session["grp"])+<br />
						"&apaname="+Convert.ToString(Session["appraiser"])+"&apaid="+Convert.ToString(Session["appaid"]));<br />
					}<br />
					else<br />
					{<br />
						errorlbl.Visible = true;<br />
						errorlbl.Text = "Invalid Staff ID and or Password!!";<br />
					}<br />
				}<br />
				catch(SqlException ex)<br />
				{<br />
					errorlbl.Text = "System error: " + ex.Message.ToString();<br />
					errorlbl.Visible = true;<br />
				}<br />
				catch(Exception ee)<br />
				{<br />
					errorlbl.Text = "Wait for some minutes and try again or consult the administrator!";//"Error: " + ee.Message.ToString();<br />
					string datt = ee.Message.ToString();<br />
					errorlbl.Visible = true;<br />
				}

This code above will sometimes tell the user that null values cannot be called on the method.And it will always be caught by the second catch.Strange thing is that when you restart the IIS, and still use the same ID and pword,the system will accept it and log you on.And after sometime again,it will start telling you that null values cannot be accepted and when u restart the IIS it will be alright again.I have checked all the stored procedures and all the components involved in this login and there is no where a null value can be gotten.I just can't figure out why it is like that.Any help?
GeneralRe: Irregular responses from the server Pin
Paddy Boyd18-Dec-07 6:29
Paddy Boyd18-Dec-07 6:29 
GeneralRe: Irregular responses from the server Pin
Jedidah19-Dec-07 7:05
Jedidah19-Dec-07 7:05 
GeneralAjax Update Panel Pin
alimohammed18-Dec-07 3:59
alimohammed18-Dec-07 3:59 
GeneralQuestion abt extending the LinkButton Control Pin
Rocky#18-Dec-07 3:07
Rocky#18-Dec-07 3:07 
GeneralRe: Question abt extending the LinkButton Control Pin
Rocky#18-Dec-07 4:34
Rocky#18-Dec-07 4:34 
Generaldeleting file in server Pin
Mogaambo18-Dec-07 2:53
Mogaambo18-Dec-07 2:53 
GeneralRe: deleting file in server Pin
Vasudevan Deepak Kumar18-Dec-07 2:57
Vasudevan Deepak Kumar18-Dec-07 2:57 
GeneralRe: deleting file in server Pin
Mogaambo18-Dec-07 3:00
Mogaambo18-Dec-07 3:00 
Generalflv video playtime Pin
Mogaambo18-Dec-07 2:50
Mogaambo18-Dec-07 2:50 
Generalduring installation of self created desktop application, how to check that one of the perticular file/application have installed or not.. Pin
Pradeep Kumar Srivastava18-Dec-07 1:59
Pradeep Kumar Srivastava18-Dec-07 1:59 
GeneralOpening windows application from a web application Pin
arslanjatt18-Dec-07 1:06
arslanjatt18-Dec-07 1:06 
GeneralRe: Opening windows application from a web application Pin
N a v a n e e t h18-Dec-07 1:37
N a v a n e e t h18-Dec-07 1:37 
GeneralRe: Opening windows application from a web application Pin
arslanjatt18-Dec-07 1:39
arslanjatt18-Dec-07 1:39 
GeneralRe: Opening windows application from a web application Pin
arslanjatt18-Dec-07 1:43
arslanjatt18-Dec-07 1:43 
GeneralRe: Opening windows application from a web application Pin
N a v a n e e t h18-Dec-07 1:44
N a v a n e e t h18-Dec-07 1:44 
GeneralRe: Opening windows application from a web application Pin
arslanjatt18-Dec-07 1:52
arslanjatt18-Dec-07 1:52 
GeneralRe: Opening windows application from a web application Pin
Paddy Boyd18-Dec-07 6:31
Paddy Boyd18-Dec-07 6:31 

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.