|
You can start here >>[^]
Education is not a way to escape poverty — it is a way of fighting it.
|
|
|
|
|
I want to set login timeout to 1 month and to do that somebody suggested me to write the following.
<authentication mode="Forms">
<forms timeout="43200">
And it was working as I wanted but when I uploaded my site to webserver, I just get logged out after 2 or 3 minutes idle. I asked 'em(web hosters) and they said you must use out of process session state. Okay then I added the following code in web.config
<sessionstate mode="StateServer"
="" stateconnectionstring="tcpip=127.0.0.1:42424" cookieless="false" timeout="20">
After that problem still persists...so my question is that why do login needs session ? why it does not set cookie at client side ?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hi to all,
After publishing the site , the linkbuttons are not working. On mouse over it is showing this url:
javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ContentPlaceHolder1$DataCourses$ctl04$LnkSublinks", "", false, "", "Student_Information.aspx?cat_id=113", false, true))"
can anybody help me on this.
|
|
|
|
|
This is seriously considered rude.
You didn't even wait for some time and created a new user name to post the same question [^]you posted some time ago with another user name.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Are they two differ members or ?
|
|
|
|
|
Hi Abhijit,
Yes, I am a different member at code project. The same error occured when i published the site. That's why, I posted the same topic here.
|
|
|
|
|
hi Manas,
You misunderstood me...the same problem occured when i tried to publish the site...i found this topic here at codeproject...I have just reposted the same topic using my profile. And thanx for the reply
|
|
|
|
|
have a look here[^], this might be useful to you
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
The user will enter the value in textarea like this
1 100224 KBD PS-2 104KEYS TVSE GOLD WHITE
1 will be first word
100224 will be second word
KBD PS-2 104KEYS TVSE GOLD WHITE will be thrid word
How i will seperate these words in .net
|
|
|
|
|
only two letters away from being an asset
|
|
|
|
|
Try to use String.Split(' '). Then extract the first two items in the resulting array and combine all leftover items (don't forget to put a whitespace between each item while combining).
Btw, your user enters all these value by hand? I hope I am not forced to do this...
|
|
|
|
|
Education is not a way to escape poverty — it is a way of fighting it.
|
|
|
|
|
why posting the same thing twice... Try split('') to do the job. split using spaces.
|
|
|
|
|
String.Split method allows you to control how many parts you will get back, so for example, you can specify that you only want 3 parts and once it has split the string into 3 parts, it won't look for any further splits.
For example, see the following code:
string s = "1 100224 KBD PS-2 104KEYS TVSE GOLD WHITE";
string[] parts = s.Split(new char[] { ' ' }, 3);
// NOTE : s will be broken up into maximum of 3 parts, instead of potentially 8 parts;
foreach(string part in parts)
{
// TODO : Do something with part;
}
I hope that helps. You can also give the method a StringSplitOptions value to control if you will get empty entries, etc.
|
|
|
|
|
没有明显的分隔符啊
living none stoping.
|
|
|
|
|
The following is the line i need to split.
100224 KBD PS-2 104KEYS TVSE GOLD WHITE 6600 9213551
KBD PS-2 104KEYS TVSE GOLD WHITE is one word.
|
|
|
|
|
What do you mean? Separate the elements? What have you tried so far?
only two letters away from being an asset
|
|
|
|
|
The user will enter the value in textarea like this
1 100224 KBD PS-2 104KEYS TVSE GOLD WHITE
1 will be first word
100224 will be second word
KBD PS-2 104KEYS TVSE GOLD WHITE will be thrid word
How i will seperate these words in .net
|
|
|
|
|
What have you tried so far? We're here to help, not give it to you without trying.
only two letters away from being an asset
|
|
|
|
|
Try this:
string[] separatedStrings = myString.Split(' ');
|
|
|
|
|
shijivijayan wrote: The following is the line i need to split.
100224 KBD PS-2 104KEYS TVSE GOLD WHITE 6600 9213551
KBD PS-2 104KEYS TVSE GOLD WHITE is one word.
shijivijayan,
What does it mean ? Do you want to split all the word in this line? or this are two different line and you want to split them?
|
|
|
|
|
Hi,
I have a populated DataTable of vaying columns and rows. I need to somehow take the data of the 1st row and make this the column name of the column in which it is found eg;
Column1 | Column2 | Column3
name | date | email
mike | 26 June | me@you.com
dave | 05 Apr | him@wibble.co.uk
should read as:
name | date | email
mike | 26 June | me@you.com
dave | 05 Apr | him@wibble.co.uk
Any suggestions?
Many Thanks.
|
|
|
|
|
In GridView1_RowDataBound event you can do like that,
if (e.Row.RowIndex == 0)
{
e.Row.Cells[0].Text = "Name";
e.Row.Cells[1].Text = "date";
e.Row.Cells[2].Text = "Email";
}
Education is not a way to escape poverty — it is a way of fighting it.
|
|
|
|
|
That doesnt solve the problem unfortunately.
As explained i need to take the content of the cell in row1 and make that the column name. This is because i dont know the content of row1 nor do i know how many columns there are, since the info is from an uploaded source. Likewise i dont have a gridview, i have a datatable as the work is being done in the codebehind.
Thanks anyway.
|
|
|
|
|
In GridView1_RowDataBound,
if (e.Row.RowType == DataControlRowType.Header)
{
e.Row.Visible = false;
}
if (e.Row.RowIndex == 0)
{
e.Row.RowType = DataControlRowType.Header;
}
hope this will help you.
Education is not a way to escape poverty — it is a way of fighting it.
|
|
|
|