|
So try following code
if(!arr.Contains(dr["ColumnName"].ToString()))
{
arr.Add(dr["ColumnName"].ToString())
}
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Thanks Lot...,
Regards,
Magi
|
|
|
|
|
Magh_M wrote: Thanks Lot...,
Welcome
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hello Everyone,
I've to design a datagrid with a window on hovering.
Below i'm giving the URL of the site as i want to do .
please have a look at my prob............
http://www.propertyvertical.com/simple_search_new.asp?for=1&city_id=CHD
|
|
|
|
|
I Think you have created an infinitive loop in populating datagrid. I Cant help you if i don't have enought information ( Code snipset woud also help)
|
|
|
|
|
when iam data to an html text box its coming in a single line but i want this to come in multiple line how it is posssible.
|
|
|
|
|
use html textarea control instead of input textbox
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi,
I have a CheckBox1 in the Header Template of the DataList. and other checkboxes in the item and alternate template.. What i want to do is, When i select/deselect the CheckBox1 (header template), All other CheckBoxes in (item and alternate template) should select/unselect correspondingly.
I use Div inside all the templates instead of Tables. The problem is, I am not able to capture any of the Event of CheckBox1..
Any Suggestions plz..
Regards
mukul
|
|
|
|
|
how should i call my javascript function when the page is of master type.i mean the javascript code is under the content tag.
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript" language="javascript" >
function abc()
{
if(confirm('ok'))
{
}
}
</script>
</content>i mean there is no body tag(because of master type page).hpow should i call the abc() function on browser closing
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
-- modified at 2:04 Saturday 3rd November, 2007
|
|
|
|
|
But master page has a body tag.You can call in master page.
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
i have 6 aspx page and a master page , all the pages have paster page property.i don;t want to fire the event on all page closing(if i wrie the onunload function on the ody tag of the measter page, it will fire on every form closing).only on a particular page i want to display the messagebox.how should i do that.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
I have found out one solution from asp.net forum so try out this
in master page body tag give it an id and runat server
string attributeKey = "onload";
string attributeValue = "SomeJavaScriptFunctionCall()";
HtmlGenericControl body = (HtmlGenericControl)this.Master.FindControl("BodyTag");
body.Attributes.Add(attributeKey, attributeValue);
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
i have to place this code at form load
and what's the meaning of
string attributeValue = "SomeJavaScriptFunctionCall()";
i think , a function which is defined in the master-page source file , i have to call that function ?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: a function which is defined in the master-page source file , i have to call that function ?
Yes
please don't forget to vote on the post that helped you.
|
|
|
|
|
string attributeKey = "onunload";
string attributeValue = "return abc();";
HtmlGenericControl body = (HtmlGenericControl)this.Master.FindControl("bid");
body.Attributes.Add(attributeKey, attributeValue);
this is th way i am writing the code.This is the aspx page , where on form load i am writing the code.this is a aspx page and have master page property.
the function is in the master page source file and has teh following definition
<script language="javascript" type="text/javascript">
function abc()
{
alert('hi');
}
</script>
this is not invoking any message
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
this.Master.FindControl("bid") {InnerText = '((System.Web.UI.HtmlControls.HtmlContainerControl)(((System.Web.UI.HtmlControls.HtmlGenericControl)(this.Master.FindControl("bid"))))).InnerText' threw an exception of type 'System.Web.HttpException'} System.Web.UI.Control {System.Web.UI.HtmlControls.HtmlGenericControl}
in add watch i got the detail , there i found this error .I think there is tying some mistake?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
I answered this yesterday. You couldn't work it out from the link I provided ?
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 )
|
|
|
|
|
the link which was forwarded to me yesterday, contains information about the unload functon in the aspx page(not having the master page property).My problem is , i am not being able to invoke the message box , on closing the web page (a page which is a aspx page and has master page propety).otherwise , the message bos is appearing on clicking the close button , in the case of a simple aspx page(not having master page property).
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia please tell me what you do for a living. Are you learning to be a programmer, or are you a programmer?
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I am getting an error in the gridview when the user clicks paging in the gridview while edit process is not finished.I am using dataset and adapter to bind the gridview .
This is my error:
'System.Data.DataRowView' does not contain a property with the name 'version'.
God is always with you.
|
|
|
|
|
In your dataset ,version column does not exist.
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
No.No.
It is working fine when editing alone is done without clicking on paging in the half way of editing.
What r u trying to say?I can't understand.
Regards,
Saranya.
God is always with you.
|
|
|
|
|
Ok.
first get normal mode from editing mode on paging event then write code for paging and rebind gridview.
for example
on pageIndexChanged event
GridView1.EditIndex=-1
GridView1.PageIndex=e.CurrentPageIndex;
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Still it is not working.any solution else?
God is always with you.
|
|
|
|
|
Hi All,
In my asp.net 2005 application I tried to read and write to an html file. But I got the error message as follows.
Server Error in '/BW' Application.
--------------------------------------------------------------------------------
Access to the path 'c:\inetpub\wwwroot\BW\Msg.htm' is denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
I found the solution in google is that select the properties of the 'Msg.htm' and give permissions to the account ASP.NET from the security tab.
But when i selected the properties of that file, there is no security tab. Can you please tell me why it happened?
I am using Windows XP Professional version 2002 with the service pack 2
Thanks and regards,
Hogan
|
|
|
|