|
hi frnd,
Better to try
string.lastIndexOf("\\")
regards,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Hi All,
Here in my web-application.When I click on LogOut button it'll signout but if I go through back button left most cornner of explorer it'll work like signin, how to solve that problem. Please Help.
Regards:
SMK
|
|
|
|
|
When a page loads, check if the session for that user exists or not.
If its null, then ask him to sign in.
|
|
|
|
|
When you click back you are not actually reloading the page, what you see is the browsers cached copy of the page. Are you using the ASP.NET membership controls for authentication? If so, when you try do something on a cached page that requires authentication you will be booted to the login page.
|
|
|
|
|
do a Session.Abandon();
when u logout.
then check in all pages if session is null? if null take it to login page
Biju S
|
|
|
|
|
Hai friends,
I want to remove the first comma from my string.For example
string str=,lijo,rajesh
i want to remove comma infront of 'l'.
expected result str=lijo,rajesh
Plse help me.Thanks in advance
|
|
|
|
|
use string.TrimStart(',')
Biju S
|
|
|
|
|
string str=,lijo,rajesh;
str = str.Remove(0, 1);
|
|
|
|
|
I would use a regex!
You have the thought that modern physics just relay on assumptions, that somehow depends on a smile of a cat, which isn’t there.( Albert Einstein)
|
|
|
|
|
string RemoveCommaInFrontOfL(string str)
{
return "lilo,rajesh";
}
string str=,lijo,rajesh;
str = RemoveCommaInFrontOfL(str);
This will work.
-- modified at 14:13 Wednesday 13th June, 2007
|
|
|
|
|
Rama Krishna Vavilala wrote:
void RemoveCommaInFrontOfL(string str)
{
return "lilo,rajesh";
}
string str=,lijo,rajesh;
str = RemoveCommaInFrontOfL(str);
This will work.
No, it won't work.
RemoveCommaInFrontOfL has a void return type, so the line
str = RemoveCommaInFrontOfL(str);
Should cause a compile error. I see what you were trying to accomplish with that though this solution doesn't seem like it will work for any other string arguments, hence is probably not a very practical solution.
|
|
|
|
|
Hi,
I am displaying a set of Images in my web page from the Browser Cache using Javascript. I am also navigating between images using JS.
My Problem: Sometimes, the image has displayed partially (ie Part of the Image).
Most of the time, NO Image has displayed. But, when I right click over the Image area, view the properties, the URL represents the correct image url. Also, when I right click on that Image area, then Click on Show Picture, then the Image has been visible.
What can I do to solve this?
Regards,
Jay
|
|
|
|
|
Jay_se wrote: Sometimes, the image has displayed partially (ie Part of the Image).
Most of the time, NO Image has displayed. But, when I right click over the Image area, view the properties, the URL represents the correct image url. Also, when I right click on that Image area, then Click on Show Picture, then the Image has been visible.
Which is the OS of your Web Server? XP provides limited connections only (10) and the bytes transferred are limited only. Try in Web Server in a Server OS version.
|
|
|
|
|
Absolutely right. I have tested with Windows 2003 server. Works fine. I have spent more than 4 hours on this issue. Thanks.
Regards,
Jay
|
|
|
|
|
Hi dears,
Im looking for an asp.net Calendar ( not a .dll) source code in C# (or vb)
Do you have any idea to find it ?
thx,
.
www.behzadi.net
|
|
|
|
|
hi,
This code is to select a date from a calendar control.
I hope so it might be use for ur need.
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
string ddate;
DateTime aDate = Calendar1.SelectedDate;
ddate = aDate.DayOfWeek.ToString();
string todate = aDate.ToShortDateString();
Response.Write(todate);
}
Hara
|
|
|
|
|
I looked for an asp.net calendar control source code , not codes to how get date from a calendar ....
www.behzadi.net
|
|
|
|
|
why do u want code when u have calendra contrl there in asp.net.
U can make a aspx page and put a calendra on it and open this aspx page using javascript whereever u want.
Bajrang Singh
Using .net 2.0 (VS2005)
|
|
|
|
|
I need source code to change somethings. I want to create a calendar with Shamsi(persian) date format, so I have to make some changes in calendar source code....
www.behzadi.net
|
|
|
|
|
Hi
Is their any other way to get the value from the TextBox except the one "TextBox.Text".
I am looking in to an article, in that I saw.....
TextBox.Attributes.Add("value","Hello");
Can we assign values in this manner to any TextBox ,Lable to TextBox etc
Thank u
Chandu
|
|
|
|
|
chand10 wrote: extBox.Attributes.Add("value","Hello");
Can we assign values in this manner to any TextBox
Yes.
Apurva Kaushal
|
|
|
|
|
Hi chand
gud question...
it is useful for all ....
thanq
naresh.s.s
|
|
|
|
|
You wrongly have replied to my message inspite of chand's.
Apurva Kaushal
|
|
|
|
|
Sorry ...
I didnt watch it clearly ...
anyways
Bye ...
Have a nice day
naresh.s.s
|
|
|
|
|
nareshss wrote: Bye ...
Have a nice day
You too...
Apurva Kaushal
|
|
|
|