|
Please don't Cross Post. Read the forum guide line before post any new question.
|
|
|
|
|
Hi all,
I want to user google custom local search in my website.
I dont want to user google serch control for local search.
I want to use my own control in website for that purpose google
provided a search form function and i can't understand how can i
use this. Please help me to solve the problem?
Thanks
Rahul
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
Your intention is not clear to me. Do you want to implement search functionality like Google but it search items which only reside in your web site? Or do you want to use Google API to incorporate Google Search functioanlity in your web application?
There is no foolish question, there is no final answer...
|
|
|
|
|
I want to incorporate Google custom local Search functioanlity in my website.
check the url maps.google.com and enter any location eg newyork,pune.
you will get some location which contain newyork text in pune city.
I want to use these api in my website but instead of using google search control
i want to use my own control. Using custom form property o API we can create our own
control.I am trying to implement that one.
check this
http://code.google.com/apis/ajaxsearch/documentation/reference.html[^]
hope you will understand.
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
my code is like tis
tis code works on the same page only i want to set the language setting in all pages.....
Imports System
Imports System.Globalization
Imports System.Threading
Imports System.Resources
Imports System.Reflection.AssemblyName
Imports System.IO
Partial Class Testmultiligual
Inherits System.Web.UI.Page
Private rm As ResourceManager
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
con.ConnectionString = ConfigurationManager.ConnectionStrings("ESCConnection").ConnectionString
Dim ci As CultureInfo
If Not Page.IsPostBack Then
gridbind()
Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US")
'get the culture info to set the language
rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources"))
ci = Thread.CurrentThread.CurrentCulture
LoadStrings(ci)
Else
'get the culture info to set the language
rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources"))
ci = Thread.CurrentThread.CurrentCulture
LoadStrings(ci)
End If
End Sub
Private Sub LoadStrings(ByVal ci As CultureInfo)
HylEdit.Text = rm.GetString("Add", ci)
BtnClear.Text = rm.GetString("Clear", ci)
BtnSave.Text = rm.GetString("Save", ci)
HylView.Text = rm.GetString("View", ci)
TDAwd.InnerText = rm.GetString("Awd", ci)
TDAwdDes.InnerText = rm.GetString("Awddes", ci)
TDAwdpic.InnerText = rm.GetString("Awdpi", ci)
TDFreq.InnerText = rm.GetString("Freq", ci)
TDAwdcri.InnerText = rm.GetString("Awdcri", ci)
TDAwdSt.InnerText = rm.GetString("AwdSt", ci)
TDAwdk.InnerText = rm.GetString("Awdk", ci)
'TDGrvTitle.InnerText = rm.GetString("GrvTitle", ci)
GVawdview.Columns(1).HeaderText = rm.GetString("AwdNam", ci)
GVawdview.Columns(2).HeaderText = rm.GetString("Awdesc", ci)
GVawdview.Columns(3).HeaderText = rm.GetString("Frequcy", ci)
GVawdview.Columns(4).HeaderText = rm.GetString("Active", ci)
End Sub
Protected Sub lnkEng2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles lnkEng2.Click
Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US")
LoadStrings(Thread.CurrentThread.CurrentCulture)
gridbind()
End Sub
Protected Sub LnkEng1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LnkEng1.Click
Thread.CurrentThread.CurrentCulture = New CultureInfo("es-ES")
LoadStrings(Thread.CurrentThread.CurrentCulture)
gridbind()
End Sub
|
|
|
|
|
dear all,
i have to maintain the viewstate of page when i m pressing the moveback button,
how do i do that?
Regards
|
|
|
|
|
What would you like to store inside the view state?
There is no foolish question, there is no final answer...
|
|
|
|
|
Dear All,
Cud any one help me to set the resolution of the web page in asp.net C#?
when i run this site at my client's computer the pages are look much wider.
PLz help
|
|
|
|
|
You can set your page to be a fixed width, but of course, then it will not scale for a user with a bigger resolution ( or a smaller one ). If you must do this, then I suggest centering it, so it looks neat when you design for 800x600 and the user is 1900x1600. Of course, the ideal is to go with it, and design your pages so they resize nicely.
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
|
|
|
|
|
Hello guys, is there a way to load a project dynamically using the passed in parameters coming in from VB 6.0 code. Technically the project is not going to get loaded, the idea is that the constrcutor of the Com callable wrapper (that receives the parameters such as Assembly name) will then use the corresponding Web services class library. I wanna be able to call Creator.ActiveInstance() method or some other built in .Net API that can locate the write dll to load based on its name and path.
Any ideas?
Thanks
Tina
|
|
|
|
|
Well, whatever you're doing, it's obvious you're not doing it in ASP.NET.
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
|
|
|
|
|
Hello Christian,
Well yes and No...the front end (UI) is all asp .Net but as I said in my original post, it is a COM callable wrapper written in C# that deals with the web services moving forward. Not sure what you are trying to say....but if you are implying that I shouldn't have put it out here, well there wasn't any other category where I'd have this topic.
Also, is there an API (built in .Net class that lets you do that?
Thanks
|
|
|
|
|
Hello, no ideas for this yet?...
In my project, I use a javascript function to apply a number formatting mask to my textboxes, using its onKeyUp event.
I want to apply the same function to the textboxes (boundfields) that are shown when the gridview is in edit mode. The gridview is created dinamically, so I need a way to apply my function dinamically.
I already tried the BoundField.ControlStyle.AddAttributesToRender method with no success...
Can anyone help me??
Pehaps there's a better way to do the kind of mask I want, so if anybody knows I'd appreciatte.
Thanks.
Peterson
modified on Wednesday, June 17, 2009 9:19 PM
|
|
|
|
|
|
Hi,
I need to assign the values from date time picker to text box while user choose. also, the text box should not allow user to enter. how can I assign perform this?
Thanks
modified on Sunday, June 14, 2009 9:32 AM
|
|
|
|
|
ilangogandhi wrote: I need to assign the values from date time picker to text box while user choose. also, the text box should not allow user to enter. how can I assign perform this?
What is the problem to doing this? On calendar click read the data and assign to textbox. If you want to avoid user entry, make the textbox readonly. Now, if this is an Asp.net text box, it will not send value to server on post back, if you make the textbox readonly.
You have two option to do,
1) use ContentEditable="False" , rather than readonly .
2) Read the texbox value before postback and store it in viewstate or hidden field and assign it after postback.
Cheers!!
|
|
|
|
|
What is the fastest (performance) way to get a value from a attribute on property?
|
|
|
|
|
Hi,
I am using asp.net C# and ms Access as database . my website is abt displaying advertisements posted by users who re registered.
All work well but my problem is how to delete posted advertisements after a perticular days. for example if user request to display the advertisemnt for one month then the advertosemnt shud get deleted automatically from the database after the time finishes. Is there a way to do this task?
Plz help me
|
|
|
|
|
Ignore repost
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.
|
|
|
|
|
Hi man, since it is MS Access so you cannot use trigger; For this
situations the best solution is to write a trigger.
Alternatively, write a program in c#, that will do the necessary task.
Write the program in the Form Load event so that the checking will happen
every time when the application will run.
Also create a table in MS Access with three fields say AdvertisementId , StartDate, EndDate.
So what will happen is that, everytime the form will load,the StartDate will be checked with end date corresponding to the Advertisement Id.
If the StartDate < EndDate, just update the StartDate by 1(i.e. 1 day will be incremented).
When StartDate = EndDate, execute the delete operation.
But always do it in the Form Load event
Hope this helps
Niladri Biswas
|
|
|
|
|
I will recommend you to maintain a validTillDate flag in the respective table column for various advertisements. In the page when you are going to show the advertisement, just check whether the validDate flag is greater than the current date or not. If it is then simply don't show the advertisement. Deleting data from the table is not recomended from the future perspective. Hope this helps.
Regards
Saanj
There is no foolish question, there is no final answer...
|
|
|
|
|
saanj wrote: I will recommend you to maintain a validTillDate flag in the respective table column for various advertisements. In the page when you are going to show the advertisement, just check whether the validDate flag is greater than the current date or not. If it is then simply don't show the advertisement.
+5
|
|
|
|
|
Thanks Navneet.
Regards
Saanj
There is no foolish question, there is no final answer...
|
|
|
|
|
cud u plz explain in detail? i wud be thankful if u cud send me any link(url) where i can get more idea.
|
|
|
|
|
You may have a table called "tblAdvertisement" where you are storing all advertisements. This is the table from which you are also showing advertisments in the page. Now add a seperate column (of datetime type) called "validTillDate" column. Whenever you are inserting any record in the "tblAdvertisement", put a "validTillDate" for the advertisement. "validTillDate" simply stores the date till the advertisement will be valid and active.
When you are going to show advertisments on the page, check all advertisements' "validTillDate" column pick only those advertisement whose "validTillDate" column value is less than or equal to the current date. It will be best if you can check it in the sql statement itself. Just checkout the sample sql query:
select * from tblAdvertisement where validTillDate <= getdate()
I think this explanation should be enough for you to get started. There is no link and url that I can give to you as there is more logic invloved than coding. In case of any issue, revert back to us.
Regards
Saanj
There is no foolish question, there is no final answer...
|
|
|
|