Click here to Skip to main content
15,896,310 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Hi Friends i want to create a web application Pin
Rockstar_9-Oct-12 19:18
professionalRockstar_9-Oct-12 19:18 
GeneralRe: Hi Friends i want to create a web application Pin
VinothData11-Oct-12 19:37
VinothData11-Oct-12 19:37 
QuestionHow to set the x, y positions of the dynamic control Pin
Shashank Srivastava1)9-Oct-12 0:44
Shashank Srivastava1)9-Oct-12 0:44 
AnswerRe: How to set the x, y positions of the dynamic control Pin
n.podbielski9-Oct-12 0:59
n.podbielski9-Oct-12 0:59 
AnswerRe: How to set the x, y positions of the dynamic control Pin
jkirkerx9-Oct-12 11:20
professionaljkirkerx9-Oct-12 11:20 
GeneralRe: How to set the x, y positions of the dynamic control Pin
Shashank Srivastava1)10-Oct-12 2:10
Shashank Srivastava1)10-Oct-12 2:10 
GeneralRe: How to set the x, y positions of the dynamic control Pin
jkirkerx10-Oct-12 6:49
professionaljkirkerx10-Oct-12 6:49 
GeneralRe: How to set the x, y positions of the dynamic control Pin
Shashank Srivastava1)10-Oct-12 2:19
Shashank Srivastava1)10-Oct-12 2:19 
Below is the details of what i'm trying to do.

Details:

I'm creating draggable panels making the use of Ajax DargPanelExtender.

DragPanelExtender & the Panel which i'm making draggable are in a usercontrol within a update panel.

Now, on the content page (.aspx page) I have a button & a Update panel. Within this update panel I'm adding usercontrol from code behind. (Note: Button is outside the update panel)

The draggable panels(usercontrol) added on the content page is working fine.

Earlier when I was creating the successive draggable panels on the click event of the button the previous draggable panels were disapperaring (or loosing) so I am re-creating the draggable panels(usercontrol) on OnInIt event which is also working fine.

On the Usercontrol I'm also having two hiidenfields for storing the x & y positions of the usercontrol respectively.

I'm retrieving the x & y positions of the usercontrol into the hiddenfields (present in the usercontrol) using javascript which I have registered on the aspx.cs page using RegisterClientScriptBlock. Which is also working fine I'm able to get the position of each usercontrol into the hiddenfields on onmousedown event( being fired while drag and drop) . Checked via populating the x & y positions present in the hiddenfields into a alert box.

Now, issue is that while I'm re-creating the usercontrols saved in a Generic type I want to set the Left and Top property of the control using the values present in the hiddenfields corresponding to each usercontrol as in the code below so that they may retain their positions on the AsyncPostBack

string hdfposX_val = "(" + controlToAdd.ID + "_hdfPosX"+").Value";
controlToAdd.Attributes.Add("style", "position:absolute;left:" +hdfposX_val+ "px" + ";");

which is not working.

(Note : each usercontrol and its containing hiddenfield controls are having unique ids viz.

usercontrol-> controlToAdd.ID = "usercontrol_" + Guid.NewGuid().ToString();

usercontrol_hiddenfield_position_X-> " + controlToAdd.ID + "_hdfPosX"+"

usercontrol_hiddenfield_position_Y-> " + controlToAdd.ID + "_hdfPosY"+")

Any help from your side will be appreciable.
GeneralRe: How to set the x, y positions of the dynamic control Pin
jkirkerx10-Oct-12 7:01
professionaljkirkerx10-Oct-12 7:01 
QuestionSorting a generic list of objects depending upon its one of objects property Pin
indian1438-Oct-12 21:32
indian1438-Oct-12 21:32 
AnswerRe: Sorting a generic list of objects depending upon its one of objects property Pin
n.podbielski8-Oct-12 21:52
n.podbielski8-Oct-12 21:52 
GeneralRe: Sorting a generic list of objects depending upon its one of objects property Pin
indian1438-Oct-12 21:58
indian1438-Oct-12 21:58 
SuggestionRe: Sorting a generic list of objects depending upon its one of objects property Pin
n.podbielski8-Oct-12 22:15
n.podbielski8-Oct-12 22:15 
Questiondoes form view shows only one record at a time? Pin
UDTWS8-Oct-12 18:18
UDTWS8-Oct-12 18:18 
AnswerRe: does form view shows only one record at a time? Pin
n.podbielski8-Oct-12 23:36
n.podbielski8-Oct-12 23:36 
QuestionHow to make some part of textbox text to read only and other part to be editable Pin
vinay_sinha8-Oct-12 7:25
vinay_sinha8-Oct-12 7:25 
AnswerTextbox may not be the correct control Pin
David Mujica8-Oct-12 8:32
David Mujica8-Oct-12 8:32 
AnswerRe: How to make some part of textbox text to read only and other part to be editable Pin
AspDotNetDev8-Oct-12 11:51
protectorAspDotNetDev8-Oct-12 11:51 
GeneralRe: How to make some part of textbox text to read only and other part to be editable Pin
n.podbielski8-Oct-12 23:57
n.podbielski8-Oct-12 23:57 
AnswerRe: How to make some part of textbox text to read only and other part to be editable Pin
gjllyl9-Oct-12 17:12
gjllyl9-Oct-12 17:12 
GeneralRe: How to make some part of textbox text to read only and other part to be editable Pin
vinay_sinha9-Oct-12 19:19
vinay_sinha9-Oct-12 19:19 
Questionasp.net 4 with sql server 2008 Pin
lillain2198-Oct-12 5:32
lillain2198-Oct-12 5:32 
AnswerRe: asp.net 4 with sql server 2008 Pin
Sarvesh Kushwaha8-Oct-12 5:49
Sarvesh Kushwaha8-Oct-12 5:49 
GeneralRe: asp.net 4 with sql server 2008 Pin
lillain2198-Oct-12 9:10
lillain2198-Oct-12 9:10 
AnswerRe: asp.net 4 with sql server 2008 Pin
Vasudevan Deepak Kumar9-Oct-12 7:18
Vasudevan Deepak Kumar9-Oct-12 7:18 

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.