|
Session is per session, ie per user. Can you use application state?
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
thanX for ur reply
iam not using application state plz tell me any information abt that
Mohan t working for N.I.C
|
|
|
|
|
hi all
i want to validate the email id field in my application.can anyone tell me how to check(in coding)the domain name which the user has specified is valid domain name and also the email id is valid.
pintoo
|
|
|
|
|
hi, there?
Generally, Regular Expressions for email are used to validate the syntax. But if you vant to validate one active domain, you can try to connect/ping with the domain entered. You can do it easily at server side code, but it may take a little time to respond.
pls refer to System.Diagnostic library for relevant methods.
Any systematic work reflects its significance for a long time. So let's discuss the best...
|
|
|
|
|
sometimes I recieve this error but I don't know why.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Access is denied: 'Hakhamanesh'.
Source Error:
Line 198: <add assembly="*" />
|
|
|
|
|
You can change "true" and "false" all day long, and it won't accomplish
anything. The error message indicates that you are using a config file in a
subfolder of your web app, and that the config file (web.config) has
sections in it which are "MachineOnly" sections. They should not be there.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
my problem is that when i convert using rewriting the url like "www.mysite.com/services.aspx?pageid=2" into "www.mysite.com/services/2.aspx"
now before i get the query string value page id and then get data from database on behalf of querystring now i doesnt get qury string so i how get data from database
please help me
modified on Wednesday, December 05, 2007 3:32:40 AM
|
|
|
|
|
Hi All
I want to make a regular expression which should be start with * and there can only be digits with *.
for example - I want *53895.
Asterik (*) should be only one time in this character that is only in starting.
User can enter either like *53895 or 53895.
if he use * then he can enter only one * , in the starting of character.
I try to make this regular expression ^[*1-9'.\d|1-9'.\d]{1,6}$. But it allows (*) more than one time.
plz help me.
|
|
|
|
|
Sunil Kumar Dhiman wrote: ^[*1-9'.\d|1-9'.\d]{1,6}$.
* is a regular expression keyword. Put a \ before that to escape it
^[\*1-9'.\d|1-9'.\d]{1,6}$.
|
|
|
|
|
It also working same. taking more than one (*).
|
|
|
|
|
Hi,
I am unable to get the session variable on popup windows in asp.net. When I open the pop up window s on click on button, session variable is null on page load event of popup windows. How can I maintain session between multiple popup windows?
Working Environment:-
• Windows : - 2003 Server
• IIS 6.0
• FRamwork2.0
• IE 7.0
Any help is appreciated.
rajesh
|
|
|
|
|
Where and how are you creating the session, and how are you reading it back?
Daniel Minnaar
Lead Software Developer
|
|
|
|
|
Thanks for reply
i create the session like
Session["UserId"] = "admin"
access the session on popup windows
string str = convert.ToString(Session["UserId"])
rajesh
|
|
|
|
|
In the project , i have a folder named form there exists a login page. after the session expires , in the session end function(global asax file)
i am writing
Response.Redirect("Login.aspx");
login.aspx exist in form folder
after the execution of session end it is going in the application error funtion and it is not even navigating me to loginn.aspx page.
y it is happening
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
modified on Wednesday, December 05, 2007 2:29:25 AM
|
|
|
|
|
Writing inside session_end event is not a good choice. Write in the page where you are ending the session.
|
|
|
|
|
how should i use the
Response.Redirect("Login.aspx");in session end fucntion
it is not working , not navigating me to login.aspx page
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
If your page is in form directory, the use Response.Redirect("form/login.asx")
|
|
|
|
|
i used the same procedure as u said.should it go into the application error after the execution of session end function .
the path string is correct , there is not problem in it.
Response.Redirect("Forms/Login.aspx");
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
If it fires application_error, there might have some error happened. BTW, what you are doing on session_end ? How you are ending session ? Can you show your code ?
|
|
|
|
|
after successful authentication , i am doing like
Session.Timeout = 1;
and then i sit idle, afterwards it automatically go to global.asax file in the session end function there i ma writing
Response.Redirect("Forms/Login.aspx");
because the Login.aspx is under Forms folder
after completion of session end function it goes to application error .
can i somehow get the application error, i mean what is application error occuring?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Sonia Gupta wrote: and then i sit idle, afterwards it automatically go to global.asax file in the session end function there i ma writing
Yes this will heppen on the background. But your browser page won't change until you give a request to server. Could you tell me why you are doing this ? Probably I can suggest a good method.
|
|
|
|
|
i am merely trying to implement the session_end function for all pages as a common funciton
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
|
Hello Friends,
I want to use CSS for link in my DataList
Can anybody let me know how to do it........
<style type="text/css">
.myCSS a{FONT-WEIGHT:bold;Text-Decoration:none; bold; FONT-SIZE: 9.5pt; COLOR: #004a91; FONT-FAMILY: arial}
.myCSS a:hover { FONT-SIZE: 20pt; COLOR: red; TEXT-DECORATION: none }
</style>
<asp:datalist id="DataList1" runat="server" CellPadding="4" BorderWidth="2px" RepeatDirection="Horizontal"
BorderStyle="Solid" RepeatColumns="1" Width="500px">
<ItemStyle BorderWidth="1px" BorderStyle="Solid" BorderColor="#004A91"></ItemStyle>
<ItemTemplate>
<table>
<tr>
<td height="7">
</td>
</tr>
<tr>
<td>
<a class="myCSS" href='<%# DataBinder.Eval(Container.DataItem,"URL") %>'>
<%# DataBinder.Eval(Container.DataItem,"Title") %>
</a>
</td>
|
|
|
|
|
The Knowledge wrote:
.myCSS <strike>a</strike>{FONT-WEIGHT:bold;Text-Decoration:none; bold; FONT-SIZE: 9.5pt; COLOR: #004a91; FONT-FAMILY: arial}
.myCSS <strike>a</strike>:hover { FONT-SIZE: 20pt; COLOR: red; TEXT-DECORATION: none }
myCSS{style-Class definition goes here}<br />
myCSS:hover{style-Class definition goes here}
And Now using myCSS as class attribute for link controls will work. If you want to use this style as default style for the hyper links then you can do...
a{style-Class definition goes here}<br />
a:hover{style-Class definition goes here}
when you do this, you don't have to set the style-class attribute for the hyper links. By default, it will use the given style (a{}).
- Regards - JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|