Click here to Skip to main content
14,974,040 members

Comments by Laxmidhar tatwa technologies (Top 155 by date)

   
ViewBag.Percentage = ViewBag.datepick.Count <= 0 ?ViewBag.pass.Count : (ViewBag.pass.Count / ViewBag.datepick.Count) * 100;
   
Thanks bro
   
The last cell should be DataGridViewImageCell

iTextSharp.text.Image barCode = iTextSharp.text.Image.GetInstance(bm, System.Drawing.Imaging.ImageFormat.Png);
cell.Value = barcode;
   
PdfPTable table = new PdfPTable(10); // 10 is the number of column
   
Dim result1 As DateTime = DateTimePickerFixCosts1.Value.AddMonths(1)
   
hi you need to edit in client side
   
i = document.getElementById("i").files[0]; convert to byte or bytestring then send
   
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
   
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
   
pass some parameter with the url and according to the value of the parameter you can customise your page
   
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
   
you can stored in cookies
   
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
   
Your cls.cs has function name is INSERTDATA but you call convertphone function ,where it is define please tell
   
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);
   
Vincent is currect .Please show the html with saving code
   
hi sir you check String.IsNullOrEmpty .in else block may asign RegtxtVatCode.ValidationExpression = ""
   
change the bordeer style like
border: 25px solid green;
   
what is the method type (verb) like post or get.
If get thai is correct .other wise send parameter through json
   
hi actualy first excute serverside then client side.
so jquery is best
   
Look all these in the URL sending yesterday
   
Hi Made 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
   
When load the structure to report
Should match to your data source fields
   
Hi
Check the entity connection string in webcofig
   
Hi manoj
F-ESSitecore is curtect.you may use jquery only
For use like a handler.but actual work done
Should in your API
   
Set width of div and panel
   
F-ESSitecore is currect.
May use jquery also
   
csharp.net-infomations.com/XML/
how-to-read-xml.htm
   
Use tag input type="file" name="file"
   
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"}))
   
As a single value query use like
var sts = cmd.executescalar();
   
Hi Have u specified SRC ?
   
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
   
Union the three query and make one
Then bind the grid
   
Hi u are current .but use update panel with
Timer
   
Hi w hat is code of behind
   
Hi may help u bellow link
Stackoverflow/questions/5855813
   
Hi may help bellow link
Stackoverflow.com/questions/36011085
   
Hi if the app is web service then it is not problem to connect with php
   
Hi Maciej los
You r currect
   
Retrieve the data row one by one from and store
One by one data row of another datatable
   
C.country_name = nnn.first().tostring();
   
in td style put


again the datalist with set as per items display
   
try
Grid.DataSource = null;
Grid.DataBind();
Grid.DataSource = dtDatas;
Grid.DataBind();
   
use timer in ajax
   
It is easy for you to use nugates sheduler or any third party
   
after return true breake; should be there
   
switch (ext.ToLower())
{
case ".gif":
case ".png":
case ".jpg":
case ".jpeg":
case ".pdf":
return true;
break;
default:
return false;
}
   
First collect all the links in load event .then
Use JavaScript for counting
   
Inherits = class name
   
In if condition check both checkbox with or operator for pass 0.5 in else statement pass 1
   
In where condition send session data.
U can use count statement
   
Data should save in date time data type
   
Dynamically define cell type
   
For each(gridviewrow row in griviewname.rows)
{
//
}
   
Why do not use gridviename_rowupfating method
   
Yes in the above function the textbox should be cleated
   
Pl display ur code
   
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
   
In row_deleting function change
Convert.toint32(lbldeleteid.text)
   
In db stored the date with a flag with false
When click check the date and made ur flag to true
   
Where is the get function .pl display it
   
Pl aware us the value of all the textbox and the datatypes of the table fields
   
ds is taken both global as well as local vsriable .global change to dt that is for data table
   
Insted of & take a switable small word and after collect chamge it to again &
   
Try amps ; with &
   
Deleted
Try amps ; witk &
   
