|
First of all, make sure you are having an asp.net webpage (.aspx).
Also, make sure you are dropping the control into the form runat="server" part of the page (if it is a master page or full web page, don't apply to web content forms).
|
|
|
|
|
I tried webplayer. I’m evaluating watin but look forward to hear more suggestions
|
|
|
|
|
I think the layout for this forum is great.. what do you think?
|
|
|
|
|
Apart from moving the block of links to other forums from the top to the left, I can't see any difference... it's neater I suppose, though I miss the ability to see at a glance which forums have new postings in them, which the old way allowed...
[edit]
..and now, just like that, it's done and one can! Thanks CP!
modified on Wednesday, November 26, 2008 3:52 AM
|
|
|
|
|
Hi all,
I have been trying this for a while (but I've never really quite got the hang of regular expressions, they give me a headache!), but I can't seem to figure it out.
Could anyone provide me with a pointer or two (or an answer would be fabulous).
I have some strings coming from our db.
I want to replace some sections. For example here's a string:
"… Jack Frost nipping at your nose... a load more text goes here"
I want to insert a line break after the "…" instead of having "… ", however, I don't want to replace the first instance of "… " as that's how the string starts.
<pre>
string regex1 = "(.)";
string regex2 = "(\u2026)";
string regex3 = "(\\s+)";
</pre>
using
<pre>Regex.replace(string, regex1 + regex2 + regex3, "\u2026<br />, RegexOptions.IgnoreCase)</pre>
gets me tantelisingly close, but obviously chops off the first letter before the "…" (if there is one).
leaving me with:
"… Jack Frost nipping at your nos…<br /> a load more text goes here"
How do I do the expression so that its not looking for characters before the "…", but looking for the begining of the string?
Thanks in advance for the help....
Mark
(and yes, I have tried putting a line break in the string in the db, but am being told that's not alowed...)
|
|
|
|
|
regex's defeat me too, I must admit... however...
why can't you have line breaks in the db? Are "they" saying you can't insert html tags? In which case you could insert CR/LF characters instead, which would be better and would at least allow for better import into a textarea, for example... but whether or not, do you have to use regex? Can't you use the String.Replace function instead?
str = str.Substring(0,2) & str.Substring(2).Replace("..", "<br />")
|
|
|
|
|
Well...
It's my boss who isn't letting me put linebreaks etc in the db, so I don't have any leeway there...
I did have a good try at string.replace() but got a bit confused with first instances of etc. and so thought maybe a regex may be a bit cleaner.
I have litterally just come up with a simple solution, though it isn't ideal, it does work.
I'm using this now...
string regex1 = "\\A+";
string regex2 = "(\u2026)";
string regex3 = "(\\s+)";
string regex4 = @"( <br /> )";
OfferDescriptionStr = Regex.Replace(OfferDescriptionStr, regex2 + regex3, "\u2026<br />", RegexOptions.IgnoreCase);
OfferDescriptionStr = Regex.Replace(OfferDescriptionStr, regex1 + regex2 + regex4, "\u2026 ", RegexOptions.IgnoreCase);
Basically, as you can see, I gave up looking for 'Not the begining of a string', replcaed all instances of "… " with "…<br />", then...
looked for the begining of the string and replaced "…<br />" with "… " as it was originally.
A Bit messy but it works a treat now.
Thanks for the response, if time allows (though I doubt it), I might well try again on the string.replace(). Maybe at the start of the day before I get too bogged down in it again..
Cheers
Mark
|
|
|
|
|
so i need that url of the link is an src of an image. so if someone changes an image that it changes in both thumb and image... I am using a gallery and i want just 1 image and i have cms so if user uploads new image i want that it changes link...
Where "HEREINEEDIMAGESRC" i need some code that changes this <-- text to an source of image THUMB1
NOTE: I remowed < & > becose then you cant see all my code...
span class="highslide" a id="Picture1" href="HEREINEEDIMAGESRC" onclick="return hs.expand(this)" img class="cushycms" id="THUMB1" src="../../../../bin/pic/somepic.jpg" alt="Picture 01" title="Enlarge..." height="100" width="90" //a/span
Is this possible?
i tried everything:
href="#THUMB1"
href="#THUMB1.SRC" - advanced developer's advice
href="URL#THUMB1"
href="URL??THUMB1"
|
|
|
|
|
The href is the web page to navigate to, so probably putting in the location of the omage file would do it.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
One of our clients wants us to create a web application that is compatible with Internet Explorer 6+, Firefox 2+ and possibly Safari. They want us to use ASP.NET 3.x and Ajax. I've been developing Web apps for the past few years but for only IE. My question is how difficult is this to achieve? How much overhead does this add to a project's life cycle?
|
|
|
|
|
Theoritically, ASP.NET framework claims to be compatible with IE, Firefox and Safari. It's a good choice to use ASP.net 3.x and ASP.net AJAX as the framework detects the browser type and generates content accordingly. There may be a few practical issues but usually should be resolved quickly.
One area you need to be careful about is when your developers write custom Javascript code which is rendered as-is by ASP.net or when you use third party tools.
-------------------------------------------
It's code that drives you - Shyam
|
|
|
|
|
We just heard back from the client that we don't need to support Safari. Only support for IE6+ and Firefox 3 is required.
|
|
|
|
|
Well it is generally safe to develop an asp.net application using ajax for IE and firefox. As previsouly said, simply take care of the home made js code from your developers.
As an advice, I would also recommend that you split your dev team into 2 parts, one using IE and one using firefox. While not a great project management method (!!), this has proven to reduce the number of problems in projects I've been involved into.
|
|
|
|
|
Hi Every body..,
I want to access data of 1st page of asp.net from 3rd page of asp.net. throgh cross-page posting concept.
For that I wrote below code:
>TextBox Textbox1 = (TextBox)Page.PreviousPage.PreviousPage.FindControl("Textbox1");
>Label5.Text = Textbox1.Text.ToString();
But I'm geting null value of 1st page.
If there any another solution then pls give me as soon as posible..
Thaks in Advance...
Ambi
|
|
|
|
|
You just can't do this. You've got to pass this value through querystring or session.
|
|
|
|
|
Thanks..Paddy Boyd
Ragards
Ambi
|
|
|
|
|
Can anyone give me suggestions on the following
I need to put in place an architecture which has the following prime features
Assume Company X's IT Team A
1) Team A has many .NET projects lined up, Web, Windows, Services, WPF etc..
2) For Web based projects... Team A requires the same look and feel for all projects.
3) Requirement : UI elements such as Master pages, js , css etc should not be copied over to every new project(No duplicate copies in each project)
4) Requirement : There should be a central repository kind of project/files/ etc.. which will serve as UI framework for all projects
5) Requirement : Data Access for all projects should also be driven by the same concept. One project drives data to all other projects
For Data I can think of a Service. I am just not sure of how to get the architecture for the UI as mentioned above,
Can someone recommend me what is the best approach.
Thank You
|
|
|
|
|
hi.
how can i access a user registry through a web browser(on acceptance ofcourse).
|
|
|
|
|
You can't. You can offer a .reg file for download
|
|
|
|
|
if i want to accomplish that using activex control
what is the procedure of creating activex that runs on the client?
|
|
|
|
|
First, don't cross post, it's like spamming these forums.
Haimbert wrote: what is the procedure of creating activex that runs on the client?
Read the first message in the forum "How to get an Answer to your Question", pay attention to item #2.
led mike
|
|
|
|
|
I'm having a problem with IE8 rendering link tags in a way that breaks my layout. It only occurs in standards mode, and doesn't seem to show up in any other browsers.
http://www.contractsolutions.co.uk/test.htm[^]
(No real content here, just a simple layout test - you need to specifically enable standards mode)
Can anyone see why this layout breaks? Been looking at this too long to be able to see what's there...
thanks
|
|
|
|
|
Well I figured out what causes the breaking layout.
There's a self closing link tag in there with just an ID. This can be used eg. to link to a certain point within a page. It validates fine.
Placing a link like that into the page seems to make all the other links render strangely. Swapping it with an empty tag avoids the problem.
I'm pretty sure this is a beta bug - I've sent it to the newsgroup. Shrug.
|
|
|
|
|
Hi,
I have created service in which I am fetching data from database write that in xmldocument and returning XMLDOCUMENT.
But it raised error in client page
"System.Xml.XmlDocument" can not serialized.
is anybody have any solution.
Thanks,
Nagraj
|
|
|
|
|
Hi Nagraj,
we had a similar problem sending an XMLDocument via WCF. What we did is to encode the xml-Document with Base64, so that we transfer a string representing the document.
Maybe this is an option to you.
Regards
Sebastian
|
|
|
|