Click here to Skip to main content
15,892,927 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: FCK Editor Insert into Sql table Pin
himanshu256126-Jun-09 1:34
himanshu256126-Jun-09 1:34 
GeneralRe: FCK Editor Insert into Sql table Pin
Christian Graus26-Jun-09 9:22
protectorChristian Graus26-Jun-09 9:22 
GeneralRe: FCK Editor Insert into Sql table Pin
padmanabhan N26-Jun-09 0:58
padmanabhan N26-Jun-09 0:58 
AnswerRe: FCK Editor Insert into Sql table Pin
K030626-Jun-09 1:38
K030626-Jun-09 1:38 
GeneralRe: FCK Editor Insert into Sql table Pin
Enver Maroshi26-Jun-09 1:42
Enver Maroshi26-Jun-09 1:42 
GeneralRe: FCK Editor Insert into Sql table Pin
K030626-Jun-09 2:10
K030626-Jun-09 2:10 
GeneralRe: FCK Editor Insert into Sql table Pin
r a m e s h26-Jun-09 1:48
r a m e s h26-Jun-09 1:48 
QuestionHow to control RBAC in IhttpModule? Pin
jinklang26-Jun-09 0:32
jinklang26-Jun-09 0:32 
Code of WebForm1.aspx.cs as below:

Q: when i submit the aspx page to server,I want to get Method,filed and event in *.aspx.cs description by FQAAttribute .
Sniff | :^)
E.G.: I want to get event Page_Load,Button1_Click,Button2_Click,Button3_Click,
because those description by [FQA("M1")],[FQA("M1","F001")],[FQA("M1","F002")].

How to do ? Thanks.



------------------------------------------------
CODE:

namespace WebIhttpModule
{
/// <summary>
/// WebForm1
/// </summary>
///
[FQA("WebFrom1.M1")]
public class WebForm1 : System.Web.UI.Page
{

#region Web Form Code
protected System.Web.UI.WebControls.Button Button1;
protected System.Web.UI.WebControls.TextBox TextBox1;
protected System.Web.UI.WebControls.Button Button2;
protected System.Web.UI.WebControls.Button Button3;
protected System.Web.UI.WebControls.TextBox TextBox2;
protected System.Web.UI.WebControls.Button Button4;
protected System.Web.UI.WebControls.TextBox TextBox3;
override protected void OnInit(EventArgs e)
{
InitializeComponent();
base.OnInit(e);
}

private void InitializeComponent()
{
this.Button1.Click += new System.EventHandler(this.Button1_Click);
this.Button2.Click += new System.EventHandler(this.Button2_Click);
this.Button3.Click += new System.EventHandler(this.Button3_Click);
this.Button4.Click += new System.EventHandler(this.Button4_Click);
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion

[FQA("M1")]
private void Page_Load(object sender, System.EventArgs e)
{
}

[FQA("M1","F001")]
private void Button1_Click(object sender, System.EventArgs e)
{
this.TextBox1.Text= Button1.Text;
}
[FQA("M1","F002")]
private void Button2_Click(object sender, System.EventArgs e)
{
this.TextBox2.Text= Button2.Text;
}
[FQA("M1","F003")]
private void Button3_Click(object sender, System.EventArgs e)
{
this.TextBox3.Text= Button3.Text;
}

private void Button4_Click(object sender, System.EventArgs e)
{

}
}
}
---------------------------------------------

/// <summary>
/// FQA Attribute
/// </summary>
[AttributeUsage(AttributeTargets.Method |
AttributeTargets.Class |
AttributeTargets.Property |
AttributeTargets.Event |
AttributeTargets.Interface |
AttributeTargets.Delegate, AllowMultiple= true) ]

public class FQAAttribute : System.Attribute
{
private string _codemod = "";
private string _codefun = "";

/// <summary>
/// set the FQA right by module
/// </summary>
/// <param name="strFunctionCode">module code</param>
public FQAAttribute(string strModCode)
{
_codemod = strModCode.Trim();
}
/// <summary>
/// set the FQA right by module and function
/// </summary>
/// <param name="strModCode">module code</param>
/// <param name="strFunctionCode">function code</param>
public FQAAttribute(string strModCode, string strFunctionCode)
{
_codemod = strModCode.Trim();
_codefun = strFunctionCode.Trim();
}
}
AnswerRe: How to control RBAC in IhttpModule? Pin
jinklang28-Jun-09 14:38
jinklang28-Jun-09 14:38 
Question[Message Deleted] Pin
Uma J26-Jun-09 0:13
Uma J26-Jun-09 0:13 
AnswerRe: Mode Pin
Christian Graus26-Jun-09 0:14
protectorChristian Graus26-Jun-09 0:14 
AnswerRe: [Message Deleted] Pin
Christian Graus26-Jun-09 0:16
protectorChristian Graus26-Jun-09 0:16 
AnswerRe: Mode Pin
Baran M26-Jun-09 0:16
Baran M26-Jun-09 0:16 
Questionprinter problem with explanation Pin
banerjins25-Jun-09 23:55
banerjins25-Jun-09 23:55 
AnswerRe: printer problem with explanation Pin
Enver Maroshi26-Jun-09 0:02
Enver Maroshi26-Jun-09 0:02 
GeneralRe: printer problem with explanation Pin
Christian Graus26-Jun-09 0:11
protectorChristian Graus26-Jun-09 0:11 
AnswerRe: printer problem with explanation Pin
Christian Graus26-Jun-09 0:12
protectorChristian Graus26-Jun-09 0:12 
AnswerRe: printer problem with explanation Pin
Abhijit Jana26-Jun-09 0:40
professionalAbhijit Jana26-Jun-09 0:40 
QuestionTree View Pin
KhandelwalA25-Jun-09 23:53
KhandelwalA25-Jun-09 23:53 
AnswerRe: Tree View Pin
Christian Graus26-Jun-09 0:15
protectorChristian Graus26-Jun-09 0:15 
GeneralRe: Tree View Pin
KhandelwalA26-Jun-09 0:16
KhandelwalA26-Jun-09 0:16 
Questionprinter problem in asp.net Pin
banerjins25-Jun-09 23:13
banerjins25-Jun-09 23:13 
AnswerRe: printer problem in asp.net Pin
Christian Graus25-Jun-09 23:42
protectorChristian Graus25-Jun-09 23:42 
GeneralRe: printer problem in asp.net Pin
banerjins25-Jun-09 23:54
banerjins25-Jun-09 23:54 
GeneralRe: printer problem in asp.net Pin
Christian Graus26-Jun-09 0:11
protectorChristian Graus26-Jun-09 0:11 

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.