|
Hi,
You r most welcome.
Also please dont call me sir.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Guyz,
how can Clear Browser's Cache after hitting Logout Button?
If I press back button after logout, it's going to previous page.
How can block this ?
Expecting ur replys....
thank you
Mohamed Nazeem
|
|
|
|
|
Try this..in your Page_load()
Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);
Koushik
|
|
|
|
|
Hi,
Still it's not working. If i press back button, again it's going to previous Page. Tell me how can i block this ?
Mohamed Nazeem
Software Engineer
Bangalore
|
|
|
|
|
Hi,
Can You try this piece of code inside your Page_Load
Response.Buffer = True
Response.ExpiresAbsolute = DateTime.Now.AddDays(-1D)
Response.Expires = -1500
Response.CacheControl = "no-cache"
Sherin Iranimose
|
|
|
|
|
My question is very simple, Suppose I have two aspx pages;Page1 and Page2. When I redirect from Page1 to Page2, Page2 should load. But if I directly specify the url of Page2, it should not load. How can I do that without using any Session or Cookies.
Thanks
|
|
|
|
|
Search for the authentication in asp.net
you can do that by adding some seetings in web.cofig
<br />
<authentication mode="Forms"><br />
<forms loginUrl="Logon.aspx" name=".ASPXFORMSAUTH"><br />
</forms><br />
</authentication><br />
<br />
Its better to understand first and then use it
so take help from MSDN or google for "Forms Authentication Provider
"
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
I have an existing report I created in Crystal 10. I would like to display this in an asp.net page. It has no parameters simple report. I have also included the .rpt file into the VS project.
How do i bind the report to the report viewer?
Thanks
|
|
|
|
|
hi,
i want to import excel sheet datas into mysql table using C# code. anybody please help me with proper code.
Regards
Vijay.
|
|
|
|
|
Hi,
I am trying to kill process from task manager using "End Process" in "Processes" tab. But I tried to get the handle / PID of the process that I have selected to terminat. I would like to know how to get the handle / PID of the process that I am trying to terminate.
I tried to use TerminateProcess API to handle this. But I am not able to get handle for the killing process (e.g. winword.exe).
Anything on this will help.
Thanks
SNI
|
|
|
|
|
You can do that using if you now the process name
System.Diagnostics.Process[] proc = System.Diagnostics.Process.GetProcessesByName("winword");
if you have proccess ID then
System.Diagnostics.Process.GetProcessById("Provide ID");
then only have iterate through the collection
for (int index = 0; index < proc.Length; index++)
{
proc[index].Kill();
}
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Sandeep,
thanks for ur reply. But I require the solution in VC++.
Thanks
SNI
jhghjghj
|
|
|
|
|
You are in Wrong Forum dude
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
how to change gridview column width
|
|
|
|
|
Use <ItemStyle Width="100px"></ItemStyle> for your particular column.
happy coding!!!!
|
|
|
|
|
but i am binding grid at run time so how can i do that
|
|
|
|
|
Try this
dgTableCreator.HeaderRow.Cells[1].Width = System.Web.UI.WebControls.Unit.Pixel(50)
|
|
|
|
|
This needs to be done in rowdatabound event for the row - dataheader .....
|
|
|
|
|
I am Trying to Display Serial No and Paging in datagrid.
----------------Bind Function-------
Private Function Bindxx()
dgxx.DataSource = objxx.Getxx()
dgxx.DataBind()
Private i As Integer = 0
Private Item As DataGridItem
For Each Item In dgxx.items
i += 1
Item.Cells(0).Text = i
Next
End Function
----------------------------------Paging----------
Private Sub dgxx_PageIndexChanged(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridPageChangedEventArgs) Handles dgStudents.PageIndexChanged
dgStudents.CurrentPageIndex = e.NewPageIndex
BindStudents()
End Sub
------------------------------
If I set 5 rows Page size, For the First page It will display Perfect Serial No. Now When I click 2nd Page I will dispaly same serial No 1,2,3,4,5 but I want 6,7,8 etc.
Mkanchha
|
|
|
|
|
Use this formula for the serial number column of the DataGrid
(PageIndex * pagesize) + ItemIndex +1
|
|
|
|
|
THanks for Your Replay. But this formula where to write and How?
Mkanchha
|
|
|
|
|
I am using ASP.NET 1.1
Mkanchha
|
|
|
|
|
Hi,
There is an event for the datagrid called ItemDataBound. Suppose your datagrid name is dgrd1. Write the following code under that event.
public void dgrd1_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if(e.Item.ItemType != ListItemType.Header && e.Item.ItemType != ListItemType.Footer)
{
e.Item.Cells[0].Text=Convert.ToString(e.Item.DataSetIndex + 1);
}
}
Meeram395
|
|
|
|
|
Thanks a Lots. It's worked Prefect.
Mkanchha
|
|
|
|
|