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


Author filtered by: Prasad C.M. [x]
Answer 14 May 2013   license: CPOL
Try by changing to static variablepublic string anz;aspublic static string anz;
Answer 14 May 2013   license: CPOL
Try like this ..'>
Answer 14 May 2013   license: CPOL
Try this one ..SELECT Name, MAX(ID) FROM tablenameGROUP BY Name
Answer 13 May 2013   license: CPOL
Just change OnClientClick ="javascript:validate()" to OnClientClick ="return validate()"
Answer 10 May 2013   license: CPOL
try like this ..conn.Open();DataTable dtusers = new DataTable(); SqlDataAdapter da = new SqlDataAdapter("select name from admin_table where name not in (select name from daily_att where tdate='"+tdat+"' ) ", conn); SqlCommandBuilder cmd = new...
Answer 10 May 2013   license: CPOL
try with single query ...sql = "Select studid,Bfid,Rate,Class from student,batch";after this bind grid
C#
Answer 10 May 2013   license: CPOL
Try by removing double quote "vehicleId" as vehicleId[ { vehicleId: "1", status: "Running", position: "x", battery: "25", distanceTravelled: "123", destination: "y", freeSeats: "2", speed: "32" }]
Answer 10 May 2013   license: CPOL
Try this .. simple one ..$(".jcrop-holder div:not('.img')").remove();OR$(".jcrop-holder div:not('img')").remove();
Answer 10 May 2013   license: CPOL
Try this .. $(document).ready(function () { $("#btn").click(function () { var allListElements = $(".jcrop-holder").find('*'); ...
Answer 10 May 2013   license: CPOL
Try This ... function isNumberic(evt) { var charCode = (evt.which) ? evt.which : event.keyCode if (charCode > 31 && (charCode 57)) return false; return true; ...
Question 7 Sep 2012   license: CPOL
HI .. I am using AjaxFileUpload1 of Ajax control toolkit.I am passing query string to page where i am using AjaxFileUpload1 control(Say for example for page WebForm1.aspx?Key=22)But problem here is if i pass query string to WebForm1.aspx pagethat time protected void...
Re: Tip by Prasad C.M.
Forum Message 21 Apr 2012  
ur right.. thx.. Prasad C.M.
Problem with condition c# by Prasad C.M.
Answer 21 Apr 2012   license: CPOL
ok.. Just try this... All in one..Code for reading data from file..OpenFileDialog openFileDialog = new OpenFileDialog();openFileDialog.ShowDialog();string[] dataFromFile = System.IO.File.ReadAllLines(openFileDialog.FileName);Array.Sort(dataFromFile);listBox1.DataSource =...
C#
Date and Time in asp.net by Prasad C.M.
Answer 20 Apr 2012   license: CPOL
Just Use this code..protected void UpdateTimer_Tick(object sender, EventArgs e){ Label3.Text = "Last Updated at : " + DateTime.Now.AddMinutes(-5).ToLongTimeString();}
Answer 20 Apr 2012   license: CPOL
First, create a functioncreate function SplitString ( @str nvarchar(4000), @separator char(1) ) returns table AS return ( with tokens(p, a, b) AS ( select 1, 1, ...
Answer 14 Apr 2012   license: CPOL
Please cross check the version of theInterop.Microsoft.Office.Interop.Excel.dllInterop.Microsoft.Office.Core.dllthese two dll s with your refence.
Answer 14 Apr 2012   license: CPOL
I dont know how u r binding child grid view?Here is one exaple
Answer 14 Apr 2012   license: CPOL
Here is One more Solution...protected void GridView2_RowUpdating(object sender, GridViewUpdateEventArgs e){ int index = GridView1.EditIndex; GridViewRow row = GridView1.Rows[index]; GridView childGridView = (GridView)row.FindControl("GridView2"); string model =...
Answer 14 Apr 2012   license: CPOL
Instead of thisGridView gvwnested = (GridView)GridView1.Rows[e.RowIndex].Cells[1].FindControl("GridView2");Just try this one GridView gvwnested = (GridView)GridView1.Rows[0].Cells[1].FindControl("GridView2");Here u cant use GridView1.Rows[e.RowIndex] Since u r calling this...
Answer 13 Apr 2012   license: CPOL
I dont know how you are using gridviews, So i am just assuming GridView inside GridView like as follows.I hope this will help you. AutoGenerateColumns="False" onrowupdating="GridView1_RowUpdating"> ...
Answer 23 Jun 2011   license: CPOL
Try This One... connectionString= "data source=.\SQLEXPRESS; Integrated Security=SSPI; AttachDBFilename=|DataDirectory|\aspnetdb.mdf; User Instance=true" providerName="System.Data.SqlClient"/>
Forum Message 23 Jun 2011  
I never wrap single line statements - only multiple lines get wrapped. Prasad C.M. modified on Thursday, June 23, 2011 6:20 AM
Question 22 Jun 2011   license: CPOL
This is My Codevar txtFromDate = document.getElementById("").value;var txtToDate = document.getElementById("").value;var D1 = new Date(txtFromDate);var D2 = new Date(txtToDate);if(D1 > D2) alert("FromDate cannot be greater than...
Answer 22 Jun 2011   license: CPOL
Here is one Simple Solution... Just Try It..--> Inside btnSearch_Click Event MentionbtnSearch.Enabled = false--> Use One more Button "Clear"--> And Inside btnClear_Click Event MentionbtnSearch.Enabled = true
Answer 16 Jun 2011   license: CPOL
Try This One..string filepath = Server.MapPath("-- File Path Here --");// Create New instance of FileInfo class to get the properties of the file being downloadedFileInfo myfile = new FileInfo(filepath);// Checking if file existsif (myfile.Exists){// Clear the content of the...
Answer 15 Jun 2011   license: CPOL
U Can Try This Aslo...Go GridView PropertySet "ShowFooter" property to true
Answer 13 Jun 2011   license: CPOL
Try This...SqlConnection con = new SqlConnection("Data Source=(local);Database=UrDatabaseName;uid=sa;pwd=sa");con.Open();string Query = "Select * from Employee";SqlDataAdapter da = new SqlDataAdapter(Query, con);DataTable DT = new DataTable();da.Fill(DT);GridView2.DataSource =...
Answer 13 Jun 2011   license: CPOL
Check Out This Link You May Get Solution...Displaying Images from a Database in a GridView
Answer 13 Jun 2011   license: CPOL
Here is the SolutionCREATE Trigger trg_AON AFOR INSERTASBeginDeclare @Col1 int, @Col2 varchar(20)Select @Col1=i.col1,@Col2=i.col2FROM Inserted iINSERT INTO B VALUES(@Col1,@Col2)End
C#
Question 13 Jun 2011   license: CPOL
Any Free Third Party Tree View Control Available ?That Should Work In Visual Studio 2003I Used WebControls Released by Microsoft(Microsoft.Web.UI.WebControls)But that is working Only in IENot in other Browser Like SafariSo Im thinking to useFree Third Party Tree View...
Answer 13 Jun 2011   license: CPOL
Check Out This Link..You May Get Solution..ASP.NET email with multiple attachmentsAs Per Ur CodeJust Create More Attachment ObjectAnd That One AlsomyMess.Attachments.Add(objAttachment1);myMess.Attachments.Add(objAttachment2);
Answer 13 Jun 2011   license: CPOL
Here is JavaScript..function Validate(form) { var TB = form.TextBox1.Value Var str = TB.split(/\./); if(str.length>2) return false; return true;}And TextBox
Answer 13 Jun 2011   license: CPOL
Here is The Solution..Define CustomerID Field as follows..Inside EditItemTemplate Text=''>...
Answer 13 Jun 2011   license: CPOL
Instead Of This One " >U Can Directly UseSo That Age Will Load for Each Employee
Answer 12 Jun 2011   license: CPOL
Here Is the Solution...Change In ItemTemplateDataSource=''ToDataTextField=''Like This... '>
Question 12 Jun 2011   license: CPOL
Hello, I have two Textboxes txtFromDate and txtToDateFor this I want JavaScript Function that Should validate--> From Date should be less than To Date--> To DAte should be greater than From DateNote: I am Using Calender Extender Control fromAjax Control Toolkit for these both...
Answer 12 Jun 2011   license: CPOL
Do You Want Code to Hide ModalPopUp ?Y Im asking this means If We Click or Press Enterthe ModalPop COntrol Will automatically Close.Ok Any Way...If Yes Here is the Simple Solution ...ModalPopupExtender1.Hide();Check Out This..
Answer 10 Jun 2011   license: CPOL
style="background-color: #CC33FF" > style="background-color: #3399FF; cursor:move" >
Answer 10 Jun 2011   license: CPOL
Here Is One Solution..protected void Button1_Click(object sender, EventArgs e){ ModalPopupExtender1.Show();}Check Out This...
Answer 10 Jun 2011   license: CPOL
Do You Mean Cascading DropDownList ?If That SoCheck Out This Link...Cascading DropDownList
Question 10 Jun 2011   license: CPOL
Hello, I Want a C# Code to Navigate to Top of the Pageand to Bottom of the Page on Clicking Link ButtonOr ButtonTOPBOTTOM
Answer 10 Jun 2011   license: CPOL
Try To Store Images in Memory StreamInstead of Saving Images File PathSo That U CAn Directly Bind that Value to Report..May Be This LInk Will Helpfull to YouCheck OUt This...ImageSaveInDataBaseAnd Check THis Link Aslo...ImagesInReportView
Create Conection String by Prasad C.M.
Answer 9 Jun 2011   license: CPOL
First Import NameSpaceusing System.Data.SqlClient;And Use Following CodeSqlConnection SqlCon = new SqlConnection("server=UrSQLserverName;database=DatabaseName;uid=SqlUserID;pwd=SqlPassword");And Then Open Sql ConnectionSqlCon.Open()And Do Ur Sql Operations....
Answer 9 Jun 2011   license: CPOL
Check OUt HereYou May get SolutionMeta Data
Answer 9 Jun 2011   license: CPOL
Link For Radio Button ListLink For Radio ButtonCheck Out These Two....
Answer 9 Jun 2011   license: CPOL
Check Out This LinkRadioButton vs RadioButtonList This May Help You...
Searching from database. by Prasad C.M.
Answer 9 Jun 2011   license: CPOL
As I Understood Ur QuestionI Given Solution Like As Follows
Answer 9 Jun 2011   license: CPOL
Here is One Solution For That...Use Alias Name for each Column Name Inside Query that U R going to executeLike This..Select catID as Cat ID, desc as Description, catName as Category Name from UrTable
C#
Answer 8 Jun 2011   license: CPOL
Hey Don't Use this code inside PAge_Load EventTextBox txt = (TextBox)Master.FindControl("TextBox1");Or Else Do One thing place one more button in content pageand inside button_Click Event Use this CodeIt will work...

Page 1 of 2
1 2


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