Click here to Skip to main content
15,393,706 members

Comments by Sandeep Singh Shekhawat (Top 115 by date)

Sandeep Singh Shekhawat 2-Jul-15 1:59am View
   
Did you get answer of it?
Sandeep Singh Shekhawat 8-Dec-14 23:22pm View
   
Reason for my vote of 5 \n Nice one !!
Sandeep Singh Shekhawat 28-Nov-14 1:20am View
   
You couldn't get software in asp.net. ASP.NET is used to create website or web application but you can get software in .Net which developed using WPF or Windows application. so Please redefine your search term like "Software in .Net" or Web Application in ASP.NET"
Sandeep Singh Shekhawat 26-Nov-14 7:52am View
   
Reason for my vote of 5 \n Good
Sandeep Singh Shekhawat 17-Nov-14 6:31am View
   
Welcome Dear !!
Sandeep Singh Shekhawat 6-Oct-14 0:15am View
   
1. Your SignalR server should be start.
2. You have jQuery Datatable reference on page.
Sandeep Singh Shekhawat 13-Sep-14 5:57am View
   
Welcome Ma'am !!
Sandeep Singh Shekhawat 13-Sep-14 5:57am View
   
Welcome dear !! I am so glad to know that it was helpful for you. I have a humble request to you that please mark it as a accepted answer and voted up.
Sandeep Singh Shekhawat 13-Sep-14 4:15am View
   
Are you thinking about source safe or Team Foundation server (TFS) ?
Sandeep Singh Shekhawat 1-Sep-14 0:29am View
   
I have updated source code as per your requirment please have a look with new code. Its inherit master page and its a content page.
Sandeep Singh Shekhawat 1-Sep-14 0:19am View
   
Its no matter, you can write this method on content page as well as seprate js file and that file add to content page.
Sandeep Singh Shekhawat 26-Jul-14 17:36pm View
   
I have deleted my solution !!
Sandeep Singh Shekhawat 26-Jul-14 10:42am View
   
Ohh !! You are right !! I go through as explained by OP. He is also making comment over script tag. Let's see another solution.
Sandeep Singh Shekhawat 26-Jul-14 8:07am View
   
Could you please post your code here ?
Sandeep Singh Shekhawat 24-Jul-14 12:48pm View
   
Now you have sufficient knowledge as per beginners in industry that why you should try for job thereafter you automatically decide what you should do according industry.
Sandeep Singh Shekhawat 24-May-14 1:29am View
   
It would be good if you start it on your end and where you get stuck then come here. you can search on google one by one 1. Required filed validation in javascript. 2. Numeric value validation in javascript. 3. Email validation in javascript. 4. Phnone number validation in javascript then you can get able to code 80% and will also get confidence in js. 20% issue can be resolve here. So go ahead!
Sandeep Singh Shekhawat 15-May-14 0:28am View
   
Thanks SA.
Sandeep Singh Shekhawat 13-May-14 23:53pm View
   
First and foremost Thanks to you for back to back quick response. What can be alternate of this? Should I go with windows service or windows form application? What do you like to suggest me?
Sandeep Singh Shekhawat 13-May-14 5:07am View
   
My mean to say that Console window should be hidden and application should be in running state means I can see it in Task Manager process. Actually It is a server for signalR application that should be in running state to btoadcast any message on event.
Sandeep Singh Shekhawat 12-May-14 7:17am View
   
I used your solution but My application runs only few second by it. I wants it runs continueously.
Sandeep Singh Shekhawat 17-Apr-14 0:48am View
   
Bulk email system that sends emails in bulks to each user with fommeted content.
Sandeep Singh Shekhawat 17-Apr-14 0:14am View
   
Can you please more clear this question? Why are you not trying jQuery.ajax() method to call controller action method in url and pass parameter as a "data" property of it.
Sandeep Singh Shekhawat 29-Mar-14 1:42am View
   
Welcome Dear.
Sandeep Singh Shekhawat 15-Mar-14 7:17am View
   
Hope It was helpful....!!
Sandeep Singh Shekhawat 15-Mar-14 7:10am View
   
It can be possible that you would be inserting record on another table that has foreign key constraint relation ship and that taking 0 value for foreign key value of Id in another table. Please check this link http://stackoverflow.com/questions/12179770/mysql-1062-duplicate-entry-0-for-key-primary
Sandeep Singh Shekhawat 15-Mar-14 7:09am View
   
