thank u for your consideration but i managed to solve out the problem through emptying the buffer..
baselanfouqa
Posts
-
session -
session1.) if (Session["UserName"] == null) { Response.Redirect("Login.aspx"); } this in main.aspx page_load 2.)sure and the code to logout is :- //Session["UserName"] = null; //Session.Abandon(); Session.Remove("UserName"); Response.Redirect("Login.aspx");
-
sessionok... tried but wont work..
-
sessiondear Abhijit Jana, i did what u wrote in fact my code is exactly the same..... but no use.
-
sessiontried but still the samething.....
-
session???!!!! what, how??
-
sessionhi all, in my web application i made a session (Session["UserName"] = tbUserName.text) so it saves value in it if username is correct and redirect the user to mainpage.aspx. the problem is:- in login page if i copy the link of main page and paste it in address bar at the login page it redirects it without even entering any data at Username and password. i tried to check the session in main.aspx and see if empty redirect user to login which works the first time but as soon as i enter valid username and password in login the problem appear again even when i put the following at logout linkbutton (session["UserName"] = null) can anyone help!!!! thx in advance
-
calenderno need to datepicker, i need code..... :(
-
calenderhow, am new at all this, and am trying to have knowledge about this so can u help ??
-
calenderstill no luck, i have the following code :- function Calender() { var date = document.getElementById("ctl00_ContentPlaceHolder1_tbDateOfBirth").value; var cal = window.showModalDialog('Calender.aspx', date, 'resizable:off;dialogheight:250px;dialogwidth:360px'); document.getElementById("ctl00_ContentPlaceHolder1_tbDateOfBirth").value = cal; } now on child page i added (var read = window.dialogarguments;) but know i dont know how to take value from calender and return it back.... :( someone help
-
calenderhi alll i've been searching on the net and no one gave me what i want, i need a popup calendar in my page andi want it to return the value of the selected date into a textbox... could it be done without (page load), i tryed doing it in javascript and i managed to open but cant find a way to return a value from the calendar?????
-
calendar popup not working in master pagetry to open viewsource and locate the id from (getElementbyid) you'll notice that its changed due to contentpage which something that asp.net do copy that id and replace it with foormal id and try it , it should work.
-
hide rowhi, i have page with content place holder and in that i have multiview and in that :) i have a html tabel and i am wondering if is it possible to make a row hide(visible=false), or that cant be done????
-
return value wont save:) its a stored procedure
-
return value wont saveshown at 1st question page
-
return value wont savehi all, i have a showmodaldialog and after getting value from B page the value is stored in textbox now everything is ok but save button wont take new value and returns the old one, is there something i should do, i will put the code of save button maybe it would help :- SqlConnection con = new SqlConnection(sConnectionString); SqlCommand cmd = new SqlCommand(); cmd.Connection = con; cmd.CommandType = CommandType.StoredProcedure; if (ViewState["Edit"].ToString().Equals("Edit")) { cmd.CommandText = "BaselAnfouqa_Upd"; cmd.Parameters.Add("@UserID", SqlDbType.Int).Value = nUserID; } else { cmd.CommandText = "BaselAnfouqa_Ins"; } cmd.Parameters.Add("@UserName", SqlDbType.VarChar, 50).Value = tbUserName.Text; cmd.Parameters.Add("@Password", SqlDbType.Int).Value = tbPassword.Text; cmd.Parameters.Add("@Salary", SqlDbType.Float).Value = tbSalary.Text; cmd.Parameters.Add("@Gender", SqlDbType.Char, 10).Value = ddlGender.SelectedValue; cmd.Parameters.Add("@DateOfBirth", SqlDbType.DateTime).Value = tbDateOfBirth.Text.ToString(); cmd.Parameters.Add("@Status", SqlDbType.Int).Value = ddlStatus.SelectedValue; con.Open(); cmd.ExecuteNonQuery(); vBindgvClients(); mvMainPage.SetActiveView(viewClients); thx in advance.
-
return value from showmodaldialogthx, that did work :)
-
return value from showmodaldialoghi all dev's i have a problem and want some help, i have a showmodaldialog and its working fine but when i finish from it and click on button (ReName) the showmodaldialog take fulll size page and stops in it, now am providing the code to be more clear for u:- (child page) function ReturnParam() { var password= window.dialogArguments; var old = document.getElementById("tbPasswordConfirm").value; if(password!=old) { alert('Password does not match....'); } else { var param = document.getElementById("tbNewPassword").value; alert('New Password have changet to ' + param); window.returnValue = param; window.close(); } } what seems to be the problem.....!!!!???
-
showmodaldialogbut i stilll dont know how to pass parameters throw showmodaldialog which am writing like main:- function show() { window.showmodaldialog("Password.aspx", "","resizable:off;dialogheight:10cm); var ss = document.getelementbyID("tbPassword").text; } child:- function showParam() { alert(window.dialogArguments); } is this valid, or some thing missing because on childpage (object expected)
-
showmodaldialoghow, am having truoble to passing parameters?? 2 be more clear the showmodaldialog opens a page with 3 textboxes(oldpassword, newpassword, confirmnew) and i want it to check if oldpassword valid then adding the newpassword and return it to main page