Some times we are opening pages in new window by using javascript when we click on links. in this case some times we have to get the data(values) from parent window. this is posible by javascript.
parent window code
<html xmlns=”http://www.w3.org/1999/xhtml” >
<head runat=”server”>
<title>Untitled Page</title>
<script type=”text/javascript” language=”javascript”>
function openWindow()
{
window.open(‘child.aspx’,’Preview’,’scrollbars=yes,toolbar=no,width=50,height=50,top=40,left=40′);
}
</script>
</head>
<body>
<form id=”form1″ runat=”server”>
[...]
Archive for August, 2008
Getting Data into child window from parent window by using javascript.
Posted in Java Script on August 26, 2008 | Leave a Comment »
Adding Items to Infragistics UltraWebListBar Dynamically.
Posted in Uncategorized on August 25, 2008 | Leave a Comment »
we can add items to ultraweblist directly if items are static is as follows.
<iglbar:UltraWebListbar ID=”UltraWebListbar1″ runat=”server” BorderWidth=”4px” Height=”350px”
ViewType=”ExplorerBar” Width=”236px” BarWidth=”100%” BorderStyle=”None” GroupSpacing=”5px”
ItemIconStyle=”SmallWithInsetText” MergeStyles=”True” HeaderClickAction=”ExpandOnClick”>
<Groups>
<iglbar:Group Text=”&nbsp;Module1″ TextAlign=”Left”>
<Labels Collapsed=”” Expanded=”” Selected=”” />
<Items>
<iglbar:Item Text=”<img src=’images/image1.gif’ alt=” height=’22px’ width=’22px’ /> Sub Module 1″ TargetUrl=”page1.aspx”>
<Labels Selected=”” />
</iglbar:Item>
<iglbar:Item Text=”<img src=’images/image2.gif’ alt=” [...]
Sending Mail without SMTP Server Details
Posted in Uncategorized on August 14, 2008 | Leave a Comment »
Hi in this post i am telling how to send a mail without using smtp server. this is possible in web application i didn,t check in windows. By using System.web.Mail namespace it is possible
code in VB.Net
Imports System.Web.Mail
Public Shared Function SendEmail(ByVal FromAddress As String, ByVal ToAddress As String, ByVal CCAddress, ByVal BccAddress, ByVal EmailSubject As String, [...]
Exporting grid to Excel
Posted in Uncategorized on August 13, 2008 | Leave a Comment »
This is to get the gridview values of your page in to microsoft excel. Recently i tried this. we can export values from gridview or DataList or any DataRenderControl. For this code is as follows..
first in aspx page put a gridview and a button to export to excel and in page load bind data to [...]