Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
GeneralRe: StringBuilder ' escape sequence Pin
StyleGuide20-May-08 23:48
StyleGuide20-May-08 23:48 
GeneralRe: StringBuilder ' escape sequence Pin
Vikram A Punathambekar21-May-08 0:07
Vikram A Punathambekar21-May-08 0:07 
GeneralRe: StringBuilder ' escape sequence Pin
dan!sh 21-May-08 0:07
professional dan!sh 21-May-08 0:07 
GeneralRe: StringBuilder ' escape sequence Pin
StyleGuide21-May-08 0:19
StyleGuide21-May-08 0:19 
Questionchange text in .rtf file using c# code Pin
kamalesh574320-May-08 22:41
kamalesh574320-May-08 22:41 
AnswerRe: change text in .rtf file using c# code Pin
Christian Graus20-May-08 23:23
protectorChristian Graus20-May-08 23:23 
QuestionActive Accessibility thru c# / Getting FIrefox URL Pin
mihir raut20-May-08 21:35
mihir raut20-May-08 21:35 
QuestionHelp Needed With Popup Pin
sanchit_mum0720-May-08 21:33
sanchit_mum0720-May-08 21:33 
hi all,

on my aspx page which is a child page of a master page.
i have a textbox say "TextBox1" with that i have one button say "Button1"

now on ClientClick on Button1 i want to open a popup which will have some list box say "LSt1" and a button say "OK"

as user selects some option from lst1 and clicks on Ok then those selected values should come in Textbox1 without any page refresh.

I am able to do this all but only the problem is my base page is postbacking itself.

A glimpse of code i m trying to use:

main aspx page>>>>

function OpenNewPopUpWindow(Url)
{
var Attributes='width=400,height=300,left=200,top=200,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,copyhistory=yes, resizable=no';
window.open(Url,"PoPup",Attributes);

}

asp:Button ID="btntxtFindingsComments" runat="server" CausesValidation="False" Text="..."/>

main aspx.cs page>>
btntxtFindingsComments.Attributes.Add("onClick", "javascript:OpenNewPopUpWindow('PoPup.aspx?Id=" + txtFindings.ClientID + "&CommentId=901');");

Popup.aspx>>

function LoadValues(clientCtrl, selectedValue)
{
window.opener.document.getElementById(clientCtrl).value = selectedValue;
self.close();
}




<asp:listbox id="lstTIPComments" runat="server" appenddatabounditems="false">

<asp:button id="Button1" runat="server" text="Close" onclick="Button1_Click">


popup.aspx.cs>>
protected void Button1_Click(object sender, EventArgs e)
{
string selectedValue = "";
for (int i = 0; i < lstTIPComments.Items.Count; i++)
{
if (lstTIPComments.Items[i].Selected == true)
{
selectedValue = " " + selectedValue + lstTIPComments.Items[i].Text + " ";
}
}

Page.ClientScript.RegisterStartupScript(this.GetType(), "close", "LoadValues('" + Request.QueryString["Id"].ToString() + "','" + selectedValue + "');");


}
AnswerRe: Help Needed With Popup Pin
Christian Graus20-May-08 22:02
protectorChristian Graus20-May-08 22:02 
Questionhow to select event of controls Pin
please help20-May-08 21:02
please help20-May-08 21:02 
AnswerRe: how to select event of controls Pin
Mr.Kode20-May-08 21:06
Mr.Kode20-May-08 21:06 
GeneralRe: how to select event of controls Pin
please help20-May-08 21:20
please help20-May-08 21:20 
GeneralRe: how to select event of controls Pin
Nouman Bhatti20-May-08 21:31
Nouman Bhatti20-May-08 21:31 
GeneralRe: how to select event of controls Pin
Christian Graus20-May-08 23:24
protectorChristian Graus20-May-08 23:24 
Questionproblem with SQLparameter Pin
Mr.Kode20-May-08 20:47
Mr.Kode20-May-08 20:47 
AnswerRe: problem with SQLparameter Pin
Nouman Bhatti20-May-08 21:34
Nouman Bhatti20-May-08 21:34 
QuestionConvert pdf file to image format Pin
needhi_p20-May-08 19:25
needhi_p20-May-08 19:25 
AnswerRe: Convert pdf file to image format Pin
Vikram A Punathambekar20-May-08 19:43
Vikram A Punathambekar20-May-08 19:43 
QuestionThreading problem [modified] Pin
MarkB77720-May-08 17:06
MarkB77720-May-08 17:06 
QuestionRe: Threading problem Pin
Vikram A Punathambekar20-May-08 18:35
Vikram A Punathambekar20-May-08 18:35 
AnswerRe: Threading problem Pin
MarkB77720-May-08 18:47
MarkB77720-May-08 18:47 
GeneralRe: Threading problem Pin
Vikram A Punathambekar20-May-08 18:57
Vikram A Punathambekar20-May-08 18:57 
GeneralRe: Threading problem Pin
MarkB77720-May-08 19:03
MarkB77720-May-08 19:03 
GeneralRe: Threading problem Pin
Laddie20-May-08 19:01
Laddie20-May-08 19:01 
GeneralRe: Threading problem Pin
MarkB77720-May-08 19:07
MarkB77720-May-08 19:07 

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.