You code is working fine for me. Check the other tags in the page. Bhanu
bhanu12345
Posts
-
Need help with Panels in ASP.NET -
set dropdownlist default valueWrite that line of code after binding the data to dropdownlist Bhanu
-
set dropdownlist default valueuse the below code dd.Items.Insert(0, "Select"); Bhanu
-
Get IP addressUse Request.ServerVariables["REMOTE_ADDR"]; use square brackets instead of round brackets Bhanu
-
DropDownListUse the following code objDataSet will have the set of records which are retrived using select query. ddlBestFor.DataValueField = objDataSet.Tables[0].Columns[1].ToString(); ddlBestFor.DataTextField = objDataSet.Tables[0].Columns[0].ToString(); ddlBestFor.DataSource = objDataSet.Tables[0]; ddlBestFor.DataBind(); ddlBestFor.Items.Insert(0, "Select"); Bhanu
-
Confirm BoxHi, In pageload event, add attributes to the button using the following code. Button1.Attributes.add("Onclick","return callconfirmation()"); In the aspx page, in between the head tages write the javascript function with the name callconfirmation. function callconfirmation() { if(confirm("Are You Sure You want to close the application")) { window.close(); } else { return false; } } Try the above code and let me know if you have any issues. Bhanu
-
DesignHi, In datagrid go to propertybuilder. Goto Format Tag and under columns, select the email column and under email column go to items and you'll find the wraptext check box on the rightside of the pane. check that check box then the text gets wrapped. Bhanu
-
checkbox problemHi, I think you are writing the code like this if (!IsPostBack) { if (CheckBox1.Checked == true) { TextBox3.Visible = true; } else if (CheckBox1.Checked == false) { TextBox3.Visible = false; } } remove the !IsPostBack condition and try then it will work. Bhanu
-
displaying date formathi try this code string a a = your date from sqlserver label.text = DateTime.Parse(a).ToLongDateString(); and let me know Bhanu
-
display alert from code behindHi, If you want to show alert messages on button click then in pageload event write button1.attributes.add("onclick","return showalert()"); and in the aspx page write a javascript function to get the alert messages. Reply me if it doesn't work for you. Bhanu
-
Problem to handle with last eventHi, After deleting just redirect the page to same page. Bhanu
-
UpLoad FileHi You can upload larger files by changing maxrequestLength in Web.config section. Bhanu
-
Count of non null columns in a rowHi, Can any body help me in writing a query to retrieve the count of non null columns in a particular row. For eg: I have 30 columns in a table and I enter values to only 5 columns. when I run the query I should get the output as 5 columns have non null values. If it is not possible then is it possible to read values of different columns of a single row into a single variable. Please help me out. ABC
-
Exporting Data To PDFHi, I am using Asp.net 2.0, I have a HTML table with all images and data in it. I want to export it to the pdf file on a button click. How can I do this? Can any one help me? Thanks and Regards, Bhanu
-
Deploying An ApplicationHi all, I am using VS2005 for application. In this application I am using Form Based Authentication for security level. I want to know what are the settings that I have to make while deploying this application. Thanks and Regards Bhanu
-
Email TemplateHi, I have a requirement where I want to create templates for emails. So, I want to know how can I export mail contents to word document. Can any one help me. Thanks in Advance. Bhanu
-
DatagridI am using a datagrid to show a set of records. I am also using edit,update,cancel and delete button columns to perfom required action. I wanted to is it possible for me to call a javascript function on clicking update button in datagrid. Thanks & Regards Bhanu
-
3 tier architectureThanks Nilish, I would like to ask you one more question. What you have mentioned is for VS 2005. But I am working on VS 2003 So, can you please tell me how to do it in 2003 Bhanu
-
3 tier architectureHi, I am implementing 3 tier architecture in my project.I am using asp.net 1.1. Can Anyone help me out in writing code for a data access layer. Bhanu
-
FireFoxHi, In my application,When member's session expires I want to redirect the member to home page where he can relogin there.This functinality is working fine in internet explorer but not in firefox.It is showing an error "Unable to Validate Data". Can anybody helpme why this is not happening in firefox please Thanx in Advance. Bhanu