<Columns>
<asp:TemplateField HeaderText="Tool Name" ItemStyle-HorizontalAlign="Left"
FooterStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:LinkButton ID="lnkToolProc" runat="server" CausesValidation="False" Text='<%#Eval("varToolName") %>'></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
I have js function which I called on this link button click, I pass toolname as ID from link button to popup window.
{
window.showModalDialog("ViewToolProcurement.aspx?id=" + id, "null", "status:no;dialogWidth:450px;dialogHeight:300px;dialogHide:true;help:no;scroll:no");
return false;
}
Problem : Its working fine but problem is some toolname contains special char in name ex : msdn 3.5&4.0 and "
Adobe® Digital Publishing Suite" So while getting toolname from request.querystring I am not getting complete name. Its break after special char. ex :
AT&T : getting only AT , missing T
Pradip Daingade188 pointsPosted Feb 6, 2014, 2:47 AM EST
private void Page_Load(object sender, System.EventArgs e) { // Insure that the __doPostBack() JavaScript method is created... this.GetPostBackEventReference(this, string.Empty); if ( this.IsPostBack ) { string eventTarget = (this.Request["__EVENTTARGET"] == null) ? string.Empty : this.Request["__EVENTTARGET"]; if ( eventTarget == "ChildWindowPostBack" ) Response.Write("Session: [" + this.Session["ChildWindowKey"] + "] "); } else { } }protected void postBackButton_Click(object sender, EventArgs e) { this.Session["ChildWindowKey"] = "Value from child window"; this.RegisterStartupScript("CloseWindowScript", ""); }hirdesh ronaldo3 pointsPosted Feb 6, 2014, 7:04 PM EST
Thanks for your reply...
but prob is I dont want to do anything on child window .. on child window just I am displaying record .... These record I am taking from database based on id passed from parenet page.
I dont think this solution works..
Please provide any other sol....
Thanks a lot for your reply...
Pradip Daingade188 pointsPosted Feb 6, 2014, 7:08 PM EST