|
This has been asked loads of times over the last few weeks, it must be some sort of homework or course work somewhere. Try a search of the forums for PDF and you will find all you need to know.
Hope this helps
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Thanks Bob, I tried a lot..but till now,i havn't got success
but i am trying
|
|
|
|
|
Hi,
I am working on a project which needs URL rewriting. I am facing a bit problem with it. I defined following config sections in web.config for URL rewriting.
<RewriterRule>
<LookFor>~/(\w*)/Development\.aspx</LookFor>
<SendTo>~/Default.aspx?module=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/(\w*)/Edit/(\d+)(.*)/Development\.aspx</LookFor>
<SendTo>~/Default.aspx?module=$1</SendTo>
</RewriterRule>
There might be a case where no one can simply expect how many parameters will be there in one url. For that second rule is satisfied, but when it comes to passing all those unknown parameters is becoming a big problem. Please help me.
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|
|
|
You can also re-write the URL withing the Application_BeginRequest method of the Global.asax file. I believe that the advantgae of doing it this way is that it can be dome programmatically using regualar expressions. Or you can store a 'Friendly URL' in your database for each page and retrive it for each page request.
|
|
|
|
|
how to avoid Sys.WebForms.PageRequestManagerParserErrorException ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Hello Friends
i've a regular expression which take only +ve integer(0,1,2,.......)
Expression="\d+$"
but i want to ignore 0,i.e., it would take 1,2,3,.........
pls give me expression
with thanx
|
|
|
|
|
|
i m using following tag
<asp:regularexpressionvalidator id="RegularExpressionValidator1" forecolor="black" controltovalidate="txtNoPeople" validationexpression="\d+$" enableclientscript="true" text="*" errormessage="Invalid Number of People" runat="server">
|
|
|
|
|
http://regexlib.com visit this link
|
|
|
|
|
You don't need ^ and $ to mark the beginning and end when you use a regular expression in a validation control.
Use this to match any integer from 1 and up:
[1-9]|\d{2,}
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
hi..
can anyone help in merging two sqlreports into one report.the one report has landscape orientation and other report has portrait mode.
if it is not possible to merge then how can we use the subreport method to do the same..
|
|
|
|
|
I would post this in the sql server forum, you wont get much reponse here
We are not a Code Charity
|
|
|
|
|
|
Here i have a problem witt session state.
In my loging page i am saving the login id in a session variable which i am using all over the application as usual.
Here the problem is,if i am doing any operation immediately after login that session value is working.
if i stop any operation for 5 mts and continue to do like insert,update etc,it is giving error.Error is about expecting the session variable's value.
how can i give a message that session has been expired and one must login again.
The problem is arising only when i stop somtime and continue to do something from stopping point.
kissy
|
|
|
|
|
What you can do in the web.config file is to set the login to time out after 60 mintues and then re-direct to a certain page.
In your case you need to check if the session is empty and if it is re-direct to another page something like this:
if (Session["sess1"] != null)
{
}
else
{
response.redirect("page.aspx")
}
We are not a Code Charity
|
|
|
|
|
thanks for ur answer.
Ya i have already increased session time out.But of no use.
Here if i inserted one record in a page and waited 5mts and again try to insert the second record,then automatically it is showing the error where i am trying to use the session variable.
so if i check on page load for the session varible and redirect to login page,but still it is showing this error in my requirement.
try to understand the problem and give me suggestion.
kissy
|
|
|
|
|
<blockquote class="FQ"><div class="FQA">Kissy16 wrote:</div>try to understand the problem and give me suggestion. </blockquote>
I am trying to understand your problem but your explanations arent very helpful.
So lets clarify..
Your sessions are expiring after a short period of time.
You need to increase the lenght of time your sessions are held for
try this <% Server.ScriptTimeout = 1000 %>
We are not a Code Charity
|
|
|
|
|
thanks for asnwering me.
Ya u got my point.My session is expiring after few minutes,which will effect my appln.User may enter data after login.
If it expired i want to show msg that it has been expired.
Am i need to set this property on each and every page??
where i have to set it?I will try and test it,so that i can tell u whether it is working or not.
kissy
|
|
|
|
|
I have 3 dropdownlist box in my page.
based on male female radio option those particular dropdownlist should be viisble. And then after selecting that particular item from list another textbox should be made visible else it should remain false.
I am working on c#.net and doing the scripting on javascript to check the item selected and making that particualar textbox visible.
But if I select another item it shold be made false...how do we check that if that item is selected then the corresponding textbox should be made visible else it should remain flase. Please let me know. Thanks.
And how do we reload the page after selectign an item fromo the dropdownlist. the dropdownlist is a usercontrol and being placed on a placeholder.
Plese help...
Thanks
|
|
|
|
|
Why are you using javascript?
use c#
Just use the onselectedchange event of the listbox and put in there textbox.visible = true
We are not a Code Charity
|
|
|
|
|
Sorry, but our codes are using javascript for the client side validation.
So keeping that in mind i need to make the txtbox invisible if that particular item in listbox item is not selected.
Secondly to reload the page once an item is selected from the dropdownlist.
Please help...thanks
|
|
|
|
|
you need to create an onclick function for the listbox.
Write that in javascript and then in that function you can specify the page refresh which is easy bit of code to find/write.
Hope this helps
We are not a Code Charity
|
|
|
|
|
function validate()
{
if (document.getElementById("<%=yourDropdownList.ClientID%>").value=="")
{
alert("The Music Name cannot be blank");
document.getElementById("<%=yourDropdownList.ClientID%>").focus();
return false;
}
return true;
}
place the code in to the javascript section in client
and onclientclick event of button call the function as OnclientClick="return validate()"
|
|
|
|
|
hello friends
I am developing a website in which on a button click i am calculating distance and driving time between two places using Javascript something like this
http://maps.live.com/default.aspx?wip=2&v=2&style=r&rtp=~&&msnurl=DirectionsFind.aspx?%26redirect%3dfalse&msnculture=en-US[^]
So in my website i am showing a Table in which a div tag is their to which i am assigning TEXT website is getting struck at that point something like
Tabel1 is visible , Button is clicked , On click dist & time are cal and assigned then Table 2 is visible and Table 1 is hide
so website is getting struck at the Table1
Please tell me how to solve this problem
Thank You
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|