|
Hello everyone,
I'm trying to have a user be able to click on a word (in the form of a div, button, anything that will work) to select it (a highlight of some sort would be applied) and then click on it again to deselect it. Sounds like it should be simple and I'm probably being dumb, but for some reason im not finding how it can be done (in a non-Flash environment and without checkboxes and all that). The idea is to create an interface that allows the user to directly manipulate items on the screen (e.g. the words might be draggable, etc.). Any suggestions? Thanks so much!
|
|
|
|
|
I have a webservice which accesses some methods from the Business layer.
I made a website which uses this webservice, I have given the WEb reference for that web service.
I want to call a WebMethod which uses some structures from the business layer.
I am populating the business layer struct objects in aspx.cs file and sending the input to the Webservice.
It gives compilation error that
Cannot implicitly convert type 'BusinessLayer.ClassName' to 'WebService.ClassName'
I have typecasted the classname as
Webservice.ClassName class1 = new Webservice.ClassName();
But with this I am not able to access class methods.
I am working in C# and ASP.NET 2.0
Can anybody have any idea or suggestion?
|
|
|
|
|
salon wrote: Can anybody have any idea or suggestion?
Ask in the ASP.NET... or even the general C# forum... (this has precious little to do with web dev)
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
But 'webservice' contains the word 'web'......
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Hmm...
Now that i think about it, so does Webster's[^]... Suddenly, a lot more questions make sense to me!
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
Hi Guys,
I'm having problem converted string date to date.
I have created a very simple test program below, but this will give an error - "Conversion from string to date is invalid"
Dim dtt As DateTime
Dim sDate As String = "28/05/2008" 'date format dd/mm/yyyy
dtt = CDate(sDate)
Is there an ultimate solution about this?
Thanks in advance Guys
hifiger2004
|
|
|
|
|
hifiger2004 wrote: Dim dtt As DateTime
just use:
Dim dtt As Date
hifiger2004 wrote: Dim sDate As String = "28/05/2008" 'date format dd/mm/yyyy
Check your system's date/language settings - it may well be trying to convert the 5-th day of the 28-th month...
Personally, I always avoid using numbers for months if I possibly can - use abbreviated month names instead to help avoid ambiguities like this.
|
|
|
|
|
Even declaring dtt to Date still it the error occur - "Conversion from string "dd/mm/yyyy" to type 'Date' is not valid.
I am thinking of processing the date dynamically, either in word format or in integer format, dd/mm/yyyy or mm/dd/yyyy, etc.
hifiger2004
|
|
|
|
|
Don't use CDate. Use DateTime.TryParse. CDAte is VB6 rubbish, and besides, it throws an exception, as you've found.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
In a project i wanted to call Webservice asynchronly nut i dont wantto wait for its response(i mean i dont want to wait until PageOnPreRender which asynchron tasks are complated). I m sure it will give a result. i no care when it is returned back.So my other process will go on.
i have a change.
|
|
|
|
|
greekius wrote: In a project i wanted to call Webservice asynchronly
So do it. No one's stopping you. If you need help with the library you're using to issue HTTP requests / process responses, then you'll need to specify which library that is. If you want help deciding which library / API to use, then you'll need to at least specify which language and platform you're writing to, and what sort of web service you're planning to call. If it's .NET, you'll probably want to ask in one of the .NET-specific forums (.NET, ASP.NET, C#, VB.NET, etc...)
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
Hi,
First of all, forgive me for not making the subject as descriptive of the problem as possible. I do not know how to phrase this problem in a single statement.
I have a project where I need to create an application which will be used by multiple users from multiple locations to post data concurrently to a central database. This can be done very simply with a windows application; however, one of the groups who will be using this application have network access limitations. I have yet to check on the details of these limitations.
My question is if creating such an app in MS SharePoint is possible, and if it is a good idea. There will essentially be 2 web parts, 1 for viewing what is posted, and the other for inputing data. The input web part will simply contain a bunch of text boxes and drop down menus + a submit button.
My reason for exploring this approach is because our company already has a SharePoint which can be accessed by all target users. This will minimize costs because the server is already there. But, as you may have noticed already, I am very new to web part development (I have only read a few articles so far) so I do not know if this can be done. If this is indeed possible, I would also appreciate if someone can send me links on how I can set up the database, etc.
Please advice.
Rafferty
|
|
|
|
|
I am working on a community site.I Wanted to store the user's friends in the profile of the user programmatically by storing an array of friends in the profile of the user to avoid an extra table.
Is it possible to store an array in the profile? If yes the plz ....How? thks
|
|
|
|
|
This is a little closer, I guess.
I would store it as a single property and make it a tab seperated list, then you can turn it into an array with the string.Split method.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
I am new to cp thats why i put the question to the wrong place
but thks ur answer is helpful. By the passage of time i will get used to CP.
|
|
|
|
|
That's fine - I hope you feel welcome here, and get a lot of use out of the site. Again, I was only directing for your benefit, if you ask in the right place, people will see and be able to help.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 Guys,
Just wanted to check out if anyone can help me out in one of the typical scenarios that I have…
The scenario is that of a typical Zero Down Time Updates (100% availability…) on a (ASP.Net 2.0 on IIS 6.0) production site with multiple tiers involved – F5 Balanced Web Farm, SQL cluster,( Biztalk 2004 Farm & Citrix Farm, etc ,which can be ignored for now )..
We have managed to find a strategy to deploy the updates - starting with SQL Cluster followed by Web Farm Tier., assuming the updates to the SQL cluster will be necessarily backwards compatible with the earlier version of the application.
The strategy to update the Web Tier is holding us up due to few issues as mentioned later below. The steps we are following is typically explained below :
1. Firstly, isolate any one node in the web farm, by setting up Node drain out feature in F5.
2. Once the node is isolated, deploy the new version of the application/site on the node.
3. Introduce the updated Node back into the farm so that it again starts receiving the requests from the load balancer.
4. Follow the same steps from 1-3 till all the nodes in the farm are updated
Now this leads us to the situation where :
1. the farm now has two versions of the application running side-by-side, (updated node has latest version of the application along with updates business components ,while the other nodes still have older version.. ),
2. there is possibility of the new node(new application) receiving a request which is essentially the post-back request from the user who was earlier serviced by the older version of the application & vice-versa.
3. assuming, at the new node, we figure out that postback request corresponds to the older version, we can think of forwarding the request back to any of the other nodes still having the earlier version of the application (if possible at all in a load balanced web farm? I assume this my cause performance hits on the node which was directed to..)
4. need to figure out a solution wherein after detecting that postback request was meant for an earlier version of the application, somehow trigger a postback again , thereby ensuring that Load balancer will this time, route it to some other node – WITH ALL THE VIEWSTATE & POSTBACK DATE (ALSO THE RAISED POSTBACK EVENTS) intact, so that , finally the request will be executed in the way intended without any loss of data & yet happening transparently to the user.
5. need to achieve this without any change to the existing code – Cross Page Post back, Server.Transfer & even the Response.Redirect don’t seem to help as the postback data & viewstate won’t be preserved. Besides even to Cross Postback, would imply posting back by only those controls supporting with PostBackURL property (i.e. implementing IButtonControl interface), whereas the existing code might have custom controls as well…
I would truly appreciate if someone can suggest a solution or even better alternatives.
Thanks,
Sandesh
|
|
|
|
|
Can you configure affinity groups in F5 and split your farm based on version?
How many nodes do you have? Is there any time during the day where your load is light enough that you can drain-stop onto a subset of machines (say half), update half, bring the "updated half" online, drain-stop the "old half", then update?
|
|
|
|
|
Hi Mark,
Thanks for your help...
I think there are few problems with the approach you suggested as added inline ..
Can you configure affinity groups in F5 and split your farm based on version?
Assuming the Affinity is turned on, if we split the Farm into two, this will lead to two
separate Virtual IPs (I mean one for load balancer serving the older version of the web farm
& another for the newer version…), which may not be desirable..
How many nodes do you have? Is there any time during the day where your load is light enough that you can drain-stop onto a subset of machines (say half), update half, bring the "updated half" online, drain-stop the "old half", then update?
Assuming the nodes is even number N,(which implies half the nodes i.e. N/2 are serving the older
version [say A], with the other half i.e. N/2 serving the newer version[say B]), when the
offline nodes,(N/2) for B are brought online, with corresponding nodes N/2 for A set to drain
out, these N/2 nodes for A will stop receiving any further new requests, but continue to process
the exiting requests. Now the problem with this is, the moment, drain out/stop has been
configured, & user has posted back a form, this postback request will be routed to the some
other node maybe from set B, despite the affinity being turned…- which still leaves our
initial question unanswered - one, where original request was server by a older version node,
but its postback is being routed to a newer version node…
Please let me know, if there is any indiscrepancy in my understanding …
Regards,
Sandesh
|
|
|
|
|
Hmmmm I thought you could configure session affinity on a load balancer, without having to use different IPs. By this I mean that a client will keep talking to the same node for the entire session, not just per request.
This means that in the second scenario the drain-stop would take a long time, as clients ended their session one by one on group A. Meanwhile, any new clients would get affinitied (affinitated, affiliated? is that even a word?) to the B group.
I have a feeling you are right though, and the common drain-stop would override any affinity settings, and would push clients affiliated with an A node immediately over to a B node. Maybe not though, it might be worth checking the manual.
|
|
|
|
|
hi
How we can get web browser height and width information on the same page.If anybody knows plz reply me..Thanks
Rajendran.AL
|
|
|
|
|
hai
I have an asp application which retrieve data from Database and write in text file using Server.CreateObject("Scripting.FileSystemObject").It Works good.
before downloading(writing into a file), i have made some validation [retrieves data and checks data in a frontend[asp]] and recordset contains minimum 10000 records.My problem is after validation,I have tried to download a file, it shows an error 80070008 at line xx.
At line xx,
set fso=Server.CreateObject("Scripting.FileSystemObject").
I have checked all objects [connection,recordset] is closed or not.it was closed.
But without validation, it works well.
if anyone known about this,help me
Thanks in advance.
Known is a drop , Unknown is an Ocean
|
|
|
|
|
Hi all!
I need code JavaScript : about 5 second will change images and link .Please help me
Hello
|
|
|
|
|
I guess you need to use AJAX. I assume you're not using ASP.NET, so what ARE you using ?
Christian Graus
Please read this if you don't understand the answer I've given you
"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 all, i need code for an email search engine that i am creating.Its is supposed to collect the email addresses, transfer them via ftp and store them on MySQL database, it should not disconnect the ip address used in the search. anyone with any ideas as to how or where i can get it from.
|
|
|
|
|