Deleted
It can be possible that you would be inserting record on another table that has foreign key constraint relation ship and that taking 0 value for foreign key value of Id in another table. Please check this link

http://stackoverflow.com/questions/12179770/mysql-1062-duplicate-entry-0-for-key-primary
Sandeep Singh Shekhawat 15-Mar-14 7:04am View
   
What is Ids of both record these are already inserted in your database table? These rows ids should be 1 and 2 respectively.
Sandeep Singh Shekhawat 15-Mar-14 6:33am View
   
Please check your Identity seed and Identity increment value for id field and (is Identity) should be Yes. How could you insert 0 (zero) in your table already?
Sandeep Singh Shekhawat 12-Feb-14 1:14am View
   
It's working. What are you getting and what is your need? Try this

declare @Cte1_count int = 2
declare @cte2_count int = 500
declare @dec decimal (6,2)
SET @dec = (CAST(@Cte1_count AS Float)/CAST(@cte2_count AS FLoat))*100
print CAST(@dec AS nvarchar(10))+'%'
Sandeep Singh Shekhawat 9-Feb-14 23:33pm View
   
Correct dear @siddharth629
Sandeep Singh Shekhawat 7-Feb-14 4:38am View
   
Your first listbox is populating on selected index of dropdown so are you sure you are getting all items on click of image button. I think first listbox is lossing its items and not getting these items for second listbox.
Sandeep Singh Shekhawat 7-Feb-14 4:07am View
   
Its working on my end please add this code in a new separate application and test it. I think you are mixing some thing on code behind on page load. Please debug your code.can you please paste your code?
Sandeep Singh Shekhawat 7-Feb-14 3:58am View
   
did you add SelectionMode="Multiple"
Sandeep Singh Shekhawat 7-Feb-14 2:01am View
   
Remove update panel from your page where file upload is using.
Sandeep Singh Shekhawat 7-Feb-14 0:59am View
   
Thank you so much..
Sandeep Singh Shekhawat 7-Feb-14 0:14am View
   
Welcome to You.
Sandeep Singh Shekhawat 5-Feb-14 4:48am View
   
I defined it class level because you can get next value of sequence from seed. Suppose you define it in a function then each function call it creates a new instance and it uses same seed value for each instance so your series will be same. but you want to generate random number sequence then I create it class level so each time you use first created instance and then get new value. If you can create a parameteries random number that deppends on time then you can create inside function after than you can also get a different series of number.

in sort each independent random number instance gives same random number when it creates each time.
Sandeep Singh Shekhawat 3-Feb-14 21:05pm View
   
Welcome to You!
Sandeep Singh Shekhawat 3-Feb-14 7:57am View
   
The abstract modifier indicates that the thing being modified has a missing or incomplete implementation. The classes that can't be initialized are called abstract classes. Use the abstract modifier in a class declaration to indicate that a class is intended only to be a base class of other classes. The members of the class don't have an implementation in a class with an abstract modifier. The abstract modifier can be used with classes, methods, properties, indexers, and events. Members marked as abstract, or included in an abstract class, must be implemented by classes that derive from the abstract class.
Sandeep Singh Shekhawat 3-Feb-14 7:21am View
   
because op using string..
Sandeep Singh Shekhawat 3-Feb-14 7:20am View
   
Thanks @Richard-MacCutchan
Sandeep Singh Shekhawat 3-Feb-14 7:06am View
   
check my rollback solution..
Sandeep Singh Shekhawat 3-Feb-14 5:10am View
   
Welcome to you..
Sandeep Singh Shekhawat 3-Feb-14 4:21am View
   
Welcome @Archana-hosurkar
Sandeep Singh Shekhawat 31-Jan-14 2:11am View
   
try http://www.w3schools.com/
Sandeep Singh Shekhawat 30-Jan-14 0:54am View
   
Thanks..
Sandeep Singh Shekhawat 30-Jan-14 0:31am View
   
Yes. You should try this way..
Sandeep Singh Shekhawat 30-Jan-14 0:15am View
   
I have updated my solution. pls check my updated solution.
Sandeep Singh Shekhawat 30-Jan-14 0:11am View
   
FireFox and chrome, Query String size can be different. Local development application runs on VS Development server but after deploy it runs on IIS so need some change in web.config as per IIS.
Sandeep Singh Shekhawat 29-Jan-14 2:04am View
   