Deleted
Try amps ; with &
   
What is in code behind
   
Dynamic columon shout be hidden type .Not visible false
   
Are u success
   
Yes it is current .but may some security issue
   
First assign the the virwbag object to null .
In if condition check the not null of object and assign
The viewbag
   
Yes in code behind store the images retrieve fr on data base
And stored in the controls .in javascript slide it
   
It is difficult to tell without observing band width,database structure and connection
   
ok sir thanks

kindly aware me about the table structure
   
sir what is the os
   
Ok sir I am looking it now
   
sir pl check the value of model.Answer; that is comming from the view to controler
thanks
   
no sir u r correct
   
a good description
   
sir have to look and try in my pc .so I will convey later

thanks
   
insted of DECLARE @UserId INT, @LastLoginDate DATETIME

DECLARE @UserId INT
DECLARE @LastLoginDate DATETIME
   
a good suggetion
   
sir pl display storedprocedure
   
in action method convert the json data into indivisual string or other tyep.Then pass to procedure
   
sir pl give the breake point tell us the actual point of error.
   
pl mension the app like asp.net or windows app and whta are the table structure
again what is the control u use
   
session is asp.net value can stored in a static class member
   
sir pl display the code
   
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
   
@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" })

   
sir pl dispaly the code
   
sir u have to mandatory to pass all the values i this type of query
   
chnage autogenerrated column true of grid
   
sir comnnection pool has a limit but object pool has no limit
   
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
   
that means you need the jquery to hide the textbox
   
sir give the break point and show the error line
   
1)check null value
2)check driver if connect to oledb
   
HOME   ABOUT US
   
1)download the page from the panel
And edit again upload
   
You can create html report and pring by javascript
   
in html id is pnlSrt but in code behind id is pnlSort
   
pnlSort should be a panel or group box
Add the option in dropdownlist .rest likes to be ok in your code
   
sir Instated of viewstate if would like to store in session object
I think your problem will be solved
   
I think The above code is currect
   
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
   
define two functions in each click event of each control
   
those some variables interested to hide take them in some control and hide the control in java scipt before calling the ajax extender
   
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
   
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
   
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
   
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
   
hi friend
Actualy in case of asp.net fist execute serversite code .After that generate the html and
execute.
   
the text fields only can count . But number fields can sum
   
sir there are some many function . kindly give the breake point in the code behind
for the problem function and convey the error point
   
sir
there are one number field others are text fields perhaps
   
sir
I mean you want to count the rowwise and also coomnwise
   
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
   
a good technic to reduce the code
   
A good usefull code
   
good named variable array
   
your code looks powerfull
   
A good solution
   
the data type of BirthDate in thes case should be int
   
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)");
});
});
   
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) {

}

}



}]);
   
Thank you for your comment and the above code is working fine
   
actual my html code is converted like that
the actual code is written now in the solution
   
If the table associated with a forgein key and the values are stored in child table

you should not drop the table
   
First save your file in the server using server.mappath

second check whether the driver is registered or not for oldb
   
the code is mine only for tow fields .But you should implement this code with your code.
   
the above code working well for simple two fields and adding mouse listner
   
this is working well
   
this is working well whatever else with your end I do not know
   
this is working fine whatever else ?
   
create a ancher tag and give download attribute
   
here does not assign AutopostBag to true
   
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
}
   
you can use xml name space
and xmldom class
then use xmldomobject.load(string xmlfilepath)
after getting xmlobject through read each node
   
dataGridView1.DataSource = ds.tables[0];
   
you can create a usercontrol by inherits from datagridview control
   
try to specify whether web in html or despot
   
use left outer join
   
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" })
   
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
}
   
Can you show the markup codes
   
what isthe parameters passsed in the MAX function
Can you show
   
GridView1.DataSource = ds.Tables[0];
   
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();
}
}
   
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
   
In entityframework the table is taken like Positions
db.Positions.Add(position);
   
It is possible when the Rectangle Length and breadth divisible by side of square