|
Hi,
I have a problem with Grid view. My client required to click anywhere the grid view row and edit the contents, instead of using Edit button which is combined with Grid view. They don’t want to see the edit button .they want only to click the gridrow and it shoud be turned to edit mode.any one have the idea about this. Please help me!!
Rcnair
|
|
|
|
|
Have the edit button as visibility:hidden, and click it using javascript when someone clicks the row.
|
|
|
|
|
hi,
i'm using a fckeditor for online editing feature.
what i want when a user click on "Save As word file".
All the Contents of fckeditor must be saved into the word file on the local system.
how can i do it
All suggestions are welcome
Thanks
Amit Agarwal
|
|
|
|
|
I'm writing java script in aspx page(this is inheriting master page).
this code to get value of TextBox1.Text :
document.write(document.getElementById('<%=TextBox1.ClientID%>').value);
now my question is :
How to assign this value in TextBox2.text ? like this not working
TextBox2.Text = document.getElementById('<%=TextBox1.ClientID%>').value;
thanks in advance
Harry
You get the best out of others when you give the best of yourself.
|
|
|
|
|
var clientId = '<%=ClientID%>';
document.getElementById(ClientId + '_TextBox2').value = document.getElementById(ClientId + '_TextBox1').value;
try this way ...
Sathy
|
|
|
|
|
It's not working.
document.getElementById(ClientId + '_TextBox2').value
I think above code to get value not for assigning.
I want to assign value in TextBox2.
please tell me other way.
thanks a lot to try to solve my problem.
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Declare these things in master page
<br />
<br />
var clientId = '<%=ClientID%>';<br />
var contentId = '<%=ContentPlaceHolder1.ID %>';<br />
var separator = '<%=IdSeparator%>';<br />
<br />
Write this javascript code in your aspx page.
<br />
<br />
<br />
document.getElementById(clientId +separator+ contentId + separator + 'TextBox2').value = document.getElementById(clientId +separator+ contentId + separator + 'TextBox1').value;<br />
<br />
Sathy
|
|
|
|
|
Now working properly
Thank you so much.
I have one problem more.
function ChangePage(id)
{
// save the page clicked
document.all.PageNumber.value = id;
// call the __doPostBack function to post back the form and execute the //PageClick event
__doPostBack('PageClick','');
}
document.all.PageNumber.value = id; code is not working.
How to assign id into document.all.PageNumber.value
thanks in advance.
You get the best out of others when you give the best of yourself.
|
|
|
|
|
document.getElementById('<%=TextBox2.ClientID%>').value = document.getElementById('<%=TextBox1.ClientID%>').value;
|
|
|
|
|
this is not working!!!
N a v a n e e t h wrote: document.getElementById('<%=TextBox2.ClientID%>').value = document.getElementById('<%=TextBox1.ClientID%>').value;
but this works
document.getElementById('<%=TextBox2.UniqueID%>').value = document.getElementById('<%=TextBox1.UniqueID%>').value;
ClientID uses ClientIDSeparator property where masterpage uses IdSepartor property
Sathy
|
|
|
|
|
Now working properly
Thank you so much.
I have one problem more.
function ChangePage(id)
{
// save the page clicked
document.all.PageNumber.value = id;
// call the __doPostBack function to post back the form and execute the //PageClick event
__doPostBack('PageClick','');
}
document.all.PageNumber.value = id; code is not working.
How to assign id into document.all.PageNumber.value
thanks in advance.
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Hi all,
I am using this code to create list of Radio Button
Dim TD7 As New TableCell
Dim rbCopy As New RadioButton
rbCopy.GroupName = "radioCopy"
rbCopy.ID = "radioCopy"
TD7.HorizontalAlign = HorizontalAlign.Left
TD7.VerticalAlign = VerticalAlign.Middle
TD7.Controls.Add(rbCopy)
TR1.Cells.Add(TD7)
and adding it to the table. After this I am tryig to get any button is checked or not using
var chkChecked=document.getElementById('radioCopy');
for (intCount=0;intCount < chkChecked.length;intCount++)
{
if (chkChecked[intCount].checked == true)
{
isChecked=true;
break;
}
But the
chkChecked.length is always comming as undefined. I dont know why
Thanks
Dana
|
|
|
|
|
No Problem this one worked
document.all.radioCopy
Dana
|
|
|
|
|
Hi all
i have a table where iam exporting to excel. When i export it i get disordered cells some has width very short and some very long even though i have made sure to give same width for all sub tables of the table main which iam exporting. I have done this export 100's of times but i dont know why this one is corrupted. Any ideas??
|
|
|
|
|
Hi
I created ASP.NET 2.0 web application that uses SQL Server 2000 database and it works perfectly when website was in the runtime mode.
Then I publised application on production server.
I received the error:
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)
Why it thinks I am trying to connect to SQL Server 2005 ? There is no any
2005 server on server!
This is my connection string:
Server=servername;Database=SOX;User ID=userxxx;Password=******;
|
|
|
|
|
|
developer by senol my home page http://www.evdenevenakliyatbul.com
*********************************************************
this.Web.comfig
code
////////////////////////////////////////////////////////
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings>
<add key="string_var" value="data source=host;UID=userstring; pwd=passtring;initial Catalog=Deneme"/>
</appSettings>
<connectionStrings/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true"/>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
</configuration>
/////////////////////////////////////////////////////////////
class
///////////////////////////////////////////////////////////
using System.Data.SqlClient;
using System.Data;
public static SqlConnection sqlBaglanti = new SqlConnection(System.Configuration.ConfigurationManager.AppSettings["string_var"]);
/////////////////////////////////////////////////////////////
Boya - Badana - Tadilat ve Tamirat Isleri Bir Yudum Kahve Molasi (Coffee) Dügün Nisan ve Gelinlik (wedding)
Google Reklamlarinizi Sadece Siz Yönetin Elektrik Proje Tesisat Projesi Çizimi Illere Göre Nakliyat Firmalari Istatistik
http://www.evdenevenakliyatbul.com
|
|
|
|
|
hi all
i need some help in fileupload control.
i have a page with file upload control.
when ever iam inserting some thing into to database it is working fine.
but ,my problem is iam retiving the values from database and i want assign the value to the upload control. is there is a way to assign the values
for upload control...
thank you.
siri
|
|
|
|
|
No, there is not. If you did that, then you could hide one on a page and grab files from your users PCs, so it is not allowed, by the browser.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi guys
My problem is this . I need to generate a large number of records from SQL server 2000 to and excel spreadsheet. However the durations of time id too long. For about 900 records there's about 50 min.
Any idea or guide to boast up the speed?
Thanks a million guys need it urgently
KaKaShi HaTaKe
KaKaShi HaTaKe
|
|
|
|
|
HatakeKaKaShi wrote: For about 900 records there's about 50 min.
HatakeKaKaShi wrote: SQL server 2000 to and excel spreadsheet
Give some more details about how you are doing it now, so that we can suggest any improvements. Are you converting to CSV format?
*jaans
|
|
|
|
|
Not CSV, i am generating to excel .xls
Basically i have a main details table link to many sub details Table
Then first i select all the main info id and use the for loop to loop through all the sub details table whether the id is match. then insert into the excel spreadsheet. The method i use is Create the XLS file then connect to it and do insert statement to input data. This method work but when inserting 900 records it took about 30 mins or more....
Any suggetion or solution please guide.... Need help man
THanks a million to you guys
KaKaShi HaTaKe
|
|
|
|
|
HatakeKaKaShi wrote: Then first i select all the main info id and use the for loop to loop through all the sub details table whether the id is match.
Use a sql statement with join so that you can fetch all the records in one go. Looping and connecting to db for each row is not recommended.
*jaans
|
|
|
|
|
but will it slow down as well? using join statement?
KaKaShi HaTaKe
|
|
|
|
|
Hi...
I m using .cs and .vb in the same project.
how do i use them...I mean, i cannot put both files in sane App_Code folder, i gives compilation error.
Please Help me...
Thanx in Advance..
Amit Metkar
3i-infotech, Mumbai.
|
|
|
|