Programming with coolite in code behind file
hi,
here is my problem.i am using coolite but i dont want to write the codings under the script tag in the aspx page.i want to write my code in the aspx.cs page.
but when i am using the Ext.somthing.... in the code behind file it showing an error telling that a refernce called as Ext is not existing the context.
but when i am writing the same coding under the script tag in the aspx file as same like the examples the code works fine.
how can i solve this problem. help me
RE: Programming with coolite in code behind file
Quote:
ebineva (5/6/2010) hi,
here is my problem.i am using coolite but i dont want to write the codings under the script tag in the aspx page.i want to write my code in the aspx.cs page.
but when i am using the Ext.somthing.... in the code behind file it showing an error telling that a refernce called as Ext is not existing the context.
but when i am writing the same coding under the script tag in the aspx file as same like the examples the code works fine.
how can i solve this problem. help me
Please post a simplified code sample demonstrating how to generate the error.
Have you added a <ext:ScriptManager> (v0.8.x) or <ext:ResourceManager> (v1.0) to your Page?
RE: Programming with coolite in code behind file
Code:
<script runat="server">
public static string stub = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.";
protected void Option1_Click(object sender, AjaxEventArgs e)
{
Ext.Notification.Show(new Notification.Config
{
Title = "Title",
Icon = Icon.Information,
Html = stub
});
}
</script>
this is the code in the aspx page.
i wanted to handle the same event from the code behind file like
Code:
protected void Button1_Click(object sender, EventArgs e)
{
Ext.Notification.Show(new Notification.Config
{
Title = "Title",
Icon = Icon.Information,
Html = stub
});
}
this what i tried... but the error is coming
i added the script manager in the aspx page.
note that i just reffered the dll , i didn't import any packages, just the default .net packages i imported.
hope that is enough.
RE: Programming with coolite in code behind file
Do you have the required Web.config httpHander and httpModule configured?
See section III,
http://ext.net/download/readme.txt
Hope this helps.