|
I don't know about web.config, but from separate xml file yes.
1. List each userid
DataSet xmlDS = new DataSet();
xmlDS.ReadXml(xmlfilewithpath, XmlReadMode.Auto);
gv.DataSource = xmlDS; // gv is a gridview control on the page
gv.DataBind();
2. Return the password for a named userid
// new xml document
XmlDocument xmlDoc = new XmlDocument();
// load the current file as XML document
xmlDoc.Load(xmlfilewithpath)
// get the password
XmlNode curNode = xmlDoc.DocumentElement.SelectSingleNode("users/user[userid='jd']");
string pwd;
if(curNode != null)
pwd=curNode.SelectSingleNode("password").innerText;
-----
|
|
|
|
|
Thanks for the answers
|
|
|
|
|
hi,
i want call a .asp file in html source of dotnet 1.1
i hv done the followings
> place the .asp file in application folder
> within html source i place a frameset and call the asp page there.
but it gives the error message like file not found and page cannot be displayed.
so please give me some code to solve this problem
thanks in advance
bikash
|
|
|
|
|
It sounds like you have specified the link to the asp page incorrectly. View the source for the page and check if the URL is correct.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
We have sql server replication snapshot index script file (db.idx and db.dat). We want to read data from idx file using c# or vb. Any help will be highly appreciate.
-----
|
|
|
|
|
This has nothing to do with web applications. ASP.NET has nothing to do with databases.
|
|
|
|
|
well I have posted it SQL/ADO section, but as per my understanding it falls in .net section because I want show the data on the web page using either vb or c#. Anyhow, thanks for your tip
-----
|
|
|
|
|
hello everbody
just think i have two page on my application mainPage.aspx and popupMore.aspx . on btnPopup click event (inside mainPage.aspx) open a new window name popupMore.aspx.
what i want to do is, when popupMore.aspx is open then mainPage.aspx is enabled=false
condition is, i have to close the popupMain.aspx first to enable my main. a good example is ajax ConfirmButtonExtender (you have click ok or cancel button other your page will not be working)
any instruction will be really helpful
thanks in advace
Sarfarj Ahmed
|
|
|
|
|
do this o open the popup window
var childWin;
function openWin()
{
childWin = window.open('childwin'.....);
}
and add a function in main page and call it on focus of the main page, on focus function should be something like..
if(childWin)
childWin.focus();
-----
|
|
|
|
|
thnaks for ur quick reply
im a bit confused, if have any example please send me. it will be more helpful for me
thanks in advancve
Sarfarj Ahmed
|
|
|
|
|
on the main page do this:
<script language="javascript"><br />
var childWin;<br />
<br />
function openWin()<br />
{<br />
childWin = window.open(urlForThePopupPage);<br />
}<br />
<br />
window.onfocus = checkPopup;<br />
<br />
function checkPopup()<br />
{<br />
if(childWin)<br />
childWin.focus();<br />
}<br />
</script>
-----
|
|
|
|
|
Thanks For Your Help
Its really helpful.
is their anyway that i can put the childWin height, width etc?
thanks in advanvce
Sarfarj Ahmed
|
|
|
|
|
<br />
window.open(url,"newWindow", "status=no,directories=no,width=450,height=120,top=50,left=120,location=no,menubar=no,toolbars=no,scrollbars=yes,resizable=yes");<br />
you can change the values to yes or no as requyired
-----
|
|
|
|
|
Hi All
Well I want to consume a webservice using javascript. I want my client to just Copy/Paste small piece of javascript in HTML. Somewhat like Google Adsense and other API's provided by Google.
Please suggest any reference Article/ Project to accomplish this....!
|
|
|
|
|
wEb GuRu... wrote: Well I want to consume a webservice using javascript
Yeah. It's possible.. You can use XmlHttpRequest object to invoke the webservice.. You should use "POST" instead of "GET" while invoking.
(Note: You can use the pure Javascript code to consume the .NET webservice. You don't need to use "htc" for that.)
I can give you the example how to comsume the Webservice from Javascript if you want.. I think you probably don't want because there is no relationship between "consuming the webservice from JS" and "I want my client to just Copy/Paste small piece of javascript in HTML. somewhat like Google Ads."
wEb GuRu... wrote: I want my client to just Copy/Paste small piece of javascript in HTML.
You want your client to copy and paste small piece of Javascript??? so, i will tell them to copy and past. btw, who are they??
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Hi
I want to fetch the cost of various products from other websites for our own use so that i can use these figures in our project programmatically.
Simply i want to access cost of various products from other websits.
How can i do this.
please help me as soon as possible...
krishna veer singh
|
|
|
|
|
1. Open IE.
2. Browse to website.
3. Write down the price.
Or provide us with some more information. If you are talking about taking prices from competitors' websites, i doubt you will find them having some handy method for doing this.
|
|
|
|
|
Yes i'm talking about taking prices from competitors' websites programmatically.
Plese reply...
krishna veer singh
|
|
|
|
|
Hello Friends,
I'm sending mails at my mail account following code given belo is used to send the mail but it throing error... And further before this piece of code was running great .................
I'm getting the following error
Could not access 'CDO.Message' object.
MailMessage mail=new MailMessage();
//mail.To="manoj@chinufilms.com";
mail.To="mail@saamstesting.com";
mail.From=txtEmail.Text;
mail.Subject="Default Page";
mail.Priority=MailPriority.Normal;
mail.Body="Programme"+":-"+ddlProgramme.SelectedItem.Text+"\n"+"Name"+" :- "+txtName.Text+"\n"+"Review"+":-"+txtReview.Text;
try
{
SmtpMail.SmtpServer="mail.saamstesting.com";
SmtpMail.Send(mail);
lblMsg1.Text="Record Saved Successfully";
lblMsg1.ForeColor=Color.Green;
}
catch(Exception ex)
{
//lblMsg1.Text="Error Occured!!";
lblMsg1.Text=ex.Message.ToString();
lblMsg1.ForeColor=Color.Red;
}
|
|
|
|
|
It seems that your dev. Machine is behind a firewall or proxy server.
Try this and you should be ok:
SmtpMail.SmtpServer.Insert( 0, "127.0.0.1 or your mail server name here")
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
The Smtp Server u suggested would also work if i upload it
|
|
|
|
|
I am not sure whether you are asking a question or providing any information.
Do you want me to look further into this issue or is this resolved?
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
Dear friends,
I am using ASP.NET 2.0 with C# and MSSQL2000
When T try to import System.Transactions namespace,it shows error like
Error 1 The type or namespace name 'Transactions' does not exist in the namespace 'System' (are you missing an assembly reference?<br />
why this is showing??
This is working fine in another downloaded sample application ...
Be very grateful for any advice.
They laugh at me; they think I’m different. I laugh at them, ‘coz they are all same!! CrazySanker
|
|
|
|
|
Ran into the same issue. Like it's not in the library. Hmmm.
|
|
|
|
|
hi
can anyone help me to navigate from one url to another url by using ajax in asp.net
|
|
|
|