|
i have radio button on page it have three item
1=piyush
2=rajuu
3=india
i using validation for that time when i select India not for alwaya
Piyush Vardhan Singh
|
|
|
|
|
Use regular expression to validate.
Devjit Das
|
|
|
|
|
|
i have radio button on page it have three item
1=piyush
2=rajuu
3=india
i using validation for that time when i select India not for alwaya
Piyush Vardhan Singh
|
|
|
|
|
Hi,
I am new in asp.net
<asp:Menu ID="EntertainmentMenu" Width="100Px" runat="server" Orientation="Horizontal">
<DynamicMenuItemStyle BackColor="LightSkyBlue" ForeColor="Black" BorderStyle="solid" BorderWidth="1" BorderColor="Black" Width="180px" />
<Items>
<asp:MenuItem ImageUrl="Images/browseaticket.GIF" NavigateUrl="#">
<asp:MenuItem Text="CONCERTS" />
<asp:MenuItem Text="NFL" />
<asp:MenuItem Text ="THEATRE" />
</asp:MenuItem>
</Items>
</asp:Menu>
Here it displays the background color well on MenuItem while Expand the Menu.But i need to display the color while "Mouseover" on the MenuItem.
Please help me.
|
|
|
|
|
hi,
set the color attributes in StaticHoverStyle like..
<StaticHoverStyle ForeColor="Red" />
by
siva
|
|
|
|
|
Yes Shiva i used as for static menu as <StaticHoverStyle ForeColor="Red" />
for Dynamic menuitem i used as <DynamicHoverStyle Forecolor="Black" />.
It displays well in my view.
Thanku shiva.
|
|
|
|
|
See this site..
www.javascripter.com/faq
|
|
|
|
|
Hello,
I am working on asp.net page which has 2 user controls:
control1 has a textbox and a public string property
control2 has a button and a literal.
Here is was I am trying to achieve through delegates:
If user enters a text in the textbox of user control1 and clicks a button from user control2. the literal in usercontrol2 should display the value of the textbox.
My issue: Unable to invoke the the private/protected method of usercontrol1 from aspx through delegate. Please note everything is to be achieved by delegates.
Possibly suggest me with a way out.
Thank you i advance.
regards
Ranjit Vaity
Ranjit Vaity
|
|
|
|
|
The delegates need to be public and they can be called from the private methods. You should be assigning your delegate to call a method in the class that is making the assignment, so private/protected will be fine.
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 Chris,
It worked fine, Thank you so much for your reply!
Cheers!
regards
Ranjit
.NET crazy
|
|
|
|
|
i want the txt file content to be print using java script will u plz tell the way how it possible
|
|
|
|
|
You can't read a local file on the client machine using javascript. That would be insecure.
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 Dude,
here is u r solution....
wwww.javascripter.com/faq/file reading
source code is avaliable with example just go through it...
Regards,
Syed Arif patel.
|
|
|
|
|
Hey Buddy
Its not me in need you replied to wrong person
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi Dude,
here is u r solution....
wwww.javascripter.com/faq/file reading
source code is avaliable with example just go through it...
Regards,
Syed Arif patel.
|
|
|
|
|
i want to know which item is clicked in the repeater control. i think the event dosen't fire when i click the repeater control.I don't know where i made mistake.the following is the user control page and asp.net page.
'=------------ WebUserControl1.ascx.vb
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Repeater1.DataBind()
End Sub
Private tbtxt As New ArrayList
Public Property tbtxt1() As ArrayList
Get
Return tbtxt
End Get
Set(ByVal Value As ArrayList)
tbtxt = Value
End Set
End Property
Public Property backcolor() As Color
Get
Return ViewState("backcolor")
End Get
Set(ByVal Value As Color)
ViewState("backcolor") = Value
End Set
End Property
Public Property selbackcolor() As Color
Get
Return ViewState("selbackcolor")
End Get
Set(ByVal Value As Color)
ViewState("selbackcolor") = Value
End Set
End Property
Public ReadOnly Property currenttabindex() As Integer
Get
Return viewstate("currenttabindex")
End Get
End Property
'private repeater1.
Private Function setbackcolor(ByVal obj As Object) As Color
Dim itm As RepeaterItem = obj
If itm.ItemIndex = currenttabindex Then
Return backcolor
Else
Return selbackcolor
End If
End Function
Public Class selectionchangedeventargs
Inherits EventArgs
Public tabposition As Integer
End Class
Public Delegate Sub SelectionChangedEventHandler(ByVal sender As Object, ByVal e As selectionchangedeventargs)
Public Event selectionchanged As SelectionChangedEventHandler
Public Sub selecttab(ByVal indx As Integer)
viewstate("currenttabindex") = indx
panel1.BackColor = selbackcolor
Repeater1.DataBind()
Dim ev As selectionchangedeventargs
ev.tabposition = currenttabindex
RaiseEvent selectionchanged(Me, ev)
End Sub
Private Sub Repeater1_ItemCommand(ByVal source As System.Object, ByVal e As System.Web.UI.WebControls.RepeaterCommandEventArgs) Handles Repeater1.ItemCommand
selecttab(e.Item.ItemIndex)
End Sub
'--------------------webform2.aspx.vb
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Dim lst As New ArrayList
lst.Add("one")
lst.Add("two")
lst.Add("three")
lst.Add("four")
lst.Add("five")
Dim us As WebUserControl1 = FindControl("tstrip")
us.tbtxt1 = lst
AddHandler us.selectionchanged, AddressOf selectionchanged
End Sub
Private Sub selectionchanged(ByVal sender As Object, ByVal e As WebUserControl1.selectionchangedeventargs)
Label1.Text = e.tabposition.ToString
End Sub
'---------------------------
please help me to solve this.
by
siva
|
|
|
|
|
Here most of the memebers are ASP.NET using C# as it is ASP.NET forum .You posted your question in wrong forum to get quik and proper solution please try VB.NET forum
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
sivarajanb wrote: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Repeater1.DataBind()
End Sub
you bind repeater every postback event
If ispostback=false Then
Repeater1.DataBind()
End If
bEst Regard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
thank u pathan. its working now
by
siva
|
|
|
|
|
Hi,
I am having one datagrid which displayes data from one if the tables.Now i want when yser clicks on edit only the last columns should become editable and rest should be readonly,I am using run-time bidning,So how it is possible?
GIRISH
|
|
|
|
|
if you mean the grid view control then use the smart tag to edit columns and select the column u wanna edit go to the read only property and change it to true.
I donno if this helps.
BiG RaLpH
|
|
|
|
|
hi folks.
When a asynchronous postback (ASP.NET AJAX) times out then the ClientScriptManager shows a dialog with the error message: Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out.
Does anyone know how this text can be localized?
Note that this is not the same as when a asynchronous postback throws an exception. That can be handled with the ScriptManager_AsyncPostBackError event and a custom error message can be sent to the client.
happy programming
Urs
-^-^-^-^-^-^-^-^-^-^-^-
no code is free of bugs
|
|
|
|
|
You're in the wrong place. We help people here. You seem to want somewhere where people will write apps for you. Expect to have to pay money if you want people to do that.
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 )
|
|
|
|