Thanks
Sandeep Singh Shekhawat 20-Jan-14 23:07pm View
   
you should add these parameter also: @Rate,@Code,@Qty,@Officer,@Remark with CmdSql.Parameters.AddWithValue()
Sandeep Singh Shekhawat 17-Jan-14 7:14am View
   
Thanks Sampath
Sandeep Singh Shekhawat 17-Jan-14 6:30am View
   
Thanks Rockstar
Sandeep Singh Shekhawat 17-Jan-14 5:24am View
   
Sounds good! Mark accepted answer..
Sandeep Singh Shekhawat 17-Jan-14 5:15am View
   
Sounds good!!
Sandeep Singh Shekhawat 17-Jan-14 5:12am View
   
you need to define padding or margin of image tag. Don't increase width of div.
Sandeep Singh Shekhawat 17-Jan-14 4:54am View
   
you can add center tag over <img> tag.
Sandeep Singh Shekhawat 17-Jan-14 3:23am View
   
what do you mean? Can you please explain that what are you expecting here?
Sandeep Singh Shekhawat 17-Jan-14 1:41am View
   
did you debug your code and check it write or not in web.config file. your file should not be readonly.
Sandeep Singh Shekhawat 17-Jan-14 1:16am View
   
Why are you trying with MVC2 that has ASPX view engine you should go with MVC3/MVC4/MVC5 with razor view engine. That has easy to development.
Sandeep Singh Shekhawat 17-Jan-14 0:36am View
   
This file already opened before uploading. Please close the file and then try to upload it. It is not an MVC issue.
Sandeep Singh Shekhawat 17-Jan-14 0:15am View
   
sounds good..Thanks
Sandeep Singh Shekhawat 16-Jan-14 22:59pm View
   
Thanks Karthik
Sandeep Singh Shekhawat 16-Jan-14 22:58pm View
   
Thanks Dear Ankur
Sandeep Singh Shekhawat 16-Jan-14 7:21am View
   
Triggers are defined on table so it will fire on DML event on table.
Sandeep Singh Shekhawat 16-Jan-14 7:16am View
   
I will take care next time. I am beginner here.
Sandeep Singh Shekhawat 16-Jan-14 7:01am View
   
Thanks Karthik sir..
Sandeep Singh Shekhawat 16-Jan-14 6:52am View
   
Welcome Dear
Sandeep Singh Shekhawat 16-Jan-14 2:12am View
   
I have defined runat="Server" in html server control so you can get its id on code behind file and after that you can get its value like.

string message = testtext.Value;
Sandeep Singh Shekhawat 15-Jan-14 23:25pm View
   
Welcome dear comptech1
Sandeep Singh Shekhawat 15-Jan-14 10:58am View
   
Thanks dear @BillWoodruff
Sandeep Singh Shekhawat 15-Jan-14 10:47am View
   
Deleted
Thanks dear BillWoodruff. It was my formatting mistake whenever I paste it from VS2010. I had compiled and run on my local development machine before post it. When I post it then “Car” class list converted into “car” list due to best guess formatting and I didn’t notice it because I am new here. I haven’t intension to misguide anybody here. Thanks to you to notify me and I got punished by devoted it. Thanks
Sandeep Singh Shekhawat 15-Jan-14 10:46am View
   
Thanks dear BillWoodruff. It was my formatting mistake whenever I paste it from VS2010. I had compiled and run on my local development machine before post it. When I post it then “Car” class list converted into “car” list due to best guess formatting and I didn’t notice it because I am new here. I haven’t intension to misguide anybody here. Thanks to you to notify me and I got punished by devoted it. Thanks
Sandeep Singh Shekhawat 15-Jan-14 7:54am View
   
Thanks dear Karthik Sir..
Sandeep Singh Shekhawat 15-Jan-14 6:10am View
   
one more thing By default C# classes are internal.
Sandeep Singh Shekhawat 15-Jan-14 6:09am View
   
Suppose you have two project one is your web application and another is class library (like Business access Layer). Now you want to use a method of class that class in Business Access Layer in your web application page then you need to care some point. These are
1. You need to add reference of class library project to web application.
2. Class libraries classes should be public.
3. These method would be access in web application of class library classes, should be public.

Thanks.
Sandeep Singh Shekhawat 15-Jan-14 6:02am View
   
Please go through this link

