15,890,186 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by JOTHI KUMAR Member 10918227 (Top 200 by date)
JOTHI KUMAR Member 10918227
20-Oct-17 9:31am
View
no i need to access Different "Database" Not Table.
JOTHI KUMAR Member 10918227
20-Oct-17 9:09am
View
Not Like that For Ex: if i have two year datas in database but database name different like (2016,2017). If i login if i select 2016 i need to access that 2016 , if i select another one i need to access that 2017...in my scenario database Differnt,USername password also Different
JOTHI KUMAR Member 10918227
13-Dec-16 4:36am
View
In selector[0,0,0] =1; what is this 1 means??
JOTHI KUMAR Member 10918227
13-Dec-16 4:24am
View
any sample for using ternary operator using above condition
JOTHI KUMAR Member 10918227
13-Dec-16 3:06am
View
int age;
int agetype;
int pay;
int cou;
int work;
if getting above fields value in dataset, above value have only 0,1,2.
below condtion how can i write
if(age ==0 && agetype==0 && pay==0 && cou==0 && work==0)
{
}
else if(age ==0 && agetype==1 && pay==1 && cou==1 && work==1)
{
}
else if(age ==0 && agetype==2 && pay==2 && cou==2 && work==2)
{
}
else if(age ==0 && agetype==0 && pay==1 && cou==0 && work==2)
{
}
else if(age ==0 && agetype==1 && pay==0 && cou==2 && work==0)
{
}
how much i write to satisify above five condition
JOTHI KUMAR Member 10918227
13-Dec-16 2:02am
View
can you explain me how can i do that
JOTHI KUMAR Member 10918227
1-Jun-16 1:02am
View
hi,
I want some textbox look like heading details.that heading details also want to repeat in all pages.
JOTHI KUMAR Member 10918227
4-Apr-16 8:21am
View
can you send me correct code bcz above i cant understand
JOTHI KUMAR Member 10918227
4-Apr-16 8:21am
View
hmm yeah i need to tried but user want to preview the page
JOTHI KUMAR Member 10918227
29-Mar-16 2:39am
View
yeah can you give me sample format jquery dropdown focus
JOTHI KUMAR Member 10918227
14-Mar-16 3:12am
View
sorry ? what??
JOTHI KUMAR Member 10918227
7-Mar-16 7:50am
View
here i integrated with my asp.net application also.if you not know just wont reply ok sorry to hurt you
JOTHI KUMAR Member 10918227
1-Mar-16 6:11am
View
how to i take xml bcz im new to asp.net so kindly explain me details
JOTHI KUMAR Member 10918227
22-Feb-16 6:36am
View
Actually both database have same table and fields. i need to merge record bcz last month is in one database and this month is in one database so i need to merge two month in one database that means either db1 or db2 that all
JOTHI KUMAR Member 10918227
22-Feb-16 6:23am
View
if have two fields its ok but my table have 25 fields how to do and i have identity key that means primary key . how can i do
JOTHI KUMAR Member 10918227
19-Feb-16 3:06am
View
sorry i cant get you please explain me in details
JOTHI KUMAR Member 10918227
19-Feb-16 2:59am
View
some computers like 10 systems i need particular system to login, but all are in different location so how to do.
JOTHI KUMAR Member 10918227
12-Feb-16 8:14am
View
it have in js folder inside
JOTHI KUMAR Member 10918227
12-Feb-16 7:58am
View
sorry i cant get you
JOTHI KUMAR Member 10918227
12-Feb-16 7:23am
View
can anybody tell if i use <usc:header> to show header then msdropdown not loaded in that page
JOTHI KUMAR Member 10918227
12-Feb-16 6:17am
View
if i use header <usc:Header ID="Header" runat="server" /> i wont get images dropdown how to i resolve
JOTHI KUMAR Member 10918227
5-Feb-16 4:49am
View
In that system VS add connection not showing my database.what can i do thne i enter manually then it show some network related error.
JOTHI KUMAR Member 10918227
2-Feb-16 2:31am
View
i got it thanks for your reply.i resolved and run that deploy code
JOTHI KUMAR Member 10918227
22-Jan-16 7:16am
View
CAn anybody tell how to resolve this
JOTHI KUMAR Member 10918227
22-Jan-16 2:36am
View
actually its working fine, after publish but last two day it will not work properly.and i will check n console also not show any error how to i resolve it.
JOTHI KUMAR Member 10918227
18-Jan-16 0:24am
View
i got error in var ismatch line in above script here i put alert it wont fire
JOTHI KUMAR Member 10918227
12-Jan-16 1:19am
View
i don't know how to do just tell me the logic.i don't want code bcz in the dynamic grid have binded value as well as empty textbox also .so i need a logic and example code or reference
JOTHI KUMAR Member 10918227
23-Dec-15 0:37am
View
i want to add new row in between 2 and 3
JOTHI KUMAR Member 10918227
23-Dec-15 0:35am
View
above one add new row in between exixting row ???
JOTHI KUMAR Member 10918227
4-Dec-15 23:43pm
View
got same error here i used like this:
FS = p.Field<int>("TotalQtyFS"),
HS = q.Field<int>("TotalQtyHS"),
Qty = p.Field<int>("CurrentQty"),
add = p.Field<int>("TotalQtyFS") + q.Field<int>("TotalQtyHS"),
in middle of field i used "int"
JOTHI KUMAR Member 10918227
3-Dec-15 6:55am
View
hmm yeah sure, and it not a string its int
JOTHI KUMAR Member 10918227
3-Dec-15 6:04am
View
specified cast is not valid
JOTHI KUMAR Member 10918227
12-Nov-15 1:08am
View
i need to search within the column but it will search including column and another issue i have 20 pages but it will search only current page how to resolve this two issues
JOTHI KUMAR Member 10918227
12-Nov-15 0:24am
View
hey rohit above script its working but it search column also.but i need only data not column
JOTHI KUMAR Member 10918227
11-Nov-15 23:53pm
View
sorry richard it will not working sorry
JOTHI KUMAR Member 10918227
11-Nov-15 23:51pm
View
thanks rohit its working.suppose if i have any query i will get back to you thanks to all.
JOTHI KUMAR Member 10918227
28-Sep-15 7:23am
View
DateTime utc = DateTime.UtcNow;
// DateTimeOffset localServerTime = DateTimeOffset.Now;
var easternZone = TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time");
DateTime easternTime = TimeZoneInfo.ConvertTimeFromUtc(utc , easternZone);
TimeZone zone = TimeZone.CurrentTimeZone;
DaylightTime time = zone.GetDaylightChanges(DateTime.Today.Year);
//// DateTime eastern = TimeZoneInfo.ConvertTimeFromUtc(utc, TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time"));
TimeZoneInfo tzi = TimeZoneInfo.FindSystemTimeZoneById("India Standard Time");
DateTime localTime = TimeZoneInfo.ConvertTimeFromUtc(utc, tzi);
JOTHI KUMAR Member 10918227
28-Sep-15 7:23am
View
i need a standard format. and i have tried
DateTime utc = DateTime.UtcNow;
// DateTimeOffset localServerTime = DateTimeOffset.Now;
var easternZone = TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time");
DateTime easternTime = TimeZoneInfo.ConvertTimeFromUtc(utc , easternZone);
TimeZone zone = TimeZone.CurrentTimeZone;
DaylightTime time = zone.GetDaylightChanges(DateTime.Today.Year);
//// DateTime eastern = TimeZoneInfo.ConvertTimeFromUtc(utc, TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time"));
TimeZoneInfo tzi = TimeZoneInfo.FindSystemTimeZoneById("India Standard Time");
DateTime localTime = TimeZoneInfo.ConvertTimeFromUtc(utc, tzi);
JOTHI KUMAR Member 10918227
25-Jul-15 5:33am
View
i will not get :(
JOTHI KUMAR Member 10918227
24-Jul-15 5:48am
View
i improve my question.kindly see that i deploy all my script using
JOTHI KUMAR Member 10918227
24-Jul-15 5:48am
View
i improve my question.kindly see that i deploy all my script using
JOTHI KUMAR Member 10918227
24-Jul-15 5:48am
View
i improve my question.kindly see that i deploy all my script using
JOTHI KUMAR Member 10918227
24-Jul-15 5:47am
View
i improve my question.kindly see that i deploy all my script using
JOTHI KUMAR Member 10918227
24-Jul-15 5:40am
View
for conforming purpose if i conform it it wills ave or otherwise it allow to save
JOTHI KUMAR Member 10918227
24-Jul-15 5:28am
View
i need return statement for this script
JOTHI KUMAR Member 10918227
24-Jul-15 5:24am
View
where i use dopostback .bcz im new for this so kindly help me
JOTHI KUMAR Member 10918227
24-Jul-15 4:33am
View
hmm yeah it return false how to resolve this any idea
JOTHI KUMAR Member 10918227
23-Jul-15 9:05am
View
please see my above question from starting.if i use that script validation message show twice in single click.how to prevent this.can any one help me for this .
JOTHI KUMAR Member 10918227
22-Jul-15 2:54am
View
hi i used above script but validation show twice how to resolve that. i prevent double click but validation message show twice.how to avoid. below i give my design for my text-box and this is formview
<td class="ControlLabelproject" style="width: 24%">Ref. No. *
<asp:RequiredFieldValidator ID="rvRefNo" runat="server" ControlToValidate="txtRefNo"
Text="*" ErrorMessage="Please enter Ref. No. It cannot be left blank." CssClass="rfv" Display="Dynamic"
EnableClientScript="True">
</td>
<td class="ControlTextBox3" style="width: 25%">
<asp:TextBox ID="txtRefNo" runat="server" Text='<%# Bind("RefNo") %>' SkinID="skinTxtBoxGrid">
</td>
JOTHI KUMAR Member 10918227
21-Jul-15 9:42am
View
hmm k but i done that but before button click i write some validation for textbox that is called twice.
JOTHI KUMAR Member 10918227
14-Jul-15 8:34am
View
please suggest any answer derived from given my code.
JOTHI KUMAR Member 10918227
14-Jul-15 3:49am
View
firefox ->console tab
JOTHI KUMAR Member 10918227
14-Jul-15 3:11am
View
i done this but this will not work me i got event is undefined.this is form view
JOTHI KUMAR Member 10918227
8-Jul-15 9:37am
View
can anybody modify my code that will work in firefox also
JOTHI KUMAR Member 10918227
7-Jul-15 9:20am
View
yes
JOTHI KUMAR Member 10918227
3-Jul-15 6:08am
View
i have two checkboxlist so only i put enable =false thanks to all i got answer thanks thanks
JOTHI KUMAR Member 10918227
25-Jun-15 3:23am
View
here im ready to use jquery but how to write code can anyone explain one example ???
JOTHI KUMAR Member 10918227
20-Jun-15 9:27am
View
yeah i saw ur jquery dialog but it is sutiable for this bcz i want to pass a variable in that function.i update my question kindly see it.
JOTHI KUMAR Member 10918227
20-Jun-15 9:26am
View
if i use window.open()it will not work in ie. i update that question kindly change my code as your own
JOTHI KUMAR Member 10918227
20-Jun-15 9:15am
View
i saw but nit understand how i call this print page as your view explain me details please
JOTHI KUMAR Member 10918227
20-Jun-15 6:11am
View
two location
JOTHI KUMAR Member 10918227
20-Jun-15 5:21am
View
Deleted
i got it here i used
(using System.Runtime.InteropServices;)
[DllImport("Iphlpapi.dll")]
private static extern int SendARP(Int32 dest, Int32 host, ref Int64 mac, ref Int32 length);
[DllImport("Ws2_32.dll")]
private static extern Int32 inet_addr(string ip);
protected void Page_Load(object sender, EventArgs e)
{
try
{
string userip = Request.UserHostAddress;
string strClientIP = Request.UserHostAddress.ToString().Trim();
Int32 ldest = inet_addr(strClientIP);
Int32 lhost = inet_addr("");
Int64 macinfo = new Int64();
Int32 len = 6;
int res = SendARP(ldest, 0, ref macinfo, ref len);
string mac_src = macinfo.ToString("X");
if (mac_src == "0")
{
if (userip == "127.0.0.1")
Response.Write("visited Localhost!");
else
Response.Write("the IP from" + userip + "" + "<br>");
return;
}
while (mac_src.Length < 12)
{
mac_src = mac_src.Insert(0, "0");
}
string mac_dest = "";
for (int i = 0; i < 11; i++)
{
if (0 == (i % 2))
{
if (i == 10)
{
mac_dest = mac_dest.Insert(0, mac_src.Substring(i, 2));
}
else
{
mac_dest = "-" + mac_dest.Insert(0, mac_src.Substring(i, 2));
}
}
}
Response.Write("welcome" + userip + "<br>" + ",the mac address is" + mac_dest + "."
+ "<br>");
}
catch (Exception err)
{
Response.Write(err.Message);
}
}
JOTHI KUMAR Member 10918227
20-Jun-15 3:25am
View
cookies means?? explain me please
JOTHI KUMAR Member 10918227
19-Jun-15 7:02am
View
sorry im new in .net.when the session expires.how to extend the session.can you tell me
JOTHI KUMAR Member 10918227
19-Jun-15 6:51am
View
hmm yeah
JOTHI KUMAR Member 10918227
19-Jun-15 6:35am
View
sorry what??
JOTHI KUMAR Member 10918227
13-Jun-15 7:21am
View
not work sorry here i used update panel no use :(
JOTHI KUMAR Member 10918227
30-May-15 3:50am
View
i got solution if i want to use in ie just response.addheader in .cs
JOTHI KUMAR Member 10918227
28-May-15 9:41am
View
im fresher to asp.net c#. so kindly explain me by example
JOTHI KUMAR Member 10918227
28-May-15 3:33am
View
now i improve my auestion
JOTHI KUMAR Member 10918227
21-May-15 6:39am
View
here i doing sum of totalprice as dailysales if it as empty it not show even monthly sales also how to show if daily sales as zero then i show only monthly sales
JOTHI KUMAR Member 10918227
21-May-15 6:28am
View
here i resolved this and now i want to do some dailysales occur null so it cant take any values for monthly sales also
JOTHI KUMAR Member 10918227
2-Apr-15 7:42am
View
thanks to all i resolve it thanks guys
JOTHI KUMAR Member 10918227
2-Apr-15 5:33am
View
here i give that tr id and make it as visible as true
when selected index click
JOTHI KUMAR Member 10918227
2-Apr-15 4:32am
View
simple how i visible gridview when selected index changed
<tr id="Tr1" runat="server" visible="false">
<td colspan="6">
<table style="width: 100%; border: 1px solid gray" >
<tr>
<td>
<asp:Panel ID="Panel5"
Width="100%" runat="server">
<div id="div2" runat="server" style="height: 100px; overflow: scroll">
<asp:UpdatePanel ID="UpdatePanel12" runat="server" UpdateMode="Conditional">
<contenttemplate>
<asp:GridView >
</div>
</td>
</tr>
</table>
</td>
</tr>
JOTHI KUMAR Member 10918227
24-Mar-15 8:48am
View
what??
JOTHI KUMAR Member 10918227
20-Mar-15 9:39am
View
hi balaji it works fine thanks for your reply thank you
JOTHI KUMAR Member 10918227
20-Mar-15 7:26am
View
simple if i tick "ALL" in list all the list item should be tick if i remove tick in "All" in list all the item should be in untick then without clicking "All" i need to select multiple selection also
For eg:
fruits like "ALL" list like 'apple','orange' like that ok
if i click fruits all lists want to tick,if i untick fruits all list want to untick ,if i want select only apple without tick fruits ok that all
JOTHI KUMAR Member 10918227
18-Feb-15 6:23am
View
ok thanks for your reply. :)
JOTHI KUMAR Member 10918227
18-Feb-15 6:18am
View
same as you my search click event also empty
JOTHI KUMAR Member 10918227
18-Feb-15 6:09am
View
can i see you search button click event
JOTHI KUMAR Member 10918227
18-Feb-15 6:02am
View
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
GridSource.SelectParameters.Add(new ControlParameter("txtSearch", TypeCode.String, txtSearch.UniqueID, "Text"));
GridSource.SelectParameters.Add(new ControlParameter("dropDown", TypeCode.String, ddCriteria.UniqueID, "SelectedValue"));
}
JOTHI KUMAR Member 10918227
18-Feb-15 5:57am
View
oninit:-
GridSource.SelectParameters.Add(new ControlParameter("txtSearch", TypeCode.String, txtSearch.UniqueID, "Text"));
GridSource.SelectParameters.Add(new ControlParameter("dropDown", TypeCode.String, ddCriteria.UniqueID, "SelectedValue"));
JOTHI KUMAR Member 10918227
18-Feb-15 5:48am
View
if i click searching then this method will fire bcz i used formview
Method:
OnInit(EventArgs e)
JOTHI KUMAR Member 10918227
18-Feb-15 5:33am
View
hmm yeah. it work fine for me before doing search and click clear filter, after searching a record or after clearfilterbutton clicked then it will not disable it always visible.
JOTHI KUMAR Member 10918227
18-Feb-15 5:26am
View
yeah correct how to put in page load
JOTHI KUMAR Member 10918227
18-Feb-15 5:25am
View
JaVA SCRITP:-
window.onload = function () {
var txt = document.getElementById("<%= txtSearch.ClientID %>");
var btn = document.getElementById("<%= BtnClearFilter.ClientID %>");
if (txt.value === "") {
btn.style.visibility = "hidden";
// when the window is loaded, hide the button if the textbox is empty
}
txt.onkeyup = function () {
if (txt.value !== "") {
btn.style.visibility = "visible";
} else {
btn.style.visibility = "hidden";
}
};
var clearFilterBtn = document.getElementById("<%= BtnClearFilter.ClientID %>");
clearFilterBtn.onclick = function () {
btn.style.visibility = "hidden";
}
};
TEXTBOX:-
<asp:TextBox ID="txtSearch" >
SEARCH Buttons:-
<asp:Button ID="btnSearch" runat="server" Text="" CssClass="ButtonSearch6" />
CLEAR BUTTON:-
<asp:Button ID="BtnClearFilter" runat="server" OnClick="BtnClearFilter_Click" EnableTheming="false" Text="" CssClass="ClearFilter6" />
JOTHI KUMAR Member 10918227
18-Feb-15 1:30am
View
here i type in search-box then i click search button. if the record searched then i click clearbutton to clear text
JOTHI KUMAR Member 10918227
18-Feb-15 1:29am
View
that i wrote in oninit method.
JOTHI KUMAR Member 10918227
18-Feb-15 0:44am
View
javascript:-
window.onload = function () {
var txt = document.getElementById("<%= txtSearch.ClientID %>");
var btn = document.getElementById("<%= BtnClearFilter.ClientID %>");
if (txt.value === "") {
btn.style.visibility = "hidden";
// when the window is loaded, hide the button if the textbox is empty
}
txt.onkeyup = function () {
if (txt.value !== "") {
btn.style.visibility = "visible";
} else {
btn.style.visibility = "hidden";
}
};
var clearFilterBtn = document.getElementById("<%= BtnClearFilter.ClientID %>");
clearFilterBtn.onclick = function () {
btn.style.visibility = "hidden";
}
};
Button:
<asp:Button ID="btnSearch" runat="server" Text="" CssClass="ButtonSearch6" EnableTheming="false" />
<asp:Button ID="BtnClearFilter" runat="server" OnClick="BtnClearFilter_Click" EnableTheming="false" Text="" CssClass="ClearFilter" />
here using this above script and then i have two button.one for search and another for clearbutton.
if i run my page it works fine ,but after i searching any one record then it will not fire,it always disable.
JOTHI KUMAR Member 10918227
18-Feb-15 0:39am
View
no
JOTHI KUMAR Member 10918227
18-Feb-15 0:12am
View
what????
JOTHI KUMAR Member 10918227
17-Feb-15 23:39pm
View
here i already replace my code as btnclearfilter see my previous code
JOTHI KUMAR Member 10918227
17-Feb-15 10:39am
View
if have text in text-box then clear button should visible or else invisible
JOTHI KUMAR Member 10918227
17-Feb-15 10:30am
View
sorry it not work. i want once you search or clearing anythink that's not matter i want when textbox have a text it visible else it always invisible
JOTHI KUMAR Member 10918227
17-Feb-15 10:29am
View
let i explain if i load the page,it works fine, if i done any process i.e searching like that clear button not invisible ,always visible. i want once you search or clearing anythink that's not matter i want when textbox have a text it visible else it always invisible
JOTHI KUMAR Member 10918227
17-Feb-15 10:28am
View
sorry same as previous error,
let i explain if i load the page,it works fine, if i done any process i.e searching like that clear button not invisible ,always visible :( . i want once you search or clearing anythink that's not matter i want when textbox have a text it visible else it always invisible
JOTHI KUMAR Member 10918227
17-Feb-15 10:05am
View
hey if i load my page it works fine if i done searching, or clear searching text then it will not work it always visible only if textbox have no text
JOTHI KUMAR Member 10918227
17-Feb-15 10:01am
View
sorry clear text button should remains constant after searching
JOTHI KUMAR Member 10918227
17-Feb-15 9:59am
View
yeah i replace that button only,but after searching or clearing the text clear filter should remain constant
JOTHI KUMAR Member 10918227
17-Feb-15 9:56am
View
yes how i define my button i have two button search and clear filter.
search:-
<asp:Button ID="btnSearch" runat="server" Text="" CssClass="ButtonSearch6" EnableTheming="false" />
clearfilter:-
<asp:Button ID="BtnClearFilter" runat="server" OnClick="BtnClearFilter_Click" EnableTheming="false" Text="" CssClass="ClearFilter6" />
JOTHI KUMAR Member 10918227
17-Feb-15 9:45am
View
yeah but if i search or clear text then clear filter should be visible always. :(
JOTHI KUMAR Member 10918227
17-Feb-15 9:41am
View
ok then design want add any method name?
JOTHI KUMAR Member 10918227
17-Feb-15 9:37am
View
how it is can you resolve me
JOTHI KUMAR Member 10918227
17-Feb-15 9:34am
View
in my button have onclick event , it works in two functionality, before searching and after searching
JOTHI KUMAR Member 10918227
17-Feb-15 9:29am
View
javascript:-
window.onload = function () {
var txt = document.getElementById("<%= txtSearch.ClientID %>");
var btn = document.getElementById("<%= BtnClearFilter.ClientID %>");
txt.onkeyup = function () {
if (txt.value !== "") {
btn.className = "visibleBtn";
alert('type');
} else {
btn.className = "hiddenBtn";
alert('viisble');
}
};
};
Textbox:-
<asp:TextBox ID="txtSearch" runat="server" Width="152px" >
Button:-
<style type="text/css">
.hiddenBtn {
visibility: hidden;
}
.visibleBtn {
visibility: visible;
}
</style>
<asp:Button ID="BtnClearFilter" runat="server" OnClick="BtnClearFilter_Click" EnableTheming="false" Text="" CssClass="ClearFilter6" />
in my button i have one clickevent
JOTHI KUMAR Member 10918227
17-Feb-15 9:22am
View
hey it work but it work only once if i type next time it will not fire.
JOTHI KUMAR Member 10918227
17-Feb-15 8:53am
View
see this my coding
JOTHI KUMAR Member 10918227
17-Feb-15 8:52am
View
<script>
window.onload = function () {
var txt = document.getElementById("<%= txtSearch.ClientID %>");
var btn = document.getElementById("<%= BtnClearFilter.ClientID %>");
txt.onkeyup = function () {
if (txt.value !== "") {
btn.style.visibility = "visible";
} else {
btn.style.visibility = "hidden";
}
};
};
</script>
Textbox;
<asp:TextBox ID="txtSearch" runat="server" Width="152px" >
button:-
<asp:Button ID="BtnClearFilter" Visible="false" runat="server" OnClick="BtnClearFilter_Click" />
JOTHI KUMAR Member 10918227
17-Feb-15 8:51am
View
i make it but no use ntng came
JOTHI KUMAR Member 10918227
17-Feb-15 8:50am
View
any change in design or anythink .
JOTHI KUMAR Member 10918227
17-Feb-15 8:48am
View
hmm ok then next step??
JOTHI KUMAR Member 10918227
17-Feb-15 8:45am
View
how to use this code explain me briefly
JOTHI KUMAR Member 10918227
14-Feb-15 5:33am
View
how can i do kindly tell me any javascript
JOTHI KUMAR Member 10918227
14-Feb-15 3:32am
View
i want to achieve while clicking save button.the user can do any number of click while saving the entry. i need when user click once then not able to allow click another time.
JOTHI KUMAR Member 10918227
13-Feb-15 7:25am
View
SQL SERVER 2008
JOTHI KUMAR Member 10918227
13-Feb-15 5:38am
View
i have to write this dateformat in insert query. my database type is in datetime format
JOTHI KUMAR Member 10918227
13-Feb-15 5:31am
View
i have to write this dateformat in insert query. my database type is in datetime format
JOTHI KUMAR Member 10918227
13-Feb-15 5:29am
View
here i have datatype for date is DataTime in database. Now how i write query for this format in SQL .
JOTHI KUMAR Member 10918227
13-Feb-15 5:24am
View
yes because in database type should be in datatime
JOTHI KUMAR Member 10918227
13-Feb-15 5:22am
View
here i asked in mccess we put (Format('{0}', 'dd/mm/yyyy') like that but in sql how to put format for datetime.
JOTHI KUMAR Member 10918227
13-Feb-15 5:22am
View
here i asked in mccess we put (Format('{0}', 'dd/mm/yyyy') like that but in sql how to put format for datetime.
JOTHI KUMAR Member 10918227
9-Feb-15 3:17am
View
i enable and restart name instance but same error occur
JOTHI KUMAR Member 10918227
9-Feb-15 3:17am
View
here i changed but no use
JOTHI KUMAR Member 10918227
9-Feb-15 1:11am
View
here i retart but no use then other two instance name should stopped
1)Sql Server(SQLDBEXPRESS) running
2) SQL Server Agent (STOPPED)
3)SQL SEVER Browser(STOPPED).
JOTHI KUMAR Member 10918227
9-Feb-15 1:03am
View
yeah i checked it correct
JOTHI KUMAR Member 10918227
9-Feb-15 1:01am
View
u got it
JOTHI KUMAR Member 10918227
9-Feb-15 0:59am
View
add name="DEM" connectionString="Data Source=PRA\SQLDBEXPRESS;Initial Catalog=TESTMS;Persist Security Info=True;User ID=sa; Password=WBhd2ZRPSNLkIXKERwMB15JePIF+apJRCts69GbtLfE=" providerName="DEM"
JOTHI KUMAR Member 10918227
9-Feb-15 0:59am
View
in web config i gave this connecting string
<add name="DE" connectionstring="Data Source=PRAK\SQLDBEXPRESS;Initial Catalog=TESTMS;Persist Security Info=True;User ID=sa; Password=WBhd2ZRPSNLkIXKERwMB15JePIF+apJRCts69GbtLfE=" providername="DE">
JOTHI KUMAR Member 10918227
9-Feb-15 0:58am
View
Deleted
in web config i gave this connecting string
:-<add name="DE" connectionstring="Data Source=PRAK\SQLDBEXPRESS;Initial Catalog=TESTMS;Persist Security Info=True;User ID=sa; Password=WBhd2ZRPSNLkIXKERwMB15JePIF+apJRCts69GbtLfE=" providername="DE">
JOTHI KUMAR Member 10918227
9-Feb-15 0:56am
View
kindly tell where to check because im new in sql
JOTHI KUMAR Member 10918227
3-Feb-15 5:47am
View
i'm just beginner so kindly help how to resolve this error
JOTHI KUMAR Member 10918227
17-Jan-15 6:34am
View
thanks to all i finished this task Thank to all To reply my task
JOTHI KUMAR Member 10918227
14-Jan-15 7:43am
View
hmm.how to add image in it. then only i able to explain
JOTHI KUMAR Member 10918227
10-Dec-14 1:41am
View
yeah u correct but here i put this its give correct format but in cshtml file i will give check validationmessagefor.if i click more than 12 for example if i click 13-12-2014 it got error Please enter a valid date.
JOTHI KUMAR Member 10918227
10-Dec-14 0:37am
View
function CompareDate() { var dateOne = new Date(2012, 04, 20, 14, 55, 59); var dateTwo = new Date(2012, 04, 20, 12, 10, 20); Here i give static date but i want current date select by me.how to rewrite the code
JOTHI KUMAR Member 10918227
9-Dec-14 8:38am
View
yeah u correct here i tried this also i got error using this attribute:-[DateTimeCompare("StartDate", ValueComparison.IsGreaterThan,
ErrorMessage = "End date must be later than start date.")]
JOTHI KUMAR Member 10918227
9-Dec-14 8:29am
View
here i used this now i need to know how to compare end date greater than start date condition.where to write but i need to write in script. so anyone refer me write a code in script
JOTHI KUMAR Member 10918227
9-Dec-14 8:28am
View
<div class="row form-group">
<div class="col-md-4">
StartDate
</div>
<div class="col-md-8">
@Html.TextBoxFor(model => model.goodreceipt.StartDate, new { @Value = DateTime.Now.ToString("dd/MM/yyyy"), @class = "form-control control-text datePicker", @id = "IssueDate",@onkeyup = "OnChangeDate();" })
@Html.ValidationMessageFor(model => model.goodreceipt.StartDate)
</div>
</div>
<div class="row form-group">
<div class="col-md-4">
EndDate
</div>
<div class="col-md-8">
@Html.TextBoxFor(model => model.goodreceipt.EndDate, new { @Value = DateTime.Now.ToString("dd/MM/yyyy"), @class = "form-control control-text datePicker", @id = "IssueDate",@onkeyup = "OnChangeDate();" })
@Html.ValidationMessageFor(model => model.goodreceipt.EndDate)
</div>
</div>
JOTHI KUMAR Member 10918227
9-Dec-14 8:24am
View
hey here i add all validate (js file) in layout.cshtml and @html.validation also added in Index.cshtml.Here i want to check start and end date (end date must be greater than start date)
JOTHI KUMAR Member 10918227
9-Dec-14 7:06am
View
above three step i done it now i want to check like remote validation or using script
JOTHI KUMAR Member 10918227
9-Dec-14 6:26am
View
i cant caught you .here i asked simply where to write condition what condition we want to use .bcz here i compare when we move to next field
JOTHI KUMAR Member 10918227
29-Nov-14 5:47am
View
model:-
[Required]
[Column(TypeName = "date")]
[DataType(DataType.Date), DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
// [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
public DateTime? Posting_Date { get; set; }
View:-
<div class="col-md-8">
@Html.TextBoxFor(model => model.Posting_Date, new { @Value = DateTime.Now.ToString("dd/MM/yyyy"), @class = "form-control control-text datePicker", @id = "IssueDate" })
@Html.ValidationMessageFor(model => model.Posting_Date)
</div>
JOTHI KUMAR Member 10918227
29-Nov-14 5:47am
View
i set dd:mm:yyyy
JOTHI KUMAR Member 10918227
29-Nov-14 4:44am
View
model:-
[Required]
[Column(TypeName = "date")]
[DataType(DataType.Date), DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
// [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
public DateTime? Posting_Date { get; set; }
View:-
<div class="col-md-8">
@Html.TextBoxFor(model => model.Posting_Date, new { @Value = DateTime.Now.ToString("dd/MM/yyyy"), @class = "form-control control-text datePicker", @id = "IssueDate" })
@Html.ValidationMessageFor(model => model.Posting_Date)
</div>
JOTHI KUMAR Member 10918227
27-Nov-14 5:47am
View
hey i got it solution as per your idea bro
JOTHI KUMAR Member 10918227
27-Nov-14 5:36am
View
value should populate in text box but its only join not adding the value
For ex:
txtbox1=10
txtbox2=20
its just show 1020
JOTHI KUMAR Member 10918227
27-Nov-14 5:09am
View
im working in mvc i need two add two text-box fields given in view(.chtml).How to add. using jquery
JOTHI KUMAR Member 10918227
10-Nov-14 7:20am
View
here i'm doing this task in mvc 5
JOTHI KUMAR Member 10918227
10-Nov-14 5:03am
View
if you have any doubt see this is my second question to write linq query
http://www.codeproject.com/Questions/840624/how-to-separate-list-of-string-using-comma-in-linq
JOTHI KUMAR Member 10918227
10-Nov-14 5:02am
View
i'm stuck in Linq query
JOTHI KUMAR Member 10918227
10-Nov-14 3:11am
View
here i searched so many sites but still is in process
JOTHI KUMAR Member 10918227
10-Nov-14 3:10am
View
yeah i got it how to split with comma using linq query
JOTHI KUMAR Member 10918227
8-Nov-14 5:41am
View
(In second dropdown)i want to dispaly only selected value in first dropdown(multiselect).
JOTHI KUMAR Member 10918227
31-Oct-14 7:38am
View
here i want MVC :-
here i want to set default value as Country -India,State-Andra,City-Kadapa. then i want to set this default value load from database.When i load the Index or add new i need this but Here default country i want respective state and city.not load all state and city.
JOTHI KUMAR Member 10918227
31-Oct-14 7:35am
View
here i want to set default value as Country -India,State-Andra,City-Kadapa. Here i want to set this default.When i load the Index or add new i need this but Here default country i want respective state and city.not load all state and city.
JOTHI KUMAR Member 10918227
31-Oct-14 7:03am
View
where to set state ???
JOTHI KUMAR Member 10918227
31-Oct-14 6:57am
View
i will try and tell you ok
JOTHI KUMAR Member 10918227
31-Oct-14 6:40am
View
sorry not working,where to put this code .Here i put after this line$('#Country').change(function () {
$("#country").val("India");
If its correct
JOTHI KUMAR Member 10918227
31-Oct-14 6:06am
View
$(function () {
$('#Country').val(1);
$('#State').val(1);
$('#Country').change(function () {
debugger;
$.getJSON('/Branch/StateList/' + $('#Country').val(), function (data) {
var items = '<option>Select a State</option>';
$.each(data, function (i, state) {
items += "<option value='" + state.Value + "'>" + state.Text + "</option>";
});
$('#State').html(items);
});
});
$('#State').change(function () {
$('#City').val(1);
$.getJSON('/Branch/CityList/' + $('#State').val(), function (data) {
var items = '<option>Select a City</option>';
$.each(data, function (i, city) {
items += "<option value='" + city.Value + "'>" + city.Text + "</option>";
});
$('#City').html(items);
});
});
});
</script>
This is my loading dropdown script but i want to set Default value when Load the index and add new.
JOTHI KUMAR Member 10918227
31-Oct-14 6:05am
View
hmm sure
JOTHI KUMAR Member 10918227
29-Oct-14 5:32am
View
where to download
JOTHI KUMAR Member 10918227
28-Oct-14 8:55am
View
yeah i know but im fresher just guide as simple
JOTHI KUMAR Member 10918227
28-Oct-14 8:38am
View
i need code can anyone help me
JOTHI KUMAR Member 10918227
28-Oct-14 7:39am
View
yeah understand but given some sample code for above task
JOTHI KUMAR Member 10918227
28-Oct-14 7:20am
View
i know this all. give solution for above task
JOTHI KUMAR Member 10918227
6-Oct-14 9:24am
View
i want to select from dropdown
JOTHI KUMAR Member 10918227
6-Oct-14 8:55am
View
here i used try catch exception
JOTHI KUMAR Member 10918227
6-Oct-14 8:22am
View
sorry to say this i cant understand i tried lot but cant get can you explain me briefly
JOTHI KUMAR Member 10918227
6-Oct-14 8:02am
View
here i want to select multiple value in dropdown list.
For example A user have multiple roles Like employee,admin,staffmember like that
JOTHI KUMAR Member 10918227
6-Oct-14 7:38am
View
i need some example to understand bcz im new in mvc Repository pattern
JOTHI KUMAR Member 10918227
23-Sep-14 3:45am
View
i will try and tell to you thanks for this ok
JOTHI KUMAR Member 10918227
23-Sep-14 3:25am
View
hmm yeah name is unique
JOTHI KUMAR Member 10918227
23-Sep-14 2:59am
View
hmm yeah i used repository also
JOTHI KUMAR Member 10918227
23-Sep-14 2:56am
View
context
JOTHI KUMAR Member 10918227
23-Sep-14 1:46am
View
Where i put this function Kindly guide me sir bcz im new in mvc repository pattern
JOTHI KUMAR Member 10918227
8-Sep-14 8:01am
View
hey can you explain me details because i'm in new in mvc
JOTHI KUMAR Member 10918227
6-Sep-14 6:18am
View
here i gave this but i got error
The data reader is incompatible with the specified 'Troy.Data.DataContext.user'. A member of the type, 'user_Id', does not have a corresponding column in the data reader with the same name.
And i using store procedure and repository pattern
JOTHI KUMAR Member 10918227
21-Aug-14 8:56am
View
sorry to say this i cant understand so kindly explain me briefly.
Here i used mvc.sitemapp code:-
mvcsitemapnode imageurl="/content/images/printer-128.png" title="Home" resourcekey="Home" controller="Home" action="Index"
mvcsitemapnode title="Branch" controller="Branch" action="Index" resourcekey="Content" imageurl="~/content/images/printer-128.png"> <div id="EditDialogPlaceholder"></div> <div id="ReplyDialogPlaceholder"></div>
JOTHI KUMAR Member 10918227
21-Aug-14 8:55am
View
Deleted
<mvcsitemapnode imageurl="/content/images/printer-128.png" title="Home" resourcekey="Home" controller="Home" action="Index">
<mvcsitemapnode title="Branch" controller="Branch" action="Index" resourcekey="Content" imageurl="~/content/images/printer-128.png">
JOTHI KUMAR Member 10918227
21-Aug-14 8:54am
View
Deleted
sorry to say this i cant understand so kindly explain me briefly.
Here i used mvc.sitemapp code:-
<mvcsitemapnode imageurl="/content/images/printer-128.png" title="Home" resourcekey="Home" controller="Home" action="Index">
<mvcsitemapnode title="Branch" controller="Branch" action="Index" resourcekey="Content" imageurl="~/content/images/printer-128.png">
JOTHI KUMAR Member 10918227
21-Aug-14 8:53am
View
Deleted
sorry to say this i cant understand so kindly explain me briefly.
Here i used mvc.sitemapp code:-
mvcsitemapnode imageurl="/content/images/printer-128.png" title="Home" resourcekey="Home" controller="Home" action="Index"
mvcsitemapnode title="Branch" controller="Branch" action="Index" resourcekey="Content" imageurl="~/content/images/printer-128.png">
JOTHI KUMAR Member 10918227
21-Aug-14 8:14am
View
Thanks for reply i already done this method but i want to add images infront of home.and about so i want to need that Can you help me for that
JOTHI KUMAR Member 10918227
20-Aug-14 10:13am
View
view:
<div class="col-md-3 text-left">
@Html.Label("Car", new { @class = "control-label" })
</div>
<div class="col-md-3">
@Html.TextBoxFor(model => model.Car, new { @class = "form-control control-text" })
@Html.ValidationMessageFor(model => model.Car)
</div>
</div>
<div class="form-group">
<div class="col-md-3 text-left">
@Html.Label("Passenger", new { @class = "control-label" })
</div>
<div class="col-md-3">
@Html.TextBoxFor(model => model.Passenger, new { @class = "form-control control-text" })
@Html.ValidationMessageFor(model => model.Passenger)
</div>
Modal:-
[Index(IsUnique = true)]
[Required(ErrorMessage = "Car is required.")]
[StringLength(30)]
public string Car{ get; set; }
[Index(IsUnique = true)]
[Required(ErrorMessage = "Passengeris required.")]
[StringLength(30)]
public int Passenger{ get; set; }
JOTHI KUMAR Member 10918227
20-Aug-14 10:03am
View
here i designed entities,dbset,controller and view using textbox. but now i want to set radiobutton instead of textbox and populate values.
JOTHI KUMAR Member 10918227
20-Aug-14 9:47am
View
thanks for reply i'm new for mvc5 .so could you explain me detailed sir
JOTHI KUMAR Member 10918227
20-Aug-14 2:54am
View
hey gihan thanks for reply i already used this but i cant set image if i type imageurl the i gave path for images but cant set and images path should start ~ or / all i tried but no use.can u explain another method or teach set image path
JOTHI KUMAR Member 10918227
14-Aug-14 1:37am
View
i saw all the videos but not cleared i tired but no use Thanks for reply me
JOTHI KUMAR Member 10918227
13-Aug-14 8:32am
View
yeah thanks for reply but i want to take value from database tables
JOTHI KUMAR Member 10918227
13-Aug-14 6:17am
View
hi manoj i want to search autocomplete filter.i nedd the code for it. here i finished searching in my project now i want to search autocomplte for respective record shown in dropdown like google search or tell code to write auto complete
JOTHI KUMAR Member 10918227
13-Aug-14 5:53am
View
here your blog you gave static but i want to take from database table
JOTHI KUMAR Member 10918227
13-Aug-14 4:24am
View
i wont tried can you give me some ideas for this
JOTHI KUMAR Member 10918227
13-Aug-14 3:39am
View
what hapn???? jameel
JOTHI KUMAR Member 10918227
13-Aug-14 3:11am
View
Here i used this function for populate value to id in database tables
var branchList = (from s in db.Branches
join co in db.Country on s.Country_Id equals co.Country_Id
join st in db.State on s.State_Id equals st.State_Id
join ct in db.City on s.City_Id equals ct.City_Id
select new
{
s.Branch_Id,
s.Branch_Name,
s.Country_Id,
s.State_Id,
s.City_Id,
co.Country_Name,
st.State_Name,
ct.City_Name
});
//Binding the db linq values
List<viewbranch> brnchList = new List<viewbranch>();
foreach (var m in branchList)
{
ViewBranch blist = new ViewBranch();
blist.Branch_Id = m.Branch_Id;
blist.Branch_Name = m.Branch_Name;
blist.Country_Id = m.Country_Id;
blist.Country_Name = m.Country_Name;
blist.State_Id = m.State_Id;
blist.State_Name = m.State_Name;
blist.City_Id = m.City_Id;
blist.City_Name = m.City_Name;
brnchList.Add(blist);
}
Here now i want populate state and city automatically load
JOTHI KUMAR Member 10918227
13-Aug-14 3:06am
View
i'm totally stuck in Linq query in controller i want to write can you help me please
JOTHI KUMAR Member 10918227
13-Aug-14 2:44am
View
Here i gave all think but i need LINQ query and how to write Code in controller and partial views to populate state and city
JOTHI KUMAR Member 10918227
13-Aug-14 2:40am
View
sorry to say to you jameel i already tried this link Here i just need LINQ query
JOTHI KUMAR Member 10918227
13-Aug-14 1:58am
View
Here i make LINQ connection . state and city table are in static in database. so i need to connect database tables. i want to write code in controller and views can explain me in code.how to write LINQ to populate this state and city
JOTHI KUMAR Member 10918227
13-Aug-14 1:39am
View
Here i use this but no change can suggest another one
JOTHI KUMAR Member 10918227
13-Aug-14 1:37am
View
above solution what i refer can explain me please
Show More