|
i want to get the contains of XML file into Html tag.the summary is tht i develop a template site whn user filled his/her detail into asp.net web page and submit them thn a web page is ready for the user according to his/her detail as well as store into sql server 2005. thn i think we store his detail into database and create a xml file according to his detail.after tht i want to get these detail into html page bcoz we give tht web page copy to the user.
Deepak
|
|
|
|
|
you can use xml control to do this. the xml control has two properties
document src file--->you have to give the xml file here
transporm source file ---- give xslt file here
do you know this or want furthur help?
Nizha
|
|
|
|
|
I have to display database values into textboxes,if db values are null,it should display a blank spaces in respective txtboxes,how to compare
Txtpays.Text = ds.Tables("employee").Rows(r)("Pay_Scale")
if pay_scale is null,how to check before display
,give me correct solution
-- modified at 3:58 Wednesday 27th September, 2006
|
|
|
|
|
You can check that using DBNull.Value
Best Regards,
Apurva Kaushal
|
|
|
|
|
I have that idea,but it gives boolean value,i need to display if null,a blank space ,otherwise watever value in hat column.
so for each column display am i need to check and display????
How to check and display as per my requirement
|
|
|
|
|
you can put that in a if statement and if it is true then set a blank space otherwise assign the specific value.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
You can filter this in the query itsef, as:
select isnull(fieldname,'') from tablename
Let me know whether it satisfies you
-- modified at 5:28 Wednesday 27th September, 2006
Know is Drop, Unknown is Ocean
|
|
|
|
|
In a web service we have a web method
[webmethod]<br />
public Myresponse SendTransaction(MyRequest req)
Here MyRequest and MyResponse classes are inherited from MyMessage class.
When we view the asmx file
http://localhost/DemoServiceExtended/DemoService.asmx?op=SendTransaction
The sample SOAP request and response xml does not list the public Fields in base class(MyMessage ).
How to make the base class fields available in listed XML.
|
|
|
|
|
can any one have any idea how to embed a flash file(.swf file)into asp.net page
i am using vs.net 2003
thanks in advance
i m pradip kishore from india,working in vb.net & asp.net
|
|
|
|
|
|
HI
Guys can any one let me know is there any tool available for monitoring state service and asp.net worker process , plzzzzzzz let me know ASP,thankx in advance.
|
|
|
|
|
|
Hi all! pls guide me to a spell checker. Found some on the net but there are issues like one is using query string to pass the text to check its spelling, other is using vbscript which is not supported by all browsers, and another one is using Ms word.Pls provide me a link which solves all these issues.
Many Thanks!!
|
|
|
|
|
|
Hi All,
When I Export DataGrid to Excel ,the DataGrid contains pound symbol(£).But After exporting the data to excel an unwanted character  comes prefixing the pound symbol.
can anyone please help me in eleminating the unwanted symbol.
I am attaching the code which i used for exporting.
Thank You
Reagrds,
Diffin
Ihe first step is to insert a <div > that embeds the entire Nested GridView:
<div id="divNestedGrid" runat="server">
<asp:GridView id=.. >
...
<asp:GridView .... />
---
</asp:GridView>
</asp:GridView>
</div>
Next step is add a hidden variable in the same aspx form.
<input type="hidden" id="hdnInnerHtml" value="" runat="server" />
Now add a javascript function that in the aspx that fills the hidden variable with the inner html of the div.
function getInnerHtml()
{
var element = document.getElementById("divpreview");
var store = document.getElementById("hdnInnerHtml");
//add the css styles you have used inside the nested GridView
var css = "<style type=\"text/css\" id=\"style1\">.textbold {font-family: Arial, Helvetica, sans-serif;font-size: 11px;color: #000000;font-weight: bold;text-decoration: none;}.row1 {background-color: #FFFFFF; font-family: Arial, Helvetica, sans-serif;font-size: 11px;color: #000000;height: 18px;padding-left: 5px;}.;
store.value = css + element.innerHTML;
}
Now in the Code Behind, first add the javascript function to be triggered on the click on the Export button.
btnExport.Attributes.Add("OnClick", "getInnerHtml();");
Finally, write the following code in the Export Button click event, to Export to Excel:
string html = hdnInnerHtml.Value;
Response.Cache.SetExpires(DateTime.Now.AddSeconds(1));
Response.Clear();
Response.AppendHeader("content-disposition", "attachment;filename=FileName.xls");
Response.Charset = "";
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentType = "application/vnd.ms-excel";
this.EnableViewState = false;
Response.Write("\r\n");
Response.Write(html);
Response.End();
|
|
|
|
|
You may need to set the ContentEncoding property of the Response object with Encoding.Default or Encoding.UTF7 .
|
|
|
|
|
Hi,
Thank you so much for solving my problem.
I was at the back of this problem for so long and badly needed a solution.
Thank you again.
Regards,
Diffin
|
|
|
|
|
I made a custom button control using ASP.NET 1.1. I use the control in the form. When I drag and drop it from toolbox the HTML generated like follows:
<cc1:MyButton id="MyButton1" runat="server"></cc1:MyButton>
As this tag doesn't have "Text" property. The form at runtime doesn't show me the Text assigned to it.
So how could I be able to make the default behavior of the control, so that when it is draged and dropped from toolbox, it would have the following HTML:
<cc1:MyButton id="MyButton1" Text="MyButton" runat="server"></cc1:MyButton>
The Text property of web control code has been defined, and code looks like:
[DefaultProperty("Text"),
ToolboxData("<{0}:MyButton Text=Button runat=server></{0}:MyButton>"),
Designer(typeof (MyButtonDesigner)),
DefaultEvent("Click")]
public class MyButton : System.Web.UI.WebControls.WebControl, INamingContainer
{
///Code
}
Sandip Kansara
Software Engineer
India.
|
|
|
|
|
Simply add to the ToolboxData attribute like this:
ToolboxData("<{0}:MyButton Text=Button runat=server Text=\"MyButton\" ></{0}:MyButton>"),
|
|
|
|
|
Hi
How can i display client system time
When he open the site
THX
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
|
Hi,
By using the Javascript we can able to do this. Just check the below code help's you.
<title>Untitled Document
function clock()
{
var date = new Date()
var hour = date.getHours()
var minute = date.getMinutes()
var second = date.getSeconds()
if (hour > 12) {
hour = hour - 12
}
if (minute < 10) {
minute = "0" + minute
}
if (second < 10) {
second = "0" + second
}
document.f.txt.value = hour + ":" + minute + ":" + second
setTimeout("clock()", 1000)
}
If you want more just visit the link:
http://www.codegrounds.com/articles/2/1/Client-Side-system-time-using-Javascript[^]
Know is Drop, Unknown is Ocean
|
|
|
|
|
how can i apply 'bold' to the selected text in label control.
After some navigation to other pages,when i come back to label control page,that bold should remain as it is to the selected text.
kamalnath
|
|
|
|
|
HI Guys can any any one plz let me know the reason for this Dot net run time exception
"The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: .NET Runtime version 1.1.4322.2032- Setup Error: Failed to load resources from resource file Please check your Setup."
thankx in advance for ur help.
|
|
|
|
|
hello all,
how to export data to excel and import data from excel "cell by cell"
without using interop components(owc) or any 3rd party component,pls let me knw
Regards,
Kavitha
|
|
|
|