Hi Team and Dear all,
I have ready to creat web applications using Control Telerik.
When I not use Telerik Control in Page Login after published in IIS.
I call my web in URL ,: http://localhost:8080/
event button click is Fine and Work call code behind Process..
but, when I using Control Telerik,like RadScriptmanager and others...
when I click button Login,that not work...
When I call URL this "http://localhost:8080/" it's no work, but when I add specific page like " http://localhost:8080/default.aspx" ,it;'s work..
in IE,Firefox and GoogleChome it's not Work....
this, my code, my be i was wrong something or anything else...
please help me..
and this code behind
trims a lot,
best reagrds,
chester
I have ready to creat web applications using Control Telerik.
When I not use Telerik Control in Page Login after published in IIS.
I call my web in URL ,: http://localhost:8080/
event button click is Fine and Work call code behind Process..
but, when I using Control Telerik,like RadScriptmanager and others...
when I click button Login,that not work...
When I call URL this "http://localhost:8080/" it's no work, but when I add specific page like " http://localhost:8080/default.aspx" ,it;'s work..
in IE,Firefox and GoogleChome it's not Work....
this, my code, my be i was wrong something or anything else...
please help me..
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="eRTE.Default" %>
<!DOCTYPE html>
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
>eRTE</
title
>
<
link
href
=
"~/Content/Site.css"
rel
=
"stylesheet"
/>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
div
>
<
asp:ScriptManager
runat
=
"server"
ID
=
"ScriptManager1"
></
asp:ScriptManager
>
<
telerik:RadStyleSheetManager
ID
=
"RadStyleSheetManager1"
runat
=
"server"
>
</
telerik:RadStyleSheetManager
>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
</
telerik:RadAjaxManager
>
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
runat
=
"server"
Skin
=
"Metro"
>
</
telerik:RadWindowManager
>
</
div
>
<
div
style
=
"height: 175px"
>
</
div
>
<
div
style
=
"height: 150px"
>
<
table
style
=
"width: 100%"
>
<
tr
>
<
td
align
=
"center"
colspan
=
"3"
>
<
img
alt
=
"logo"
src
=
"Images/logosystem.png"
/>
</
td
>
</
tr
>
<
tr
>
<
td
style
=
"width: 40%"
></
td
>
<
td
>
<
table
style
=
"width: 100%"
>
<
tr
><
td
>
<
span
style
=
"font-size: 13px;color: #666;"
>USERNAME</
span
>
</
td
><
td
><
span
style
=
"font-size: 13px;color: #666;"
>PASSWORD</
span
>
</
td
></
tr
>
<
tr
><
td
>
<
telerik:RadTextBox
runat
=
"server"
ID
=
"tbusername"
AutoCompleteType
=
"Disabled"
></
telerik:RadTextBox
>
</
td
><
td
>
<
telerik:RadTextBox
runat
=
"server"
ID
=
"tbpass"
TextMode
=
"Password"
AutoCompleteType
=
"Disabled"
></
telerik:RadTextBox
>
</
td
></
tr
>
<
tr
><
td
>
<
asp:Button
Text
=
"Login"
ID
=
"btnLogin"
runat
=
"server"
CssClass
=
"buttonsubmit"
Width
=
"75px"
OnClick
=
"btnLogin_Click"
/> </
td
><
td
></
td
></
tr
>
</
table
>
</
td
>
<
td
style
=
"width: 35%"
></
td
>
</
tr
>
<
tr
>
<
td
style
=
"width: 40%"
> </
td
>
<
td
>
<
asp:RequiredFieldValidator
ID
=
"RequiredFieldValidator1"
runat
=
"server"
ControlToValidate
=
"tbusername"
CssClass
=
"field-validation-error"
ErrorMessage
=
"The user name field is required."
/><
br
/>
<
asp:RequiredFieldValidator
ID
=
"RequiredFieldValidator2"
runat
=
"server"
ControlToValidate
=
"tbpass"
CssClass
=
"field-validation-error"
ErrorMessage
=
"The password field is required."
/>
</
td
>
<
td
style
=
"width: 35%"
> </
td
>
</
tr
>
</
table
>
</
div
>
<
div
style
=
"height: 250px"
></
div
>
<
div
style
=
"text-align: center; color: #333;font-size: 12px;"
>
Copyright © <%: DateTime.Now.Year.ToString() %>· All rights reserved.
</
div
>
</
form
>
</
body
>
</
html
>
and this code behind
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Globalization;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace eRTE
{
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Form.DefaultButton = btnLogin.ClientID;
Form.DefaultFocus = tbusername.UniqueID;
if (!IsPostBack && (Request.Cookies["__LOGINCOOKIE__"] == null || Request.Cookies["__LOGINCOOKIE__"].Value == ""))
{
Session.Abandon();
Response.Cookies.Add(new HttpCookie("ASP.NET_SessionId", ""));
}
}
private void AddRedirCookie(string userdata)
{
}
protected void btnLogin_Click(object sender, EventArgs e)
{
//this my code process event login,
// when I using control telerik, can't proses to this event...why..???
}
}
}
trims a lot,
best reagrds,
chester