|
hi..
I am working on stocks manageent.I want updated price of shares.I am using rss feed.I have use grid view to make rss.But problem is i am not able to decode thhis xml rss.
Plz help how i cause rss to show updated stocks price.
here is code that i try-
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
XmlTextReader reader = new XmlTextReader("http://blogs.ibibo.com/sharetipsfree/feed/rss");
DataSet dataset = new DataSet();
dataset.ReadXml(reader);
GridView1.DataSource = dataset.Tables[2];
GridView1.DataBind();
}
|
|
|
|
|
The RSS that you have mentioned is about some definations.
However the above code is to read the XML and display same on the page.
But if you want your code to display the updated pricing, then the rss xml must be updated after some interval of time.
If you can do the same, only then report will display the updated values
|
|
|
|
|
|
Hi
The above link is not providing any rss.
If the same is rss then the link should be giving some xml file.
The link is accepting some query string arguments, reading and displaying the same on scree.
You cannot do any thing with this.
Search for RSS for the same
|
|
|
|
|
CommandArgument='<%# Bind("ID")>' is it possible to send id&name within the same command argument
|
|
|
|
|
//use like this
'<%# "Redirect.aspx?id=" + DataBinder.Eval(Container.DataItem,"ID")+ "&name=" + DataBinder.Eval(Container.DataItem,"name")%>'
Padmanabhan
|
|
|
|
|
I want to redirect to other web page. based on the click of ok button ,i used script of message box by using
ClientScript.RegisterStartupScript();
means after clicking ok button it must redirect to another page.
but if i put response.redirect() after the ClientScript.RegisterStartupScript() code. it automatically redirects to other page without displaying my message box, how to solve this problem.
pls give the code.
thanks in adv,
sanmbk
|
|
|
|
|
(i used script of message box by using
ClientScript.RegisterStartupScript()
send me the java script...
Padmanabhan
|
|
|
|
|
sanmbk wrote: i used script of message box by using
ClientScript.RegisterStartupScript();
means after clicking ok button it must redirect to another page.
Why dont you use the Client itself to do the redirection instead of coming back to the server and doing Response.Redirect.
In short you need to write a Javascript function which will execute on click of OK button.
function RedirectAfterMessage()
{
var message = "do you wanna redirect?";
if(confirm(message))
window.location = "www.google.com";
}
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I want to redirect to other web page. based on the click of ok button ,i used script of message box by using
ClientScript.RegisterStartupScript();
means after clicking ok button it must redirect to another page.
but if i put response.redirect() after the ClientScript.RegisterStartupScript() code. it automatically redirects to other page without displaying my message box, how to solve this problem.
pls give the code.
thanks in adv,
sanmbk
|
|
|
|
|
(i used script of message box by using
ClientScript.RegisterStartupScript();)
send me the java script...
Padmanabhan
|
|
|
|
|
Hi, I have used crystalreportviewer in one of my webpages.It works well in local pc.but after uploading it on the server, it started throwing some javascript error whenever we press print button or export button of crystalreportviewer.
the javascript error is : Object doesn't support this action.
Can anyone help me?
Thanks and regards
ARINDAM
|
|
|
|
|
I too have the almost the same problem.
Only that i am able to print from teh source code but when i publish my project onto the server then i cannot print it from the client's local printer
Please help if u know the solution
|
|
|
|
|
Hi All,
can any one let me know that how can we create widget with asp.net. I want's to create widget which will be able to show some data from sql database. Is this is possible?
Also how can we register the widgets on net?
Regards...
Vijay Jain
"One thing you can't recycle is wasted time."
|
|
|
|
|
like this[^]
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi,
how can I change the CheckBox status on individual items in my RadTreeView (check/uncheck) from code behind?
What is the best way to check/uncheck all checkboxes from code behind?
Thank You
|
|
|
|
|
Dear All,
I use ASP.net AccessDataSource to retrieve data from a Access file. In this Access file, two tables are updated automatically by a Excel file and MsSQL(ODBC) respectively. The Access file and Excel file are in the same folder, so Access file can retrieve data from the Excel one successfully. However, when ASP.net -> Access -> MsSQL(ODBC connection called "ProyectoCongelados"), I got the following error message:System.Data.OleDb.OleDbException: ODBC--connection to 'ProyectoCongelados' failed.
Anyone can give me some advice?
Thanks in advance.
Regards,
TM
|
|
|
|
|
I am unable to judge where you got problem. Any code? You are using AccessDataSource - OleDB classes and where is code that uses ODBC?
A DATAPOST COMPUTER CENTRE
(K.V Prajapati)
|
|
|
|
|
hi,
i am using following code to download file from application its working fine in local system but when i configure in server a file is opening with sourse of aspx page can any one help me ?
string FilePath = Globals.ApplicationVRoot + "/Downloads/DemoUser.CSV";
string FileName = "DemoUser.CSV";
HttpResponse response = HttpContext.Current.Response;
response.ContentType = "application/octet-stream";
response.AddHeader("Content-Disposition", "attachment; filename=" + FileName);
response.WriteFile(FilePath.ToString());
response.End();
|
|
|
|
|
You should write following code:
string FilePath = Globals.ApplicationVRoot + "/Downloads/DemoUser.CSV";
byte []b=System.IO.File.ReadAllBytes(FilePath);
string FileName = "DemoUser.CSV";
HttpResponse response = HttpContext.Current.Response;
response.ClearHeaders();
response.ClearContent();
response.ContentType = "application/octet-stream";
response.AddHeader("Content-Length",b.Length.ToString());
response.AddHeader("Content-Disposition", "attachment; filename=" + FileName);
response.BinaryWrite(b);
response.Flush();
response.End();
A DATAPOST COMPUTER CENTRE
(K.V Prajapati)
|
|
|
|
|
Dear Sir,
How to extract Text from Candidate Resume word file and save in database.like in name column name will save Email column only Email will save etc. all candidate information will save in databse.
is it possible ?
in ASP.NET C# with SQL SERVER.
Thank you
|
|
|
|
|
yes, it is possible, using parsing you can achieve it... try to google and find the solution...
Padmanabhan
|
|
|
|
|
To read data from word file requires Ms-Office Interop service - DLL. So, add the reference of Ms-Word com component. LINQ is the another way to read a word document.
A DATAPOST COMPUTER CENTRE
(K.V Prajapati)
|
|
|
|
|
Hi all,
For adding the data in database i m using SqlParameter array collection.
In this method i am declering hardcoded array decleration of sqlparameter.
Follwing the the example.
public int Checkadmin(string usernm, string pwd)
{
SqlParameter[] sqlParam = new SqlParameter[2];
SqlDataReader dr;
int count = 0;
sqlParam[0] = new SqlParameter("@Username", SqlDbType.VarChar);
sqlParam[0].Value = usernm;
sqlParam[0].Size = 50;
sqlParam[1] = new SqlParameter("@Password", SqlDbType.VarChar);
sqlParam[1].Value = pwd;
sqlParam[1].Size = 50;
initializeDBConnection();
try
{
dr = execSelectByKeyParams("select.admin_login", sqlParam);
while (dr.Read())
{
count = Convert.ToInt32(dr.GetValue(0));
}
}
catch (SqlException sqlEx)
{
string str;
str = sqlEx.Message + sqlEx.StackTrace;
}
catch (Exception ex)
{
string str;
str = ex.Message + ex.StackTrace;
}
dispose();
return count;
}
Now i want to replace the SqlParameter array by generic arraylist.I dont want
to user hardcoded array decleration. I have created sqlparameter generic arraylist
as follow.
List<SqlParameter[]> sqlParam=new List<SqlParameter[]>();
But can anybody guide me how can i proceed further.
Thanks
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
This [^]should help you.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|