|
Yes, it's like (NOTE: I am typing it by hand (as the code is not in my laptop right now), so please ignore any syntax errors )
namespace LSW
{
class SignUp : System.Web.UI.Page
{
...........
...........
and I trying to access it with inherits="LSW.SignUp" which throws unresolved symbol error.
strangely enough, as soon as I remove the namespace (from both the class and the inherits attribute), the code starts to work...
Warmest Regards,
- A programmer's national anthem; "AAAAAHHHHH!!!!"
|
|
|
|
|
Yes it happenes many times in 2005 you have partial class and class will not put in any namespace by default
see the code
<br />
namespace MyNameSpace<br />
{<br />
public partial class ForumTest : System.Web.UI.Page<br />
{<br />
int a = 0;<br />
string[] str ={ "January", "February", "March", "April" };<br />
strin<br />
<br />
and aspx page contains
<%@ Page Language="C#" EnableViewState="true" AutoEventWireup="true" CodeFile="ForumTest.aspx.cs" Inherits="MyNameSpace.ForumTest" %><br />
see all properties are rigth set
Again i alsp don't have answer to this but when i added namspace in my application it is rumming fine although i faced same problem few months before . No sooner did i got the answer i will let yoy know if you have do the same
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Thanks Sandeep, I'll be obliged. hope to hear from u soon...
- A programmer's national anthem; "AAAAAHHHHH!!!!"
|
|
|
|
|
Hi all,
i want to know 'how the page request fetch the data exactly from server only.
EX: i am typing in URL bar like "www.yahoo.com" then it will fetch the data from exactly from yahoo server only.no interaction with other servers. how it possible.
please tell me.
|
|
|
|
|
there is something called domain naming concept, explore that!
What if the you need to access a web server referred to as www.anothercomputer.com? How does your web browser know where on the Internet this computer lives? The answer to all these questions is the Domain Name Service or DNS. The DNS is a distributed database which keeps track of computer's names and their corresponding IP addresses on the Internet.
Many computers connected to the Internet host part of the DNS database and the software that allows others to access it. These computers are known as DNS servers. No DNS server contains the entire database; they only contain a subset of it. If a DNS server does not contain the domain name requested by another computer, the DNS server re-directs the requesting computer to another DNS server.
you can also refer: http://computer.howstuffworks.com/internet-infrastructure8.htm
-- modified at 3:28 Thursday 19th April, 2007
Gautham
|
|
|
|
|
hi Gautham,
Thanx for your valueble information
|
|
|
|
|
|
Use Javascript for this.
Regards,
Satips.
|
|
|
|
|
what do you mean by this post ?
|
|
|
|
|
Satips wrote: Use Javascript for this.
|
|
|
|
|
Sophia Rekhi wrote: am typing in URL bar like "www.yahoo.com" then it will fetch the data from exactly from yahoo server only
Request will first reach in DNS server and fetch the IP for yahoo.com and will be send back to browser. Browser will give a request to this IP and server will give the rendered HTML back to browser. Browser will display this
|
|
|
|
|
I have Xml file it contains many attributes.I want to just read EmlName and display it in table.
Like this.
Employee Name
1.Anup
2.Vijay
3.Kiran
.
.
.
.
Plz give me some solution or code
its urgent
thanks
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
You got to set the path xpath so that only that node (empl) is selected, then using a loop you could retrieve all the nodes in that emp node.
you can select the entry node and give node.childnodes[i].innertext....
you can find simple examples for xpath in w3schools!!
Hope this helps!!!
Gautham
|
|
|
|
|
HI
What is the size of the xml file if it is not very large then use XmlDocument object to read the xml file .
If file is large and you don't want to update it i.e only have to retrive the data and performance is an issue then use XmlReader to read the file as
you can use this code as reference for it
void ParseURL(string strUrl)<br />
{<br />
try<br />
{<br />
XmlTextReader reader = new XmlTextReader(strUrl);<br />
while (reader.Read())<br />
{<br />
switch (reader.NodeType)<br />
{<br />
case XmlNodeType.Element:<br />
Hashtable attributes = new Hashtable();<br />
string strURI= reader.NamespaceURI;<br />
string strName= reader.Name;<br />
if (reader.HasAttributes)<br />
{<br />
for (int i = 0; i < reader.AttributeCount; i++)<br />
{<br />
reader.MoveToAttribute(i);<br />
attributes.Add(reader.Name,reader.Value);<br />
}<br />
}<br />
StartElement(strURI,strName,strName,attributes);<br />
break;<br />
<br />
default:<br />
break;<br />
}<br />
}<br />
catch (XmlException e)<br />
{<br />
Console.WriteLine("error occured: " + e.Message);<br />
}<br />
}<br />
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Hallo,
i have some questions about transforming a DataSet to HTML output. So i have a WebService which returns me a DataSet(it comes from a Access database). After that i create ASP.NET Web App and i'm calling the Web Sevice:
private MyService.Service1 ws = new MyService.Service1();
After that i have a DropDownList to filter the data from the Web Service and a Load Button. Then i expect a HTML page for output.
Here is the Code:
string currencyItem = DropDownList1.SelectedItem.ToString();
this.ws.Credentials = System.Net.CredentialCache.DefaultCredentials;
DataSet ds = new DataSet();
ds = ws.GetCurrency(currencyItem);
XmlDataDocument dd = new XmlDataDocument(ds);
XslTransform xslTransf = new XslTransform();
//string map = Server.MapPath("~/TestTransformation.xslt");
xslTransf.Load(@"C:\Inetpub\wwwroot\WebApplication3\TestTransformation.xslt");
StreamWriter sw = new StreamWriter(@"C:\Inetpub\wwwroot\WebApplication3\output.html");
xslTransf.Transform(dd, null, sw);
sw.Close();
Is this code right???
So i'm using a XSL file for the transformation and the its code is:
<xsltylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
Текущо състояние
<xsl:for-each select="DataSet/CCY">
| | Банкноти | Девизи | | За | Курс БНБ | Купува | Продава | Купува | Продава | Дата | <xsl:vaule-of select="CCYUNITS"> | <xsl:vaule-of select="RATEFIX"> | <xsl:vaule-of select="RATEBUYCASH"> | <xsl:vaule-of select="RATESELLCASH"> | <xsl:vaule-of select="RATEBUYACC"> | <xsl:vaule-of select="RATESELLACC"> | <xsl:vaule-of select="RATEDATETIME"> |
|
And here is the problem when i run the project and hit the load button it says that : 'xsl:vaule-of' cannot be a child of the 'td'???? Strange???
Can somebody help me???
Thank you in advance
|
|
|
|
|
If it's just a table you're outputting, then is there any reason you can't just bind the dataset to a gridview?
|
|
|
|
|
Thank you for the answer i know that if i use a DataGrid it will be a lot of easier for me but my task is to use a HTML output. Actually i found a mistake at my xsl code - not vaule-of it should be value-of...but now when i hit the load button nothing happens...the html page doesnt appeat but when i browse it from the solution explorer i see the stylesheet is accepted.
|
|
|
|
|
Hi! i want to extend GridView control for mouseover & mouseout effect. i.e. onmouseover the color of row become yellow & onmouseout the row restores its original color on client side. how can i achieve this??
Thanks & Regards,
SAMir Nigam,
Software Developer,
STPL, Lucknow, India.
|
|
|
|
|
I am not sure abt gridview, try to give some unique id's for each rows and write onmoumove and out events in javascript. When these events are fired do your calculations..
|
|
|
|
|
is it possible to keep a Dataset in Cache( Page or Application or Fragment) like session
Thanks in advance
-
|
|
|
|
|
One Post is Enough.
Regards,
Satips.
|
|
|
|
|
A session can hold a dataset
hope it works.
regards
|
|
|
|
|
Session ["MySessionVar"] = myDataSet not sufficient for you?
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
is it possible to keep a Dataset in Cache( Page or Application or Fragment) like session
Thanks in advance
-
|
|
|
|
|
This Example will help you.
In the following sample a file is read in Application_Start (defined in the Global.asax file) and the content is stored in a DataView object in the application state.
C#
void Application_Start()
{
DataSet ds = new DataSet();
FileStream fs = new FileStream(Server.MapPath("schemadata.xml"),FileMode.Open,FileAccess.Read);
StreamReader reader = new StreamReader(fs);
ds.ReadXml(reader);
fs.Close();
DataView view = new DataView(ds.Tables[0]);
Application["Source"] = view;
}
function Application_Start() : void
{
var ds:DataSet = new DataSet();
var fs:FileStream = new FileStream(Server.MapPath("schemadata.xml"),FileMode.Open,FileAccess.Read);
var reader:StreamReader = new StreamReader(fs);
ds.ReadXml(reader);
fs.Close();
var view:DataView = new DataView(ds.Tables[0]);
Application("Source") = view;
}
Regards,
Satips.
|
|
|
|