|
venky456 wrote: how to replace \ with / in system path
string Answer = @"\".Replace(@"\","/");
|
|
|
|
|
you should use Server.MapPath Method[^]
If you just want to replace \ with / :
string path = systemPath.Replace("\\","/");
|
|
|
|
|
i have webfarm mode and i have three server.
i have one fileupload control how it will upload the file on server in file structure.
|
|
|
|
|
hi friends
i am in new RSS feed .
how to implement in .net.
how to dynamically update the information using rss feed in asp.net
regards
saravanan
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
use XmlTextReader reader = new XmlTextReader("sitename");//getting xmlfile
DataSet s = new DataSet();
s.ReadXml(reader); // read xml
datagrid.dataSource = s;
datagrid.DataBind();
this code will do the RSS Feeding...
|
|
|
|
|
http://www.w3schools.com/rss/default.asp
Thomas
|
|
|
|
|
Hi
I am using VS 2003 framework 1.1
in my asp.net application crystal report run fine in my PC.
But on demo server it will giving error,
Exception Details: CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: Load report failed.
Stack Trace:
[LoadSaveReportException: Load report failed.]
.I(String , EngineExceptionErrorID ) +272
.E(String , Int32 ) +56
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob) +1262
CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob) +456
CrystalDecisions.CrystalReports.Engine.ReportDocument.)() +98
CrystalDecisions.CrystalReports.Engine.ReportDocument.get_Database() +7
CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDatabaseLogon(String user, String password) +64
DSRBWeb.Protocols.MainIntro.btnrpt_Click(Object sender, EventArgs e)
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292
--------
I already given rights to asp.net user for report.
can you please help to solve this
With Regards,
Mayank Prajapati
MCP, MCTS .Net 2.0
|
|
|
|
|
I need to filter a value in Dataset. My code is
string ConStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + path + ";Extended Properties=\"Text;HDR=No;FMT=Delimited\\\"";
System.Data.OleDb.OleDbConnection conn = new System.Data.OleDb.OleDbConnection(ConStr);
System.Data.OleDb.OleDbDataAdapter da = new System.Data.OleDb.OleDbDataAdapter("Select * from " + file, conn);
da.Fill(ds, "TextFile");
Here i have not defined any column value, Still Can i filter the dataset.
|
|
|
|
|
yes i think you can still filter the column values....
Regards,
Sandeep Kumar.V
|
|
|
|
|
Can you please give me some clue or syntax
|
|
|
|
|
you can use RowFilter property of Dataview to filter rows from the dataset...
something like this...
Dim view As New DataView<br />
view = DataSet1.Tables("TableName").DefaultView<br />
view.RowFilter = "Column = 'FilterValue'"
Regards - J O N -
|
|
|
|
|
Hello there,
I want to learn how to create web pages and controls dynamically through html in ASP.Net application.
Can anybody provide me any link for this or if anybody has some ebook then plz forward it to my emailid (manohar.nagendra@gmail.com).
Thanks in advance,
Nagendra.
|
|
|
|
|
Hi Friends
I am using Textbox inside a panel.
And the Textbox has Validator. The Validator is not getting fired?
Its pretty strange.
If i keep the panel in Visible = true on pageload. I see the Validator works.
But once i make its Visible = false and then again Visible = true.
Thereafter the Validators dont work.
Any idea friends.
Any suggestions would be appreciated.
Thanks
Cheers
Menon
|
|
|
|
|
Are you making the panel visible true, false on the client-side using Javascript?
Regards - J O N -
|
|
|
|
|
Hi Jon
No i am not making it Visible true and false using Javascript.
I have a button. On click method of button i am using code
if(panel.visible)
panel.visible=true;
else
panel.visible=false;
And yes my table is inside UpdatePanel(AJAX EXTENSIONS)
Thanks
Cheers
Menon
|
|
|
|
|
mady1380 wrote: On click method of button
On Click Method???
mady1380 wrote: if(panel.visible)
panel.visible=true;
else
panel.visible=false;
Can you tell me when your panel will be visible false?
mady1380 wrote: my table is inside UpdatePanel
where is panel and button?
best regard
pathan
please don't forget to vote on the post that helped you.
|
|
|
|
|
button is in one row, and the Panel is in Row below it..
Cheers
Menon
|
|
|
|
|
try adding the below code to the IF statement if the panel visbility true...It may work. Not sure...jus check...
if (typeof(Page_ClientValidate) == 'function') <br />
Page_ClientValidate();
Regards - J O N -
|
|
|
|
|
Hi Jon
Thanks.
I just had a look at the CollapsiblePanel in AjaxToolkit.
It works fine for me.
Still thanks for you suggestion.
Cheers
Menon
|
|
|
|
|
you are most welcome
Regards - J O N -
|
|
|
|
|
I'm using form authorization in Web.Config.Both LogIn.aspx and LogOut.aspx work fine but the problem is when user log out ,click back button,it still show previous secure page.
another one is user still can enterthe page by type url directly to browser(after logged out).Is it about cache? How can i clear cache after user logged out?
=)
Thank
|
|
|
|
|
bug_aonz wrote: .Is it about cache
Yes. You are seeing the cached page when pressing back button. This will be cached in the browser and can't be removed from program. You need to check session existence on each page load and ensure it is there.
|
|
|
|
|
You can disable the client-side caching using the below statement...
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Regards - J O N -
|
|
|
|
|
Try using Javascript:
window.history.forward(1);
OR Read this article:
http://www.4guysfromrolla.com/webtech/111500-1.2.shtml
|
|
|
|
|
Hi....
you write these lines in every page in pageload event....so that all the pages will be displaying as page expired so at that time user need to login again to get that page.
Response.ExpiresAbsolute = DateTime.Now.AddDays(-1);<br />
Response.Expires = -1500;<br />
Response.Cache.SetNoStore();<br />
Response.CacheControl = "no-cache";
Regards,
Sandeep Kumar.V
|
|
|
|