|
Check the radiobutton's selected Item index what is problem in it.
I think you need to study ASP.net first throughly.
|
|
|
|
|
I have one horizontal scroll bar in panel panel contains grid view
When I scroll from left to right it should move from left to right except first column(Other than first column)
can any one give me the solution and its css file..
|
|
|
|
|
|
.GVFixedHeader { font-weight:bold; background-color: MistyRose; position:relative; top:expression(this.parentNode.parentNode.parentNode.scrollTop-1);GridLines ="Both"}
I m using this style....
RowStyle CssClass="GVFixedHeader " Width ="100%"
Using this first column is getting fixed ...but grid lines not appearing
|
|
|
|
|
Amit Patel1985 wrote: but grid lines not appearing
Are you appling any CSS in gridview for GridLine? Did you tried with the link that I have provided to you ?
|
|
|
|
|
I have a calendar extender and a textbox on a webform.
This works well in Firefox, chrome and I guess it works well in IE7 and 6.
But in IE 8 it doesnt navigate through the years when I click on the arrows on top left and right.
What I mean is I have todays date as default date and when I clich the title of the calendar it shows me months and when I click again it shows me years upto 1999. I want the users to select their Date Of Birth so the arrows should display upto 1989 and then 1979 when the arrows are clicked. But in IE 8 this doesnt seem to do anything.
Here is my html source. any help would be great thanks.
I@m using visual studio 2008 with ajax tool kit 3.0
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CalendarTestPage2.aspx.cs" Inherits="TestSite.CalendarTestPage2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div>
<asp:TextBox ID="txtDOB" runat="server">
</asp:TextBox>
<cc1:CalendarExtender ID="txtDOB_CalendarExtender" runat="server" Format="dd/MM/yyyy"
PopupPosition="BottomRight"
TargetControlID="txtDOB">
</cc1:CalendarExtender>
</div>
</form>
</body>
</html>
modified on Wednesday, May 6, 2009 6:59 AM
|
|
|
|
|
sounds like a bug in the control post your question to the codeplex support site.
you'll have a better chance of the original developer answering your question.
|
|
|
|
|
Thanks Jeff, I have posted it on
http://forums.asp.net/1022.aspx[^]
I also found that commenting
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
will make the calendar work as I need but this is not an option.
Hopefully I'll get an answer soon
thanks
|
|
|
|
|
add this to your css, and make sure you do not test on cached page, use ctrl+f5 and check
.ajax__calendar_title
{ width:140px; margin:auto; }
Happy coding...
Bharath Kumar T
(bharath_bkt@yahoo.co.in)
|
|
|
|
|
The solution Works fine even using iframe
Thank's a lot
|
|
|
|
|
hi
i want to execute some sql query through radiobutton list in asp.net 2.0
|
|
|
|
|
How are you going to do that ?
Please explain Clearly what you want to achieve
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
HI
Im displaying some data through radiobutton list control. i have 2 radiobutton . for one 1 radiobutton have sql query and want if i press the button the result display in grid view according to that radio button control .
|
|
|
|
|
This can be achieved this Way
The First thing you need to do is to set the Property "Autopostback" to True and
on your the SelectedIndexChanged event of Radio button list check which button has been selected and show results based on that
if(RadioButtonList1.SelectedItem.Text == "Show")
{
Response.Write("<script>alert('show');</script>");
}
else if (RadioButtonList1.SelectedItem.Text == "Dont Show")
{
Response.Write("<script>alert('show');</script>");
}
Now where i use the alert box , you can do what every you want.
Hope it Helps
Vuyiswa Maseko
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hi,
Im using Javascript and Validator control for validating the page.My problem is Once the input for the validator control is given the java script validation gives the error msg for its control . if i click ok the page accepts the control without any input.
Tell me a way to make javascript to work even after the required field validator completes its work.
Can any one Help...
|
|
|
|
|
Mybe you doing this the Wrong way
If you have validation Controls on your page , why would you write more javascript to do validation again. Just add validation control and assoiciate the validation control and your control you want to validate and thats will be all. another thing we cant say more if we dont see your code
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
This is the script i use similarly i use for multiple checkbox to restrict the user from selecting more than three options.I think these cant be done with validator.
if(!(document.getElementById ('<%=chkTermandcondition.ClientID %>').checked))<br />
{ <br />
<br />
alert("Please Accept Terms and Conditions");<br />
document.getElementById ('<%=chkTermandcondition.ClientID %>').focus();<br />
return false ;<br />
}
this is called in onclientclick event.
I use required field for some other checkbox contorls . if the inputs are given a click the ok button the rest of the other javascript validator is not working.The page accepts the field without any value. Can you get me..
|
|
|
|
|
In your Validation controls there is one used for Custom validation that allows you to use you javascript. Please read about it here
http://msdn.microsoft.com/en-us/library/aa479013.aspx[^]
Thanks
Vuyiswa Maseko
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hi,
I have developped a site by selecting the File System as location option in VS.Net 2008.
After completing it I have published it, then I tried to host it and access it from IIS.
I am getting Web.Config error.
Can anybody give me advice or any link to host a site on IIS which is developped in File System location in VS. 2008 or 2005.
Thanks a Lot,
Abdul Aleem
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
Good Afternoon Abdul
You are doing this the Wrong way. after you compiled and think that your application is workking as it should. you must first create a Virtual Directory with IIS and add your Project Files there and Configure your start page and and bla bla bla. This will be a problem for you because you dont know what setting to touch in the IIS, i sugest you create a setup Project and deploy it like you are deploying an exe, another thing we cant say much if you dont show the error that you saw in the Web.Config
Thanks
Vuyiswa Maseko
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
indian143 wrote: I am getting Web.Config error.
Which Error Are You getting?
indian143 wrote: Can anybody give me advice or any link to host a site on IIS which is developped in File System location in VS. 2008 or 2005.
Deploying Websites on IIS does not depends on the Visual Studio in which you have developed.
Which IIS Version are you using ?
If IIS 7.0 Check Here Deploying Web Sites in IIS 7.0
|
|
|
|
|
code written in register button click event
protected void Button1_Click(object sender, System.EventArgs E)
{
//Response.Redirect("confirm.aspx");
if((txtid.Text=="") || (txtfname.Text=="") ||( txtlname.Text=="") || (txtnick.Text=="") ||
(txtadd.Text=="") || (txtpost.Text=="") ||
(txtmobile.Text=="") || (txtbdate.Text=="") || (txtemailadd.Text=="")
|| (txtconfirmpss.Text=="") || (txtyourans.Text==""))
Labelerror.Text =" sorry you for got to input the required fields";
else
{
SqlConnection conn = new SqlConnection(Application["ConnectionString"].ToString());
String insertCmd = "insert into users values (@StudentID," +
"@password, @FirstName, @LastName,@secretquestion, @NickName,@Sex ,@Address, @PostalCode," +
" @HomePhone,@MobilePhone,@Religion,@Birthdate,@MaritalStatus,@Title,"+
"@EmailAddress,@answer )";
// Initialize the SqlCommand with the new SQL string
// and the connection information.
SqlCommand myCommand = new SqlCommand(insertCmd, conn);
conn.Open();
// Create new parameters for the SqlCommand object and
// initialize them to the input-form field values.
myCommand.Parameters.Add(new SqlParameter("@StudentID", SqlDbType.NVarChar , 10));
myCommand.Parameters["@StudentID"].Value = txtid.Text;
myCommand.Parameters.Add(new SqlParameter("@password", SqlDbType.NVarChar , 15));
myCommand.Parameters["@password"].Value = txtconfirmpss.Text ;
myCommand.Parameters.Add(new SqlParameter("@FirstName", SqlDbType.NVarChar , 30));
myCommand.Parameters["@FirstName"].Value = txtfname.Text;
myCommand.Parameters.Add(new SqlParameter("@LastName", SqlDbType.NVarChar , 50));
myCommand.Parameters["@LastName"].Value = txtlname.Text;
myCommand.Parameters.Add(new SqlParameter("@secretquestion", SqlDbType.NVarChar , 50));
myCommand.Parameters["@secretquestion"].Value = Drops.SelectedItem.Text;
myCommand.Parameters.Add(new SqlParameter("@NickName", SqlDbType.NVarChar , 20));
myCommand.Parameters["@NickName"].Value = txtnick.Text;
myCommand.Parameters.Add(new SqlParameter("@Sex", SqlDbType.NVarChar , 20));
myCommand.Parameters["@Sex"].Value = Dropsex.SelectedItem.Text;
myCommand.Parameters.Add(new SqlParameter("@Address", SqlDbType.NVarChar , 255));
myCommand.Parameters["@Address"].Value = txtadd.Text;
myCommand.Parameters.Add(new SqlParameter("@PostalCode", SqlDbType.NVarChar , 20));
myCommand.Parameters["@PostalCode"].Value = txtpost.Text ;
myCommand.Parameters.Add(new SqlParameter("@HomePhone", SqlDbType.NVarChar , 40));
myCommand.Parameters["@HomePhone"].Value = txthphone.Text;
//mobile phone
myCommand.Parameters.Add(new SqlParameter("@MobilePhone", SqlDbType.NVarChar , 20));
myCommand.Parameters["@MobilePhone"].Value = txtmobile.Text;
myCommand.Parameters.Add(new SqlParameter("@Religion", SqlDbType.NVarChar , 20));
myCommand.Parameters["@Religion"].Value = Dropr.SelectedItem.Text;
myCommand.Parameters.Add(new SqlParameter("@Birthdate", SqlDbType.NVarChar , 20));
myCommand.Parameters["@Birthdate"].Value = txtbdate.Text ;
myCommand.Parameters.Add(new SqlParameter("@MaritalStatus", SqlDbType.NVarChar , 20));
myCommand.Parameters["@MaritalStatus"].Value =Dropmerit.SelectedItem.Text;
myCommand.Parameters.Add(new SqlParameter("@Title", SqlDbType.NVarChar , 50));
myCommand.Parameters["@Title"].Value =txttitle.Text;
myCommand.Parameters.Add(new SqlParameter("@EmailAddress", SqlDbType.NVarChar , 50));
myCommand.Parameters["@EmailAddress"].Value = txtemailadd.Text ;
myCommand.Parameters.Add(new SqlParameter("@answer", SqlDbType.NVarChar , 50));
myCommand.Parameters["@answer"].Value = txtyourans.Text ;
// conn.Close();
//conn.Open();
//myCommand.Connection.Open();
//myCommand.Connection.Open();
//conn.Open();
try
{
myCommand.ExecuteNonQuery();
//conn.ExecuteNonQuery();
Response.Redirect("confirm.aspx");
//Labelerror.Text=" new data has been added";
//Message.InnerHtml = "<b>Record Added</b><br>" + insertCmd;
}
catch (SqlException e)
{
if (e.Number == 2627)
Labelerror.Text = "ERROR: A record already exists with the same student ID";
else
Labelerror.Text = "ERROR: Could not add record, please ensure the fields are correctly filled out";
//Labelerror.Text = Convert.ToString(txtadd.Text);
}
finally
{
//myCommand.Connection.Close();
conn.Close();
}
//BindGrid();
}
}
the above code i have written for registration form for some project
but it is showing an error as follows
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
i used the connection string in web.config as
<add name="ConnectionString" connectionString="server=.;Integrated security=true;Database=AustaExam"
providerName="System.Data.SqlClient" />
|
|
|
|
|
First of all your post is looks like Crap.
sritha wrote: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Did you tried to google it ?
This is one of the most common error for connecting with SQL server . Which SQL Server Version are you using?
|
|
|
|
|
Hi Clever people
I have a simple question and for the life of me, just cant seem to track down the problem. When I am running my web application from the desktop in VS 2008, it reads the png image and displays it for me. The moment I copy and configure the web application in IIS still running it from VS, then the image does not pull through at all.
Can anyone please tell me what I am doing wrong. BTW, it is not the image path since both starts with ../Images/test.png
The only difference in the URL is that from IIS it's http://localhost/ while from the desktop it is http://localhost:1234/
Sorry if I am being an Idiot!
Elizma
|
|
|
|
|
Hi Elizma,
I have the same problem with IIS 7 on Vista. After I modified my PNG files IIS did not refresh them, so I could see only the old version of them.
As a workaround I switched to VS 2008's Development Server (Project properties / Web / Servers / Use Visual Studio Development Server) as you did.
My only problem with this, that sometimes the Dev. Server handles the cookies incorrectly, I so need to switch back and forth between IIS and VS Dev. Server
Interestingly I had no problems on our production server.
I hope we'll get a proper fix soon...
Andras
|
|
|
|