|
I need to add hot keys to my ASP.net MVC3 application. please give me any ideas on the best way to implement this in MVC?
for eg:
go to home page of my application when Ctrl + Q is used
to log_out when Ctrl + K is used
|
|
|
|
|
JQuery hotkeys is probably the best way to do that, but please don't override common functions like ctrl-Q which the user has an expectation for already. If you change the behavior of that key, users won't like it.
http://plugins.jquery.com/hotkeys/[^]
|
|
|
|
|
hi Jasmine,
thanks you jasmine i am trying whit you idea.
Regards,
jsm
|
|
|
|
|
i have two datatables dt1 and dt2.The first one has 3 columns and the second one has 1 column .i want to merge them together.As of now the join is happeneing top-down way,i want it sideways .
|
|
|
|
|
I posted my real answer on Facebook. However, what you need to do here is go back to basics and learn some SQL. Your question is like, Day 2 of a basic SQL class. I don't even know how to answer it other than to give you the ANSI join syntax, which is freely available on Google. So, I don't understand why you are asking people on here to help you? You need to learn the basics of the language first, so you can ask intelligent questions.
http://www.w3schools.com/sql/[^]
select <columns list>
from <table>
join <table2> on <table.column> <operator> <table.column>
That's tripping you up? Please explain why.
|
|
|
|
|
This worked
var res =(from tb1 in dt1.AsEnumerable()
join tb2 in dt2.AsEnumerable() on tb1["A"] equals tb2["AA"]
Gridview.Datasource = res;
Gridview.DataBind();
anyways thank you
|
|
|
|
|
In your question you did not say you wanted Linq style stuff, didn't even say you were using c#. Look at your answer and your question and ask yourself if it's possible to go from one to the other.
|
|
|
|
|
Anyway i shall strive to frame my question better the next time around,thank you jasmine.i have another question for you.suppose i have the row index of a gridview (that i obtain on clicking the first cell in that row) how do i obtain the value of 3rd cell in that very row.If my question was ambiguous pardon me.
|
|
|
|
|
Keep in mind that I get an email copy of your comments even if you delete them later. I'm just trying to help you get better answers. Whenever you post a question, please read it carefully before posting, to make sure you've given the information needed to answer the question completely.
When working with GridView object, it can be tricky to get values from the data - much better to get those from the underlying dataset itself. But, you can sometimes get it this way...
(because it's zero-indexed, this would be the third cell from the left)
myGridView.Rows[myRowIndex].Cells[2];
The problem is, the object living at that reference is a "TableCell" object, and you'll have to extract the data value out of there somehow. Remember, the GridView is the VISUAL object, not the data object. The best way to find data when the user clicks on a row in a GridView is to use the primary key and go back to the original DataSet which is bound to the control.
|
|
|
|
|
I have a web application. I want to know user doing in this?
And I can save it by session.
Can you tell your opinion?
|
|
|
|
|
Your question is not quite clear. Please rephrase and elaborate on what are you trying to do.
|
|
|
|
|
I want to record all users' activities on websites such as manipulation 1 log file
|
|
|
|
|
Quote: I want to know user doing in this?
And I can save it by session.
What does it mean?
|
|
|
|
|
I want to record all users' activities on websites such as manipulation 1 log file
|
|
|
|
|
So wots problem
Create a database table to store activities
at every operation store the activity along with date time, user, and any other things u require.
|
|
|
|
|
|
|
|
Use FormsAuthentication and then just store whatever you want into the Session.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Thank you!
|
|
|
|
|
No problem.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
How do I clear the server cache in asp.net? I have found out that there are two kinds of cache. There is the browser cache and the server cache. I have done some searching but I have yet to find a clear, step-by-step guide for clearing the server cache using asp.net (or not).
I am working on an ASP.NET c# application that uses a 3rd party CMS. I have reason to believe that a bug I am having must have something to do with the cache on the server side. As an admin of the CMS, I have used some controls that individual users can see but they should not. The customer service has suggested I need to clear the server cache.
I can remote to the server. Do I need to clear the cache from there?
I did a search on google. So far, the only information I have is confirmation that there is such a thing as a cache on the server that differes from the client cache on the browser. The first results from Google are from wikipedia and instruct users of using a url addition to clear the cache on the server. I am not sure if that will work for what I need to do.
I wish I could find some sort of ASP.NET C# sample code that will clear the server cache.
|
|
|
|
|
|
hi to all
how can i acceess 'i' in for loop
thanks in advance
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication2._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form runat="server">
<div>
<asp:DropDownList ID="aspMySelect" runat="server" OnSelectedIndexChanged="aspMySelect_SelectedIndexChanged" AutoPostBack="True">
</asp:DropDownList>
<asp:TextBox ID="aspNewOption" runat="server"></asp:TextBox>
<asp:Button ID="Button1" OnClientClick="addAspPopUp()" runat="server" Text="Button" />
<script type="text/javascript">
function addAspPopUp() {
debugger
var optionText = document.getElementById('aspNewOption').value;
var textBox = document.getElementById('aspNewOption');
var objSelect = document.getElementById('aspMySelect');
listCount=<%=objListItems.Count%>;
for (var i=0;i<=listCount;i++)
{
objSelect[objSelect.length] = new Option('<%=objListItems[i]%>');
textBox.value = "";
}
}
</script>
<input type="button" id="btnRegister" onclick="ConvertDate()" value="test" />
<input type="button" id="Button2" onclick="addAspPopUp()" value="test2" />
</div>
<asp:Label ID="lbltest" runat="server"></asp:Label>
</form>
</body>
</html>
|
|
|
|
|
What do you mean how to access i? Just use it. And why post so much other code that is not relevant?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|