|
means that your SQL Server is down, your connection string is wrong, or your security settings need to be changed in SQL Server.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hi all,
I m using dual slider control of ajax with asp.net c# 2.0.
when the slider is used the values in the respective textboxes changes and using this values I want to query database for an search result to be displayed on the page.
My problem is that when ever I m using the slider the page postback is called and the values of the textboxes are again set to initial default value.
i tried using update panel but couldnt make it properly.
I m trying to make search similar to search in bluenile.com diamond search.
Can any one help me please.
its badly needed.
Thanks in advance.
Vijay V.
Yash Softech
|
|
|
|
|
Do anyone have the link for downloading ajaxtoolkit with rangeextender for VS 2005??
Vijay V.
Yash Softech
|
|
|
|
|
can you give me control so i can check it what is the problem
|
|
|
|
|
hi
i am use datagrid in asp.net using c# and i have a check box in grid view and now i would like to check all and uncheck all function in javascript and call that from linkbutton which exists outside of grid view. plz tell me how i can call javascript function in linkbutton and how i can check all and uncheck all function call for clicking that button? thanks in advance.
|
|
|
|
|
|
Good one
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
Error: chkid is not defined
Source File: http://localhost/javascripts1/gridviewex2.aspx
Line: 21
mycheck box name is chkid
and i use this code
function ChangeCheckBoxState(id, checkState)
{
var cb = document.getElementById(id);
if (cb != null)
cb.checked = checkState;
}
function ChangeAllCheckBoxStates(checkState)
{
// Toggles through all of the checkboxes defined in the CheckBoxIDs array
// and updates their value to the checkState input parameter
if (chkid != null)
{
for (var i = 0; i < chkid.length; i++)
ChangeCheckBoxState(chkid[i], checkState);
}
}
grid view code is where code checkbox exists
<asp:gridview runat="server" id="gv1" autogeneratecolumns="false" pagesize="10" allowpaging="true" gridlines="Both" width="100%" onrowdatabound="gv1_RowDataBound" onrowcommand="gv1_RowCommand" xmlns:asp="#unknown">
<headerstyle backcolor="#84A8C9">
<alternatingrowstyle backcolor="#F4FAFF">
<rowstyle backcolor="#DBECFB" verticalalign="Top">
<columns> <asp:templatefield>
<headertemplate>
Action
<itemtemplate>
<asp:checkbox id="chkid" runat="Server" width="16">
<%--<asp:linkbutton id="edit" runat="server" commandname="edit1" width="16" text="Edit">--%>
<asp:imagebutton id="drop" runat="Server" commandname="del" width="16" imageurl="~/images/delete.png" imagealign="Top">
<asp:imagebutton id="edit" runat="server" commandname="edit1" width="16" imageurl="~/images/edit.png" imagealign="Top">
<%--<asp:image id="img11" runat="server" imageurl="~/images/Info.png">--%>
<itemstyle height="12%" width="8%">
<asp:templatefield>
<headertemplate>
First Name
<itemtemplate>
<asp:literal id="lt_fname" runat="server">
<itemstyle height="12%" width="18%">
<asp:templatefield>
<headertemplate>
Last Name
<itemtemplate>
<asp:literal runat="server" id="lt_lname">
<itemstyle height="12%" width="18%">
<asp:templatefield>
<headertemplate>
Qualification
<itemtemplate>
<asp:literal runat="server" id="lt_qual">
<itemstyle height="12%" width="18%">
<asp:templatefield>
<headertemplate>
Active
<itemtemplate>
<asp:linkbutton runat="server" id="btn_status" text="Active">
<itemstyle height="12%" width="10%" horizontalalign="Center">
<asp:templatefield>
<headertemplate>
Status
<itemtemplate>
<asp:imagebutton runat="server" id="btn_info" commandname="info" borderwidth="0" imageurl="~/images/Info1.png" imagealign="Middle">
<asp:image id="img_info" runat="server" borderwidth="0" visible="true" imageurl="../images/Info.png" imagealign="Middle">
<itemstyle height="12%" width="10%" horizontalalign="Center">
button coding outside of gridview
|
|
|
|
|
Hi,
I am very new to Ajax enabled web application. I was trying to degin an page with some controls in the update panel. I placed a update panel and inside that i placed a table. Now when i am trying to put label and text box in each of the cells inside the table. Here I am not able to align/Indent the controls as i want. Either it is giving more space than i require or it is moving here and there. I am not sure any settings to be done. Can any one please suggest me..
Thanks in advance
|
|
|
|
|
your code plz................
|
|
|
|
|
Hi,
I have not yet all started coding.. its only first i wanted to degsign the screen and see in browser and once screen is ok .. i can go for functionality.
regards,
|
|
|
|
|
Is it possible to use form view with ajax tab control, as my aspx page contains 4 tabs , but i want paging in my aspx page to show data, so is it possible to integrate formview with ajax tab control ?????????
|
|
|
|
|
how to display images using datalist control
when databse is ms-access
nilesh kumar saraf
|
|
|
|
|
R u serious with MS Access?
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
|
Multiple Instances of same usercontrol on a single page works or not
...iam working on this where iam using same control twice in the page it is genaration a javascript error for the second page.
|
|
|
|
|
ID must be diffrent.
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
Iam using File Upload control to Upload the excel file values into database Iam unable to get the full file path of the file.
I have Tryed this
string str = FileUpload1.PostedFile.FileName;
And Also the hidden field to take the file path Both the things not working
function fileupload()
{
var str1 = document.getElementById("<%=ExcelFileUpload.ClientID%>").value
document.getElementById("hidden1").value = str1;
}
<asp:fileupload id="ExcelFileUpload" runat="server" xmlns:asp="#unknown">
<asp:button id="UploadButton" runat="server" text="Upload" onclientclick="return fileupload()" onclick="UploadButton_Click" xmlns:asp="#unknown">
Please Help me.
Bharani
|
|
|
|
|
Hey Bharani,
I tried what you said. But I am able to get the Full Filename. May be you mistaken something else...
|
|
|
|
|
Hi
I have this line of code in my Web Application;
string connect = WebConfigurationManager.ConnectionString
s["Scrabble"].Connection
String;
It will not compile as i am getting the following error:
"The name 'WebConfigurationManager' does not exist in the current context"
If i add Using System.Web.Configuration to the top of the page, it will compile. However it falls over again on the same line with the message:
"Object reference not set to an instance of an object"
What am i doing wrong here???
Thanks again
Cheers
|
|
|
|
|
Aah sorted....
Just for the record I added this to my web.config:
<connectionStrings>
<add name="ScrabbleConnectionString"
; connectionString="Data
Source=JETTA\SQLEXPRESS;Initial Catalog=Scrabble;Integrated
Security=True"
providerName="System.Data.SqlClient
" />
</connectionStrings>
I also added the name of the "connectionString" to the line in my code
that was causing the problem, I.E:
string connect =
WebConfigurationManager.ConnectionString
s["ScrabbleConnectionString&#
034;].Co
nectionString;
Thanks
Cheers
|
|
|
|
|
use configurationmanager instead of webconfigurationmanager
|
|
|
|
|
I have a usercontrol called tabcontrol.ascx. I'm calling this control in master page and I'm referring the master pages in content pages. In one of the content pages I need to disable or make invisible the tabcontrols. Is it possible to do so? If so, how? Any links or URL's is fine. Please help.
I'm using ASP.Net 2.0.
Thank you.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
TabControl t= Page.MasterPage.FindControl(["ID TabControl"]) as TabControl
t.visibale=[true,false];s
twetwetwersdfdsfdsfdsfdsf
|
|
|
|
|
i want to design a page at design time i want two radiobutton in a row .when run the page all the button comes in a column .
as i want
male female
but coming
male
female
plz tell me .
|
|
|
|