http://social.msdn.microsoft.com/Forums/sqlserver/en-US/7df40719-ad8e-45b7-9d65-224d25c35e19/solved-sql-server-setup-failure-unknown-property?forum=sqlsetupandupgrade
Sandeep Singh Shekhawat 15-Jan-14 5:57am View
   
Your class or method should be public to access in different assembly.
Sandeep Singh Shekhawat 15-Jan-14 4:00am View
   
Can you please tell me that why my answer is downvoted?
Sandeep Singh Shekhawat 15-Jan-14 3:59am View
   
I am glad to know that we are on progress. Do you chacek what is in variable strjson. Just use fiddler tool and find what formet you get in object and access the object property to get actual data.
Sandeep Singh Shekhawat 15-Jan-14 3:22am View
   
Your are using UseHttpGet = true in web Methdod so please use type: "Get", in jQuery Ajax method.
Sandeep Singh Shekhawat 15-Jan-14 2:54am View
   
Is Your web service method not hitting?
Sandeep Singh Shekhawat 13-Jan-14 10:39am View
   
Try this:

https://www.google.co.in/search?q=free+download+jQuery+Html5+template&oq=free+download+jQuery+Html5+template&aqs=chrome..69i57j0l2.18082j0j7&sourceid=chrome&espv=210&es_sm=93&ie=UTF-8
Sandeep Singh Shekhawat 13-Jan-14 7:58am View
   
Sorry Bala25111989Dotnet. I have not access google drive on my system due to permission issue.
Sandeep Singh Shekhawat 13-Jan-14 7:34am View
   
Please try follwing article javascript code

http://blogs.msdn.com/b/phaniraj/archive/2007/04/16/howto-change-visible-tab-using-javascript-in-the-ms-ajax-tabcontrol.aspx

Or Remove ActiveTabIndex = 0 from your code.
Sandeep Singh Shekhawat 13-Jan-14 5:14am View
   
Because SQL server 2008 doesn't support it. You should go with SQL server 2012 or try to something else. I will suggest you to rownumber function of SQL server
Sandeep Singh Shekhawat 13-Jan-14 2:38am View
   
Why are you not defining triggers (Insert / Update) on these tables in database?
Sandeep Singh Shekhawat 11-Jan-14 6:07am View
   
You can write configuration information in text file and then read connection string from text file dynamicaaly.
Sandeep Singh Shekhawat 11-Jan-14 5:50am View
   
I have updated above code and you can use this updated code. It will work on all browsers. Thanks
Sandeep Singh Shekhawat 11-Jan-14 5:43am View
   
Deleted
Did you try in Mozila firfox..
Sandeep Singh Shekhawat 11-Jan-14 4:42am View
   
Add some text between open and closing anchor tag. like i am adding some text or you can add nbsp

<div><a name="anything">some text</a></div>
Sandeep Singh Shekhawat 11-Jan-14 0:33am View
   
Sounds good!! What was error? If my post was helpful then mark as accepted answer or upvoted it. Thanks
Sandeep Singh Shekhawat 10-Jan-14 23:56pm View
   
your connection string should be under configuration tag. can you paste your web.config file?
Sandeep Singh Shekhawat 10-Jan-14 23:39pm View
   
Your connection string should be <configuration> section as a root.There <connectionstrings> tag has captial "S" of String in connectionStrings
Sandeep Singh Shekhawat 10-Jan-14 23:16pm View
   
There are some common error in Web.Config file. Please use updated code which metion in above answer
<connectionstrings>
<add name="ABC" connectionstring="Data Source=DEEPAK-PC\\SQLEXPRESS;Initial Catalog=Lastimage;User ID=sa;Password=sasa" providername="System.Data.SqlClient">


"S" in connection string would be in capital letter means "S" instead of small letter "s"
Sandeep Singh Shekhawat 10-Jan-14 7:58am View
   
Can you paste your error here.
Sandeep Singh Shekhawat 10-Jan-14 5:39am View
   
Because GridView checks Column name as a properties of object which list binds to grid view as Data source . AS pre my understanding you have auto increment column for grid view instead of manually create any column for grid view.
Sandeep Singh Shekhawat 7-Jan-14 3:57am View
   
@Jacob You first need to create _Layout.cshtml then you can use on each page. You can't use master page in razor.
Sandeep Singh Shekhawat 7-Jan-14 2:28am View
   
