Click here to Skip to main content
15,916,941 members
Home / Discussions / C#
   

C#

 
GeneralRe: Export Excel without Excel Pin
Seb.2615-Jun-06 5:37
Seb.2615-Jun-06 5:37 
AnswerRe: Export Excel without Excel Pin
Josh Smith15-Jun-06 5:35
Josh Smith15-Jun-06 5:35 
QuestionResource Management Issue [modified] Pin
Archambault15-Jun-06 4:03
Archambault15-Jun-06 4:03 
QuestionUniversal Time??? Pin
hung_ngole15-Jun-06 3:51
hung_ngole15-Jun-06 3:51 
AnswerRe: Universal Time??? Pin
Dan Neely15-Jun-06 4:04
Dan Neely15-Jun-06 4:04 
Questionquestion Pin
kjosh15-Jun-06 3:49
kjosh15-Jun-06 3:49 
AnswerRe: question Pin
Drew McGhie15-Jun-06 4:49
Drew McGhie15-Jun-06 4:49 
QuestionHow to get a pop-up window in c#.net and pass values to it from DataList parameters Pin
tedhill1315-Jun-06 3:27
tedhill1315-Jun-06 3:27 
I can perfectly call a new web page from a Hyperlink control inside a DataList control and pass two values to it by using this code:

___________________________________________________________
...
<asp:DataList ID="promotionlist" Runat="server" >
<ItemTemplate>
.
.
.
<asp:HyperLink ID="HyperLink1" Runat="server" NavigateUrl='<%# "../NewWebPage.aspx?Title=" + Eval("Title") + "&Price=" + Eval("Price") %>'>

<img width="74" height="24" src="Images/newwebpage.gif" border="0"/>

</asp:HyperLink>
.
.
.
</ItemTemplate>
</asp:DataList>
...
___________________________________________________________


But the problem with that is that it replaces the current web page ( web form ) which defeats my purpose.

I need the new page to appear in a (((pop-up window ))) and also receive the values “Title” and “Price” that are received through the “Eval()” function.

I did not find any C# function like the javascript one ( window.open()) so I tried an inline javascript code with inline C# insertions but it does not work.

I am not sure if the culprit is the syntax or it is impossible to concatenate strings in inline javascript with values obtained by inline C# code like (<%#Eval("Title") %>).

I would be grateful to whom could suggest a simple and elegant solution or correct the syntax of my code.

Here is my current tentative code ( it does not work ):

__________________________________________________________

<a href='' onclick = "window.open('NewWebPage.aspx?Title='+<%# Eval("Title") %>+'&Price='+<%# Eval("Price")%>)">

<img width="74" height="24" src="Images/newwebpage.gif" border="0"/>

</a>
..
___________________________________________________________


AnswerRe: How to get a pop-up window in c#.net and pass values to it from DataList parameters Pin
Elina Blank15-Jun-06 4:01
sitebuilderElina Blank15-Jun-06 4:01 
GeneralRe: How to get a pop-up window in c#.net and pass values to it from DataList parameters Pin
tedhill1315-Jun-06 4:21
tedhill1315-Jun-06 4:21 
AnswerRe: How to get a pop-up window in c#.net and pass values to it from DataList parameters Pin
Elina Blank15-Jun-06 4:25
sitebuilderElina Blank15-Jun-06 4:25 
GeneralRe: How to get a pop-up window in c#.net and pass values to it from DataList parameters Pin
tedhill1315-Jun-06 5:03
tedhill1315-Jun-06 5:03 
GeneralRe: How to get a pop-up window in c#.net and pass values to it from DataList parameters Pin
Elina Blank15-Jun-06 5:12
sitebuilderElina Blank15-Jun-06 5:12 
Questiondrawing on tab control Pin
donkaiser15-Jun-06 3:26
donkaiser15-Jun-06 3:26 
AnswerRe: drawing on tab control Pin
donkaiser15-Jun-06 4:29
donkaiser15-Jun-06 4:29 
QuestionCreating a Bitmap from IntPtr to unmanaged memory: issues [modified] Pin
Jon Hulatt15-Jun-06 3:06
Jon Hulatt15-Jun-06 3:06 
AnswerRe: Creating a Bitmap from IntPtr to unmanaged memory: issues Pin
Guffa15-Jun-06 3:27
Guffa15-Jun-06 3:27 
GeneralRe: Creating a Bitmap from IntPtr to unmanaged memory: issues Pin
Florian Storck26-Jun-06 4:50
Florian Storck26-Jun-06 4:50 
QuestionCheckbox Column in DataGridView Pin
paas15-Jun-06 2:30
paas15-Jun-06 2:30 
AnswerRe: Checkbox Column in DataGridView Pin
paas15-Jun-06 3:41
paas15-Jun-06 3:41 
QuestionHow to get Page Title using WebBrowser control Pin
VenkataRamana.Gali15-Jun-06 0:57
VenkataRamana.Gali15-Jun-06 0:57 
AnswerRe: How to get Page Title using WebBrowser control Pin
Alexander Wiseman15-Jun-06 5:36
Alexander Wiseman15-Jun-06 5:36 
QuestionHow to use a variable declared in one from to other form? Pin
praveenqwe15-Jun-06 0:34
praveenqwe15-Jun-06 0:34 
AnswerRe: How to use a variable declared in one from to other form? Pin
albCode15-Jun-06 0:53
albCode15-Jun-06 0:53 
AnswerRe: How to use a variable declared in one from to other form? Pin
NaNg1524115-Jun-06 0:54
NaNg1524115-Jun-06 0:54 

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.