|
Post your code here to see where is problem.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Set Previous query string value to null.When u don't need any more.
Request.QueryString["previous"]=null;
Then use condition
if(Request.QueryString["previous"] != null)
{
//your logic here
}
Cheers,
sekhar
|
|
|
|
|
sekhar.k wrote: Request.QueryString["previous"]=null;
The QueryString collection is read-only. You can't change the values.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi all,
My gridview has some data which i want to spool in excel. For that i wrote a code in a button click event like this
protected void imbtnexcel_Click()
{
Response.ContentType = "application/vnd.ms-Excel";
Response.AddHeader("Content-Disposition", "inline;filename=ExcelRPT.xls");
}
im using VS2008.whereas this is working in VS2005
Here the event is getting fired but excel file is not opening.How to acheive this?
T.Balaji
|
|
|
|
|
Hi,
I want to update a server by inserting DropDownList id number into server. could you Please help me with a sample code how to approch that?
thanks in advance,
Pantea
|
|
|
|
|
Hi,
I have a asp.net web page and want to get user's name as soon as the the page get load. is there any easy way to do that? is there any java or C# script for it?
thank for any help in advance
Pantea
|
|
|
|
|
Check this link[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Thanks, but how can I use it for Authentication with usernames I have in mysql. In fact I want to get user's name from window, then check it with the names I have.
Is there any easy way to do that?
Will appreciate any suggestion since I’m new in this field.
Thanks in advance
|
|
|
|
|
Do you have to compare username which operator write on control (in TextBox) with username which have to exists in MySQL database? If yes then make a select statement.
select username from userstable where username='usernameGivedOnTextBox'
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
thank you, but i have to somehow get username from window automaticaly and then compare it with the SQL one and if the user's name is in the sql then the user can view the page.
thank you for any help.
|
|
|
|
|
hi all,
may i validate user entries against database column defined size for suppose i have a textbox where i have to enter Username and its size is varchar(20) if it exceeds then display error message that u are excedding then the defined size .
i have 23 server controls on page and i want to validate enteries against database column size which method would be great to use either i use java script or i have to use server side code .
Any help or article wheich will guide me .
thanks in advance
Rameez
|
|
|
|
|
hi,
instead of validationg the size with database..u can set the maxlength property of ur textboxes with the size mentioned in the backend..
for e.g
if ur column datatype is varchar(20)
then set ur textbox maxlength property to 20 if u do this then no need to validate
T.Balaji
|
|
|
|
|
I have a generic list.how can I remove an item from my list?type of my list is string.
|
|
|
|
|
For questions like that you should first look at the documentation.
Have a look at the Remove, RemoveAt, RemoveRange and RemoveAll methods.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Check this[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Hi all,
I wants not allow user to revisit the previous pages once he logged out.
I am using master page, in that i placed a logout linkbutton.
When user clicks on logout button, i am redirecting user to loginpage.aspx.
In the Design of loginpage.aspx i wrote the following javascript to prevent user to navigate through browser -> & <- buttons.
LoginPage.aspx:
<%@ Page Language="C#" MasterPageFile="~/ProxyAds.master" AutoEventWireup="true"
CodeFile="LoginPage.aspx.cs" Inherits="LoginPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Main" runat="server">
<script language="javascript" type= "text/javascript">
if (window.history) {
window.history.forward(1);
}
</script>
<div id="home">
//Login Controls here....
</div>
</asp:Content>
.........................
But its not working.
any thing i am doing wrong ?
please suggest me.
thanks in advance.
|
|
|
|
|
hi,
try giving like this
window.history.forward(-1)
T.Balaji
|
|
|
|
|
Thanks balaji, thanks for ur suggestion.
There is nothing wrong in that logic, its woks fine.I already tested that logic by placing that on MasterPage.
But the problem is it totally not allowing user to navigate through browser buttons. through out the application it is not allowing.
I dont want that kind of functionality. I only wants user to not allow to visit previous pages only after he logged out from site.
Is that ok place Script in LoginPage.aspx ? bcz its the home page.
Please suggest me,
Thanks in advance.
|
|
|
|
|
Hi Shekhar,
Dilip Here.
In such situations, why don't you use window.histoty.delete.
But i am suggesting to use C# backcode to handle such situations.
when user log in, you would store his userid in session.
when user log out you would delete userid from session.
when user passes any request (either with browser back button or giving url in addressbar), you can check in page load event whether user is loggin or not. if not than you can redirect page to login page
Regards
Dilip Patel
|
|
|
|
|
Thanks dilip, thanks for ur suggestion.
I implemented that also, with this the ploblem is when user hits browser(<- & ->) buttons control, some times is not comming into PageLoad event. I checked by placing BreakPont on Pageload. May be the reason is Browser is catching the previous pages when we hit <- buttons it simply displays the page.
If i put the above logic in MasterPage working fine,but the problem is it totally not allowing user to navigate through browser buttons. through out the application it is not allowing.
I dont want that kind of functionality. I only wants user to not allow to visit previous pages only after he logged out from site.
Is that ok place Script in LoginPage.aspx ? bcz its the home page.
Please suggest me,
Thanks in advance.
|
|
|
|
|
What are the possible security attacks of using mirrored local accounts
on both web server on & remote pc for accessing remote files using impersonation & LogOnUser Win32 API ?
Also,is there any side effects to the my application while switching user to run asp.net
process to access remote files?
And
How to create mirrored user account on server with least privileges?
Thanks
From
Mitesh Patel
|
|
|
|
|
i am using ajax in my web application and changed my web configue according to that but still i am getting this error,can you plz tell me whats the possible cause...
web configue code is...
< httpHandlers>
<remove verb="*" path="*.asmx">
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
< add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false">
< add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304">
<httpHandlers>
< httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<httpModules>
plz plz plz help me its vry urgent....
Maniiiiiiiiiiiiiii
|
|
|
|
|
Take a google search.[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
before posting here i have already taken up the google search....
Maniiiiiiiiiiiiiii
|
|
|
|
|
mnkh wrote: plz plz plz help me its vry urgent....
Please don't do that. It is rude.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|