|
Matt.L wrote: The only benefit I see is the person writing the test will be in a different mindset to the coder, which can lead to some tests that the coder wouldn't have thought of. So you never overlooked something when proofreading something you wrote? Did you never fall into the trap of repeating errors based on some misunderstanding over and over again?
Any tester can tell you that the author usually is the last person who should conduct or write any tests. He usually is not objective enough.
I need a perfect, to the point answer as I am not aware of this.
Please don't reply explaining what method overloading is
|
|
|
|
|
CodeWraith wrote: not objective enough
Not objective at all, you should say! After all, it is his making! He loves it!!!
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
Kornfeld Eliyahu Peter wrote: He loves it!!! As if that were the only problem. I also have already seen what happens when the tests become some kind of ritual which everyone must perform, but nobody really gives a moist fu.. about it. The only thing that counts are andless rows of green tests that actually test only very little.
I need a perfect, to the point answer as I am not aware of this.
Please don't reply explaining what method overloading is
|
|
|
|
|
Any tester Anybody can tell you that the author usually is the last person who should conduct or write any tests.
Furthermore any auditor or certifying authority will tell you the author must never write nor perform the testing and in some cases should not even have access to the testing suite.
Sin tack
the any key okay
|
|
|
|
|
Once again, the Simpsons has the answer..
Homers Enemy-Nuclear contest scene+Frank goes crazy - YouTube
Now is it bad enough that you let somebody else kick your butts without you trying to do it to each other? Now if we're all talking about the same man, and I think we are... it appears he's got a rather growing collection of our bikes.
modified 31-Aug-21 21:01pm.
|
|
|
|
|
Try one blokes junction, Will! (9)
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Testament
Test -> Try
A -> One
Men -> Blokes
Junction - T
"Lasting Will and Testament"...
|
|
|
|
|
And that gets you the prize: you are up tomorrow!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I know it's the only time some poor guys will have the last word, but what is a lasting will and testament? Carved in stone?
I need a perfect, to the point answer as I am not aware of this.
Please don't reply explaining what method overloading is
|
|
|
|
|
It's the document that tells people how you want your property spread around once you are gone (assuming taxes leave anything to spread around, and that the relatives who descend immediately upon hearing you are no longer there left anything for the tax man to steal.
You know the old saying: "Where there is a Will, there is a bunch of vultures".
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: You know the old saying: "Where there is a Will, there is a bunch of vultures". No. Just last week I got the notification from the court I responded by declining to take my share in favor of my father.
I need a perfect, to the point answer as I am not aware of this.
Please don't reply explaining what method overloading is
|
|
|
|
|
Lasting beyond the author.
I believe "Last will and testament" is the more common usage though.
Not for me though - I'd accept that over my dead body.
|
|
|
|
|
|
some === most?
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
A lot, certainly - but I've not done any statistical analysis so I can't confirm proportions.
Then you get those like the post below ... who the heck upvoted his code dump in the lounge?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Someone with the same qualities? One who never reads/listens?
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
You know, I don't open links like that! Can you print it and send it to me?
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- I'd just like a chance to prove that money can't make me happy. Me, all the time
|
|
|
|
|
Yes, please tell us where our special delivery squad team can find you.
I need a perfect, to the point answer as I am not aware of this.
Please don't reply explaining what method overloading is
|
|
|
|
|
Certainly! All I need is the address, and your bank account details...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
First he should go here[^] and mark the content he wants to have printed.
I need a perfect, to the point answer as I am not aware of this.
Please don't reply explaining what method overloading is
|
|
|
|
|
|
then you should ask in the message board below the article.
That way the author get a notification and possible an email too.
If he still maintains the article, you will get better answer there than here.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
So help me out for it i will send you code
html page
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<ul class="selfText">
<li> <asp:Label ID="Label1" runat="server" Width="90px" Text=" User Name:"> </asp:Label>
<asp:TextBox ID="txtusername" runat="server" placeholder="User Name"></asp:TextBox> </li>
<li> <asp:Label ID="Label2" runat="server" Width="90px" Text=" Password:"></asp:Label>
<asp:TextBox ID="txtPassword" runat="server" placeholder="Password"></asp:TextBox> </li>
<br />
<li> <asp:CheckBox ID="CheckBox1" runat="server" Text="Remember Me"/>
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
</li>
</ul><div style=" clear:both"></div>
<asp:Label id="ErrorLabel" runat="Server" ForeColor="Red"
Visible="false"/>
</div>
</form>
</body>
</html>
code behind it
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;
using System.Web.Security;
using System.Security.Principal;
public partial class login : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
FormsAuthentication.Initialize();
String cs = ConfigurationManager.ConnectionStrings["connect"].ConnectionString;
SqlConnection con = new SqlConnection(cs);
SqlCommand cmd = new SqlCommand("role1", con);
cmd.CommandType = CommandType.StoredProcedure;
con.Open();
cmd.Parameters.AddWithValue("@UserName", txtusername.Text);
cmd.Parameters.AddWithValue("@Password", txtPassword.Text);
FormsAuthentication.HashPasswordForStoringInConfigFile(
txtPassword.Text, "md5");
SqlDataReader reader = cmd.ExecuteReader();
if (reader.Read())
{
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1, txtusername.Text, DateTime.Now, DateTime.Now.AddMinutes(30),
true, reader.GetString(0), FormsAuthentication.FormsCookiePath);
string hash = FormsAuthentication.Encrypt(ticket);
HttpCookie cookie = new HttpCookie(FormsAuthentication.FormsCookieName, hash);
if (ticket.IsPersistent) cookie.Expires = ticket.Expiration;
Response.Cookies.Add(cookie);
string returnUrl = Request.QueryString["ReturnUrl"];
if (returnUrl == null) returnUrl = "/";
Response.Redirect("~/administrators/Welcome.aspx");
}
else
{
ErrorLabel.Text = "Username / password incorrect. Please try again.";
ErrorLabel.Visible = true;
}
reader.Close();
con.Close();
}
}
i make folder name user
and its wen cong.
<?xml version="1.0"?>
<configuration>
<system.web>
<authorization>
<!-- Order and case are important below -->
<allow roles="user"/>
<deny users="*"/>
</authorization>
</system.web>
</configuration>
user page in folder html code
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="userpage.aspx.cs" Inherits="users_userpage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h2>Welcome to user page</h2>
<asp:HyperLink id="AdminLink" runat="server"
Text="Users, click here." NavigateUrl="~/users/"/>
</div>
</form>
</body>
</html>
code of html of user
protected void Page_Load(object sender, EventArgs e)
{
if (User.IsInRole("user"))
AdminLink.Visible = true;
}
main web cong.
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http:
-->
<configuration>
<connectionStrings>
<add name="connect" connectionString="Database=Test; server=.; uid=sa ;pwd=1234" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
<authentication mode="Forms">
<forms loginUrl="login.aspx" protection="All" path="/"/>
</authentication>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
<location path="administrators">
<system.web>
<authorization>
<!-- Order and case are important below -->
<allow roles="Admin"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<location path="users">
<system.web>
<authorization>
<!-- Order and case are important below -->
<allow roles="user"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
</configuration>
|
|
|
|
|
Absolutely the wrong place for this: see the bit in red at the top of the page.
Ask here: Ask a question[^]
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|