|
|
use escaping character like this
string st1 = "<div class=\"nameMeaning\"><div>"
No Defeat Is Final Until You Stop Trying!.......
|
|
|
|
|
some thing is missing in ur answer
G. Satish
|
|
|
|
|
for quotations use \ before quotations like
string st1 = "<div class=\"nameMeaning\"><div>"
Cheers!!
Brij
modified on Tuesday, December 23, 2008 6:30 AM
|
|
|
|
|
\" will insert a set of quotes in your string. The other way is to use single quotes, they work too in HTML
string st1 = "
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hi friends,
help me to restrict session variable to share among the tabs of a browser.
thanks in advance
surender
No Defeat Is Final Until You Stop Trying!.......
|
|
|
|
|
I think you'll have some trouble doing that, as the session depends on the process your browser is open in. You'd be better trying to handle having two tabs open.
|
|
|
|
|
here the scenario is like,
m maintaining client ids in session, m doing some processing on one client id and if i open a new tab in the browser i can see the same client id in the second tab.
i want to restrict this.
pls suggest me how to do that.
thanks inadvance
surender
No Defeat Is Final Until You Stop Trying!.......
|
|
|
|
|
surender.m wrote: i want to restrict this.
You can't as it is controlled by the browser.
|
|
|
|
|
You can't.
The work-arounds are all ugly as well...
1. Don't use session
2. Use viewstate to keep data in (since viewstate is tied to a single page instance)
3. Use Querystrings
4. Use a custom property bag solution which utilizes a combination of viewstate/querystrings to maintain keys across..
5. tell your users not to use multiple tabs.
---
Don't be irreplaceable. If you can't be replaced, you can't be promoted.
|
|
|
|
|
Hi !
i work with c# asp.net ;
I have a datagrid that it select,update and delete data.
I have also a column with details links i want if I click on details I would have details on the selected row into another grid or the same .
Thank you for guiding me.
thanks
|
|
|
|
|
That's called a master detail view. If you google that, you'll find many examples.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Merci Christian Graus c'est gentil.
|
|
|
|
|
on my page there are 100 controls. when i am click to open model pop up window what it does after closingthat pop up window tab order for page controls lost. i have set tabindex property of all controls on my page. i googled for same issue but didnt find any solution. if anybody has solution help me pls. thanx in advance.
|
|
|
|
|
MaruBindiya wrote: on my page there are 100 controls
Wow - that sounds like a mess.
your page must be reloading when the popup closes, and resetting itself. The tabs should maintain viewstate, unless you set them up again on postback.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
The below string is the string which contains html source code….
strdata =" One of most adventure thing to do is<a href=’’>taking</a><div id="nameMeaning"><div>Satish – This is a name</div>Hyderabad</div><br /><span class="source">Dictionary of American Family Names, Oxford University Press, ISBN 0-19-508137-4</span>"
I need to extract the data from first div tag(id="nameMeaning). The content inside div tag will change dynamically. How can i get that particular content between div tags? This div contains another div tag.
Inbetween div tag, it may contains span, anchor tags etc.
G. Satish
|
|
|
|
|
If the div is constant, you can just use the methods the string class provides to look for substrings. However, a regular expression seems a better way to go about it.
This has nothing to do with ASP.NET, it's a C# question.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
The innertext of div is not constant. it will change always/
the substring method needs start index and length. this i can't give because of unknown of length.
Second one, i dont know how to use div tag in regular expressions.
Is it possible to chekcing for matching of div tags? if so, can you give hint how to specify this div tags in regular exp
G. Satish
|
|
|
|
|
Satish - Developer wrote: he substring method needs start index and length. this i can't give because of unknown of length.
Right. So, you need to use the indexof methods to find the index of the start and end of the div.
Satish - Developer wrote: Is it possible to chekcing for matching of div tags? if so, can you give hint how to specify this div tags in regular exp
There's a program called Expresso you can download from CP to help you build regex. That will teach you more than if I build it for you, but it's really very easy to use.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I can use indexof for starting div tag. But how i know the ending div tag. because, the string contains many ending div tags. At that time, how i know the exact end tag of which i looking for?
G. Satish
|
|
|
|
|
well, you can count them, but that's why I said to use a regex.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hello
i m using a datagird and when edit mode i want to compare the two date but it dont work the code inside edit item template is:
<asp:comparevalidator id="comval1" runat="server" controltovalidate="tbxShowfEndDate" controltocompare="tbxStartDate" xmlns:asp="#unknown">
Operator="LessThanEqual" Type="Date" ErrorMessage="*Required" Display="Dynamic" EnableClientScript="true">
|
|
|
|
|
'does not work' are three little words that can mean so much. How does it not work ? What makes you think the compare validator knows how to compare two dates ? I would assume it's going to do a string compare, which means it will compare the two first characters, and only move on if they are the same, is that what's happening ?
I doubt it can do date compares, although I know there's a property to tell it what sort of comparison to do. I suspect you need to write your own JS to do this.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi folks,
I need to upload a large file say 30 MB to my server (physical location).
For this i want to use streams... with out database support.
Any help... Thanks in advance
|
|
|
|
|
Have a google, there's loads of examples for uploading files and saving them to disk.
In ASP.net, you'll have to change the default maxRequestLength in the HttpRuntime tag in the web.config to permit you to upload very large files.
|
|
|
|