|
Hello all,
I have a gridview on the page. And a dropDownList in all the gridview rows. But, the condition is,the user should not be allowed to select the same value in 2 dropdownlists in the gridview. Do anybody have any suggestion on how can I achieve this validation, using client side validation.
Thanks.
|
|
|
|
|
Hi All, I need my users to be able to check options for days during the month, and I have been able to add a CheckBoxList to each day of the month in the Calendar control, that was the easy part. Now, here's where my difficultly begins; Once the user clicks a save button to store their selections, I can't figure out how to get access to the CheckBoxLists again to read their checked state. I can't find them in any of the Calendar's control collections nor can I find them by using FindControl method. Please Help! Your assistance would be greatly appreciated.
|
|
|
|
|
|
And who made you the forum police? I post in both, because it is an issue covered by both topics for your information. And you might want to re-think that statement.
|
|
|
|
|
Read the rules[^]
Your question does not apply to both. It is ASP.NET related and should have been in this forum only. Very few questions apply to more than one topic and even then you should choose one, and only one, forum to post in. Some contributor here only monitor a few forums, not all. By posting in more than one you're fragmenting the results, everyone may not see all the other responses and give you conflicting or redundant responses, generally wasting everyones time.
Daniel235 wrote: who made you the forum police?
This is a community and we are responsible for it. However, if you'd like to refer a complaint to the webmaster I'm sure Chris would be amused.
only two letters away from being an asset
|
|
|
|
|
hello
i developed two websites both using asp.net
any one know how to make them send info to each other (communicate between each other)
if it possible using HTTP request please send to me code sample about that.
help me
|
|
|
|
|
What kind of communication do you need ? You can also think about WebServices.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
thank you for your reply
i really think about HTTP request
assume that first sever collect the information from table in database that he (the first server) owns rearrange it and send it to the second server the second will receive that date and update its database that exist on it (owned by second) upon to that data
data could be sting , text , int ...
|
|
|
|
|
i don't understand what you talk about
i told you that one server will send info to other sever the oothe will take that info and update his database according to that info
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
|
|
|
|
|
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
|
|
|
|
|