|
HI t.aransiola
you can use this control
http://www.basicdatepicker.com
thanks
|
|
|
|
|
Thank u. Ive not downloaded the control, but i could see that, it is a trial version. Can i deploy my project with this control without any hitch? or what is the limitation for using this trial version?
thnak u
t.aransiola
|
|
|
|
|
|
I am using ajax autocompleteextender. I have declared the service method in the user control itself instead of declaring it in aspx page. But the extender does not work .How can i do it? I want to declare it in ascx page,as i will be reusing the component. i am developing in vs 2005
my master page script
=====================
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" EnablePartialRendering="true"/asp:ScriptManager>
my aspx page where i am inheriting masterpage
==============================================
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="frmTestAuto.aspx.cs" Inherits="frmTestAuto" Title="Untitled Page" %>
<%@ Register Src="ctlAutoExtender.ascx" TagName="ctlAutoExtender" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server" /asp:ScriptManagerProxy>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td>TEST AUTO PAGE</td>
</tr>
<tr>
<td>uc1:ctlAutoExtender ID="CtlAutoExtender1" runat="server" /</td>
</tr>
<tr>
<td>Footer</td>
</tr>
</table>
</asp:Content>
my ascx page
=============
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ctlAutoExtender.ascx.cs" Inherits="ctlAutoExtender" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server"></asp:ScriptManagerProxy>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td>
<asp:TextBox runat="server" ID="myTextBox" Width="300" />
<ajaxToolkit:AutoCompleteExtender runat="server" ID="autoComplete1" TargetControlID="myTextBox" Enabled="true"
ServiceMethod="GetCompletionList" ServicePath="ctlAutoExtender.ascx.cs" MinimumPrefixLength="3"
CompletionInterval="1000" EnableCaching="true"
CompletionSetCount="12"/>
</td>
</tr>
</table>
my ascx.cs page
===============
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Web.Services;
using System.Web.Script.Services;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ScriptService]
public partial class ctlAutoExtender : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
[WebMethod]
[ScriptMethod]
public static string[] GetCompletionList(string prefixText, int count)
{
string sql = String.Format("select clt_tVLongNm from mclient where clt_tVLongNm like @companyname + '%'");
List<string> companyList = new List<string>();
using (SqlConnection connection = new SqlConnection("server=192.168.2.57;uid=sa;pwd=d28rg6yp;database=fnocash_report"))
using (SqlCommand command = new SqlCommand(sql, connection))
{
connection.Open();
command.Parameters.AddWithValue("@companyname", prefixText);
using (SqlDataReader reader = command.ExecuteReader())
{
while (reader.Read())
{
companyList.Add(reader.GetString(0));
}
}
}
return companyList.ToArray();
}
}
Sandeep Kumbhar
|
|
|
|
|
Please provide a solution on urgent basis
Sandeep Kumbhar
|
|
|
|
|
I am using gridview and it has check box selection. I have set the allow paging property to true. When I click a checkbox and go to next page and again come back to the page where i have clicked a checkbox, it gets unchecked.Please help me on this issue. i have to maintain the state of the checkboxes
i am using vs 2005 and my code behind is c#
Sandeep Kumbhar
|
|
|
|
|
One post is enough.BTW why are you creating another posting for the same subject.
Regards,
Satips.
|
|
|
|
|
please provide a solutions on urgent basis
Sandeep Kumbhar
|
|
|
|
|
hi friends,
i have a problem like when i am redirecting from one page to other page in my site but with "https" instead of "http" then protocol is changed but home page is reloaded instead of opening that page referenced by
Thanks.
Chirag Patel
|
|
|
|
|
I am using gridview and it has check box selection. I have set the allow paging property to true. When I click a checkbox and go to next page and again come back to the page where i have clicked a checkbox, it gets unchecked.Please help me on this issue.
i am using asp.net 2.0
Sandeep Kumbhar
-- modified at 5:09 Saturday 5th May, 2007
|
|
|
|
|
use this in aspx file
"asp:CheckBox id="Chk" runat="server" AutoPostBack="true" checked='<%# status(container.dataitem("Active"),false) %>' OnCheckedChanged="SaveStatus" "
and then in code file
Function status(ByVal act As Integer) As String
If act = 0 Then
Return "False"
Else
Return "True"
End If
End Function
-- modified at 4:48 Saturday 5th May, 2007
|
|
|
|
|
i am using vs 2005 and my code behind is c#
Sandeep Kumbhar
|
|
|
|
|
Hi Sandeep Kumbhar
you can create session variable to save user selection in each page and at pagian change upload user selection from session variable
thanks
|
|
|
|
|
But, if there are 10 records per page, and suppose all the checkboxes for that records are selected then how can i store them in a session variable for that page?
Sandeep Kumbhar
|
|
|
|
|
Hi! is it possible to resize the columns of a GridView at run time?
Thanks & Regards,
SAMir Nigam,
Software Developer,
STPL, Lucknow, India.
|
|
|
|
|
|
How?
Thanks & Regards,
SAMir Nigam,
Software Developer,
STPL, Lucknow, India.
|
|
|
|
|
What you have tried so for in the gridview?
Regards,
Satips.
|
|
|
|
|
Hi,
There are some files that I'd like to put on the server of the web application, and I want the client to access them from the server using Server.MapPath()
The files saved on the server are on "C:\Inetpub\wwwroot\MyProject"
Now, How will the client access them after I install the application on his machine, I mean maybe the his Opeerating System is on the "D" not the "C" Drive??
for example, In my web application, when the user presses a button, certain data is saved in an XML file. This XML file should reside on the server so I put it here: "C:\Inetpub\wwwroot\MyProject". Then when the user presses another button, he is supposed to view this file. So he accesses this file using "Server.MapPath()". Now after deploying this application on another machine, how can I save this file on the server on this machine, I mean is this path correct or what??
sorry for taking u so long to read this but I just wanted to understand how to do that??
thnx in advance
|
|
|
|
|
You should always use relative paths (using Server.MapPath) and never hard code the path. Also when you deploy the application, you save that XML file in the Myproject folder under the application root whatever it is.
You can post the download code if you need more help.
|
|
|
|
|
Hi,
Try to get the path this way:
string path=Server.MapPath("..\\MyProject");
then you can add the file name to this "path" and save it.
Regards,
Blumen
|
|
|
|
|
thnx a lot, it worked
|
|
|
|
|
Hello all,,,
Am having one problem while developing,, please help me out as soon as possible,,, its urgent,,
Am using textboxes to insert data into database,,,I want to insert textbox contents into database,,, but without using any button r click event,,,,, after filling the data into textboxes it should save contents automaticaly,,,
waiting for reply
|
|
|
|
|
method1
on last textbox lost foucos called save to database
method2
on form unload if there are text in any txtboxes save it to db
|
|
|
|
|
Thank u for ur reply,,,,
but here am using 2 text boxes,, first fld is mandatory,,n second is not,,,
if i use method 1--on last textbox lost foucos called save to database..
after entering the first time,,,if am goin to enter for sec time,, anycost i ve to click the second textbox as the control is in that text box,,, but i want,,after entering into the textbox itself, it should save for any click event on the page,,,
if i use method 2--on form unload if there are text in any txtboxes save it to db
as i told 1st fld is mandatory,, i need to display error msg for dat,,, but if i write in d formload itself,,error msg is showin at d form load itself..
is der any solution for this
thank u..
|
|
|
|
|