15,898,134 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 Laxmidhar tatwa technologies (Top 155 by date)
Laxmidhar tatwa technologies
16-Jul-20 11:20am
View
ViewBag.Percentage = ViewBag.datepick.Count <= 0 ?ViewBag.pass.Count : (ViewBag.pass.Count / ViewBag.datepick.Count) * 100;
Laxmidhar tatwa technologies
16-Jul-20 11:10am
View
Thanks bro
Laxmidhar tatwa technologies
13-Jul-20 11:54am
View
The last cell should be DataGridViewImageCell
iTextSharp.text.Image barCode = iTextSharp.text.Image.GetInstance(bm, System.Drawing.Imaging.ImageFormat.Png);
cell.Value = barcode;
Laxmidhar tatwa technologies
13-Jul-20 11:40am
View
PdfPTable table = new PdfPTable(10); // 10 is the number of column
Laxmidhar tatwa technologies
13-Jul-20 11:31am
View
Dim result1 As DateTime = DateTimePickerFixCosts1.Value.AddMonths(1)
Laxmidhar tatwa technologies
15-Dec-19 7:37am
View
hi you need to edit in client side
Laxmidhar tatwa technologies
15-Dec-19 7:34am
View
i = document.getElementById("i").files[0]; convert to byte or bytestring then send
Laxmidhar tatwa technologies
1-Dec-19 2:01am
View
you have to install cookiperser : $ npm install --save set-cookie-parser Then set the cooki Go thouth the url for set cooki https://stackoverflow.com/questions/16209145/how-to-set-cookie-in-node-js-using-express-framework
Laxmidhar tatwa technologies
1-Dec-19 1:52am
View
Look for IIS mime type settings MP4 Videos Require a MIME Type on Your Server to Play Properly
Right-click the site in IIS and select Properties.
Select the HTTP Headers Tab.
Select File Types.
Under the MIME Map section, select New Type.
Type ". mp4" as the associated extension and "video/mpeg" as the content type.
Click OK. the url for details https://articulate.com/support/article/mp4-videos-require-a-mime-type-on-your-server-to-play-properly
Laxmidhar tatwa technologies
1-Dec-19 1:50am
View
pass some parameter with the url and according to the value of the parameter you can customise your page
Laxmidhar tatwa technologies
1-Dec-19 1:48am
View
your calss shoud be inhereted from viewcomponet class ,for the details follow the link https://www.codingame.com/playgrounds/4981/view-components-in-asp-net-core
Laxmidhar tatwa technologies
1-Dec-19 1:43am
View
you can stored in cookies
Laxmidhar tatwa technologies
1-Dec-19 1:41am
View
Convert into charector array ,then in for loop get the ascii code of each charector and substract 64 ,because start of A is 65 then sum the ascii value
Laxmidhar tatwa technologies
1-Dec-19 1:35am
View
Your cls.cs has function name is INSERTDATA but you call convertphone function ,where it is define please tell
Laxmidhar tatwa technologies
19-Nov-18 0:38am
View
you should display the code .basically. if you want to add from a textbox with button click then the code is DropDownList1.Items.Add(TextBox1.Text);
Laxmidhar tatwa technologies
19-Nov-18 0:17am
View
Vincent is currect .Please show the html with saving code
Laxmidhar tatwa technologies
19-Nov-18 0:11am
View
hi sir you check String.IsNullOrEmpty .in else block may asign RegtxtVatCode.ValidationExpression = ""
Laxmidhar tatwa technologies
29-Sep-18 7:08am
View
change the bordeer style like
border: 25px solid green;
Laxmidhar tatwa technologies
29-Sep-18 7:03am
View
what is the method type (verb) like post or get.
If get thai is correct .other wise send parameter through json
Laxmidhar tatwa technologies
29-Sep-18 6:59am
View
hiactualy first excute serverside then client side.
so jquery is best
Laxmidhar tatwa technologies
15-Mar-18 23:50pm
View
Look all these in the URL sending yesterday
Laxmidhar tatwa technologies
15-Mar-18 23:48pm
View
HiMade some changes
1- in the for each loop datarow use like
datarow dr= DT.newrow();
Dr(0) = node.selectsingle node("SID");
.
.
But your XML structure is different node
Name like view1,view2.
So this is for first node that is view1
Laxmidhar tatwa technologies
15-Mar-18 23:26pm
View
When load the structure to report
Should match to your data source fields
Laxmidhar tatwa technologies
15-Mar-18 23:18pm
View
Hi
Check the entity connection string in webcofig
Laxmidhar tatwa technologies
15-Mar-18 23:13pm
View
Hi manoj
F-ESSitecore is curtect.you may use jquery only
For use like a handler.but actual work done
Should in your API
Laxmidhar tatwa technologies
15-Mar-18 8:59am
View
Set width of div and panel
Laxmidhar tatwa technologies
15-Mar-18 8:49am
View
F-ESSitecore is currect.
May use jquery also
Laxmidhar tatwa technologies
14-Mar-18 7:49am
View
csharp.net-infomations.com/XML/
how-to-read-xml.htm
Laxmidhar tatwa technologies
14-Mar-18 7:25am
View
Use tag input type="file" name="file"
Laxmidhar tatwa technologies
14-Mar-18 7:24am
View
Do not use textboxfor
Use like
Again the view code
@using(HTML.begin form("action name","controler",form method.post,
new { enctype="multiparty/form-data"}))
Laxmidhar tatwa technologies
14-Mar-18 7:03am
View
As a single value query use like
var sts = cmd.executescalar();
Laxmidhar tatwa technologies
14-Mar-18 6:53am
View
HiHave u specified SRC ?
Laxmidhar tatwa technologies
14-Mar-18 6:48am
View
If u stored it in a file
Use namespace system.XML
Xmldocument doc = new xmldocument();
doc.load(XML file path);
In for each loop get each node
Then get the value of each node and subnode
Laxmidhar tatwa technologies
14-Mar-18 5:29am
View
Union the three query and make one
Then bind the grid
Laxmidhar tatwa technologies
13-Mar-18 5:53am
View
Hi u are current .but use update panel with
Timer
Laxmidhar tatwa technologies
13-Mar-18 5:48am
View
Hi w hat is code of behind
Laxmidhar tatwa technologies
13-Mar-18 5:44am
View
Hi may help u bellow link
Stackoverflow/questions/5855813
Laxmidhar tatwa technologies
13-Mar-18 5:33am
View
Hi may help bellow link
Stackoverflow.com/questions/36011085
Laxmidhar tatwa technologies
13-Mar-18 5:18am
View
Hi if the app is web service then it is not problem to connect with php
Laxmidhar tatwa technologies
13-Mar-18 5:14am
View
Hi Maciej los
You r currect
Laxmidhar tatwa technologies
12-Mar-18 23:05pm
View
Retrieve the data row one by one from and store
One by one data row of another datatable
Laxmidhar tatwa technologies
12-Mar-18 22:40pm
View
C.country_name = nnn.first().tostring();
Laxmidhar tatwa technologies
23-Feb-18 23:30pm
View
in td style put
again the datalist with set as per items display
Laxmidhar tatwa technologies
22-Feb-18 23:30pm
View
try
Grid.DataSource = null;
Grid.DataBind();
Grid.DataSource = dtDatas;
Grid.DataBind();
Laxmidhar tatwa technologies
19-Feb-18 23:46pm
View
use timer in ajax
Laxmidhar tatwa technologies
19-Feb-18 23:37pm
View
It is easy for you to use nugates sheduler or any third party
Laxmidhar tatwa technologies
19-Feb-18 23:28pm
View
after return true breake; should be there
Laxmidhar tatwa technologies
19-Feb-18 23:28pm
View
switch (ext.ToLower())
{
case ".gif":
case ".png":
case ".jpg":
case ".jpeg":
case ".pdf":
return true;
break;
default:
return false;
}
Laxmidhar tatwa technologies
18-Feb-18 9:28am
View
First collect all the links in load event .then
Use JavaScript for counting
Laxmidhar tatwa technologies
13-Feb-18 5:30am
View
Inherits = class name
Laxmidhar tatwa technologies
13-Feb-18 5:24am
View
In if condition check both checkbox with or operator for pass 0.5 in else statement pass 1
Laxmidhar tatwa technologies
13-Feb-18 1:58am
View
In where condition send session data.
U can use count statement
Laxmidhar tatwa technologies
13-Feb-18 1:52am
View
Data should save in date time data type
Laxmidhar tatwa technologies
13-Feb-18 1:46am
View
Dynamically define cell type
Laxmidhar tatwa technologies
2-Feb-18 12:28pm
View
For each(gridviewrow row in griviewname.rows)
{
//
}
Laxmidhar tatwa technologies
2-Feb-18 12:06pm
View
Why do not use gridviename_rowupfating method
Laxmidhar tatwa technologies
2-Feb-18 11:53am
View
Yes in the above function the textbox should be cleated
Laxmidhar tatwa technologies
2-Feb-18 11:48am
View
Pl display ur code
Laxmidhar tatwa technologies
31-Jan-18 6:03am
View
Take outside the grid three textboxes
With a button and in button clic event
Add a row to the dt the global and bind the grid
Laxmidhar tatwa technologies
31-Jan-18 5:59am
View
In row_deleting function change
Convert.toint32(lbldeleteid.text)
Laxmidhar tatwa technologies
31-Jan-18 5:45am
View
In db stored the date with a flag with false
When click check the date and made ur flag to true
Laxmidhar tatwa technologies
31-Jan-18 5:38am
View
Where is the get function .pl display it
Laxmidhar tatwa technologies
31-Jan-18 5:34am
View
Pl aware us the value of all the textbox and the datatypes of the table fields
Laxmidhar tatwa technologies
31-Jan-18 5:29am
View
ds is taken both global as well as local vsriable .global change to dt that is for data table
Laxmidhar tatwa technologies
31-Jan-18 5:22am
View
Insted of & take a switable small word and after collect chamge it to again &
Laxmidhar tatwa technologies
30-Jan-18 9:34am
View
Try amps ; with &
Laxmidhar tatwa technologies
30-Jan-18 9:32am
View
Deleted
Try amps ; witk &
Laxmidhar tatwa technologies
30-Jan-18 9:32am
View
Deleted
Try amps ; with &
Laxmidhar tatwa technologies
30-Jan-18 9:27am
View
What is in code behind
Laxmidhar tatwa technologies
30-Jan-18 9:24am
View
Dynamic columon shout be hidden type .Not visible false
Laxmidhar tatwa technologies
30-Jan-18 9:20am
View
Are u success
Laxmidhar tatwa technologies
30-Jan-18 9:16am
View
Yes it is current .but may some security issue
Laxmidhar tatwa technologies
30-Jan-18 9:12am
View
First assign the the virwbag object to null .
In if condition check the not null of object and assign
The viewbag
Laxmidhar tatwa technologies
30-Jan-18 9:07am
View
Yes in code behind store the images retrieve fr on data base
And stored in the controls .in javascript slide it
Laxmidhar tatwa technologies
30-Jan-18 8:53am
View
It is difficult to tell without observing band width,database structure and connection
Laxmidhar tatwa technologies
24-Jan-18 2:26am
View
ok sir thanks
kindly aware me about the table structure
Laxmidhar tatwa technologies
24-Jan-18 2:25am
View
sir what is the os
Laxmidhar tatwa technologies
23-Jan-18 23:01pm
View
Ok sir I am looking it now
Laxmidhar tatwa technologies
23-Jan-18 22:46pm
View
sir pl check the value of model.Answer; that is comming from the view to controler
thanks
Laxmidhar tatwa technologies
23-Jan-18 21:32pm
View
no sir u r correct
Laxmidhar tatwa technologies
23-Jan-18 21:28pm
View
a good description
Laxmidhar tatwa technologies
23-Jan-18 11:05am
View
sir have to look and try in my pc .so I will convey later
thanks
Laxmidhar tatwa technologies
23-Jan-18 11:05am
View
insted of DECLARE @UserId INT, @LastLoginDate DATETIME
DECLARE @UserId INT
DECLARE @LastLoginDate DATETIME
Laxmidhar tatwa technologies
23-Jan-18 10:48am
View
a good suggetion
Laxmidhar tatwa technologies
23-Jan-18 10:45am
View
sir pl display storedprocedure
Laxmidhar tatwa technologies
23-Jan-18 10:10am
View
in action method convert the json data into indivisual string or other tyep.Then pass to procedure
Laxmidhar tatwa technologies
23-Jan-18 10:07am
View
sir pl give the breake point tell us the actual point of error.
Laxmidhar tatwa technologies
23-Jan-18 10:04am
View
pl mension the app like asp.net or windows app and whta are the table structure
again what is the control u use
Laxmidhar tatwa technologies
23-Jan-18 10:02am
View
session is asp.net value can stored in a static class member
Laxmidhar tatwa technologies
23-Jan-18 9:54am
View
sir pl display the code
Laxmidhar tatwa technologies
23-Jan-18 9:52am
View
Quary = "select a.Code,a.Item,c.Cat_Name,b.Brand_Name AND a.Code='" + a+"'";
the above query is not clrear .Because the value of a in not given
Laxmidhar tatwa technologies
23-Jan-18 9:50am
View
@Html.LabelFor(model => model.Price,null, new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.Price,null, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.Price, null, new { @class = "text-danger" })
Laxmidhar tatwa technologies
23-Jan-18 9:43am
View
sir pl dispaly the code
Laxmidhar tatwa technologies
23-Jan-18 9:40am
View
sir u have to mandatory to pass all the values i this type of query
Laxmidhar tatwa technologies
23-Jan-18 9:24am
View
chnage autogenerrated column true of grid
Laxmidhar tatwa technologies
23-Jan-18 9:20am
View
sir comnnection pool has a limit but object pool has no limit
Laxmidhar tatwa technologies
16-Jan-18 0:03am
View
where you run the site whether in web server or in local mechine.
If in web server then allow permission for read and write option to the container folder
Laxmidhar tatwa technologies
15-Jan-18 23:57pm
View
that means you need the jquery to hide the textbox
Laxmidhar tatwa technologies
12-Jan-18 10:43am
View
sir give the break point and show the error line
Laxmidhar tatwa technologies
12-Jan-18 10:39am
View
1)check null value
2)check driver if connect to oledb
Laxmidhar tatwa technologies
12-Jan-18 5:11am
View
HOME
ABOUT US
Laxmidhar tatwa technologies
10-Jan-18 6:30am
View
1)download the page from the panel
And edit again upload
Laxmidhar tatwa technologies
10-Jan-18 6:24am
View
You can create html report and pring by javascript
Laxmidhar tatwa technologies
9-Jan-18 5:47am
View
in html id is pnlSrt but in code behind id is pnlSort
Laxmidhar tatwa technologies
9-Jan-18 5:46am
View
pnlSort should be a panel or group box
Add the option in dropdownlist .rest likes to be ok in your code
Laxmidhar tatwa technologies
18-Dec-17 9:37am
View
sir Instated of viewstate if would like to store in session object
I think your problem will be solved
Laxmidhar tatwa technologies
18-Dec-17 9:29am
View
I think The above code is currect
Laxmidhar tatwa technologies
18-Dec-17 9:24am
View
Dear friends all are correct .Here the scope of the members depend on the access specifier and also the members may static or non static
Laxmidhar tatwa technologies
15-Dec-17 7:23am
View
define two functions in each click event of each control
Laxmidhar tatwa technologies
13-Dec-17 7:53am
View
those some variables interested to hide take them in some control and hide the control in java scipt before calling the ajax extender
Laxmidhar tatwa technologies
13-Dec-17 7:37am
View
sir I am nor sure .But You can first declare a public member in your app .
that can access in another thread by calling the public member of running previous
Laxmidhar tatwa technologies
13-Dec-17 6:59am
View
sir check the function
RefreshErrMsg('ctl00_ContentPlaceHolder1_DateControl1_dtCtlErrLbl');" whether it does not return false.If so the breake point not go to code behind.Again autopost option should true
Laxmidhar tatwa technologies
13-Dec-17 6:55am
View
sir
1-create a table in sql
2-in select query retrive all the tables
3- create a data table in c#
in for loop assign all the table values into the data table
4-use bulok copy to insert the sql table from data table
Laxmidhar tatwa technologies
13-Dec-17 5:52am
View
if user click on save it saves.
if click on back button call a java script function
and in the function display the message .then reload the same page with previous id data
Laxmidhar tatwa technologies
13-Dec-17 5:32am
View
hi friend
Actualy in case of asp.net fist execute serversite code .After that generate the html and
execute.
Laxmidhar tatwa technologies
8-Dec-17 7:31am
View
the text fields only can count . But number fields can sum
Laxmidhar tatwa technologies
6-Dec-17 3:03am
View
sir there are some many function . kindly give the breake point in the code behind
for the problem function and convey the error point
Laxmidhar tatwa technologies
6-Dec-17 2:58am
View
sir
there are one number field others are text fields perhaps
Laxmidhar tatwa technologies
4-Dec-17 23:29pm
View
sir
I mean you want to count the rowwise and also coomnwise
Laxmidhar tatwa technologies
30-Nov-17 4:52am
View
Deleted
sir
1 - take a div i the html with atribute runat ="server" and a id like id= "dtbl"
2 - In Your code htmlTable variable should be stringBuilder
3 - In loop Last htmlTable.Append("");
4- dtbl.InnerHtml = htmlTable.toString()
5- Next sir where you want to filter whether in c# or SQl
Laxmidhar tatwa technologies
28-Nov-17 2:02am
View
a good technic to reduce the code
Laxmidhar tatwa technologies
27-Nov-17 7:49am
View
A good usefull code
Laxmidhar tatwa technologies
27-Nov-17 7:30am
View
good named variable array
Laxmidhar tatwa technologies
27-Nov-17 7:27am
View
your code looks powerfull
Laxmidhar tatwa technologies
27-Nov-17 4:37am
View
A good solution
Laxmidhar tatwa technologies
25-Nov-17 4:06am
View
the data type of BirthDate in thes case should be int
Laxmidhar tatwa technologies
23-Nov-17 7:48am
View
the above code works well
only add the script of jquery-1.10.0.min.js
and then add the within document.ready function like bellow
$(document).ready(function () {
$(".dropdown_item").mouseover(function (e) {
$(this).css("color", "rgb(102,183,226)");
});
$(".dropdown_item").mouseout(function (e) {
$(this).css("color", "rgb(200,200,200)");
});
});
Laxmidhar tatwa technologies
23-Nov-17 1:54am
View
Deleted
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Mvclogin.Controllers
{
public class RegistrationController : Controller
{
//
// GET: /Registration/
public ActionResult Index()
{
return View();
}
public ActionResult login()
{
return View();
}
[HttpPost]
public ActionResult Userlogin(string uid,string pas)
{
// your code
return RedirectToAction("login");
}
}
}
//html code
@{
ViewBag.Title = "login";
}
var myApp = angular.module('myApp', []);
myApp.controller('myController', ['$scope', '$http', function ($user, $http) {
$user.postsend = function () {
var config = {
headers: {
'Content-Type': 'application/json;'
}
}
try {
var uval = $user.name;
var upas = $user.pass;
alert(uval);
var httpRequest = $http.post('/Registration/Userlogin?uid=' + uval + 'pas&=' + upas)
.success(function (data, status, headers, config) {
alert("saved successfully");
})
.error(function (data, status, headers, config) {
alert("Not respond");
});
} catch (e) {
}
}
}]);
Laxmidhar tatwa technologies
22-Nov-17 23:56pm
View
Thank you for your comment and the above code is working fine
Laxmidhar tatwa technologies
21-Nov-17 4:44am
View
actual my html code is converted like that
the actual code is written now in the solution
Laxmidhar tatwa technologies
21-Nov-17 3:00am
View
If the table associated with a forgein key and the values are stored in child table
you should not drop the table
Laxmidhar tatwa technologies
21-Nov-17 2:00am
View
First save your file in the server using server.mappath
second check whether the driver is registered or not for oldb
Laxmidhar tatwa technologies
21-Nov-17 1:42am
View
the code is mine only for tow fields .But you should implement this code with your code.
Laxmidhar tatwa technologies
21-Nov-17 1:41am
View
the above code working well for simple two fields and adding mouse listner
Laxmidhar tatwa technologies
20-Nov-17 23:39pm
View
this is working well
Laxmidhar tatwa technologies
20-Nov-17 23:38pm
View
this is working well whatever else with your end I do not know
Laxmidhar tatwa technologies
20-Nov-17 23:36pm
View
this is working fine whatever else ?
Laxmidhar tatwa technologies
20-Nov-17 12:41pm
View
create a ancher tag and give download attribute
Laxmidhar tatwa technologies
20-Nov-17 12:39pm
View
Deleted
click here for download
Laxmidhar tatwa technologies
20-Nov-17 12:36pm
View
here does not assign AutopostBag to true
Laxmidhar tatwa technologies
20-Nov-17 7:37am
View
In the model only store the file name .because you can not know the server path
before hosting your project
first create a folder like foldername in your project and that name pass like
Server.MapPath("~/foldername/")
public string Create(string settingsFile)
{
var path = Path.Combine(Server.MapPath("~/foldername/"), settingsFile);
// file codeing here
return path
}
Laxmidhar tatwa technologies
17-Nov-17 11:16am
View
you can use xml name space
and xmldom class
then use xmldomobject.load(string xmlfilepath)
after getting xmlobject through read each node
Laxmidhar tatwa technologies
17-Nov-17 8:02am
View
dataGridView1.DataSource = ds.tables[0];
Laxmidhar tatwa technologies
17-Nov-17 7:55am
View
you can create a usercontrol by inherits from datagridview control
Laxmidhar tatwa technologies
17-Nov-17 7:50am
View
try to specify whether web in html or despot
Laxmidhar tatwa technologies
17-Nov-17 7:34am
View
use left outer join
Laxmidhar tatwa technologies
17-Nov-17 7:29am
View
this is your code when fill from ajax do not use Model.SelectedAccountChildren
@Html.ListBoxFor(x => x.AccountTypeChildren, Model.SelectedAccountChildren, new { @class = SelectGroupId, @style = "height:150px; width:500px" })
insed of Model.SelectedAccountChildren use the bellow
@Html.ListBoxFor("child", new SelectList(string.Empty, "Value", "Text"), "--Select child--", new { @class = "form-control", @id = "ddlcity",@tabindex="13" })
Laxmidhar tatwa technologies
15-Nov-17 5:18am
View
if you add a button as column in grid bellow the code
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
int rowIndex = e.RowIndex;
DataGridViewRow row = dataGridView1.Rows[rowIndex];
textBox5.Text = row.Cells[1].Value;
some more you can retrive from the row objrct
}
Laxmidhar tatwa technologies
15-Nov-17 3:08am
View
Can you show the markup codes
Laxmidhar tatwa technologies
15-Nov-17 3:01am
View
what isthe parameters passsed in the MAX function
Can you show
Laxmidhar tatwa technologies
14-Nov-17 1:31am
View
GridView1.DataSource = ds.Tables[0];
Laxmidhar tatwa technologies
13-Nov-17 7:57am
View
Hide Expand Copy Code
protected void lstCinema_SelectedIndexChanged(object sender, EventArgs e)
{
lstMovie.Items.Clear();
if (lstCity.SelectedIndex == 1 || lstCity.SelectedIndex == 2)
{
ListItem[] items = new ListItem[3];
switch (lstCinema.SelectedItem.Text)
{
case "HI-Tech Cinema":
int ii = 0;
foreach (var item in hiTechCinema)
{
items[ii] = new ListItem(item.Text, item.Text);
ii++;
}
break;
case "Satyam Theater":
int i = 0;
foreach (var item in sathyamTheater)
{
items[i] = new ListItem(item.Text, item.Text);
i++;
}
break;
//}
//}
//if (lstCity.SelectedIndex == 2)
//{
//switch (lstCinema.SelectedIndex)
//{
case "PVR NCR":
int pi = 0;
foreach (var item in pvrNcr)
{
items[pi] = new ListItem(item.Text, item.Text);
pi++;
}
break;
case "Milan Cinema":
int mi = 0;
foreach (var item in milanCinema)
{
items[mi] = new ListItem(item.Text, item.Text);
mi++;
}
break;
}
lstMovie.Items.AddRange(items);
lstMovie.DataBind();
}
}
Laxmidhar tatwa technologies
10-Nov-17 10:21am
View
UICulture is taken as @Viewbag.UICulture which is passed from controller with assigning value.
secondly in javascript call ajax in dropdown change event
thirdly each textbox give id and fill in the ajaxcall
Laxmidhar tatwa technologies
27-Sep-17 7:39am
View
In entityframework the table is taken like Positions
db.Positions.Add(position);
Laxmidhar tatwa technologies
27-Sep-17 7:34am
View
It is possible when the Rectangle Length and breadth divisible by side of square
Show More