|
Hi
thanks for the reply.
I have now set up a table which stored a session value for the user's login
My next question is, is it possible to delete the person's entry into the table after say half hour?
any help would be great
thanks
|
|
|
|
|
When you try to access the record, you check if it's locked, AND you check the time it was locked. If the lock has timed out, you ignore/overwrite it.
It doesn't matter if it timed out after 30 minutes, only that it was recognised as having timed out at whatever point after 30 min, someone else tried to access it.
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 )
|
|
|
|
|
yeh but thats the bit i'm stuck on
How would i check that its been more then 30 minutes?
i.e. do i have an IF statement in the c# code saying something like
if datetimefield > 30???....
This is a new area to me
I undertsand the logic just don't know the syntax to check for more than 30 mins
thanks for the help so far!
|
|
|
|
|
hi,
-> how to store session id in URL ?
Dude...
modified on Tuesday, February 26, 2008 4:57 AM
|
|
|
|
|
Why would you want to ? Or do you mean, how do you set ASP.NET up so the URL is used to store the session Id ?
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 )
|
|
|
|
|
Friends...How to disable our browser back button? help me please
Gopinath.R
|
|
|
|
|
You can't. You can write javascript that navigates you back forward, but that's just a hack and easy to side step.
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 Friends ..
I've a difficulty related to GridView control (language C#). I've placed Dropdownlist in the GridView Control. How can I fire the change event of the dropdownlist.
placed in the GridView or any event ..
thanking you ...
... Smile is the curve, which makes everything streight ...
|
|
|
|
|
Your issue is that you need to do your data binding before page load, so that the event can fire, because otherwise, viewstate is recreated before the control exists, for the event to be restored.
The automatic gridview row editing features will just handle this for you, if you only want it for a row you are editing.
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 )
|
|
|
|
|
Hello Everybody,
I have an application where I pass some values in QueryString. Can anyone tell me how to pass the value in an encrypt format.
HappyCoding
A key to every Solution
|
|
|
|
|
.NET framework has many libraries supports Encryption and Decryption. Check System.Security.Cryptography name space.
|
|
|
|
|
Perhaps if you need to encrypt it, you should just find another way to store it, like in the session ?
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 all
I m working in asp.net(vb).
In my site i have binded the grid view with database but now i wanna know how can i add Accordion ajax control in each row of datagrid view in asp.net
I hope someone will understand it,Looking forward for your response
Thanks with anticipation
|
|
|
|
|
I am not sure of your actual purpose.
However, you can add any control to ItemTemplates of the GridView
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
Hai
I need to add rows with asp controls dynamically on each button click
in my code only one row is created on button click event. that is removed on another button click
Plz help me
|
|
|
|
|
asp, or asp.net ? What do you want exactly ? To add multiple rows ? Is the control data bound ?
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 need to add One row with Multiple columns on each button click.
Here each column contains textboxes or dropdown list controls.
My table initialy contains one row. After clicking on Add new button, i need to add new row below to the existing table.
Also wants to remove the last row on remove button click.
Plz help me for this
|
|
|
|
|
I thought a gridview already offers this ? Does the grid represent data that ends up in your DB ? If so, I think you should use the functionality built in to the gridview.
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 have no need to bind data from database.
The purpose is to insert enter details.
i have this code on button click
protected void btnAddNewLine_Click(object sender, EventArgs e)
{
count = count + 1;
addNewline();
btnRemove.Visible = true;
}
public void addNewline()
{
HtmlTableRow tr1= new HtmlTableRow();
tr1.ID = "tr1" + count;
HtmlTableCell tc1 = new HtmlTableCell();
for (int i = 0; i <9 ; i++)
{
tc1 = new HtmlTableCell();
if (i == 0)
{
tc1.Height = "21";
tc1.Width = "4";
DropDownList ddlItem = new DropDownList();
ddlItem.Width = System.Web.UI.WebControls.Unit.Pixel(109);
ddlItem.Items.Add("--Select--");
tc1.Controls.Add(ddlItem);
tr1.Cells.Add(tc1);
}
if (i == 1)
{
tc1.Height = "21";
tc1.Width = "3";
tr1.Cells.Add(tc1);
}
if (i == 2)
{
TextBox txtDescription = new TextBox();
txtDescription.Width = System.Web.UI.WebControls.Unit.Pixel(150);
txtDescription.Height = System.Web.UI.WebControls.Unit.Pixel(26);
tc1.Controls.Add(txtDescription);
tr1.Cells.Add(tc1);
}
if (i == 3)
{
TextBox txtQty = new TextBox();
txtQty.Width = System.Web.UI.WebControls.Unit.Pixel(60);
txtQty.Height = System.Web.UI.WebControls.Unit.Pixel(26);
tc1.Controls.Add(txtQty);
tr1.Cells.Add(tc1);
}
if (i == 4)
{
TextBox txtPOPrice = new TextBox();
txtPOPrice.Width = System.Web.UI.WebControls.Unit.Pixel(70);
txtPOPrice.Height = System.Web.UI.WebControls.Unit.Pixel(26);
tc1.Controls.Add(txtPOPrice);
tr1.Cells.Add(tc1);
}
else if (i == 5)
{
TextBox txtPartNo = new TextBox();
txtPartNo.Width = System.Web.UI.WebControls.Unit.Pixel(70);
txtPartNo.Height = System.Web.UI.WebControls.Unit.Pixel(26);
tc1.Controls.Add(txtPartNo);
tr1.Cells.Add(tc1);
}
else if (i == 6)
{
TextBox txtRemarks = new TextBox();
txtRemarks.Width = System.Web.UI.WebControls.Unit.Pixel(136);
txtRemarks.Height = System.Web.UI.WebControls.Unit.Pixel(27);
txtRemarks.TextMode =System.Web.UI.WebControls.TextBoxMode.MultiLine;
tc1.Controls.Add(txtRemarks);
tr1.Cells.Add(tc1);
}
else if (i == 7)
{
TextBox txtORC = new TextBox();
txtORC.Width = System.Web.UI.WebControls.Unit.Pixel(67);
txtORC.Height = System.Web.UI.WebControls.Unit.Pixel(26);
tc1.Controls.Add(txtORC);
tr1.Cells.Add(tc1);
}
else if (i == 8)
{
TextBox txtTotal = new TextBox();
txtTotal.Width = System.Web.UI.WebControls.Unit.Pixel(59);
txtTotal.Height = System.Web.UI.WebControls.Unit.Pixel(26);
tc1.Controls.Add(txtTotal);
tr1.Cells.Add(tc1);
}
}
purchaseDetails.Rows.Add(tr1);
}
but it crates only one row .
|
|
|
|
|
HI,
We have an application(HealthCare Domain -- WebApplication) developed using asp.net 1.1 & SQLserver 2000
It's developed and hosted at client places ....Know the hosptal people want the Application be compatable with
TabletPC and requesting the features like they want to write using the pen in the textboxes(Editable fields)
which were located on the application....!
Is the Technologies which we have used are compatable with the TabletPC??
I have searched for the HandWriting Recognition tool...
i found some applications[all are Windows Based applications -- using INKRecognition]
IS it allowed to use Microsoft.INk dll in WebApps??
Could you please suggest me the better approch.....
Thanks
Yuva
|
|
|
|
|
It's not really possible, because ASP.NET doesn't work that way. On the client side, it's just HTML and javascript.
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 friends
I have a special requirement to develope a .dll component by which i can send the formatted, templated emails, with attachements,and plain text. it should not depend on any database, very generic one, everything should be configurable through web.config file or xml file.
The template should be formatted like:
Dear {0}
You have successfully registered with{1}
bla bla..
{0} should be replaced with name like "Pradeep" at runtime, and {1} should be with "Collaber" ... these values should be passed at runtime.
i should be able to pass n number of parameters at runtime into template.
Please provide a solution with some samples, its a bit urgent.
Pradeep
Collabera solutions pvt ltd
Bangalore
India
|
|
|
|
|
This is really easy. If you use the {0} {1} type format, you can use the string format method to build your email from the template. The rest is incredibly easy. Just one caveat, the email classes provided in .NET do not close the files used for attachments, so you need to handle the mail sent event, and in there, call close on all the file handles in the attachments collection. I keep meaning to write an article on all the poorly written MS classes....
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 all...
Can u guys help me in how to sort the charecters (Alphabetical sorting)in grid view?
My problem is i took a label and a textbox.As soon as i type in a letter in a text box the names starting with that letter should be displayed in the Gridview from the corresponding table in the back end.....
Plz help me out its top urgent....!!!
Thanks
Regards
Abhishek
|
|
|
|
|
Member 4648491 wrote: Plz help me out its top urgent....!!!
Top urgent ? Not just urgent ? Let me drop everyting...
There are AJAX controls that do this. For it to do what you want 'as soon as i type', AJAX is the only solution.
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 )
|
|
|
|