|
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 .
|
|
|
|
|
Im not sure I really understand you.
To put it in the format above just use a table
|
|
|
|
|
|
<asp:RadioButtonList ID="RadioButtonList1" runat="server">
<asp:ListItem>Male</asp:ListItem>
<asp:ListItem>Female</asp:ListItem>
</asp:RadioButtonList>
Run this code..
it will help u.....
|
|
|
|
|
Hi,
I have created a web service with one method called SendTestMeail. Method has one parameter call comment type string.
When i call this method through the URL with Query string Like:
incase of English text :
http://localhost/WebServices/MailSender.asmx/SendTestMeail?comments=testing by parwej
it is working file
But, In case of Cyrillic Char (Unicode)
http://localhost/WebServices/MailSender.asmx/SendTestMeail?comments=К Л М Н О П Р С Т
It is showing "?" marks for all Cyrillic characters on server side.
Please sugges me how can i pass unicode in query string whin i call a web service method.
Parwej Ahamad
R & D: REST services with WCF
|
|
|
|
|
How to display multiple images in asp.net while using MS-Access as a database.actully I stored the local path like "..\img\abc.jpg" in my data base and took the data field as text. I want to display images in matrix format with some discription.
so please help me how I can do this I will be very thankful to all.
Please reply with some code.
I am waiting for answer.
thank you.
nilesh kumar saraf
modified on Tuesday, July 29, 2008 7:13 AM
|
|
|
|
|
I have got one project in ASP.Net when try to open it it gives me an error saying "This project is not supported by this installation" I have VS 2005 installed in my Computer.
|
|
|
|