|
Hi tiger have you found solution? we also need same feature
Pramit
Lets develop
|
|
|
|
|
I want to make a radio on my site. My site is writen in asp.net and ajax. On the main page I've got a tag <embed src="MusicFile.mp3" /> witch plays me a single music file. I want to create a page in witch music will be played, and when the music file ends - another file will be loaded and played. How do I do that? Is the the embed tag good for that or do I need a different tag?
|
|
|
|
|
Hi, I need you execute a windows service from webform, work in visual studio .net 2003 vb.net. I try with servicecontroller component but not work
Try
Dim servicio As New ServiceProcess.ServiceController
servicio.MachineName = "SINNIUNO"
servicio.ServiceName = "DEMONIO"
Me.Button4.Text = GetServiceStatus(servicio)
If servicio.CanStop Then
servicio.Stop()
Else
End If
Catch ex As ServiceProcess.TimeoutException
End Try
appear this error message
Detalles de la excepción: System.ComponentModel.Win32Exception: Acceso denegado
[Win32Exception (0x80004005): Acceso denegado]
[InvalidOperationException: No se puede abrir el servicio DEMONIO en el equipo 'SINNIUNO'.]
System.ServiceProcess.ServiceController.GetServiceHandle(Int32 desiredAccess)
System.ServiceProcess.ServiceController.Stop()
MataServicios.WebForm1.Button4_Click(Object sender, EventArgs e)
Any idea
Thank's
|
|
|
|
|
Hi,
I'm using Windows Authetication For my datagrid. And I got this example But it's not giving me the name. Where I'm I getting it wrong?
<authentication mode="Windows">
...
<authorization>
<deny users="?">
Thanks
|
|
|
|
|
There was no pasted snippet.
|
|
|
|
|
It is a common mistake.
Make sure IIS is not set to allow anonymous users. This will force a principle to be created with security information.
File Not Found
|
|
|
|
|
Hi Thanks,
I got a web site that explains to me how to change to Anonymous But I got stack some how on the way. after Enabling Anonymous access Check box and click ok. I do not understand what next would you explain to me please? Here is the example.
http://technet2.microsoft.com/WindowsServer/en/library/764d5c12-261e-4bb4-
bd6d-a394f61054041033.mspx?mfr=true
Thank you.
|
|
|
|
|
I need help from someone in asp.net. I want to select some particular string while i am entering the letter of the string in list box or by using some other control like combo box, list box. for ex: i have so many items like pen,pencil,pepper,pendulam etc., if i enter the letter according to that the cursor should move to the corresponding string.
thanks.
v.rajagopalan
v.rajagopalan
|
|
|
|
|
I think u need something like google suggest functionality. You can download the code from codeproject itself there are many google suggest like article
Nobody is perfect i'm Nobody
|
|
|
|
|
Capture the keydown event of the list/combo box in javascript and find the string what you pressed. You have to concatinate the keys you pressed and flush it after some interval of time.
|
|
|
|
|
Hi all,
I am showing employee information in a datagrid. I wan`t to give various options 2 operate on the data and to do this i want 2 provide a dropdown at the end of each row containing various options such as change,remove etc and on selection change the corresponding row of the datagrid must be updated.How do i generate the dropdown for each row and associate it with that row???
|
|
|
|
|
Use a template column like this:
<asp:DataGrid ....>
<Columns>
// put your other columns here ....
<asp:TemplateColumn HeaderText="Action">
<asp:DropDownList ID="ddAction" runat="server">
<asp:ListItem Text="(select an option)" />
<asp:ListItem Text="change" />
<asp:ListItem Text="remove" />
</asp:DropDownList>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
|
|
|
|
|
How do i fire it`s selection change event and the change must be reflected in the corresponding row.i.e how do i know which dropdown was selected and which row to modify???
Thanks in advance!!!
|
|
|
|
|
Set the AutoPostback peoperty of the DropdownList and then capture the SelectedIndexChanged Event of the DataGrid.
|
|
|
|
|
I need to automatic upload a file to the client machine,could any one help me on how to do that
Thanks,
Marwa Bahaa
|
|
|
|
|
|
Read the file in arraybytes format and and throught streamwriter write the arraybytes one you get the arraybytes.
|
|
|
|
|
wrote: I need to automatic upload a file to the client machine,could any one help me on how to do that
Do you want to upload file from client to server or download from server to client. ? If you want to copy file from server to client, ASP.NET should have write access in the client machine where u want to copy the file
|
|
|
|
|
wrote: upload a file to the client machine
The above phrase means download, not upload...
|
|
|
|
|
yes, i need to download file from web server to client machine
Marwa
|
|
|
|
|
I am having some issues with some of my code which is based around creating properties inside a user control and then having the page that the user control resides in work with these properties.
Code is as follows:
Private IntendedType As String<br />
<br />
Public Sub SetIntendedType(ByVal IntendedType As String)<br />
IntendedType = IntendedType<br />
End Sub 'Set Intended Type<br />
<br />
Public Function GetIntendedType() As String<br />
Return IntendedType<br />
End Function 'Get Intended Type
Sits inside the user controls page behind code. The next chunk of code is in the encapsulating pages page_load event.
If Not dr.IsDBNull(15) Then<br />
CreditRatingControl.SetIntendedType(dr(15))<br />
End If<br />
If Not dr.IsDBNull(16) Then<br />
CreditRatingControl.SetIntendedUse(dr(16))<br />
End If<br />
If Not dr.IsDBNull(17) Then<br />
CreditRatingControl.SetIntendedPurpose(dr(17))<br />
End If
Obviously that part is sat inside a datareader while loop but I have ommited this. And then finally I have this inside the user control page load
<br />
SetIntendedPurpose("c**k")<br />
Label13.Text = GetIntendedPurpose() + GetIntendedType() + GetIntendedUse() + "Poo"
All I get is "poo" shown on the page. Now surely the values set from the data retrieval should have been passed in. Am I any where close with this code or not?? Does this kind of approach even work?
Thanks in advance
|
|
|
|
|
Sounds like the page_load functions aren't running in the order you would expect - ie the user control page_load is running before the page. Is this running as part of a post back or not? If its not a postback, I'm pretty sure the user control wouldn't even exist as CreateChildControls shouldn't run until after the pages page_load. If it is a postback, CreateChildControls runs before the pages page_load and it might mean the controls page_load runs first (before the properties are set). Let me have a look and I'll get back to you sweetheart.
|
|
|
|
|
Yeah I was thinking similar thoughts but thats why I added that C**k line in. Surely that should set the property to have a value as it displays it on the next line. Sure it's not something to do with different instances of the same properties?!
|
|
|
|
|
Will this line here actually work?:
IntendedType = IntendedType
As you know I can't stand VB.NET but in C# this would set the local variable to its own value, to set the private class variable you'd need:
this.IntendedType = IntendedType
(Not sure if thats what you need in VB)
|
|
|
|
|
Yeah you were right. Although the VB.net keyword is "ME". Would it have made a differece if I had called my variables different names??
There was this other bit of code that you might know
If Me.C**k.Length > Rory.C**k.Length Then As String<br />
Return Reality <br />
Else<br />
Return Bullshit<br />
EndIf
Do you follow that one?
|
|
|
|