|
Hi,
Refer to the following example and see if it helps with your code:
Myxml.xml:-
<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="Myxsl.xsl" version="1.0"?>
<NewDataSet>
<Row>
<customerID>8</customerID>
<customerName>Wily Widgets</customerName>
</Row>
<Row>
<customerID>9</customerID>
<customerName>Willy Wonka</customerName>
</Row>
</NewDataSet>
Myxsl.xsl:-
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/NewDataSet">
<HTML>
<BODY>
<TABLE border="1" cellspacing="2" cellpadding="1" width="100%">
<TR >
<xsl:for-each select="Row">
<TD><xsl:value-of select="customerID"/></TD>
<TD><xsl:value-of select="customerName"/></TD>
<TR></TR>
</xsl:for-each>
</TR>
</TABLE>
</BODY>
</HTML>
</xsl:template>
</xsl:stylesheet>
Create the above 2 files and view the Myxml.xml in the browser ...See if this example helps you with your problem
--Dimple
-- modified at 4:49 Thursday 6th July, 2006
|
|
|
|
|
Thankx Dimple it was easy but i didn't know abt it thankx once again
|
|
|
|
|
Hi
Is any version of sharepoint compatible with Windows xp?
please suggest some link where from can i get the installable
Thanks
jiny
|
|
|
|
|
mehnazash wrote: Is any version of sharepoint compatible with Windows xp?
No, you'll need Windows Server OS to install. If Windows XP is currently running on your box, you can install a Virtual PC with Windows Server, then install SharePoint.
SharePoint Portal System Requirements[^]
|
|
|
|
|
Can any body tell how to do recieving mails concept in Asp.Net. Thanks in advance
Thanks and Regards
Venkat
|
|
|
|
|
What do you need?
................
|
|
|
|
|
i want to build an application to recieve mails in asp.net
Thanks and Regards
Venkat
|
|
|
|
|
Yes
This is example
<%@ Import Namespace="System.Web.Mail" %>
Dim objEmail as New MailMessage()
objEmail.To ="webmaster@khmerfriend.com"
objEmail.From = txtEmail.Text
objEmail.BodyFormat = MailFormat.HTML
objEmail.Body = "Re:"
objEmail.Priority = MailPriority.High
SmtpMail.SmtpServer = "localhost"
Try
SmtpMail.Send(objEmail)
lblSuccess.Text="Your email has been sent successful."
Catch ex As Exception
lblSuccess.Text="Sending failed " & ex.Message
End Try
End Sub
................
|
|
|
|
|
i wanted to create an interface in the vb.net 1.1.But I don't know the utility of interfaces. Can somebody please tell the application for using the interfaces in the vb.net 1.1.
Thanks
|
|
|
|
|
hi buddies
my problem is that i've to make a web application in which the server sends the request to the client and as the message reaches the client a pop up should come.
i am getting no idea about it.i thought of something related to chat server program but i did'nt found any program which is in asp.net.
kindly help me out as soon as possible.
Thanks in advance .
bye
nauty
|
|
|
|
|
|
There are many POP UP Menus programs in this website. you can download any such popup program and then connect it in your original project A/C to your need
aLi
|
|
|
|
|
Can anyone please tell me how to give serial numbers to a datagrid. dont misunderstand as paging in datagrid. I should have an extra field in the front showing the serial numbers based on the number of fields in the datagrid.
Thank you,
Vipin
|
|
|
|
|
|
Thank u so much for ur fast reply,
But if u dont mind can u plz send me the code as to how to do that.Please.I understood what u told but i dont know how to do it.
Vipin
|
|
|
|
|
You could just add a bound column that displays the primary key from the database, obviously this assumes your datasource is a db query.
|
|
|
|
|
Hey guys iw as wondering if someone could help me. I am trying to execute a sql query when i visit the site and display the results in xml format. I am able to go as far as filling the results into the dataset but i don't know how to Display the results as xml on the page.
#region Strings
string command = "SELECT DES from [DATABASE]";
#endregion
SqlConnection dataConnection = new SqlConnection();
dataConnection.ConnectionString = @"Data Source=ADMINPC\SQLExpress;Initial Catalog=warezdb;Integrated Security=True";
SqlCommand sqlcommand = new SqlCommand(command, dataConnection);
SqlDataAdapter adapter = new SqlDataAdapter(sqlcommand);
DataSet pubs = new DataSet();
#region Execute
try
{
dataConnection.Open();
adapter.Fill(pubs);
}
catch (Exception er)
{
Response.Write(er.Message);
}
finally
{
dataConnection.Close();
}
#endregion
Thanks In Advance For Your Help,
TeeJay
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
+ Use the DataSet.GetXml[^] method to get data stored in the dataset in xml format.
+ Write out the result to the outputstream of the Response object, you may also sepcify the ContentType of the output as text/xml .
|
|
|
|
|
thanks man i appreciate it
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
Hi! I want to do a report generation, when the user click the view report button, the datagrid will be transfered to another webform in C#.
I am using code behind. Here is the partial code for frm_First.aspx.cs. (Assuming I have connected the database to the datgrid)
<code>private void display()
{
..........
this.GridData = this.dgDisplay.DataSource;
..........
}
private void btnReport_Click(object sender, System.EventArgs e)
{
Server.Transfer("frm_Report.aspx");
}
public object GridData
{
set
{
this.gridData = value;
}
get
{
return this.gridData;
}
}
Whereas at the frm_Report,
namespace project
{
public class frm_Report : System.Web.UI.Page
{
......................
project.frm_First objSendingPage;
private void Page_Load(object sender, System.EventArgs e)
{
this.objSendingPage = new frm_First();
receivingDG.DataSource = objSendingPage.GridData;
receivingDG.DataBind();
}
}</code>
thanks in advance. Much appreciated.
-- modified at 21:24 Wednesday 5th July, 2006
|
|
|
|
|
blurMember wrote: this.objSendingPage = new frm_First();
To get reference to the source page, you basically cast the Context.Handler to the source page type. In the ASP.NET 2.0, you can use the Page.PreviousPage property.
|
|
|
|
|
Is the method like this?
private void Page_Load(object sender, System.EventArgs e) <br />
{<br />
if (!IsPostBack) <br />
{<br />
<br />
}<br />
objSendingPage = ((frm_ShowAttd)(Context.Handler));<br />
this.objSendingPage = new frm_ShowAttd();<br />
receivingDG.DataSource = objSendingPage.GridData;<br />
receivingDG.DataBind();<br />
}
thanks in advance. Much appreciated.
|
|
|
|
|
blurMember wrote: objSendingPage = ((frm_ShowAttd)(Context.Handler));
//this.objSendingPage = new frm_ShowAttd();
receivingDG.DataSource = objSendingPage.GridData;
receivingDG.DataBind();
You should comment out the second line as it initializes a new object.
|
|
|
|
|
Thanks. I have deleted the second line. But the same problem occur. The frm_Report stubborn to display the data in the datagrid. Have I done something wrong?
namespace project<br />
{<br />
public class frm_Report : System.Web.UI.Page<br />
{<br />
......................<br />
project.frm_First objSendingPage;<br />
<br />
private void Page_Load(object sender, System.EventArgs e) <br />
{<br />
if (!IsPostBack) <br />
{<br />
}<br />
objSendingPage = ((frm_ShowAttd)(Context.Handler));<br />
receivingDG.DataSource = objSendingPage.GridData;<br />
receivingDG.DataBind();<br />
}
The code at the frm_First.aspx.cs remain the same:
namespace project
{
public class frm_First : System.Web.UI.Page
{
.............
private object gridData;
}
......
}
Followed by the earlier code I commented.
thanks in advance. Much appreciated.
-- modified at 2:35 Thursday 6th July, 2006
|
|
|
|
|
blurMember wrote: But the same problem occur.
+ What is the problem? You didn't mention it IIRC.
+ How do you set the GridData property in the source page?
+ You can debug your application and step through your code in the Page_Load event handler.
|
|
|
|