Click here to Skip to main content
14,972,394 members

Comments by JOTHI KUMAR Member 10918227 (Top 200 by date)

   
no i need to access Different "Database" Not Table.
   
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
   
In selector[0,0,0] =1; what is this 1 means??
   
any sample for using ternary operator using above condition
   
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
   
can you explain me how can i do that
   
hi,
I want some textbox look like heading details.that heading details also want to repeat in all pages.
   
can you send me correct code bcz above i cant understand
   
hmm yeah i need to tried but user want to preview the page
   
yeah can you give me sample format jquery dropdown focus
   
sorry ? what??
   
here i integrated with my asp.net application also.if you not know just wont reply ok sorry to hurt you
   
how to i take xml bcz im new to asp.net so kindly explain me details
   
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
   
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
   
sorry i cant get you please explain me in details
   
some computers like 10 systems i need particular system to login, but all are in different location so how to do.
   
it have in js folder inside
   
sorry i cant get you
   
can anybody tell if i use <usc:header> to show header then msdropdown not loaded in that page
   
if i use header <usc:Header ID="Header" runat="server" /> i wont get images dropdown how to i resolve
   
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.
   
i got it thanks for your reply.i resolved and run that deploy code
   
CAn anybody tell how to resolve this
   
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.
   
i got error in var ismatch line in above script here i put alert it wont fire
   
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
   
i want to add new row in between 2 and 3
   
above one add new row in between exixting row ???
   
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"
   
hmm yeah sure, and it not a string its int
   
specified cast is not valid
   
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
   
hey rohit above script its working but it search column also.but i need only data not column
   
sorry richard it will not working sorry
   
thanks rohit its working.suppose if i have any query i will get back to you thanks to all.
   
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);
   
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);
   
i will not get :(
   
i improve my question.kindly see that i deploy all my script using
   
i improve my question.kindly see that i deploy all my script using
   
i improve my question.kindly see that i deploy all my script using
   
i improve my question.kindly see that i deploy all my script using
   
for conforming purpose if i conform it it wills ave or otherwise it allow to save
   
i need return statement for this script
   
where i use dopostback .bcz im new for this so kindly help me
   
hmm yeah it return false how to resolve this any idea
   
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 .
   
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>
   
hmm k but i done that but before button click i write some validation for textbox that is called twice.
   
please suggest any answer derived from given my code.
   
firefox ->console tab
   
i done this but this will not work me i got event is undefined.this is form view
   
can anybody modify my code that will work in firefox also
   
yes
   
i have two checkboxlist so only i put enable =false thanks to all i got answer thanks thanks
   
here im ready to use jquery but how to write code can anyone explain one example ???
   
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.
   
if i use window.open()it will not work in ie. i update that question kindly change my code as your own
   
i saw but nit understand how i call this print page as your view explain me details please
   
two location
   
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);
}
}
   
cookies means?? explain me please
   
sorry im new in .net.when the session expires.how to extend the session.can you tell me
   
hmm yeah
   
sorry what??
   
not work sorry here i used update panel no use :(
   
i got solution if i want to use in ie just response.addheader in .cs
   
im fresher to asp.net c#. so kindly explain me by example
   
now i improve my auestion
   
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
   
here i resolved this and now i want to do some dailysales occur null so it cant take any values for monthly sales also
   
thanks to all i resolve it thanks guys
   
here i give that tr id and make it as visible as true
when selected index click
   
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>
   
what??
   
hi balaji it works fine thanks for your reply thank you
   
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
   
ok thanks for your reply. :)
   
same as you my search click event also empty
   
can i see you search button click event
   
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"));
}
   
oninit:-
GridSource.SelectParameters.Add(new ControlParameter("txtSearch", TypeCode.String, txtSearch.UniqueID, "Text"));
GridSource.SelectParameters.Add(new ControlParameter("dropDown", TypeCode.String, ddCriteria.UniqueID, "SelectedValue"));
   
if i click searching then this method will fire bcz i used formview
Method:
OnInit(EventArgs e)
   
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.
   
yeah correct how to put in page load
   
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" />
   
here i type in search-box then i click search button. if the record searched then i click clearbutton to clear text
   
that i wrote in oninit method.
   
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.
   
no
   
what????
   
here i already replace my code as btnclearfilter see my previous code
   
if have text in text-box then clear button should visible or else invisible
   
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
   
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
   
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
   
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
   
