|
Hi,
Check this, this may solve ur problem
|
<% if (Session["id"]=="test1"){%>
<%} else if (Session["id"]=="test1"){%>
<%} else if (Session["id"]=="test3"){%>
<%} else if (Session["id"]=="test4"){%>
<%} else {Response.Redirect("Index.aspx");}%>
|
Regards,
Manowj
|
|
|
|
|
Thanks man... I have already solved it though... but thanks anyway.
Rgds,
mChoekot
|
|
|
|
|
HI
I have code the runs with WSE2.0 and VS2003. I need to port the code over to VS2005
How can I still use WSE2.0?
Regards
|
|
|
|
|
Normally, kicking off stored procedures wouldn't be a problem in my .NET 2.0 webapp, but some of them take an exorbitant amount of time to run. Since I'm trying to make this tool relatively friendly for internal developers, I wanted to use threads to monitor stored procedures. At the same time, I want to be able to keep track of each thread and see if they're still being executed or if they're done running. The main thing I'm wondering, is what would be the easiest way for me to create a pool accessible to the whole web application? I can easily declare threads per page, but I want everything to be transparent to all users using the web application. Any input on this would be great.
|
|
|
|
|
Hi All,
Here's one unique problem that I am facing. I am having a TreeView control on one page, which I need to bind to on the fly generated XMLDocument / XMLDataDocument object. But asp.net TreeView control only supports objects as DataSource which implement IHierarchicalData interface.
So if one wants to avoid an access to physical file to read the actual XML file and then bind it using the new 2.0 XMLDataSource object. How do we achieve this to bind an on the fly generated XMLDocument to be used for TreeView ?
Pls guide me.
Omkar
|
|
|
|
|
You could try loading it into a dataset maybe...
DataSet.LoadXml()
|
|
|
|
|
Hi,
Thanks for the reply, but the problem is that the Treeview control can be bound only to Datasources that implement IHierarchicalData interface, whereas Dataset doesn't implement this interface and niether does XMLDataDocument class does. so how do I create an xml structure in C# with data and bind the created object with TreeView ??
Pls let me know. I am highly confused, because the idea of binding an actual XML file works but that needs a physical file access everytime the TreeView has to be bound. And that doesn't seem logical
Thanks
Omkar
|
|
|
|
|
How to change the size Again of a fullscreen window(theature mode) through javascript?
i have used window.open('webform2.aspx',,'fullscreen=yes') to
open webform2 from webform1.
i place a button on webform2 to change the size programatically but unable to change size of screen.
Resizeto(200,200);
Is it possible,if yes ,then how?
jagmeeet
|
|
|
|
|
This is the third thread that you start with the same question. You should consider sticking to a thread rather than starting new ones all the time.
Perhaps it works better if you write it in the correct case: window.resizeTo .
---
b { font-weight: normal; }
|
|
|
|
|
set window.dialogHeight, window.dialogWidth properties. if so you are using dialog.
|
|
|
|
|
hi,
I have a simple form in which i have a functionality to add , delete and edit records. Record Addition functionality is at the top of the form and the remaining update and delete functionality is provided in the datagrid. The problem is that i apply dotnet validators to the insertion form fields. These validators working fine on insertion operation. But i also implement validation when record is going to update. When i place validator in the datagrid and press the update button , then this update button also validate the insertion form fields. So i want that when i press "Add" button then only insertion validators validate the fields and when i press update button of the datagrid then only grid validatord validate the fields.
I am uning C# / ASP.NET
Thanks in Advance
|
|
|
|
|
Hi,
It should be possible to get the scoll lock key status(ON or OFF) in javascript. any one help me out.
thanks in advance!
-- modified at 5:50 Thursday 3rd August, 2006
Have A Nice Day!
Murali.M
|
|
|
|
|
hi all gurus here ,
I am working on a website where product image comes from other site means its template. The path of the iamge shows that sites address. I want to hide that path or want to make that path such that id doesn't show others site name. i tried this with disabling right click but it is not the solution. Is there any way to encrypt image path? It is only for one image so i can't use base url .
I home some solution...I got stuck with this.
rahul
|
|
|
|
|
When your website link to an other site, it has no solution to encrype that site address.
|
|
|
|
|
You can make a proxy page that will fetch the file from the other site and send it in the response to the browser.
---
b { font-weight: normal; }
|
|
|
|
|
I use PHP5/MYSQL5
------------------
I need you to help, i have a serious problem when i look up records from database number of 18939 records in ComboBox ({value}). My webpages open so slow maybe 2 minutes or more,
How can i make it faster than when there are many record like this.
Please help me now.
Thank you in advanced.
Hy Chanhan
|
|
|
|
|
You need to filter your recordset to include less results. Nobody, will look at a Combobox with 18000 items in it!
Maybe you can use several comboboxes to categorize the results, so the last combobox will have just a few items.
Example:
combobox 1: States
combobox 2: Counties
combobox 3: Towns
combobox 4: Cool Places
Do you get my meaning?
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
In ASP you can use an application variable to cache the result of a database query. Then when a page loads you grab the variable instead of hitting the database, speeding things up and using less resources at the same time. PHP most likely has something similar. A search on google for "php application variable" resulted:
http://www.leosingleton.com/projects/code/phpapp/[^]
|
|
|
|
|
Hello,
I am having a little problem with my function to encrypt the query strings....
<br />
Function encryptMenu(HTMLstring)<br />
<br />
Dim objRegExp : Set objRegExp = New RegExp<br />
Dim expressionMatch, expressionMatched, strTemp<br />
<br />
With objRegExp<br />
.Pattern = "(\?)[(\w\.\&*)+(\=)[\w\d ]*"<br />
.IgnoreCase = True<br />
.Global = True<br />
End With<br />
<br />
Set expressionMatch = objRegExp.Execute(HTMLstring)<br />
<br />
If expressionMatch.Count > 0 Then<br />
For Each expressionMatched in expressionMatch<br />
<br />
strTemp = Right(expressionMatched.value, (Len(expressionMatched.value)-1))<br />
'Alert strTemp<br />
HTMLString = Replace(HTMLString, strTemp, EncryptQS(QSCleanup(strTemp), Salt()))<br />
<br />
Next<br />
'Alert HTMLString<br />
encryptMenu = HTMLString<br />
<br />
Else<br />
'Response.Write "" & objRegExp.Pattern & " was not found in the string: " & StringToSearch & "."<br />
End If<br />
<br />
Set objRegExp = Nothing<br />
Set expressionMatch = Nothing<br />
<br />
End Function<br />
<br />
' Perform the necessary cleanup to the QueryString.<br />
Function QSCleanup(QS)<br />
QSCleanup = Replace(QS, "&", "&")<br />
End Function<br />
Now, I correctly pick out the query string (everything after the "?"), and for most entries it works fine....However, I have a couple of them that even though I pick out the query string, it doesnt replace the whole thing...for example:
noretrieve=true&rptid=jax212&dbcode=2&leasepro_id=1000018528&udb_id=100001.8528&usertype=V
becomes...
noretrieve=true&rptid=jax212&ENC_QfsJ/OaMUZ1cHMjPnUEM4o8C2+tdI/173ET767CvDXE4CEHmTyc5eWNTwinaV+/lI0K5idTSH32yKg+myuvdjA==
it should just be ...
ENC_QfsJ/OaMUZ1cHMjPnUEM4o8C2+tdI/173ET767CvDXE4CEHmTyc5eWNTwinaV+/lI0K5idTSH32yKg+myuvdjA==
Anybody have an idea as to why this is happening?
Thanks!
|
|
|
|
|
Your pattern looks mighty strange. What is it that you are trying to match, really?
---
b { font-weight: normal; }
|
|
|
|
|
the pattern: "(\?)[(\w\.\&*)+(\=)[\w\d ]*"
has been changed to: "(\?)[(\w\.\-\&*)+(\=)[\w\.\-\ ]*"
What im trying (and I DO) match is the query string (from the ? to the end of it, which may be a "'")...the reason there are so many other things is that the query string may contain & (not &) as well as "." and "-"...the problem doesnt seem to be with the regular expression, but with the replacement part
if I change my code to this then everything works out fine...
<br />
For Each expressionMatched in expressionMatch<br />
strTemp = Right(expressionMatched.value, (Len(expressionMatched.value)-1))<br />
HTMLString = Replace(HTMLString, expressionMatched.value, "?" & EncryptQS(QSCleanup(strTemp), Salt()))<br />
Next<br />
|
|
|
|
|
if i want to push a keywords in the search engine of google for example.
for example: the user search for "car" keyword.
i want for my website to be in one of the results of the "car" keyword (not necessary to be on top ten of the search results)
and the hoster of my website doesn't provide this functionality.
what should i do?
Faris Madi
Nothing Comes Easy (N.C.E.)
|
|
|
|
|
If you want your site to show up in a Google for the keyword "car" then of course the content of your site must contain the word "car". Otherwise you can use Google Adwords and pay for inclusion.
|
|
|
|
|
hi all,
i want to create a movable strip of companies current prices of stock exchange in my website like BSE-india has.for this is there any permission require or simply create it in our website.please help me out for that,how will i create the movable strip.
Thanks
nitin Dalal
nitin
|
|
|
|
|
Try the html 'marquee' tag
http://www.htmlcodetutorial.com/_MARQUEE.html[^]
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
|
|
|
|