With help from this forum (Thanx Parwej Ahamad) I got what I needed. I am including the code here in case it can help others. The application has 119 columns and this Popup displays the employee name, job unit and job description by hovering over any row as the user scrolls horizontally.
I have a problem with selecting a control from codebehind.
This is my scenario:
1. i get a string from a webservice (session): string boxstring = "<input type="text" id="MainContent_TextBoxStopRoadName01" name="ctl00$MainContent$TextBoxStopRoadName01">";
2. i insert this string to a <div id="boxcontainer"> from codebehind like this: boxcontainer.InnerHtml=boxstring;
3. Page loads
4. User types text in the box, and clicks a button to submit it
5. How do i find this textfield from codebehind from its id? I would like to get the field as an TextBox control, but the text value is the most important.
I´ve tried several things, like Findcontrol("id") and Findcontrol("id").Findcontrol("id") and so on. But it doesnt work.
Another thing does work though, if instead of a string, I create the textfield as an TextBox control, and then insert it: BoxContainer.Controls.Add(TextBox); - then it works! But it is not a possible solution in my situation. I only have the textbox (among many other elements) in a string.
I am working on an application where I have to Drag n Drop selected item from DropDownList, I can successfully drag n drop items from selected list but I have a issue with mouseup event.
The problem is that when I leave the dragged object mouseup event of that object fires, now what I want to do is to fire the event of the control where I am dropping item.
One more thing, controls where I am dropping items are not fixed, they vary. Now I want to get the Id of the control where the element is dropped.
Thanks in advance.
To get the id of the item being dragged you could try storing it's id on the mouse down event, and then using it on the mouse up. To get the id of the control the item is being placed into, try using a hover event to set an id and then use that.
Application server : windows 2008 server R2 - 64 bit
Oracle client 10g : 64 bit
Visual Studio 2010 : 64 bit
Client side : 32 bit-XP
Successfully running the code on application server for oracle connectivity.
But after IIS configuration of application server while accessing application from client side not
connecting with oracle database.
It does not display the reports generated from Oracle on 32-bit XP
But it shows on 64-bit Win Server 2008.
Anybody help me??
I have never failed,I just found 1000 ways that never works.
I have a Temp Folder in my solution and i copied one file into Temp Folder, i need to open copied file through code.
I tried with File.Open(),but it is not opening file.
Please suggest me better way to do this.
If it is a ASPNET based solution (a website), you will need proper permissions to access temp folder. Check the app pool for your web site and identity/logon-user under which app pool is running. Make sure the identity has rights to access temp folder and files under that folder.