sorry clear text button should remains constant after searching
   
yeah i replace that button only,but after searching or clearing the text clear filter should remain constant
   
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" />
   
yeah but if i search or clear text then clear filter should be visible always. :(
   
ok then design want add any method name?
   
how it is can you resolve me
   
in my button have onclick event , it works in two functionality, before searching and after searching
   
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
   
hey it work but it work only once if i type next time it will not fire.
   
see this my coding
   
<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" />
   
i make it but no use ntng came
   
any change in design or anythink .
   
hmm ok then next step??
   
how to use this code explain me briefly
   
how can i do kindly tell me any javascript
   
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.
   
SQL SERVER 2008
   
i have to write this dateformat in insert query. my database type is in datetime format
   
i have to write this dateformat in insert query. my database type is in datetime format
   
here i have datatype for date is DataTime in database. Now how i write query for this format in SQL .
   
yes because in database type should be in datatime
   
here i asked in mccess we put (Format('{0}', 'dd/mm/yyyy') like that but in sql how to put format for datetime.
   
here i asked in mccess we put (Format('{0}', 'dd/mm/yyyy') like that but in sql how to put format for datetime.
   
i enable and restart name instance but same error occur
   
here i changed but no use
   
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).
   
yeah i checked it correct
   
u got it
   
add name="DEM" connectionString="Data Source=PRA\SQLDBEXPRESS;Initial Catalog=TESTMS;Persist Security Info=True;User ID=sa; Password=WBhd2ZRPSNLkIXKERwMB15JePIF+apJRCts69GbtLfE=" providerName="DEM"
   
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">
   
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">
   
kindly tell where to check because im new in sql
   
i'm just beginner so kindly help how to resolve this error
   
thanks to all i finished this task Thank to all To reply my task
   
hmm.how to add image in it. then only i able to explain
   
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.
   
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
   
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.")]
   
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
   


<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>
   
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)
   
above three step i done it now i want to check like remote validation or using script
   
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
   
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>
   
i set dd:mm:yyyy
   
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>
   
hey i got it solution as per your idea bro
   
value should populate in text box but its only join not adding the value
For ex:
txtbox1=10
txtbox2=20
its just show 1020
   
im working in mvc i need two add two text-box fields given in view(.chtml).How to add. using jquery
   
here i'm doing this task in mvc 5
   
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
   
i'm stuck in Linq query
   
here i searched so many sites but still is in process
   
yeah i got it how to split with comma using linq query
   
(In second dropdown)i want to dispaly only selected value in first dropdown(multiselect).
   
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.
   
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.
   
where to set state ???
   
i will try and tell you ok
   
sorry not working,where to put this code .Here i put after this line$('#Country').change(function () {
$("#country").val("India");
If its correct
   
$(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.
   
hmm sure
   
where to download
   
yeah i know but im fresher just guide as simple
   
i need code can anyone help me
   
yeah understand but given some sample code for above task
   
i know this all. give solution for above task
   
i want to select from dropdown
   
here i used try catch exception
   
sorry to say this i cant understand i tried lot but cant get can you explain me briefly
   
here i want to select multiple value in dropdown list.
For example A user have multiple roles Like employee,admin,staffmember like that
   
i need some example to understand bcz im new in mvc Repository pattern
   
i will try and tell to you thanks for this ok
   
hmm yeah name is unique
   
hmm yeah i used repository also
   
context
   
Where i put this function Kindly guide me sir bcz im new in mvc repository pattern
   
hey can you explain me details because i'm in new in mvc
   
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
   
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>
   
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">
   
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">
   
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">
   
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
   
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; }
   
here i designed entities,dbset,controller and view using textbox. but now i want to set radiobutton instead of textbox and populate values.
   
thanks for reply i'm new for mvc5 .so could you explain me detailed sir
   
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
   
i saw all the videos but not cleared i tired but no use Thanks for reply me
   
yeah thanks for reply but i want to take value from database tables
   
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
   
here your blog you gave static but i want to take from database table
   
i wont tried can you give me some ideas for this
   
what hapn???? jameel
   
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
   
i'm totally stuck in Linq query in controller i want to write can you help me please
   
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
   
sorry to say to you jameel i already tried this link Here i just need LINQ query
   
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
   
Here i use this but no change can suggest another one
   
above solution what i refer can explain me please