Click here to Skip to main content
15,904,638 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionStatic values keeping their instance after stopping the debugger Pin
Brendan Vogt12-Jul-10 9:00
Brendan Vogt12-Jul-10 9:00 
AnswerRe: Static values keeping their instance after stopping the debugger Pin
T M Gray12-Jul-10 10:47
T M Gray12-Jul-10 10:47 
QuestionRe: Static values keeping their instance after stopping the debugger Pin
Brendan Vogt12-Jul-10 19:44
Brendan Vogt12-Jul-10 19:44 
AnswerRe: Static values keeping their instance after stopping the debugger Pin
T M Gray13-Jul-10 4:59
T M Gray13-Jul-10 4:59 
QuestionPositioning a content page inside a Master Page Pin
FJJCENTU12-Jul-10 6:46
FJJCENTU12-Jul-10 6:46 
AnswerRe: Positioning a content page inside a Master Page Pin
Sandeep Mewara12-Jul-10 8:51
mveSandeep Mewara12-Jul-10 8:51 
GeneralRe: Positioning a content page inside a Master Page Pin
FJJCENTU12-Jul-10 13:45
FJJCENTU12-Jul-10 13:45 
QuestionManage role is this correct? Pin
amina8912-Jul-10 2:41
amina8912-Jul-10 2:41 
Hi,
I failed to manage roles by code and web confg. so I used the code easily I have a table Security of my database (login,password,profil) and a login.aspx page and I need to open pages in each service to the people of this service .is this correct? can I combine the files into folders?
I must change the file wb.config?
my code:
 protected void Button7_Click(object sender, EventArgs e)<br />
    {<br />
        SqlConnection aCon = new SqlConnection(@"Data Source=.\SQLEXPRESS;UID=sa;Password=******;Initial Catalog=xxxxx");<br />
<br />
<br />
        aCon.Open();<br />
        String rqtr3 = " SELECT * FROM SECURITE WHERE LOGIN = '" + Textbox3.Text + "' AND PASSWORD='" + TextBox12.Text + "'";<br />
        SqlCommand cmr3 = new SqlCommand(rqtr3, aCon);<br />
        SqlDataReader drr3 = cmr3.ExecuteReader();<br />
<br />
        while (drr3.Read() == true)<br />
        {<br />
            TextBox2.Text = drr3["PROFIL"].ToString();<br />
            if (TextBox2.Text == "service1")<br />
            {<br />
                 Response.Redirect("default1.aspx");<br />
            }<br />
            else<br />
            {<br />
                if (TextBox2.Text == "service2")<br />
                {<br />
                     Response.Redirect("default2.aspx");<br />
                }<br />
<br />
                else<br />
                {<br />
                   if (TextBox2.Text == "service3")<br />
                {<br />
                     Response.Redirect("default3.aspx");<br />
                }  <br />
else.........<br />
<br />
                }<br />
<br />
<br />
            }<br />
<br />
        }<br />
<br />
    }

Thanks.
AnswerRe: Manage role is this correct? Pin
Not Active12-Jul-10 2:57
mentorNot Active12-Jul-10 2:57 
QuestionRe: Manage role is this correct? Pin
amina8912-Jul-10 3:23
amina8912-Jul-10 3:23 
AnswerRe: Manage role is this correct? Pin
Not Active12-Jul-10 3:33
mentorNot Active12-Jul-10 3:33 
AnswerRe: Manage role is this correct? Pin
Peace ON12-Jul-10 3:39
Peace ON12-Jul-10 3:39 
GeneralRe: Manage role is this correct? Pin
Not Active12-Jul-10 4:25
mentorNot Active12-Jul-10 4:25 
QuestionRe: Manage role is this correct? [modified] Pin
amina8912-Jul-10 5:14
amina8912-Jul-10 5:14 
AnswerRe: Manage role is this correct? Pin
Not Active12-Jul-10 5:23
mentorNot Active12-Jul-10 5:23 
QuestionRe: Manage role is this correct? Pin
amina8912-Jul-10 5:56
amina8912-Jul-10 5:56 
QuestionMessage Removed Pin
12-Jul-10 2:06
Sr...Frank12-Jul-10 2:06 
AnswerRe: How to fix resolution in ASP.NET? Pin
Peace ON12-Jul-10 2:24
Peace ON12-Jul-10 2:24 
QuestionMessage Removed Pin
12-Jul-10 1:03
jintalPatel12-Jul-10 1:03 
AnswerRe: Javascript : Not Set the value at server side Pin
Peace ON12-Jul-10 1:24
Peace ON12-Jul-10 1:24 
QuestionISPostBack is TRUE when going to the page even at first time [modified] Pin
AnandDesai1912-Jul-10 0:54
AnandDesai1912-Jul-10 0:54 
AnswerRe: ISPostBack is TRUE when going to the page even at first time Pin
Peace ON12-Jul-10 0:57
Peace ON12-Jul-10 0:57 
GeneralRe: ISPostBack is TRUE when going to the page even at first time Pin
AnandDesai1912-Jul-10 1:02
AnandDesai1912-Jul-10 1:02 
GeneralRe: ISPostBack is TRUE when going to the page even at first time Pin
Not Active12-Jul-10 1:25
mentorNot Active12-Jul-10 1:25 
GeneralRe: ISPostBack is TRUE when going to the page even at first time Pin
AnandDesai1912-Jul-10 1:42
AnandDesai1912-Jul-10 1:42 

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.