|
Yeah there is, it's called SQL, so this is a SQL question. Of course, you need to time stamp your data.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hi,
i am searching the way to bound / unbound one Dropdownlist which is inside a detailsview EditItem Template. I figure it would be something like:
SelectedValue='<%# (Eval("Tipo") == "CU") ? Eval("Descripcion") : (Unbound) %>'
Of course, "(Unbound)" is fake and doesn't work. This second part of the condition is the one i don't know how to specify.
Can it be done this way? if not, is there another one, maybe in Design View?
Thanks!
|
|
|
|
|
The Datasource for my gridview is MemberShip.GetAllUsers().
Along with the BoundFields, i added a CommandField and set the option 'ShowEditButton' to true.
when i click on the 'edit' command on the grid, the fields in the grid do not change to edit mode.
My application executes the RowEditing event, but the grid display does not change to edit mode!
Is it because, the datasource is neither sqldatasource nor it is implementing iList interface?
Thanks,
NetQuestions
|
|
|
|
|
after setting the EditIndex, you still have to reload your GridView component, so bind the data again.
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
I have an subreport in the details section of main report. My dataset for subreport have 12 records it prints 3 records and then miss the fourth one on page 1 and on page two it starts from record 5 don't know why?
Fourth record misses everytime at the end of the page1.if i reduce some data in record 3rd it gets printed.
Rickey
modified on Saturday, April 18, 2009 7:56 PM
|
|
|
|
|
Hi
I have a Microsoft Web ReportViewer Control and I don't want to use print button of toolbar.
Instead I've created a byte array of report content, how can I print this byte array?
I don't want to show a file and in the file I user prints the report.
I want tp print the byte array directly
Best wishes
|
|
|
|
|
mehrdadc48 wrote: how can I print this byte array?
What is the content of this byte array? If it contains the report formatted with HTML tags, you can use Response.BinaryWrite(YourByteArray) . Then use RegisterClientScript() method and emit JS window.print which will print the window.
|
|
|
|
|
Hi
I have created my own browser in Visual Studio (in other words it is an instance of IE), but what I am looking for advice and assistance is how can you create a control which if the user isn't using the browser that it closes down.
This is a browser that will be sitting on an Intranet not the Internet, though!
Thanks
|
|
|
|
|
AndyASPVB wrote: but what I am looking for advice and assistance is how can you create a control which if the user isn't using the browser that it closes down.
Closes the control? If yes you have some understanding problem of how ASP.NET works. If you just have to logout the user upon inactivity, try the following steps
1 - Record users last request time.
2 - Use JS setTimeOut[^] method and call a method which request a ASPX page which returns you the last request time of the current user.
3 - Compare this time, and call the logout page if necessary.
|
|
|
|
|
hi
im doing an asp.net website with a login system for its users. i used a table in sql to maintain a record of user details.when a user logs in , i set a flag to 1 and when they click the logout button , the flag is set back to 0. my problem is if the user closes the browser window or for some reason the system crashes , that user still remains logged in. i have 2 go to the database and set the flag. please suggest some way to solve my prob. thanx
|
|
|
|
|
There are many ways to do this.
1 - Handle the session_end event and reset the DB flag there. This event gets fired when session timed out and will happen even user closes browser (not immediately). Works only on InProc session mode.
2 - Create a new column in table which has the user's last request time. Write a SQL job which runs frequently, checks the last request time and update the flag if necessary.
n
|
|
|
|
|
thanx a lot, will try the 1st option.
|
|
|
|
|
Hi
You excuse my ignorance on this, but I am looking for someone to help me with the Object Tag or Active X to put it another way!
What I am trying to do is to display a word doc in ASP.Net, but I am unable to do and none of the examples I have found on the Internet work. So, can someone kindly assist me by talking me through what to do? Is there some other control that I need to install or plug in I need?
Thank you
|
|
|
|
|
My compny inted to create an online library for showing some books in term of PDF to the users of site,but this showing is only readable and isn't able to save or download.
for instance:www.scridb.com site is a good example of this ,butuser can create PDF file in term of flash whieh can be saved.
www.vuzit.com is for upload book that it's script can be useful ,but my company does'nt want to be these information on the others server.
we need to a script which embed the PDF file to the web site ,but it shouldn,t be able to save like the library of www.google.com
would you please introduce me such a script or useful link in this case?
eve ,this copany is tending to buy this script compeletly.
|
|
|
|
|
AFAIK, you can use crystal report viewer. It supports PDF.
|
|
|
|
|
i want to display company icon in address bar
Er. Jagwinder Singh
|
|
|
|
|
<link rel="shortcut icon" href="/favicon.ico" type="image/ico"></link>
add this line in the head section.
The icon file should be present in the root dir, with name favicon.ico
because the above line has the icon filenme as follows ...
/favicon.ico
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)
|
|
|
|
|
hi everybody
I have a textbox in Datagrid
<asp:templatecolumn headertext="ForeName" xmlns:asp="#unknown">
<itemtemplate>
<asp:textbox id="TxtForeName" runat="server" autopostback="false" text="<%# " forename")="" %>"="">
>
and i want to get text from this textbox
foreach(DataGridItem xItem in DGUpdateStudents.Items)
{
clsobj.StudentId = DGUpdateStudents.DataKeyField[xItem.ItemIndex];
clsobj.ForeName=(String) ((TextBox)xItem.FindControl("TxtForeName")).Text;
}
no error but doesnot return text from textbox like if enter name like John it returns me "" empty strings.
thanks in adv for help.
|
|
|
|
|
Are you binding the grid in page_load and binding without checking IsPostBack ?
Learner520 wrote: (String) ((TextBox)xItem.FindControl("TxtForeName")).Text;
This is bad practice. If your item can't be found, this code will crash. First find the control, do NULL checking and ensure you have a valid object before you access Text property on it.
|
|
|
|
|
hi
i have 3 textboxes when i press button i want to show the errormessage as well as i want to change the color of textbox which is blank. this is possible with single customvalidator if is possible tell me
Regards
D.V.Mallikarjun
|
|
|
|
|
Hi,
I want to develop a stored procedure in which I have to apply different modifications to the Query. Finally after undergoing all the changes to the query I have to execute the final query and get the resultant table.For example:
Create Procedure [dbo].[Test]
@Flg1 bit,
@Flg2 bit,
@Flg3 bit,
AS
BEGIN
SET NOCOUNT ON;
Declare @Query varchar(max)
if(@Flg1<>0)
Begin
Set @Query='Select * from emplayee where empId=1"
End
if(@Flg2<>0)
Begin
Set @Query=@Query+'and empId=2'
End
if(@Flg3<>0)
Begin
Set @Query=@Query+'and empId=3'
End
Exec sp_executesql(@Query);
End
As shown above my Query conditions will change according to the parameters. But here I am not able to get the resultant table. Please reply me if anyone know how to get the resultant Table. Also please tell me whether the above procedure is correct or not.
Thanks in advance.
|
|
|
|
|
Hi,
You have mistakes ...
Nekkantidivya wrote: Set @Query='Select * from emplayee where empId=1"
You have ended up with double quotes.
Nekkantidivya wrote: Declare @Query varchar(max)
Replace 'max' with some number like 200 as your string cant go over this.
Correct it n then check.
modified on Saturday, April 18, 2009 7:24 AM
|
|
|
|
|
Create Procedure [dbo].[Test]
@EmpID Int
as
AS
BEGIN
SET NOCOUNT ON
Select * from emplayee where empId <= @EmpID
END
You better ask these question in the SQL part of this forum. They'll give you more proper answers.
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
i placed a print button in the aspx page and i clicked on print button then in print javascript i wrote window.print ..the print page is comming correctly but the page is comming with along the buttons that exits in the page ..how to get only text of the page for the print
|
|
|
|
|
Hi,
I have created on virtual direcory pointing to one test appliation.When i try to acess that application i am getting the following error. if anybody will give reply it would be helpful for me
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.
with regards,
Kiran
|
|
|
|