Are you populating Dropdownlist on Page_Load() event? To Call Dropdown list populate method, Check Page is postBack or not.. For example
Page_Load Event
{
if(!PostBack)
{
//Populate dropdown list
}
}
Sandeep Singh Shekhawat 4-Jan-14 6:29am View
   
Welcome dear @amit
Sandeep Singh Shekhawat 4-Jan-14 6:29am View
   
Thank You @Karthik
Sandeep Singh Shekhawat 4-Jan-14 6:28am View
   
Thanks Karthik
Sandeep Singh Shekhawat 29-Aug-13 0:28am View
   
please check this link http://stackoverflow.com/questions/468045/error-sqldatetime-overflow-must-be-between-1-1-1753-120000-am-and-12-31-999
Sandeep Singh Shekhawat 28-Aug-13 12:00pm View
   
How can use Console.WriteLine("{0} Exception caught.", ex); in a web application? How can It work on development machine.
Sandeep Singh Shekhawat 28-Aug-13 5:45am View
   
Deleted
@Mas11, Issue still exists or solved..
Sandeep Singh Shekhawat 27-Aug-13 2:24am View
   
If my solution has resolved your issue please mark as accepted answer or upvote so that next time anybody get fast solution. Thank you.
Sandeep Singh Shekhawat 27-Aug-13 1:20am View
   
Please try following code on code behind page

HtmlTable table = UpdateProgress1.Controls[0].FindControl("table76") as HtmlTable;
table.Style.Add("padding-top", "800px");
Sandeep Singh Shekhawat 24-Aug-13 1:38am View
   
I am glad to know that your problem has been solved. Do you think that the solution 1 was helpful or not for you?
Sandeep Singh Shekhawat 24-Aug-13 0:36am View
   
What error are you getting? your image folder and web form page in same directory.
Sandeep Singh Shekhawat 23-Aug-13 20:58pm View
   
please try following code that create color red of first dive when press down arrow key.

<script type="text/javascript">
var array = new Array();
array.push("heena");
array.push("bhawin");
array.push("aruna");
array.push("mahesh");
array.push("anshul");
array.push("jagruti");
array.push("neha");
array.push("sherry");
array.push("sonali");
var data;
var id; //for providing id to each div
function display(e)
{


data = "";
id = 0;
var state = $('#auto').val();
if (state == "")//value empty
{
$('.suggestion').css({ display: "none" });
}
else
{
for (var i = 0; i < array.length; i++)
{
var key = 0;
for (j = 0; j < state.length; j++)
{
//for the matching of the array element with the text in the textbox
if (array[i][j] == state[j])
{
key++;
}
}
//putting the matched array element in a div
if (key == state.length)
{
//the whole array will be copied with the bold values inserted
var bolde = "";
for (var k = 0; k < key; k++)
{
bolde += "" + array[i][k] + "";
}
for (var l = key; l < array[i].length; l++)
{
bolde += array[i][l];
}
id++;
data += "<div id='" + id + "'>" + bolde + "</div>";
}
}
$('.suggestion').html(data);
$('.suggestion').css({ display: "block" });
if (e.keyCode == 38 || e.keyCode == 40)
{
selectit(e);
}
if (data == "")
{
$('.suggestion').css({ display: "none" });
}
}
}
function hide()
{
$('#suggestion').css({ display: "none" }); ;
}
function selectit(e)
{
var child = document.getElementById("suggestion").childNodes;

for (var i = 0; i < child.length; i++)
{

if (child[i].id == "1")
{
child[i].style.color = "red"; //here is the problem in the code
}
}
}
</script>
Sandeep Singh Shekhawat 23-Aug-13 12:40pm View
   
No @jba1991. The main part that I have added is id of input type field like <input type="text" name="txtBox" id="txtBox">
Sandeep Singh Shekhawat 23-Aug-13 11:01am View
   
This solution is working because you have modified your sql query that assigned in string variable strQuery. If you would use same sql query in solution one than that solution will be work for you. Thanks
Sandeep Singh Shekhawat 23-Aug-13 5:01am View
   
Have you run this query in Sql Query Editor in SSMS and it is returning data from database table? If it does not return any result set then we get empty table.
Sandeep Singh Shekhawat 21-Aug-13 2:04am View
   
Welcome dear Abhishek!
Sandeep Singh Shekhawat 20-Aug-13 2:14am View
   
@Mas Your most welcome.