|
Could not load file or assembly 'App_Code' or one of its dependencies. denyse access。
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileLoadException: Could not load file or assembly 'App_Code' or one of its dependencies. denyse access。
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'App_Code' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
|
|
|
|
|
Hi all,
What is the purpose of twitter/facebook integration with our website.
What actually will happen when we integrate twitter/facebook in our website.
Could anybody also send me links where the integration have been done.
Thanks
Rahul
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
rahul.net11 wrote: What is the purpose of twitter/facebook integration
Try to search in wikipedia
It is Community related websites which consists of followers/friends to make your application known to many people..!
|
|
|
|
|
Hi,
I know it is the social networking website but what is the use of integrating it with our web site.
Thanks
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
Not everyone integrates with facebook or twitter if there is requuirement then only they will integrate it ..!May be if you want to send sms to your followers then you will go for twitter..!
|
|
|
|
|
Link for facebook
this.lnkfacebook.NavigateUrl="http://www.facebook.com/submit?url=" + this.Request.Url;
|
|
|
|
|
HEllo every one, i got a slide show control in ajax tool kit.I have some pic in my image folder.How can i assign datasource of slide show control.tell me please.
|
|
|
|
|
Use Jquery Cyclic Plugin and bind it with ur images or from data base
|
|
|
|
|
hi sir,
can i change my crystal report connection string(ado.net) at run time from code behind.
if yes then how.please suggest
|
|
|
|
|
You Have Posted this question Many Times..!
If Any one Knows They Would Help You Before..!
Posting Many times will not Solve Your Problem..!
Every Time You are posting the same question means You are opening a new thread..!
|
|
|
|
|
Hi All friends..
I Have 2 tabels for categories and subcategories..
Which i have to show by Treeview control.. i have some restrictions that i cant use javascript.
And i have to use object datasource..
|
|
|
|
|
Sachin Dubey wrote: And i have to use object datasource..
So, what is the problem?
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
what shuld be the process flo in this... i never used treeview with datasource
i only used with javascript..
|
|
|
|
|
Sachin Dubey wrote: Hi All friends..
I Have 2 tabels for categories and subcategories..
Which i have to show by Treeview control.. i have some restrictions that i cant use javascript.
And i have to use object datasource..
What is your question ? Do you want to bind the data from database into table or what ?
|
|
|
|
|
yes i want to bind data from db only but only using objectdatasource..
how can i handel the node click to show subcategories..
|
|
|
|
|
You can't use ObjectDataSource here. A tree view supports only data source that implements IHierarchicalDataSource .
|
|
|
|
|
Is It Any Control like object datasource or anything else...
|
|
|
|
|
Try This Link It MAy Help..!
[^]
|
|
|
|
|
Get the result set in a Collection Object and loop through it.
1) First, get the dataset in Businesslayerclass as below:(eg:businessclass name is Employee)
public static Collection <Employee>GetData()
{
Collection<EmployeeData>empcollection = new Collection<EmployeeData>();
foreach (DataRow datarow in dataset1.Table[0].Rows)
{
}
}
2) In UI, call this method as below:
Employee emp = new Employee();
Collection<Employee>empcollection = new Collection<Employee>();
foreach (Employee emp1 in empcollection)
{
TreeNode tn = new TreeNode(emp1.Name)
tn.OnPopulateDemand = true;
TreeView1.Nodes.Add(tn);
}
Hope this helps.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
That comes closer but your code will only add nodes at the root level. This will not give hierarchical structure. To get a hierarchical structure, you should have some mechanism to identify the nodes parent and child nodes.
I have answered a similar question a while back. See here[^] if you are interested.
|
|
|
|
|
Are you aware about the existence of documentation?[^]. Here is what it says:
The TreeView control can also be bound to data. You can use either of two methods to bind the TreeView control to the appropriate data source type:- The TreeView control can use any data source control that implements the IHierarchicalDataSource interface, such as an XmlDataSource control or a SiteMapDataSource control. To bind to a data source control, set the DataSourceID property of the TreeView control to the ID value of the data source control. The TreeView control automatically binds to the specified data source control. This is the preferred method to bind to data.
- The TreeView control can also be bound to an XmlDocument object or a DataSet object with relations. To bind to one of these data sources, set the DataSource property of the TreeView control to the data source, and then call the DataBind method.
|
|
|
|
|
Better If you use xml.
Create a xml file xtracting data from both the table(Suppose filename is x.xml)
<menu type="root" value="HOME" url="~/Accounts/Index1.aspx">
<submenu type="folder" value="Fruits">
<state type="document" url="~/HR/a.aspx" value="Apple"/>
<state type="document" url="~/HR/b.aspx" value="Mango"/>
<state type="document" url="~/hr/c.aspx" value="Grapes"/>
</submenu>
</menu>
Add a treeview Control on your form page
in page_load section paste following codes:
In CodeBehindfile
XmlDataSource obxlmAdditional = new XmlDataSource();
obxlmAdditional.DataFile = "/x.xml";
treeMenu.DataSource = obxlmAdditional;
treeMenu.DataBind();
|
|
|
|
|
I am binding to the Gridview as follows:
BusinessUnitPartsGrid.DataSource = GetBusinessUnitsForParts(partnumberstring, ProjectId);
BusinessUnitPartsGrid.DataBind();
//GetBusinessUnitsForParts returns a dataset.
After this, I am doing as below:
foreach (GridViewRow gvr in BusinessUnitPartsGrid.Rows)
{
if (gvr.Cells[0].Text.Trim() == " ")
{
gvr.BackColor = Color.Red;
}
}
However, control never comes inside this loop because when I checked BusinessUnitPartsGrid.Rows.Count, it is 0. However, there are actually 5 rows and all the 5 are displaying in UI. What's happening here? Am I doing something wrong in the above code? Please help.
Thanks
meeram395.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
If you are binding GridView in PageLoad, then you have to take care of PostBack.
From next time, post code in Code Block tag.
|
|
|
|
|
This is not in pageload event. Actually,there is a Wizard control and when clicking on last but-one Next button, I am calling the above code in ActiveStep change event.
From next time onwards, I will make sure that the code will be in code block itself.
Thanks
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|