|
Hi everybody,
I need to disable a ComboBox after clicking a button. I set the Enabled property to false at Click Event of button,
but it didn't work (because it needs a postBack)
I want to do this after clicking the button and doing sth (if succeed), so I can't do it in Page_Load.
What should I do?
Best wishes
|
|
|
|
|
mehrdadc48 wrote: What should I do?
Do it at the client side using Java script.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
How can I deal with standard DropDownList in javascript (in client event of another control. not itself)?
Best wishes
|
|
|
|
|
use javascript
/// write this script function in Body or form tag
function setcomboDisable()
{
document.getElementById('comboid').disabled="disabled"
return false;
}
///in page_load event
buttonid1.Attributes.Add("onclick","if(setcomboDisable()==false){ return false;}else { return true;}");
okay i hope it will work

|
|
|
|
|
hello there.. i wanna ask you how to use radio button in datagridview and display a record but not in single record.. for example i have two result of query :
First Result :
id name price category
A-1 a $20 cotton
A-2 c $50 nylon
Second Result
A-3 b $40 clothes
A-4 d $70 t-shirt
now iam going to combine and sum the price base on a-b b-c
how to combine it? and how to place a radio button beside it.
so i have a view like this
id name category price
A-1 a cotton (Radio Button)$60
A-3 b clothes
A-2 c nylon (Radio Button)$120
A-4 d t-shirt
and now user should select desired item from its prices using just one radio button beside the accumulate price..and view the result they selected in the next page i need a sample code in visual basic .net
|
|
|
|
|
tarbanhud wrote: i need a sample code in visual basic .net
This is so rude. No one here has time to write code for you.
People can suggest you how to proceed and if you have any further problems you can comeback and ask.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
i mean maybe anyone who has similar problem and then find reference on the net.. or maybe anyone 
|
|
|
|
|
hi to all
sir please tell me how to upload any .aspx file in by file software as i uploaded html file but culd not upload any .aspx file in httpdocs.we can upload any folder in httpdocs or not if yes please provide me
rizvan sivally
|
|
|
|
|
sheemap wrote: sir please tell me how to upload any .aspx file in by file software as i uploaded html file but culd not upload any .aspx file in httpdocs.
I didn't understand what you are talking about . Can you please little bit of clear.
|
|
|
|
|
till now i uploaded html file in httpdocs i could not upload any folder(project name of aspn.net which include many aspx page) or any asp.x page
please how to upload any file or folder which contains asp.net file
rizvan sivally
|
|
|
|
|
hey .... u mean .... u r deploying ur website ???
Apurv
“Never trust a computer you can’t throw out a window.”
(Steve Wozniak)
“There are only two industries that refer to their customers as ‘users’.”
(Edward Tufte)
|
|
|
|
|
YES
I MEAN TO DEPLOYING
hi to all
sir please tell me how to upload any .aspx file in by file software as i uploaded html file but culd not upload any .aspx file in httpdocs.we can upload any folder in httpdocs or not if yes please provide me
rizvan sivally
|
|
|
|
|
have u pre-compiled ur code ???
Apurv
“Never trust a computer you can’t throw out a window.”
(Steve Wozniak)
“There are only two industries that refer to their customers as ‘users’.”
(Edward Tufte)
|
|
|
|
|
You have asked this question several times. Stop reposting
only two letters away from being an asset
|
|
|
|
|
Hi There,
I have a menu tree which i am loading using XMl.
When I run project from my IIS server on another machine then my menu tree gets loaded properly but when I run it on Web Server then that Menu Tree doesn't get loaded.What is the problem can anybody tell me.
Thanks,
Life Is Beautifull
|
|
|
|
|
ais07 wrote: i am loading using XMl
ais07 wrote: When I run project from my IIS server on another machine then my menu tree gets loaded properly but when I run it on Web Server then that Menu Tree doesn't get loade
What do you mean by running from IIS server and from Web Server ?
|
|
|
|
|
Thanks for your reply.
IIS Server means my local machine from which I am running my project and it works properly and my menu tree gets loaded properly from data base.But when I host same project on web server on net that time it runs properly but only menu tree doesn't get loaded.And in both the condition I am using same database which present on remote database server.
Thanks,
Life Is Beautifull
|
|
|
|
|
Do you mean the Windows 2003/2008 server as web server?
If you are using impersonation in your application, refer solution given in this link[^]
|
|
|
|
|
Hi Experts,
How to give hyperlink to flash object in embed tag in asp.net?
Please help.
|
|
|
|
|
What do you mean ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Good Day All
After Binding my Grid with 3 Columns , i found out that it Duplicates the Columns Twice. like this
Activity || Staff Member || Cycles || Activity || Staff Member || Cycles || Activity || Staff Member || Cycles
===============================================================================
C[1] || DR Vuyiswa || Year || || || || || ||
All other Duplicated Columns have no Values
and the Grid is defined like this
<igtbl:UltraWebGrid ID="Gridstaff" runat="server" Width="344px" Height="111px" EnableAppStyling="False"
StyleSetName="RubberBlack" Autopostback="true" OnSelectedCellsChange="Gridstaff_SelectedCellsChange" OnSelectedColumnsChange="Gridstaff_SelectedColumnsChange" OnSelectedRowsChange="Gridstaff_SelectedRowsChange">
<Bands>
<igtbl:UltraGridBand>
<AddNewRow View="NotSet" Visible="NotSet">
</AddNewRow>
</igtbl:UltraGridBand>
</Bands>
<DisplayLayout AllowSortingDefault="OnClient" BorderCollapseDefault="Separate" HeaderClickActionDefault="SortMulti"
Name="ctl172xGridstaff" RowHeightDefault="5px"
SelectTypeRowDefault="Extended" StationaryMargins="Header" StationaryMarginsOutlookGroupBy="True"
TableLayout="Fixed" Version="4.00" ViewType="OutlookGroupBy" ColWidthDefault="180px" EnableProgressIndicator="False" UseFixedHeaders="True">
<FrameStyle BackColor="Window" BorderColor="InactiveCaption" BorderStyle="Solid"
BorderWidth="1px" Font-Names="Microsoft Sans Serif" Font-Size="8.25pt" Height="111px"
Width="344px">
</FrameStyle>
<Pager MinimumPagesForDisplay="2">
<PagerStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
<BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
</PagerStyle>
</Pager>
<EditCellStyleDefault BorderStyle="Solid" BorderWidth="0px">
</EditCellStyleDefault>
<FooterStyleDefault BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
<BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
</FooterStyleDefault>
<HeaderStyleDefault BackColor="LightGray" BorderStyle="Solid" HorizontalAlign="Left">
<BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
</HeaderStyleDefault>
<RowStyleDefault BackColor="Window" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"
Font-Names="Microsoft Sans Serif" Font-Size="8.25pt" Height="100%" HorizontalAlign="Left" TextOverflow="Ellipsis" Wrap="True">
<BorderDetails ColorLeft="Window" ColorTop="Window" />
</RowStyleDefault>
<GroupByRowStyleDefault BackColor="Control" BorderColor="Window">
</GroupByRowStyleDefault>
<GroupByBox Hidden="True">
<BoxStyle BackColor="ActiveBorder" BorderColor="Window">
</BoxStyle>
</GroupByBox>
<AddNewBox>
<BoxStyle BackColor="Window" BorderColor="InactiveCaption" BorderStyle="Solid" BorderWidth="1px">
<BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
</BoxStyle>
</AddNewBox>
<ActivationObject BorderColor="" BorderWidth="">
</ActivationObject>
<FilterOptionsDefault>
<FilterDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"
CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"
Font-Size="11px" Height="300px" Width="200px">
<Padding Left="2px" />
</FilterDropDownStyle>
<FilterHighlightRowStyle BackColor="#151C55" ForeColor="White">
</FilterHighlightRowStyle>
<FilterOperandDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid"
BorderWidth="1px" CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"
Font-Size="11px">
<Padding Left="2px" />
</FilterOperandDropDownStyle>
</FilterOptionsDefault>
<SelectedRowStyleDefault BackColor="Gray">
</SelectedRowStyleDefault>
<FixedHeaderStyleDefault Height="100%">
<Padding Bottom="2px" />
</FixedHeaderStyleDefault>
</DisplayLayout>
</igtbl:UltraWebGrid>
Thank you
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.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
If UltraWebGrid has AutoGenerateColumns property, set it to false.
From this link[^], I believe that the UltraWebGrid has AutoGenerateColumns property.
|
|
|
|
|
Good Day
Thanks for your Reply. I have Trapped the Postback before i bind the GRid, without the Code the Grid got Binded multiple times. i resolved it
Thanks
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.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hi,
I set the countdown timer of javascript. my problem is that when i refresh the page or it's postback by any control, my timer is reinitialize again. plz reply me if there is any solu. asap.
Farogh Haider
Web developer
|
|
|
|
|
farogh123 wrote: when i refresh the page or it's postback
You have to store the value before postback. You can store it in View State.
|
|
|
|