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?
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
public partial class ctlAutoExtender : System.Web.UI.UserControl
protected void Page_Load(object sender, EventArgs e)
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))
using (SqlDataReader reader = command.ExecuteReader())
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 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
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.
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.
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,,,
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
plz told me that you design this for web or desktop application.
if you are using web application tht page then you are rally doing wrong to save data without clicking button bcz in web every thing take place remotly on your sever that page request to server,while in desktop application this can be affordable,any how.
i am going to tell you method for both web and desktop application.
on text box lost focus save the data to globally declare variable in desktop application and web application use viewstate to save the first text box data.now if the user go to the next text box then on the lost focus of that text save to db both,otherwise if user close the form or come again to the first textbox save to db and clear the first textbox.
try this if any problem ask for help.
Last Visit: 31-Dec-99 18:00 Last Update: 29-Sep-23 9:46