|
Hi all,
I have a web application.
I need to end the application session and database connections on click of a logout button.The logout button is on a header page common to the entire application, and is currently ending only the current session by destroying the session cookie.
I am new to asp ...please help me...
Thanking you in anticipation.
If you fail for the first time , call it version 1.0.
|
|
|
|
|
to kill the entire session use: Session.Abandon
to kill individual session variables use: Session.Contents.Remove(<sessionname>)
|
|
|
|
|
Hi,
I require Javascript code for the below. Please help me if anybody knows.
I have a datagrid with link buttons. The Datagrid contains Analyst Name and Site. While clicking on any Analyst Name or Site, the corresponding entry will come in two text boxes below the grid for modifying. This is the business requirement. Even though I am doing this using Item Command Event of Datagrid, it comes with a postback. Could anybody please help me by giving javascript code for this so that I can avoid this unnecessary postback? That is, while clicking on the grid, the corresponding entry should come in the text boxes. The item may be 7th , or 1st, or 16th. But there will be only one entry at a time.
Advance thanks for any help.
Regards
Raja Raman
Raja Raman S
Reuters India Pvt.Ltd.
Bangalore
|
|
|
|
|
Hi Guys,
I would appreciate it if any body can give/show me some html/flash free templates for a simple web site for a business company.
Thanks in advance
|
|
|
|
|
So you want free templates?? You do realize this site is for developers who create those sites...
Anyway I think you will find it hard to get a "flash and html" template simply because flash should only be used for specific tasks. You would not have a pulsating Welcome sign on a business website.
Did you have any designs in mind?
|
|
|
|
|
Hi,
Unfortunately, i don't have any thing in my mind, but the customer has something that he don't know yet. He want me to show him something simple but yet impressing. So, any thing modern will do even if with out flash embedded.
Thanks again
|
|
|
|
|
When you say modern do you mean wikipedia modern or adobe.com modern or what?
Give me some information on your customer and i'll try help you.
Use Email.
Webmaster@Trueguava.com
(ignore the site, it is still being developed)
|
|
|
|
|
I hav Input String as under:
Inside XML
I require the following Result:
Inside XML
I need regular expression for this.
Thanks.
|
|
|
|
|
What exactly do you want again?
|
|
|
|
|
Thanks to all bodies. I found the solution myself. Regular Expression is as under:
(? (.*)(?
|
|
|
|
|
peshawarcoder wrote: Thanks to all bodies.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
|
Hi all,
just wondering if there is any way to embed an ASP.NET page into the assembly resources and have it served to the client. The standard GetWebResourceUrl() with type "text/html" simply returns the 'raw' code in the file and is not passed through the .NET web server, is there a way to acheive this?
I am developing a custom server control and would like to embed this page within an iframe in the control.
regards,
g00fy
|
|
|
|
|
If you want the page to ne processed, you have to request it from the server. It seems like a long detour to have the server request the page from itself, then turn it into a resource and let the iframe request the resource. Why don't you just let the iframe request the page directly?
---
b { font-weight: normal; }
|
|
|
|
|
have the IFrame call the page.
|
|
|
|
|
Hi There,
For an Simple Offline/Static Browser Project, i have a Simple Object/ATL.DLL (COM) wich i can implement as a reference via Visual Studio .NET and add it as reference as COM object in VisualBasic.
So i tried to get it running in IE/Firefox as a simple HTML with ActiveX calling with JS or VBS but it wont work,cause its no real ActiveX DLL.
The DLL doesnt contain window handles maybe thats the problem. I am searching for a solution where i dont have to code a wrapper DLL or a serverbased solution just clientbased HTML with Script(JS or VBS) no Serverbased Solution.
Update: I also tried Microsoft’s ActiveX Control Pad, but i cant find the Object. So a Hack will be usefull.
Thanks a lot.
-- modified at 2:32 Monday 6th November, 2006
|
|
|
|
|
hi all,
i need help with my website. i've got a few subdomains that show files in the /public_html/subdomain directory. so something.mydomain.com shows files in mydomain.com/something. does anyone know of a way to make something.mydomain.com show files in mydomain.com/anything/somethingelse?
i don't want to use redirects, i want something.mydomain.com/foo.php to stay in the client's address bar but show mydomain.com/anything/somethingelse/foo.php.
i've asked on 2 different newsgroups but haven't gotten any solutions. i don't even know if this is possible. does anyone have any suggestions?
thanks in advance,
sam kline
|
|
|
|
|
Try setting the root directories to the same directory, that way both sites contain the same information. This help? if not then I'll provide more assistance
|
|
|
|
|
Yes, it's possible...I did this just the other day...
Under linux, you need to edit your HOSTS file and point sub.domain.com to localhost or whatever IP or address you have assigned.
Then I modified httpd.conf and added two seperate <virtualhosts>
The first one is the primary (www.domain.com) and is used whenever no other subdomain is provided...
The second or more are the sub-domain entries
Each of the <virtualhosts> allow you to map sub-domains to any directory you wish...
No mod_rewrite required :P
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
Hi All
If you design a web page for viewing only with a mobile browser (say the most stone-age version
around), what is the best image format to use and what is the maximum pixel size that could be used for the image eg 110x100?
Any thoughts would be welcomed.
Regards
Jeremy
|
|
|
|
|
Hi
I am using IE Web control Tree View node.can you please help me in how to expand the tree view nodes at run time by javascript code.
please help me in this.
-- modified at 2:25 Saturday 4th November, 2006
te
|
|
|
|
|
How to create pagging in asp.net, asp and php . I have 100 no of data and iI want to display 20 no of data.
Bharat Bhusanam
|
|
|
|
|
I assume you mean like a certain amount of results per page.
This is a simple task. I'll give a simple PHP example.
<br />
$first_res = $_REQUEST['first'];<br />
$last_res = $_REQUEST['last'];<br />
<br />
if($first_res == null or $last_res == null){<br />
$first_res = '0';<br />
$last_res = '20';<br />
}<br />
<br />
$isvalid = validation_function_here($first_res, $last_res);<br />
<br />
if ($isvalid !== true){<br />
die('Invalid Format, Please Press back button and choose a different option');<br />
}else{<br />
<br />
<br />
$con = mysql_connect('localhost', 'root', 'password') or die('Could not connect to database.');<br />
mysql_select_db('data') or die('Could not select database');<br />
<br />
$result = mysql_query('SELECT * FROM table LIMIT '. $first_res .', '. $last_res .';');<br />
}<br />
<br />
<br />
<br />
and that's that.
Note:
You then need to set functions that get the result number etc. and return then next set to be displayed based on the difference between the two, and echo that into the href of a link on the page. and exampl of this link would be:
[a href="?first=21&last=41"]Next[/a]
Hope that helped.
|
|
|
|
|
How to remember userid and password for this site when we checed the checkbox?
what is code and logic behiend this. plz use vb.net
Bharat Bhusanam
|
|
|
|
|
Basically it'll be something like:
<br />
if($_REQUEST['checkbox'] == 'checked'){<br />
<br />
setcookie ("userid", $randomly_generated_userid_for_current_login_session, time( ) + 3600);
<br />
<br />
}else{<br />
<br />
<br />
setcookie ("userid", $randomly_generated_userid_for_current_login_session, time( ) - 1); <br />
<br />
}
|
|
|
|