I knw about c++ but i want to knw is that c++ classes are similar to .net classes? or there is some difference?
learning developer
I knw about c++ but i want to knw is that c++ classes are similar to .net classes? or there is some difference?
learning developer
i am working on classes in asp.net & i want to know that what concept is to be followed while working on classes.I am new to this type of approach can u plz help me? thanks
learning developer
i am using js function to check gridview value existence it was working fine for single page it doesnt check the whole records it only checks those records which are on current page, function checkval() { var txt=document.getElementById("<%= txt_category.ClientID %>").value; var theGridView = document.getElementById("<%= gv_faculty_category.ClientID %>"); if(theGridView!=null && txt!="") { for ( var rowCount = 1; rowCount < theGridView.rows.length; rowCount++ ) { alert(theGridView.rows.length); if ( theGridView.rows(rowCount).cells(0).children(0)!=null) { // Find Check Box control in gridview var theGridViewLable = theGridView.rows(rowCount).cells(1).children(0); if(theGridViewLable.innerHTML==txt) { document.getElementById("<%=lbl_proceed.ClientID %>").innerHTML="Category Exists"; document.getElementById("<%=hf.ClientID %>").setAttribute("value","no"); break; } else { document.getElementById("<%=lbl_proceed.ClientID %>").innerHTML="Proceed"; document.getElementById("<%=hf.ClientID %>").setAttribute("value", "Proceed"); } } } } else { document.getElementById("<%=lbl_proceed.ClientID %>").innerHTML=""; document.getElementById("<%=hf.ClientID %>").setAttribute("value", "Proceed"); } }
can u plz help me thanks in advance
learning developer
i am trying to call server side function like this OnClientClick="'<%= checkcategory() %>'" OnClick="btn_submit_Click1" Text="Submit" />
it was not working can u provide me the solution thanks in advance
learning developer
do u hav the answer faltu k answers nhi chahiye
Maniiiiiiiiiiiiiii
i would like to use tooltips for javascript validation as used in this link- http://www.shine.com[^] can u plz help me thanks...
u can use javascript alert on .cs //---------------javaScript Alert------------------------- public void CreateMessageAlert(System.Web.UI.Page senderpage, string alertMsg) { string alertKey = "alertKey"; string strScript; strScript = "alert('" + alertMsg + "')"; if (!senderpage.IsStartupScriptRegistered(alertKey)) { senderpage.RegisterStartupScript(alertKey, strScript); } } //-------------------------------------------------------- call it like - s = "hello"; CreateMessageAlert(this, s);
Maniiiiiiiiiiiiiii
in master page find the child control & make set its property like this CrystalDecisions.Web.CrystalReportViewer c = (CrystalDecisions.Web.CrystalReportViewer)ContentPlaceHolder1.FindControl("CrystalReportViewer1"); c.HasPrintButton = false; c.HasExportButton = false;
Maniiiiiiiiiiiiiii
i have occured with the same issue, have u find any solution for that. plz reply me,i need that urgently... thanks in advance
Maniiiiiiiiiiiiiii
It has the property PrintatBottomofPage,sorry but i dont have much knowledge about Reports can u plz elaborate me,i have to set print disable in my master page so hw can i access that print button in my master page.... thanks for ur reply...
Maniiiiiiiiiiiiiii
Can u plz help me to find out hw can i disable print button of crystal report which is placed in a child page.I want that only authorized users can take the printouts of reports. thanks in advance....
Maniiiiiiiiiiiiiii
before posting here i have already taken up the google search....
Maniiiiiiiiiiiiiii
i am using ajax in my web application and changed my web configue according to that but still i am getting this error,can you plz tell me whats the possible cause... web configue code is... < httpHandlers> <remove verb="*" path="*.asmx"> <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> < add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"> < add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"> <httpHandlers> < httpModules> <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> <httpModules> plz plz plz help me its vry urgent.... :)
Maniiiiiiiiiiiiiii
you can set update panel validation through C#,as in edit mode gridview doesnt find the validated control.
Maniiiiiiiiiiiiiii
instead of footer you can place 2 link buttons bellow repeater the code goes like this
public void Repeaterfill()
{
SqlDataAdapter da = new SqlDataAdapter("select a.Complaint_id,a.Emp_id,a.Decription,"
+ " substring(Convert(varchar,a.Problem_date),0,12) as Problem_date,substring(Convert(varchar,b.Resolved_Date),0,12) as Resolved_Date"
+ " from Hr_complaint_detail a,hr_complaint_status b where a.sys_complaint_id=b.Complaint_id and b.Resolved_or_not=1 and a.Emp_id="+empid, con);
DataSet ds = new DataSet();
//Get the start Record Count
//Remember database count is zero based so first decrease the value of
//the current page
int startRecord = (int.Parse(CurrentPage.Value) - 1) \*
int.Parse(PageSize.Value);
//Fetch only the necessary records.
da.Fill(ds, startRecord, int.Parse(PageSize.Value), "hr\_complaint\_status");
//DataBind the Repeater
Rep\_comp\_solved.DataSource = ds.Tables\["hr\_complaint\_status"\].DefaultView;
Rep\_comp\_solved.DataBind();
if (ds.Tables\["hr\_complaint\_status"\].Rows.Count <= 0)
{
Rep\_comp\_solved.Visible = false;
s = "No solved Complaints are there";
CreateMessageAlert(this, s);
Prev.Visible = false;
Next.Visible = false;
}
else
{
Prev.Visible = true;
Next.Visible = true;
}
//Second Part
//Create a new Command to select the total number of records
SqlCommand Cmd = new SqlCommand("select
can u plz mention that line where error occurs...
Maniiiiiiiiiiiiiii
i am using the following code to open dropdown list while validating,but the problem is that i am increasing size of DDL so that it looks like it is opened but by doing so it disturbs the formatting of all those controls which are below to it,so can you plz give a good code or suggestion for opening dropdown list on button click while validating. function ddl_focus() { if(document.getElementById("<%=DropDownList1.ClientID %>").value=="0") { document.getElementById("<%=DropDownList1.ClientID %>").focus(); open_ddl(); } } function open_ddl() { document.getElementById("<%=DropDownList1.ClientID %>").size=10; } function close_ddl() { document.getElementById("<%=DropDownList1.ClientID %>").size=1; }
<Select>
Agra
delhi
mumbai
chennai
Plz select from ddl
i have used the following code to verify email domain given in code project articles but it was not working,can u please sort my problem out.....
public static bool Send(string aa)
{
string[] host = (aa.Split('@'));
string hostname = host[1];
IPHostEntry IPhst = Dns.Resolve(hostname);
IPEndPoint endPt = new IPEndPoint(IPhst.AddressList\[0\], 25);
Socket s = new Socket(endPt.AddressFamily,
SocketType.Stream, ProtocolType.Tcp);
s.Connect(endPt);
//Attempting to connect
}
thanks in advance....
Maniiiiiiiiiiiiiii
plz if u have solution den plz let me know. thanks
Maniiiiiiiiiiiiiii