mohammed yaghi 0 Newbie Poster

how to solve security warning programatically when open web site i develop
I mean
what is the reason that cause security warning
thanks

mohammed yaghi 0 Newbie Poster

hi subhankar02dey , download http://hotfile.com/dl/67535648/2c4215c/WebSite6.rar.html
prepare using visual studio 2010
Solving exactly what u want
thanks

mohammed yaghi 0 Newbie Poster

rohand The solution required to login by userid and then retrieve name from query
Dear I assigned session to string just for explaining and details explian just
I Know that I can do it without storing in variable
thanks for advice

mohammed yaghi 0 Newbie Poster

Sure you can
1- include this file

<script type="text/javascript" src="shadedborder.js"></script>

2- write your Css as follow

<style type="text/css">
/* <![CDATA[ */

/* One simple border definition */
#my-border { padding:20px; width:30%; margin:200px auto; color:#fff; }
#my-border, #my-border .sb-inner { background:#444 url(grad.png) repeat-x; }


/* The following is just for making the page look "cool" - simply ignore it */
html { font-family:sans-serif; background:#444; color:#ddd; }
html, body { margin:0; padding:0; }
p { margin:5px 0; }
.headfoot { text-align:right; padding:10px; margin:0; }
.headfoot h1 { font-size:1.3em; padding:0; margin:0; }
.headfoot a { color:#fff; }
#content { background:url(back.jpg); padding:10px 0; }

/* ]]> */
</style>

3- make div including all page contents with id ="my-border"

4- write this code in body

<script language="javascript" type="text/javascript">
    var myBorder = RUZEE.ShadedBorder.create({ corner:8, shadow:16 });
    myBorder.render('my-border');
  </script>

attached
complete project

mohammed yaghi 0 Newbie Poster

dear george61
the way you mention above about solve this problem by javascript not recommended
becuae javascript can be disabled dear .
the last way by using autocomplete="off" very nice
thanks

mohammed yaghi 0 Newbie Poster

In the login page in case of successful login write the following code
Session["userid"] = t1.Text;
Now you have session variable in all your website pages called userid
In the second page write code like this
String userid = Session["userid"].ToString();
sqlDataAdapter d=new sqlDataAdapter("select studentname from students where userid="+userid,connstring);
Label1.text=....... studentname which retrieve from the previous statement

thanks

mohammed yaghi 0 Newbie Poster

hi stanley87
there is way in php to get the primary key of the insert/update done look example
mysql_query("insert into table1 values .........");
$myquery = "SELECT LAST_INSERT_ID() as new_id";
$myres = mysql_query($myquery);
$myrow = mysql_fetch_array($myres);
//// now $myrow[0] contain the primary key of the last insert done
//// now you can use this var in another statement

mysql_query("insert into table2(x) values ($myrow[0])");


thanks

mohammed yaghi 0 Newbie Poster

Sure The first way >>>>
Look There is Rule in DBMS (data bas management system) as follow : -
The fields like number of students , numbe of message , age and so on
recommended to calculated , not to considered as fields in table
thanks

mohammed yaghi 0 Newbie Poster

Good solution digital-ether >>>>> This is the way to show confirmation message before delete ..... I use this in web development .