|
You do understand the web is a stateless, disconnected environment? It's not like a Windows app, you can't just push data to another web application, the user must make the request to view the data. Even with a timed refresh it is by request.
The best you can do update a database from one application and trigger the second to refresh and pickup those updates.
only two letters away from being an asset
|
|
|
|
|
noo.dyab wrote: if you think that webservice is good please send to me sample code and explanation about it because i don't have much information about coding in that method.
an if you have any example in HTTP request send it to me please
It's not our fault that you're basically clueless. The word 'webservice' is your hook, it tells you what to google. Do that, or buy a book. Either way, buy a book, you plainly have no idea what you're doing.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
i know what webservice is
but i did not know much detail about it
i was think that code project team could save my time
but it seem that you are just conceited who dont know any thing
i started search and i dont need your help
|
|
|
|
|
Hello everybody, I'm working with asp.net and my project has login interface which accepts user's information and redirects to another page. After a user has logedout s/he never return to that page,but this doesn't happen,in contrast, when the user uses the back button s/he can again visit the page. I want to disable the back button, how can I? Or is there another method to do that? Thank you.
|
|
|
|
|
You can't. You are seeing the browser cached version of the page and any well written application will not allow to proceed using the secured page. Each page load should check the session existence and do necessary redirects.
|
|
|
|
|
Thank you all for your help.
|
|
|
|
|
You are welcome. You may also reconsider your websites navigation model. Something like Post/Redirect/Get[^].
Best wishes,
Navaneeth
|
|
|
|
|
You cannot. Perfectly. Although there are plenty of ways available through web of doing this.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
|
Disabled Back Button is not a good idea.
And even if you check the Session object, still browser will load cached page as its not a postback.
you can use following property to expire the content on the client side. but still it will not be real-time.
Response.Expires
Response.ExpiresAbsolute
on the Logout page try setting Response.ExpiresAbsolute to the (DateTime.Now.AddSecond(5)) and see if that works.
|
|
|
|
|
function noBack()
{
window.history.forward();
}
noBack();
window.onload=noBack;
window.onpageshow=function(evt){if(evt.persisted)noBack();}
window.onunload=function(){void(0);}
this javascript may help you
|
|
|
|
|
People ask this all the time. It's a stupid request. The answer you were given, is easily defeated. Instead, tell us how your code is broken or poorly written so that you need to do this ( i.e. tell us why you want to do it, I am sure it will mean we can tell you how to fix your code ).
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
this coding is for deleting a record:
System.Data.SqlClient.SqlConnection connection = new System.Data.SqlClient.SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=E:\\T\\DLI\\App_Data\\DLI_Database.mdf;Integrated Security=True;User Instance=True");
connection.Open();
System.Data.SqlClient.SqlCommand command = new System.Data.SqlClient.SqlCommand("DELETE FROM Items where Password ='"+ TextBox1.Text +"'", connection);
command.CommandType = CommandType.Text;
connection.Close();
Label1.Text = "Record deleted!";
HOW DO I DISABLE A RECORD INSTEAD OF DELETING IT SO IT CANT BE VISIBLE IN THE DATA GRIDVIEW.
|
|
|
|
|
Selext * From Table_name where Here u put what u don't want to show up in a not equal
|
|
|
|
|
add a new field in database as isDelete, when u delete a row u set the field as true, so it is now consider as deleted but available in database. now u can filter this and display in the datagrid
|
|
|
|
|
|
Hi,
What is the difference between n-tier architecture and n-layered architecture.
What are the advantages of each one over the other.
How we will choose which one is going to apply.
Please help me out.
Thanks in advance.
|
|
|
|
|
What about google search ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
IS google broken where you live ?
Learn to code, and worry about these sort of things in their proper context. That is, if you don't know what the difference is, research both, then work out if there's any difference at all. There isn't.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I am deploying a web application and getting an error "could not load file or assembly microsoft.sqlserver.manageddts, version=9.0.242.0 ....."
i have in my bin a DLL named "Microsoft.SqlServer.DTSRuntimeWrap.dll"
i have added this file in GAC, restarted the IIS, restarted the Computer and still having the same error. Any Ideas.
On the web server iam deploying on i have .net framework 2.0 & 3.0 & 3.5 with sp1 and VS2008 installed.
|
|
|
|
|
Hello I'm using asp.net with VB
I want to add TemplateField and add to it an image so I can add this image to grid. how can I do this by code?
Thanks in advance
|
|
|
|
|
Why you are not adding Template Image field in gridview ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
ok that works buit i have another qestion this image is an hyperlink image so when i clcik on it i go to next page with the ID and the id is in the select cmd. how can i add the id in the mtml code.
e.g: show.aspx?ID=10 in the i'm using databinder.eval after the url but it is giving me server tage error
NavigateUrl="Show.aspx?ID='<%# DataBinder.Eval(Container.DataItem,"ID")%>'
|
|
|
|
|
I have created Web.sitemap file.
<?xml version="1.0" encoding="utf-8"?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">
<siteMapNode title="Home" description="">
</siteMapNode>
<siteMapNode title="Products And Services" description="">
</siteMapNode>
<siteMapNode title="Clients" description="">
</siteMapNode>
<siteMapNode title="ContactUs" description="">
</siteMapNode>
</siteMap>
When I run this web application, it shows following error.
Exactly one <siteMapNode> element is required directly inside the <siteMap> element.
Plz help me to solve this problem.
|
|
|
|
|
I googled and found these [^]results.
And infact, the first one [^]looks to be the answer itself.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|