Click here to Skip to main content
14,979,301 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: can anyone help me with folder path file problem>? Pin
nyogeswar29-Mar-07 20:43
Membernyogeswar29-Mar-07 20:43 
GeneralRe: can anyone help me with folder path file problem>? Pin
neodeaths29-Mar-07 21:03
Memberneodeaths29-Mar-07 21:03 
GeneralRe: can anyone help me with folder path file problem>? Pin
nyogeswar29-Mar-07 21:09
Membernyogeswar29-Mar-07 21:09 
Questionhow to know id of dynamically created web server control on client side using javascript when sever control is on aspx page & that aspx page in MasterPage Pin
BalasahebK29-Mar-07 19:15
MemberBalasahebK29-Mar-07 19:15 
AnswerRe: how to know id of dynamically created web server control on client side using javascript when sever control is on aspx page & that aspx page in MasterPage Pin
nyogeswar29-Mar-07 19:56
Membernyogeswar29-Mar-07 19:56 
GeneralRe: how to know id of dynamically created web server control on client side using javascript when sever control is on aspx page & that aspx page in MasterPage Pin
BalasahebK29-Mar-07 20:26
MemberBalasahebK29-Mar-07 20:26 
GeneralRe: how to know id of dynamically created web server control on client side using javascript when sever control is on aspx page & that aspx page in MasterPage [modified] Pin
nyogeswar29-Mar-07 20:34
Membernyogeswar29-Mar-07 20:34 
GeneralRe: how to know id of dynamically created web server control on client side using javascript when sever control is on aspx page & that aspx page in MasterPage Pin
BalasahebK29-Mar-07 21:06
MemberBalasahebK29-Mar-07 21:06 
I'll try and get back to u.

Before that, I want to explain another situation.

The javascript function which is working perfectly for physical page (not dynamic)

function callcal(obj,objTxt)
{
//alert(obj.id + " " + objTxt);
var curleft = curtop = 0;
if (obj.offsetParent)
{
curleft = obj.offsetLeft
curtop = obj.offsetTop
while (obj = obj.offsetParent)
{
curleft += obj.offsetLeft
curtop += obj.offsetTop
}
}

//var objtxtid = document.getElementById(objTxt);
//alert(objTxt + " " + objtxtid );
var x= document.getElementById(objTxt).value ;
var y= document.forms[0].name;
window.open("DatePicker.aspx?Form="+ y + "&Field="+objTxt+"&Value=" + x + "&hField=<%=hfTargetResponsedate.ClientID %>","","top="+ curtop +", left= "+ curleft +" width=280, height=190, status=0");

return false;
}


Here u find objTxt & x. Forget about IF part inside function, just concentrate on 'x=' part. The x returns null on function call.

Now how this function gets called?

string strImage = "";
strImage = strImage + " ";
HtmlAnchor objAnc = new HtmlAnchor();
objAnc.ID = "lnkDate" + strCtrlID;
//objAnc.Name = strCtrlID;
objAnc.InnerHtml = strImage;
objAnc.Style.Add("text-decoration", "none");

//txtTargetResponseDate

objAnc.Attributes.Add("onclick", "javascript:return callcal(this,'" + txtloc.ClientID + "')");

clChield2.Controls.Add(objAnc);

Look for callcal function above for objAnc and I send clientID of textbox which is dynamically created.

Please let me know about ur view/solution

Regards
BalasahebSmile | :)

By click on image, it should open popup with proper page size

Balasaheb
Software Developer
Platform: Asp.net,vb.net
Database: SQL Server 2000

GeneralRe: how to know id of dynamically created web server control on client side using javascript when sever control is on aspx page &amp; that aspx page in MasterPage Pin
nyogeswar29-Mar-07 21:19
Membernyogeswar29-Mar-07 21:19 
GeneralRe: how to know id of dynamically created web server control on client side using javascript when sever control is on aspx page &amp; that aspx page in MasterPage Pin
BalasahebK29-Mar-07 23:20
MemberBalasahebK29-Mar-07 23:20 
QuestionNeed Answers Pin
siddisagar29-Mar-07 19:05
Membersiddisagar29-Mar-07 19:05 
QuestionActiveX Control in Web Application Pin
liliblacsharp29-Mar-07 18:45
Memberliliblacsharp29-Mar-07 18:45 
QuestionTreeview with Javascript Pin
khweb29-Mar-07 18:16
Memberkhweb29-Mar-07 18:16 
QuestionDoubt in Datagrid Pin
yaminilatha29-Mar-07 18:05
Memberyaminilatha29-Mar-07 18:05 
AnswerRe: Doubt in Datagrid Pin
Sun Rays29-Mar-07 18:45
MemberSun Rays29-Mar-07 18:45 
GeneralRe: Doubt in Datagrid Pin
yaminilatha29-Mar-07 21:20
Memberyaminilatha29-Mar-07 21:20 
QuestionCreate version string Pin
Sun Rays29-Mar-07 17:59
MemberSun Rays29-Mar-07 17:59 
Questionitemtemplate coloumn in datagrid Pin
yaminilatha29-Mar-07 17:45
Memberyaminilatha29-Mar-07 17:45 
AnswerRe: itemtemplate coloumn in datagrid Pin
Sun Rays29-Mar-07 18:02
MemberSun Rays29-Mar-07 18:02 
GeneralRe: itemtemplate coloumn in datagrid Pin
yaminilatha29-Mar-07 21:27
Memberyaminilatha29-Mar-07 21:27 
GeneralRe: itemtemplate coloumn in datagrid Pin
Sun Rays30-Mar-07 1:22
MemberSun Rays30-Mar-07 1:22 
QuestionGlobal.asax , web.config Pin
yaminilatha29-Mar-07 17:43
Memberyaminilatha29-Mar-07 17:43 
AnswerRe: Global.asax , web.config Pin
MinhajuddinK29-Mar-07 17:51
MemberMinhajuddinK29-Mar-07 17:51 
GeneralRe: Global.asax , web.config Pin
yaminilatha29-Mar-07 21:24
Memberyaminilatha29-Mar-07 21:24 
QuestionIs it possible to create a Control application for another application? Pin
vbss7529-Mar-07 17:13
Membervbss7529-Mar-07 17:13 

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.