Click here to Skip to main content
Page 1 of 2
Page Size: 10 · 25 · 50


Author filtered by: vijay__p [x]
Answer 13 May 2013   license: CPOL
Check beow link for jQuery plugin for phone number masked textbox and http://digitalbush.com/projects/masked-input-plugin/[^]
Answer 13 May 2013   license: CPOL
Try below code to get checkbox valueCheckBox cb = (CheckBox)GridView1.Rows[i].FindControl("chkSelect");Now to get value of id use DataKeys from GridView.Set DataKeyNames property of grid to PropertyName of Id and you can get value of it ineach row as...
Answer 13 May 2013   license: CPOL
Try below code$(this).closest('tr').find('td #lblSrNo').html();Sample on fidle http://jsfiddle.net/zqfYp/3/[^]
Answer 10 May 2013   license: CPOL
Try below code$('div.jcrop-holder:first').find('div').remove();
Answer 9 May 2013   license: CPOL
Try below codestring strUrl = "http://api.mVaayoo.com/mvaayooapi/MessageCompose?user=t122kes@gmail.com:9768214005&senderID=TESTSMS&receipientno={0}&msgtxt={1}&state=4";strUrl = string.Format(strUrl,txtNumber.Text, txtMessage.Text);//Here txtNumber is Textbox which contains number and...
C#
Query about RSS FEED by vijay__p
Answer 8 May 2013   license: CPOL
What is RSS?http://www.whatisrss.com/[^]How to read RSS using C#http://blogs.msdn.com/b/steveres/archive/2008/01/20/using-syndicationfeed-to-displaying-photos-from-spaces-live-com.aspx[^]
Answer 8 May 2013   license: CPOL
Go through below article for URL routingURL Routing with ASP.NET 4.0[^]Everything is mentioned step by step.
Answer 8 May 2013   license: CPOL
Try below query against your table and particular columnALTER TABLE TableName ALTER COLUMN ColumnName INT NULL
Answer 8 May 2013   license: CPOL
Use SelectList to bind @HtmlDropdownListFor and specify selectedValue parameter in it.http://msdn.microsoft.com/en-us/library/dd492553(v=vs.108).aspx[^]public SelectList( IEnumerable items, string dataValueField, string dataTextField, Object selectedValue)
Answer 8 May 2013   license: CPOL
You can not close window without using any codeTry below codeResponse.Write("window.close();");
Answer 8 May 2013   license: CPOL
You can use SmtpFailedRecipientsException to track which member are failed to receive emails.public static void RetryIfBusy(string server){ MailAddress from = new MailAddress("ben@contoso.com"); MailAddress to = new MailAddress("jane@contoso.com"); MailMessage message = new...
Answer 6 May 2013   license: CPOL
Try below codevar imageButton = new ImageButton() { ImageUrl = "../images/color.png", ImageAlign = ImageAlign.Right};imageButton.Click += new ImageClickEventHandler(imageButton_Click);createDiv.Controls.Add(imageButton);void imageButton_Click(object sender, ImageClickEventArgs...
Answer 6 May 2013   license: CPOL
jQuery message plugin.http://code.google.com/p/jquery-msg/downloads/list[^]
Answer 6 May 2013   license: CPOL
var total = 0; foreach (GridViewRow row in GridView1.Rows) { var numberText = row.Cells[5].Text; int number; if (int.TryParse(numberText, out number)) { total += number; ...
Answer 5 May 2013   license: CPOL
You need to add separate project for Windows Service of type Windows Service and separate deployment project for it in the same solution.You can use the same project reference which are used in windows form application.
Answer 5 May 2013   license: CPOL
You can iterate through GridViewRow and find particular control in which number is displayed and do summation of it as below.var total = 0; foreach (GridViewRow row in GridView1.Rows) { var numberLabel = row.FindControl("ID of Label") as Label; ...
Answer 5 May 2013   license: CPOL
Try using ClientScript.RegisterStartupScript
Answer 4 May 2013   license: CPOL
Use below codevar exists= ArraySides.Any(StrSide);variable exists will contain boolean value whether your string exists in array or not.
Answer 2 May 2013   license: CPOL
Don't directly bind using Eval in design view instead of that You can bing data in RowDataBound event So in RowDataBound event find label from Grid and also DataBind column from data sourceIf column available then bind it with label as leave it as it is.If you are using DataTable for...
related to dropdownlist by patel_vijay
Answer 2 May 2013   license: CPOL
public class Data { public int Id { get; set; } public string Col1 { get; set; } public string Col2 { get; set; } public string Col3 { get; set; } }var data = List();var dropdownData = data.Select(x=>new {Id = x.Id, Value = x.Col1+ "|" +...
Answer 2 May 2013   license: CPOL
Try Sasa extension for parsing .eml filehttp://sourceforge.net/projects/sasa/[^]It is very rich library for parsing email messages.
C#
Answer 29 Apr 2013   license: CPOL
You can store these values in database concatenating with any separator (|)Ex. store "5|3" in databaseNow when you need to display it in edit mode then split these values by "|" var data = heightValue.Split('|');so you will get array of stringvar heightInFeet = data[0];var...
Answer 28 Apr 2013   license: CPOL
Use below codeint startYear = 1950;var data = Enumerable.Range(startYear, DateTime.Now.Year - (startYear - 1)); ddl.DataSource = data; ddl.DataBind();Here, ddl is object of DropDownList.
Answer 27 Apr 2013   license: CPOL
checkout this working samplehttp://jsfiddle.net/qryY3/[^]
Answer 26 Apr 2013   license: CPOL
check below linksArchitecture Guide: ASP.NET MVC Framework + N-tier + Entity Framework and Many More[^]http://www.cmjackson.net/2010/01/18/mvc-and-n-layer-architecture/[^]
Answer 26 Apr 2013   license: CPOL
And still if you want to go with checkboxes then checkout sample on jsFiddlehttp://jsfiddle.net/vijaypatel/KtPsQ/[^]Use below function to restrict user on single selection checkbox 1
Answer 25 Apr 2013   license: CPOL
if you OLDCLASS class accepting parameters in contructor then you can pass values as below.public NewCar(int param1) : base(param1) { }Or you can acess the base class properties in deried class using this or base keyword.
Answer 25 Apr 2013   license: CPOL
http://api.jquery.com/jQuery.ajax/[^]http://net.tutsplus.com/tutorials/javascript-ajax/5-ways-to-make-ajax-calls-with-jquery/[^]http://www.w3schools.com/jquery/jquery_ref_ajax.asp[^]
Answer 24 Apr 2013   license: CPOL
Try using PostBackTrigger instead of AsyncPostBackTrigger
Answer 24 Apr 2013   license: CPOL
CHeckout sample on jsFiddlehttp://jsfiddle.net/vijaypatel/ess84/[^]You can get value of siblings using jQuery as below checkbox 1 $('input').siblings('label').html();From above code you will get "checkbox 1" as value from label.
Answer 23 Apr 2013   license: CPOL
Check below configuration. You need to set rollFileEsistBehaviour="Increment"rollInterval="Day"rollSizeKB="Maximum size of file after which new file will be created"timeStampPattern="dd-MM-yyyy" - file name pattern
javascript in gridview by patel_vijay
Answer 22 Apr 2013   license: CPOL
Checkout sample on jsFiddle http://jsfiddle.net/TdSCX/[^]You need to add event handler for checkboxes of GridView using jQuery as below$(function(){ $('table#GridView1 tr td input[type="checkbox"]').click(function(){ var finalTotal = parseFloat($('#finalLabel').html()); ...
Answer 21 Apr 2013   license: CPOL
Uri myUri = new Uri("http://www.contoso.com/");http://msdn.microsoft.com/en-us/library/z6c2z492.aspx[^]
C#
Answer 21 Apr 2013   license: CPOL
Try below code Delete
Answer 20 Apr 2013   license: CPOL
You can not directly find control from Repeater You have to iterate to RepearterItem and find control from it.foreach(RepeaterItem item in RepeaterStrongestSkillsMax2.Items){var label = item.FindControl("lbl") as Label; //Find control from RepeaterItemlabel.Text = "Your value";}
Answer 18 Apr 2013   license: CPOL
A postback is initiated by the browser, and reloads the whole page, usually when a control on the page (e.g. a button) is changed.With some controls (e.g. Checkboxes), you choose if changing the control should result in a postback. This property is called AutoPostback.A callback is...
ASP.NET MVC4 Application by patel_vijay
Answer 18 Apr 2013   license: CPOL
Checkout this link for step by step project creation, controller actions, validation etc..http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-1[^]
MVC
Answer 18 Apr 2013   license: CPOL
Use Image path should be Base64 string and prepend it with data:image/jpg;base64,In Controller i have assigned base 64 string to ViewBag.Image var imageString = Convert.ToBase64String(System.IO.File.ReadAllBytes(@"C:\temp\temp.jpg"));So in your case convert ImageStream...
Answer 18 Apr 2013   license: CPOL
Checkout below linkhttp://jsfiddle.net/LRSS2/[^]Here i have created one html table with 6 rows, each row having first column with different id value.Using jQuery it will find last row first colunm value$('#gridview1 tr:last').find('td:first').html()
Answer 17 Apr 2013   license: CPOL
You can not add any Css styles on Literal control. If you need to apply style on control then you should use control which render any html tag but literal control will not render any html tag so you won't be able to apply any css style.ex. - which will render -...
Answer 15 Apr 2013   license: CPOL
dotnetzip library is very rich for to create zip files http://dotnetzip.codeplex.com/[^]using (ZipFile zip = new ZipFile()) { // add this map file into the "images" directory in the zip archive zip.AddFile("c:\\images\\personal\\7440-N49th.png", "images"); ...
Answer 15 Apr 2013   license: CPOL
While adding checkbox to Grid also add one attribute for CustomerID in it.So when you check/uncheck any checkbox then find CustomerID of it and using jQuery selectors[^] find other checkboxes having same CustomerID and check/uncheck them.Check sample on jsFiddlehttp://jsfiddle.net/xqQUr/[^]
Answer 14 Apr 2013   license: CPOL
If your xml is like below then you can query it using Linqvar xml = @" ABCabcABC abcABC abc ABCABCABC"; var list = XDocument.Parse(xml).Descendants("ParaLine") .Select(x...
Answer 14 Apr 2013   license: CPOL
Hello Check out this samplehttp://jsfiddle.net/JthcU/[^]You will get comma separated string of selected items.If nothing is selected then it will return null.
Answer 14 Apr 2013   license: CPOL
I think problem is in ID of textarea control, your control is marked as runat="server" so its ID will be changed so you should use ClientID property of it to access it in javascript.
Answer 14 Apr 2013   license: CPOL
Try below codeprivate static string validChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; private static Random random = new Random(); private static string GenerateNonce(int length) { var nonceString = new StringBuilder(); ...
C#
Answer 11 Apr 2013   license: CPOL
You have set slidingExpiration=true but you should know about its behaviour.Sliding expiration resets the expiration time for a valid authentication cookie if a request is made and more than half of the timeout interval has elapsed. If the cookie expires, the user must re-authenticate....
Answer 9 Apr 2013   license: CPOL
Also try $(document).ready(function () { });
Answer 8 Apr 2013   license: CPOL
Try below codebyte[] bytes = (byte[])draw["FloorTexture"]; string base64String = Convert.ToBase64String(bytes, 0, bytes.Length); Image1.ImageUrl = "data:image/png;base64," + base64String;You can also use Generic handler to show image...
How to make a label blink by patel_vijay
Answer 7 Apr 2013   license: CPOL
Hi,Blinking text using CSS is not supported in all browsers.http://www.w3schools.com/cssref/playit.asp?filename=playcss_text-decoration&preval=blink[^]But you can do some tweaking to achive this functionality using JavaScript.function blinkFont(){ ...

Page 1 of 2
1 2


Advertise | Privacy | Mobile
Web03 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid