|
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?
|
|
|
|
|
Sam Heller wrote: Would it have made a differece if I had called my variables different names??
Yes
Sam Heller wrote: Do you follow that one?
Not really, it seems to give the wrong answer to me. Don't you need a less than instead of a greater than? Do you follow this?:
if(jon.iq > rory.iq) {<br />
return "not a chance";<br />
} else {<br />
return "you can suck me later";<br />
}
|
|
|
|
|
Select Case Person<br />
Case "Rory"<br />
WomanWillSuckHimOff = False<br />
Case "Jon"<br />
WomanWillSuckHimOff = True
|
|
|
|
|
HI all,
Here am using Datagrid in my Project.I placed checkbox in the first column of it.By selecting the checkbox,user can delete appropriate Row,this is all usual stuff and i managed to do this.But here my problem is when any row is deleted from it,displaying as all r deleted and wrong page index,i mean earlier,grid is having 4 items,after deletion also it showing {0}-{1} of {3}.Pls suggest me what to do.Did i apply rebind() again.and anyother?????
Thanks in advance
Have a Nice Day Dudes
|
|
|
|
|
when you delete something from gridview it is temporary try rebinding it refreshes the gridview
|
|
|
|
|
Yes,you need to Bind to DataBase agian.
|
|
|
|
|
I am doing this and only the last textbox is there and rest of them are not there. Please help me out friends its very urgent.
Txt.ID = "SubmitBtn1"
Txt.TextMode = TextBoxMode.MultiLine
PlaceHolder1.Controls.Add(Txt)
PlaceHolder1.Controls.Add(New LiteralControl(" "))
Txt.ID = "SubmitBtn2"
Txt.TextMode = TextBoxMode.MultiLine
PlaceHolder1.Controls.Add(Txt)
PlaceHolder1.Controls.Add(New LiteralControl(" "))
Txt.ID = "SubmitBtn3"
Txt.TextMode = TextBoxMode.MultiLine
PlaceHolder1.Controls.Add(Txt)
PlaceHolder1.Controls.Add(New LiteralControl(" "))
Txt.ID = "SubmitBtn4"
Txt.TextMode = TextBoxMode.MultiLine
PlaceHolder1.Controls.Add(Txt)
Mohinder Singh
|
|
|
|