|
Vipin.d wrote: The time out is ="30" .I need to automatically signout my application when timeout reaches..
When user is idle for 30 minutes, he will be redirected to login page when he requests again. What problem are you facing ?
|
|
|
|
|
Thank you for your reply..
But I need to redirected to login page without making any request again..
ie when the idle time reach 30,automatically go to login page without any hit from user.
is it posiible??
They laugh at me; they think I’m different. I laugh at them, ‘coz they are all same!! CrazySanker
|
|
|
|
|
You can do AJAX request to the server. If timeout limit over, redirect using javascript. But this method is not reliable.
|
|
|
|
|
Hi,
I wrote a function for dynamically create some bound columns and template field in grid view.The template field having check box in header template and item template.
First i have called this function on Page_load (!IsPostBack).
This will work fine.
Then i have checked the check box and click on a button(for delete the checked rows), the check box disappers.After the click event,if i am trying to access the check box from page load ,it returns null.I couldnt access the dynamically created checkbox .
Why it happening? How will i solve this problem?
Thanks
|
|
|
|
|
See when you click a button or and the page loads what ever is there inside !isPostback will be discarded.
You will require to call the binding function in the button click event to get it created again. Or put it outside !IspostBack
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Hi,
Thanks for you reply.But there is another problem. In the buttton click, all other columns expect template field is there as such. The template column is there ,but the control is invisible.If i am creating the control outside !ispostback then i couldnt get the checked row for deletion.
How will solve this.
|
|
|
|
|
jinovv wrote: If i am creating the control outside !ispostback then i couldnt get the checked row for deletion.
Are you creating dynamic controls ? If yes this would be a viewstate problem. Controls created in page_load event won't maintain viewstate. Try any event which fires before viewstate is saved.
|
|
|
|
|
1)I have implemented a slide show in asp.net using adrotator (from asp.net tool)and placed it within update panel for page not to flicker (ajax tool) also kept a timer ( from ajax extension )inside the update panel ctrl ..........and code behind is in c# ..... where i take image url's dynamicaly from sql-server 2000 and sliding the imgs . but problem is ---
*the page is flickering whenever it take the next url ........slideshow is not smooth i dont knw how to avoid it .
* also i don't knw how to add transition effects to it as we add in java scripts
2) another one slideshow i hv implemented in asp.net , whr images hv taken dynamicaly reading all the file at the first shot itself.....no flickering.....image was very smooth ........i applied all transition effects ....... but----
*) clicking on to de image i can not navigate to another url .......
MY REQUIREMENT : i wanna implement a slideshow in asp.net , whr i could able to take image url's dynamicaly .........aswell slideshow should be very smooth , no flickering should be there .... clicking on to the imgs i should be able to navigate to another url , and i should be able to apply transition effects on the imgs .
please if anybody have solution for it ..... help me !!Thanks in advance ....
ponni.j
|
|
|
|
|
|
What are the events are fired during the Datagrid execution?
datagrid1.datasource=ds;
datagrid1.databind( );
what are teh events are executed?
rajabhaskar
|
|
|
|
|
If you are using Visual Studio in the property window you will find a lightning symbol. click on that to get the list of events fired.
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Rajabhaskar wrote: What are the events are fired during the Datagrid execution?
DataGrid is a server control. When page is processed, it calls Render() method in each control which writes it's output to the response.
Rajabhaskar wrote: what are teh events are executed?
What is this ?
|
|
|
|
|
how to find the what are the controls are there in the datagrid ?
can you send any of article about on this
rajabhaskar
|
|
|
|
|
The following code can help you on that
foreach (GridViewRow row in gridView1.Rows)
{
ControlCollection controlCol = row.Controls;
foreach (Control con in controlCol)
{
Type.GetType(con.ToString());
}
}
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Hello Everybody,
1.I have an application where I want to restrict user to enter Blank/White space when they change their password.Can anyone give me the regex which prevent Blank/White space entry.
2. In a gridview I have a textbox which get it's value from a calendar I want that the textbox should not be editable, and it only get value from the calendar.
3.I face a problem in Sql Query. I have an application where user can change his/her address.
It gives sql exception when a user enter the address value containing "'s" example Ram's House. Can anyone tell me how to handle this issue.
SqlCommand MyComm = new SqlCommand("Insert into ADDRESS_Table (ADDRESS1,ADDRESS2,ADDRESS3,ADDRESS4) values ('" + txtAddress1.Text.ToUpper() + "' , '" + txtAddress2.Text.ToUpper() + "' , '" + txtAddress3.Text.ToUpper() + "' , '" + txtAddress4.Text.ToUpper() + "')", this.MyCon);
SqlDataReader MyReader = MyComm.ExecuteReader();
MyReader.Close();
MyComm.Dispose();
If anyone have the solution plz help me.
Have a nice day...
Happy Coding
A key to every Solution
|
|
|
|
|
1 - ^\s, I guess. But that doesn't prevent entry, it shows a message. You use jscript to prevent keypresses
2 - Then set it to be disabled, and only enable it when you change the value
3 - your code is a disaster, you should read up on SQL injection attacks. Fixing your code so it's safe will also fix the issue you're having.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
Thanks for your reply.
I am new to web development.
I want to stop user to entering white spaces. I used your regex but it display the error message if user enter any values other than white space . I need the regex which is opposite to it.
2. My calendar is a JavaScript calendar..can u tell me how to enable it. I disabled the textbox at the declaration time like
<asp:textbox id="strDate" enabled="false" onkeypress="return false;" runat="server" cssclass="bgcolor" width="100px">
if (!document.layers)
{
document.write("<img src="cal1.gif" onclick="popUpCalendar(this, Form1.strDate, ">
\"dd/mm/yyyy\")' height=17 width=18> ")
}
</img>
3. can u suggest me something on SQL Injection so that i can resolve my issues.
Happy Coding
A key to every Solution
|
|
|
|
|
AS@13 wrote: I want to stop user to entering white spaces. I used your regex but it display the error message if user enter any values other than white space . I need the regex which is opposite to it.
^[^\s]*$ this won't match text with spaces or line breaks.
AS@13 wrote: can u suggest me something on SQL Injection so that i can resolve my issues.
You should use parameterized queries or stored procedures to avoid them. Do a search for SQL Injection attack in CP - You will find useful articles.
|
|
|
|
|
AS@13 wrote: I am new to web development.
*grin* really ?
AS@13 wrote: I want to stop user to entering white spaces. I used your regex but it display the error message if user enter any values other than white space . I need the regex which is opposite to it.
Then try \s, I guess. ^ means not. Perhaps \S is whitespace and \s is not whitespace.
2 - you need to write javascript to enable the textbox, set the value and disable it again
3 - yes, if you want to be a programmer, I suggest learning how to use google and other search tools. There is at least one excellent article on this site on SQL injection, just type SQL injection into the search box.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: Then try \s, I guess. ^ means not
Yes. But ^\s will assert the position at starting, AFAIK. "not" would be [^\s]
|
|
|
|
|
Hi Friendz,
How to embed a word document in a webpage for preview?I tried with iframe's src property.But in that case Open,Save,Cancel Dialog is coming.Any one have any idea to read from a word file and display in web page.(Excluding COM).Thanks in advance.
Arun J
|
|
|
|
|
|
i am using asp.net+vb.net. How can i type in dropdown list .That dropdownlist already filled with values from database. when i type 'a' in dropdownlist that dropdownlist filled with values starting with letter 'a'.How can this possible.If anyone know this pls help me
|
|
|
|
|
The ASP.NET AJAX library contains a control that does this, I am pretty sure.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I cant use AJEX .If any other option
|
|
|
|