|
for print use a button and at button's property onclintclick="window.print()"
its work properly.
|
|
|
|
|
Hi Friends,
I have a Web Application. I run it on my system with form based authentication. A userid and Password. I already set the session time in web.config file to 1400 minutes. i have used login view control to view status. I wrote anonymous template, and logged in template. I can perfectly login. but after some time login view showing as Guest (login). I no where used session.Abondon method. No such related events.
Please help me out...
Ramesh Sambari
|
|
|
|
|
Are you saying that your session is timing out before the limit you set?
|
|
|
|
|
Hi Navneeth,
Exactly. It has to show my user name till I logout. But after some time it is showing as Guest in login view. Why session is getting expired automatically ? Why Session time I set to 1400 is not working ?
Ramesh Sambari
|
|
|
|
|
It is very tough to find out why session is expiring. It would be good if ASP.NET writes an entry to event log saying the reason for session expiry. Session can expire because of many reasons. Few of them are,
1 - When any config files are changed
2 - When ASP.NET runtime recycles.
Make sure none of the above happens. See this[^] blog where Scott explains some troubleshooting techniques.
Hope that helps
|
|
|
|
|
I want to update a asp:textbox with a javasript.
Something similar to what codeproject has ...
The problem is ... the textbox in my case is inside a DetailsView, which is in one of the row of a gridview.
Please help me with this ...
Apurv
“Never trust a computer you can’t throw out a window.”
(Steve Wozniak)
“There are only two industries that refer to their customers as ‘users’.”
(Edward Tufte)
|
|
|
|
|
This doesn't really matter, all that matters is that you need to write the client side names of your textboxes as javascript variables, using their clientID method on the server side, so that you're able to access them.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
You have to first run the page and then get the name of that textbox at the runtime
suppose the textbox name is Ct001txt_userid then the you can get the value of text box at the run time by following
var c=document.getElelmentById('Ct001txt_userid');
if(c.value=='vinod')
{
alert('Hi You Are Vinod')
}
else
{
alert('Hi You are not Vinod')
}
You can get the value of textbox by other way also
var b=document.getElementById("<%=txt.ClientID%>")
in the second way the name of the Control is the same what is at server end
Vinod Kumar Prajapati
Software Engineer
EBC publishing Ltd.
Lucknow(India)
|
|
|
|
|
Hi Guys,
I am trying to transfer value from pop-up window to main window.
I am getting value from(pop-up window) GridView1 and then want to show this value in TextBox of main Window.
Please provide me sample code...
Thanks
|
|
|
|
|
Sr...Frank wrote: Please provide me sample code...
Work with window.opener . It gives you access to the main window from popup.
|
|
|
|
|
Could you please provide me a sample code....I am new for web app...
|
|
|
|
|
Here this[^] should help
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
|
Please Review My group developersinindia at google
|
|
|
|
|
Hi
How to call the event ItemDataBound
this is my event
protected void grdReport3_ItemDataBound(object source, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
DataRowView rv = (DataRowView)e.Item.DataItem;
DateTime iap = Convert.ToDateTime(rv.Row.ItemArray[3]);
DateTime iaa = Convert.ToDateTime(rv.Row.ItemArray[4]);
if (iaa > iap)
{
e.Item.BackColor = System.Drawing.Color.Red;
}
}
}
i have included in source code fro datagrid(its not getting through intellisense)
OnItemDataBound="grdReport3_ItemDataBound"
Please help how to fir this event.
Thanks in advance
pavan
|
|
|
|
|
pavan.kumar,sai wrote: How to call the event ItemDataBound
You don't call event handler, it is called when the event occurs. ItemDataBound fires when each row is created in a GridView .
|
|
|
|
|
Hi
thats the problem i am facing ...that event isnt getting fired.
any thing to be included ??
i have included in the source for the datagrid as OnItemDataBound="grdReport3_OnItemDataBound"
bt that isnt getting through intellisense.
thanks in advance
regards
pavan
|
|
|
|
|
Can you post DataGrid's markup code?
|
|
|
|
|
Hi
Sorry for the late reply....
<asp:gridview id="grdReport3" runat="server" autogeneratecolumns="False" xmlns:asp="#unknown">
CssClass="grid" ForeColor="#333333" Width="770px" Height="172px" AllowPaging="True" OnPageIndexChanging="grdReport3_PageIndexChanging" OnItemDataBound="grdReport3_OnItemDataBound">
(i am nt getting that OnItemDataBound through intellisense)
private void grdReport3_OnItemDataBound(object source, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
DataRowView rv = (DataRowView)e.Item.DataItem;
DateTime iap = Convert.ToDateTime(rv.Row.ItemArray[3]);
DateTime iaa = Convert.ToDateTime(rv.Row.ItemArray[4]);
if (iaa > iap)
{
e.Item.BackColor = System.Drawing.Color.Red;
}
}
Please help.
Thanks in advance
Regards
Pavan
|
|
|
|
|
That looks incorrect. Event handler should be given in the GridView's node. Like this
<asp:gridview id="grdReport3" runat="server"
autogeneratecolumns="False" xmlns:asp="#unknown"
OnItemDataBound="grdReport3_OnItemDataBound">
|
|
|
|
|
Hi All
My question is best way read the xml file, which is generated by a web service(that web service from another application software),so what is the best way to do that pls help me to do this,
Thanks
|
|
|
|
|
I am not sure what is your exact question.
Are you asking about how to read xml files?
|
|
|
|
|
yes read the xml file, but that xml file generated by web service.
|
|
|
|
|
It would be usefull if you let us know what technology you are using and where it is that you want to read this xml and why?
...because it might not even be needed to code a custom "class to read the xml data.
|
|
|
|
|
Please don't Cross Post. Your Last Post[^]
cheers,
Abhijit
CodeProject MVP
|
|
|
|