hey i solved with ajax toolkit...:)
mahichandu
Posts
-
validation -
validationHey i got one more QQ.is there any property for validation like when the user enters into name textbox..when he type numbers it shouldn't print on the page..for numbers it shouldn't display anything..when the user type alphabits name textbox field should display the letters..what ever the expression we gave those letters should print... any property?? other way of validating??
-
validationhey thanx..its working after adding * to my expression..i did basic mistake..
-
validationhi.. in my page n number of fields are there.user may enter some fields maynot enter some fields.so i am not using required field validator.I just want to check with valuetype.so i am using regular expression validator for name to allow lower & upper case letters and space,' etc.see code below.
i am entering only those letters only eventhough error message is coming.why??
-
DropdownlistYes..I Tested and executed my spro.Its working.When i am adding parameter values year and month..its displaying listofdays according to month and year.
-
DropdownlistHi.. I have stored procedure to display listofdays by using year and month.My Storedprocedure filter all the Listofdays by leapyear and by month it will display listofdays. In my stored procedure i used two parameters month & Year.I want to bind lisofdays spro in code behind with two parameters and how i call this listofdays method to my dropdownlist?? I am using below methods for binding the data into datatable. Getdatatable Method
sqlconn = GetConnection();
cmd.Connection = sqlconn;
da = new SqlDataAdapter(cmd);
dt = new DataTable();
da.Fill(dt);return (dt);
Calling My Spro
cmd = new SqlCommand("ndi_sp_GetDaysOfMonth", sqlconn);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add(new SqlParameter("@Month",DbType.Int16));
cmd.Parameters.Add(new SqlParameter("@Year", DbType.Int16));return GetDataTable(cmd);
The method is correct.??If so when i put breakpiont and checking its not filling the data in datatable.:confused: Hope someone reply to my message..Thanks in advance
-
Create xml file in asp.net with C#Hi I got one task in my project..i am new to C# technolgies..Please suggest me some way,.. I have some fields ssn,Firstname,lastname,Dayofbirth,Dayofmonth,Dayofyear,sex,Fathers surname,father intials and i have some search conditions to search the data..like 1.Fname,Lanme ,Doy 2.Lname,Fatherssurname,DOB,DOM,DOY 3.ssn..etc when the user enter the values and clicks submit button the vluea are matching with any of my search condition i have to generate xml file and send to the task table in database.. How can i do that ??? first i want to create xml file..how to do tht ? after creating xml file..i have to write looping statement right??my condittion statement like how?? if(!ssn=null):confused: { ?? }
-
Convert datetime to dateHey..i tried with above method..i followed other methods also which you send me ..i,e very good link for beginners like me....eventhough i couldn't resolve that issue.. its throwing exception error like below.. FORMAT EXCEPTION UNHANDLED BY USERCODE... converting from string to datetime parse the string to take the date before putting each variable datetime object into How can i resolve ???
-
Convert datetime to dateHi.. i want to convert datatime format to Date...i want to display On UI only date... I am using below method its not working for me... can anyone suggest me..
public static String GetShortDate(String sDateTimeValue) { return String.Format("{0:dd/MM/yy}", sDateTimeValue.ToString()); }
-
ASP.net web controlsYou mean Usercontrol .cs file..Yeah i wrote my method in usercontrol..i am calling stored procedure in usercontrol to display list of years..
-
ASP.net web controlsHi .. am getting error like this..can anyone help..in my pageload there is no errors ..only 1 error from aspx page Error:does not contain a definition for 'ddlYear_SelcetedIndexChanged'
<%@ Register TagPrefix="users" TagName="YearDropdownList" Src="~/UserControls/YearListBox1.ascx" %>
.aspx
.aspx.cs
pageload:
protected void dd1Year_SelectedIndexChanged(Object sender, EventArgs e)
{
//callling string from my user control
sYear = ddlYear.SelectedValue.Trim();
} -
Usercontrol in Asp.net with C#Hi I created one user control for list of years to populate in dropdownlist.. i want to use same usercontrol in pageload for two dropdown list controls(i mean i want to populate listofyears in two dropdownlists).. I can't make same ID for two dropdownlist na..How can i call my usercontrol to two dropdowncontrols in same page??? can anyoneexplain in detail...Thanx in advance
-
comment comman in asp.netin my page comment and uncomment command(in toolbar) is not enabling..how to enable that.?? i tried with view-> toolbar->texteditor..i couldn't enable..:(
-
Asp.net assembly info [modified]No i din't added using exception.. How to do that ?? i din't get add using exception? Could You Expalin me in Detail..
-
Asp.net assembly info [modified]Hey.. i addeed classlibrary to my my project..in class library i am adding some methods..i added all assemblys by addreference in the classlibrary.. The type or namespace name 'exception' could not be found (are you missing a using directive or an assembly reference?) what assembly i should add?
modified on Thursday, June 11, 2009 2:07 PM
-
Asp.net missing an assembly referencehey i found the way to add ..thnx
modified on Thursday, June 11, 2009 12:39 PM
-
Asp.net missing an assembly referencehey i can find System.Web.dll in C:\Windows\Microsoft.NET\Framework\..how to add to my project..i have to copy tht dll file and paste it somewhere in my project..
-
Asp.net missing an assembly referencethese are not finding in my webpage..i am trying to add System.web.dll..i couldn't see that name... i checked by rightclicking project and add reference..there also i din't find tht assembly.. using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; The type or namespace name 'Security' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) can anyone answer???
-
tagprefix in asp.netwithC#hey i copied entire design page..it din't display in the webpage... i am just copying other part of my code..follow from above.. i mentioned my menu tag in below..just go through..i can't view this code when i add it in the codeblock..when i removed the tag i can able to view this in the webpage.. i don't know..just go through my menu tag.. div class="header1"user1:Menus runtat="server" vissible="true" id="menu1" / /div plz answer :zzz:
-
tagprefix in asp.netwithC#Hi i added tag in masterpage and i added same tagprefix & tagname in which i declred globally..just go through my code..i added tagprefix users & tagname Menus.. The error coming like Menus is not a known element... can anyone answer?
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="NDIMaster.master.cs" Inherits="NDI.NDIMaster" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Register TagPrefix="user1" TagName="Menus" Src="~/UserControl/Menus.ascx" %>