|
What do you mean? Just embed it in your html...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Hi,
I need to add a search box in my web page, to search for different words / phrases in it.I do not want to use an external search engine (like picosearch, for example) but some code to add in the html file to allow me to search.I need to search WITHIN the webpage.can anyone give me the solution?
Thanks in advance
Regards,
Hiren
|
|
|
|
|
you can create a web user control for that !!!
|
|
|
|
|
|
hirennn wrote: can u just explain me how to do it?
Christian has given you an idea about implementing this. I reiterate, you need to index all the pages and store it in a database. Query the database and return URL. Alternatively, you can search website using Microsoft index services[^]
|
|
|
|
|
You need to create a database that indexes your web pages, and then search that. It needs to build indexes so that the page URLs you found are returned.
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 )
|
|
|
|
|
how to retrieve the web server name using asp.net(VB)?
Best Regards
|
|
|
|
|
use Request.ServerVariables("SERVER_NAME")
|
|
|
|
|
I want to call a javaScript Function from DataGrid Control. I hv a DataGrid and there is an LinkButton Button and Customer Name is Displayed on that, I want if some one Click on that Link Button a javaScript Function should b called and also I want to Send ID to that function, How is that possible.
My Code is here.
<asp:templatecolumn headertext="Name">
<itemtemplate>
<asp:linkbutton id="name" runat="server" text=" "><![CDATA[<%#Container.DataItem("fname") %>]]>'> </asp:linkbutton>
</itemtemplate>
</asp:templatecolumn>
Please Help Me, Thanks in Advance.
|
|
|
|
|
add an onclick to the button. Any attributes that are not recognised by ASP.NET are passed through verbatim to the client.
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 )
|
|
|
|
|
You can use the onItemDatabound event of the datagrid to achieve this functionality. In that event just find the link button control and attach the javascript event with it.
Apurva Kaushal
|
|
|
|
|
hi,
Did u try with OnClientClick propery of link button by
passing 'this' as a parameter?
|
|
|
|
|
I applayed all above methods but it s not working.
|
|
|
|
|
coolmindd wrote: but it s not working.
means some error?
|
|
|
|
|
Now I applayed the following Method and it is working
Public Sub itembound(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs)
Dim script As String
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
CType(e.Item.Cells(0).FindControl("name"), LinkButton).Attributes.Add ("onclick", "window.open('/code/customer/addressbook/default.aspx?id=" & dgD.DataKeys.Item(e.Item.ItemIndex) & "','', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=800,height=600,left = 176,top = 132'); return false;")
End If
End Sub
But I want to Send ID not name to that popup page. If u can see there in query string Name is going. How can I send ID to that page.
|
|
|
|
|
Now the function is working but when I click first time , it is not working, when I click second time then it works. But I m not able to send ID which is on Cell 0 nd the link button is on cell 1.
|
|
|
|
|
Hi guys..,
I want to Create Document Library in SharePoint Programmatically using Web Service
from my C# / ASP.NET Application .
I'm using SharePoint 2007, Visual Studio 2005.
Can u please help me ? It's very urgent.
Thanks
Mohamed Nazeem
Software Engineer
Bangalore
|
|
|
|
|
hi any body know? how to create rss feed for our web site in asp.net 2.0
|
|
|
|
|
|
hi first i say sorry to u....
i need the logic for consuming other website rss...
|
|
|
|
|
how i can make a lable visible =false when i press any key in the textbox
is there is any java script is there to check
|
|
|
|
|
Yes, you can handle the keypress, search for the label by it's Id and hide it in javascript.
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 )
|
|
|
|
|
sir,wat is the word for hidding a label..since iam using document.getelementbyid("label name").visible =false it is not working..wll u plz tell the code once
|
|
|
|
|
You can use
document.getElementById("label name").style.display='none';
to hide your label through javascript.
Apurva Kaushal
|
|
|
|
|
Hi,
Do u want something like this?
When u type something in ur Textbox at that time that label shold be Invisible???
This can be done with J.Script 'onkeypress' Event of textbox.
Put THis all in ur Page HTML
<html><br />
<head><br />
<script language="javascript" type="text/javascript"><br />
function Hello()<br />
{ <br />
document.getElementById('Label1').innerHTML = '';<br />
} <br />
</script><br />
</head><br />
<body><br />
<form id="Form1" runat="server"><br />
<asp:label id="Label1" runat="server" visible="True">My Label</asp:label> <br />
<input id="MyTextBox" onkeypress="javascript:return Hello();" type="text" runat="server"><br />
</input></form><br />
</body><br />
</html>
Believe Yourself™ :->™
|
|
|
|