|
I am not sure of disabling the back button but using javascript you can keep the user on the same page i.e. forwarding again to the same page after clicking on the back button.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Also you can remove all this buttons from the browser if you don't need them
|
|
|
|
|
how can i do tht?
may u help me more?
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
You can put this script in your webpage:
<script>
if(window.history.forward(1) != null)
window.history.forward(1);
</script>
Best Regards,
Apurva Kaushal
|
|
|
|
|
If the user closes the browser without pressing the log out button, their session will remain open until the timeout period expires.
How to maintain the session for the same?
Regards,
Ram
|
|
|
|
|
Could you rephrase your question? I don't think anybody can understand what you are trying to ask.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
rahul89 wrote: their session will remain open until the timeout period expires.
I think you answered your question. It is already maintained !
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
You can kill the session at the Application_End event within your Global.asax
Nila
|
|
|
|
|
Hi all,
I want to display thumbnails of 5 images in a row in datatgrid..
In the usual way only, 1 image per row can be displayed in datagrid.
Is there any way out?
Pls help...
thanking you,
sdaniel_cst
|
|
|
|
|
You can use datalist for this purpose they you can show the images exactly like you want.
Best Regards,
Apurva Kaushal
|
|
|
|
|
hello,
i hav made controls and all these controls r in an single folder name my_control. My_webform.aspx in myfolder001 and dis folder created dynamically my_webform.aspx includes dis control and when i execute <http://loaclhost/mySite/myfolder001/my_webform.aspx>
mycontrol contains a simple form inserting data into tables.
dis webform does not postin in internet explorer and working fine in mozila.
thanx
rahul saini
|
|
|
|
|
Some columns of a gridview are dynamically bound.
The gridview has a header checkbox used for Select All function.
During dynamic binding the header checkbox is not rendering.
There is some server code also in its Checked event.
So how to make that header checkbox visible during dynamic binding of “columns” in the gridview.
sooraj
|
|
|
|
|
Hi,
I have done it in the datagrid. You can add the checkbox control to the header on the itemdatabound() event, there itself add an event to the checkbox (check event). There you can make all the item checkboxes as selected.
Ram
|
|
|
|
|
how to insert treeview in to a datagrid or gridview.
Priyanka
|
|
|
|
|
You can add a Templated field to your GridView. Then edit the templated field and add the TreeView to its ItemTemplate.
Nila
|
|
|
|
|
by doing this process i am getting treeview for all the itemtemplates.but here i want single treeview for a datagrid.
prasanna
|
|
|
|
|
Would you mind if I ask what exactly you are expecting from this treeview? If you want just one treeview, then you will have to place it outside your GridView. If you want to tie events, then you will have to handle it either through one of GridView’s event handlers or one of the TreeView’s event handler… again, what exactly do you expect from this?
On another note, if you want to illuminate postbacks with your treeview, you can use this third party control:
http://www.obout.com/t2/edraganddrop.aspx
Nila
|
|
|
|
|
Hai,
I want to create Xml based Text Report. How can i implement it .Please provide the steps...If you have sample code or alternative solutions Please give me......
Thanks in Advance
|
|
|
|
|
One obvious way would be XSLT. That's probably the best way to turn XML into a text report. Just google for XSLT, and you'll find heaps of info.
|
|
|
|
|
Isn't there the CLICK EVENT in LsitBox or Grid? Or ais there anyway instead of CLICK EVENT?
K.Alex
|
|
|
|
|
What is it you are trying to do? The listbox and gridview have the SelectedIndexChanged event that is fired when an item is selected
only two letters away from being an asset
|
|
|
|
|
I have several boundfields in GridView1, I am allowing user to update without touching the ID field.
foreach (DataColumn dataColumn in ((DataTable)Session["dataTable"]).Columns)
{
BoundField boundField = new BoundField();
boundField.DataField = dataColumn.ToString();
boundField.HeaderText = dataColumn.ToString();
if (boundField.DataField == "ID")
{
boundField.ReadOnly = true;
}
GridView1.Columns.Add(boundField);
}
GridView1.DataBind();
During editing, I am able to see all cell values correctly:
int columnCount = ((DataTable)Session["dataTable"]).Columns.Count;
String[] parameterValues = new String[columnCount];
for (int columnIndex = 0; columnIndex < columnCount; columnIndex++)
{
parameterValues[columnIndex] = GridView1.Rows[e.NewEditIndex].Cells[columnIndex + 1].Text;
}
But when updating, only the cell with the boundField whose ReadOnly = true has the correct value, while other cells have blank.
Help please.
|
|
|
|
|
Hello,
I am creating a custom control where I have a button.
Somehow my button click event is not being raised.
I tried to place different codes inside MyButton_Click and nothing runs.
Then I added Context.Response.Redirect("http://www.google.com").
When I click the button postback is done but the page google is not called.
I am on this for days. I looked everywhere in Google and everything seems ok.
Could someone, please, tell me what to do to try to figure what is the problem?
I don't know what else to try.
Thank You,
Miguel
Here is my code:
...
Public Class Contact
Inherits WebControl
Dim MyButton As New WebControls.Button
Private Sub MyButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Context.Response.Redirect("http://www.google.com")
End Sub
Private Sub MyButton_Init(ByVal sender As Object, ByVal e As System.EventArgs)
MyButton.ID = Me.ID & "_bSubmit"
MyButton.Text = "Submit"
End Sub
Protected Overrides Sub CreateChildControls()
AddHandler MyButton.Init, AddressOf MyButton_Init
AddHandler MyButton.Click, AddressOf MyButton_Click
MyBase.Controls.Add(MyButton)
MyBase.CreateChildControls()
Me.ChildControlsCreated = True
End Sub
End Class
|
|
|
|
|
SInce you are adding the button dynamically you need to make sure the click event is reattached on page load
Something like this
public void OnLoad(...)
{
MyButton.Click += MyButtonClick
}
only two letters away from being an asset
|
|
|
|
|
hello, i use two calendar controls on my page. One for the current month and a second one underneath with the next month..
i want to deselect the date in the first calendar when a date on the second calendar is clicked and vice versa...
calendar1.selecteddate = "" does not work.. and i can not seem to find a deselect function...
anyone ?
thanx for you help!
Olivier
|
|
|
|