Hi Mohammed Gouda
(have been working shifts last 3 days, got your email just now, thanks for the reaction)
- rendered node in html :
- these two functions(E_TreeNodePopulate,E_TreeNodeExpanded) handle it when the above node is clicked :
public void E_TreeNodePopulate(Object source, TreeNodeEventArgs e)
if (Session["SelectedNodeChanged"] == null)
if (Session["userObj"] == null)
currentuserid = 0;
currentuserid = Convert.ToInt32(((UserObject)Session["userObj"]).Id);
foreach(TreeNode tn in e.Node.ChildNodes) //in the beginning the root should be e.Node
int treenodeuserid = TreeNodeHelper.getIdFromTreeNodeValue(tn.Value);
if (treenodeuserid == currentuserid)
Session["SelectedNodeChanged"] = tn;
Session["DisplayContactUserId"] = null;
I did not understand the reason behind calling these 2 events
If I were you, I would handle one event instead.
The best event for this scenario is the SelectedNodeChangedof the treeView, and it should be something like this
l am using jquery and jquery.corner pluging to create div rounded with border.
i get it, but my problem is that
i want to use drop shadow on bottom and right side of div . i am searching it last couple of days
but no getting it. i also have used liquid canvas but did not find correct solutions
Please suggest How to do it?
open a index.html file in your browser its a demo
in the shadow case -> look at the dialog demo -> look at the html , class="ui-widget-shadow ui-corner-all"
now add the folders to your site/web app
then set this html in a page for a test
link the 2 js file and css to that page
Hi in our webserver oftenly we get an error ORA-03113: end-of-file on communication channel, whenever our website tries to connect an Oracle database.This error disappears when we restart the IIS.
Can anyone give a permanent solution to this problem?
To request a friend, I think it is done as follows
When the user selects the person by his/her name and click send request
The system does 2 things:
1- Sends an email message to that person including the name of the sender
2- Insert a new request record in the requests table of that person to enable him/her see it within the site
Change your TextBox to a DropDownList
Create a StoredProcedure that will return you a listing of Categories from your Category reference table
Transform the raw data into a List of KeyValuePairs with your category DisplayNames and your Database Values,
Set the DataSource of your DropDownList to the List<KeyValuePair<string,string>> where each KeyValuePair represents an individual category,
Trigger a postback on Category Selection,
Send the category down to your Stored Procedure as a parameter,
Pull back data,
set the DataSource of your GridView to a List of your Business Objects
Quick and dirty, typed in-line off top of head:
public List<KeyValuePair<string, string>> GetCategories()
//Pseudo-Code//Open Database Connection//Create a command of type StoredProcedure//Tell the command which stored procedure to execute (preferrably, your "GetCategories() SP)
List<KeyValuePair<string,string>> categories = new List<KeyValuePair<string,string>>();
public List<BusinessObject> GetData(int category)
//Pseudo-Code//Open Database Connection//Create a command of type StoredProcedure//Tell the command which stored proc to execute (preferrably, the one that "Gets Data")//Send category down to Stored Proc as a parameter
List<BusinessObject> list = new List<BusinessObject>();
protectedvoid Page_Load(object sender, EventArgs e)
grdData.DataSource = GetData();
ddlCategories.DataSource = GetCategories();
ddlCategories.DataTextField = "Key";
ddlCategories.DataValueField = "Value";
Well...to pass data from one page to another, you are going to have to have some way of persisting the relevant information between pages because web development is inherently stateless.
The most common methods for passing data from form to form would be:
I suggest you begin by investigating these three mechanisms.
Then, figure out how to bind a GridView to data that you pull out of your chosen variable. Then, figure out how to put data from the original GridView into the variable. If you can combine these three tasks, you will be able to pass data from GridView to GridView.
I'm running into some very weird (to me) behavior when I try to chain the OnClick event of a Label to an Anchor. If that isn't self-explanatory, what I'm doing is showing a Label and hiding an Anchor. When I click on the Label, the Label clicks the Anchor.
My debugging process:
-> If I hide the Label, Show the anchor and set the function directly in the OnClick event in the a tag, executes as expected
-> If I show the Label, Hide the anchor and set the function directly in the OnClick event in the asp:label tag, executes as expected
Clicking the Label is triggering a PostBack, but it is not executing the client-side onclick event before doing so.
I've included the relevant code below. Does anyone have enough experience in this area to know why the Anchor's onclick event is not chained to the Label?