|
You can create add-inns for outlook and theres probably an interop library so you can control it from you own program, but these are designed for client-side apps, what possible requirement could you have to do it server-side?
|
|
|
|
|
i am doing an application in which i want to display values from dataset in gridview.
i am having a difficulty in getting a particular value from dataset to show in gridview.
one of my friend suggested this code it is not working...
GridView2.Rows[0].Cells[1].Text=ds.Tables[0].Rows[0]["Column1"].ToString();
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
|
|
|
|
|
Is your grid view using bound column or templet column or autocolumn??
Give some more information.
Your friend's code seem to me is right one.
Check other gridview property
|
|
|
|
|
ya its an auto generated column gridview.....
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
|
|
|
|
|
opps sorry but,
In gridview we can not add any new rows, so your code will not work.
But insted of this you can use datasource property of gridview to display recored
|
|
|
|
|
Hi,
Can you paste some more code please?
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
I suggest that you use a DataSource to get the data that is linked by the GridView.
There are several types of DataSources available. SQLDataSource to get data directly form a database, XmlDataSourde to query XML data or ObjectDataSource to get data from custom data objects.
MSDN has some samples of how to use them or just use google to find samples with the key words GridView DataSource
Good luck
Urs
-^-^-^-^-^-
no risk no funk
|
|
|
|
|
I hav twwo submit buttons each coresponding to one texbox each...
I want that When i write in textbox1 then default button should be Button1 and if i write in TextBox2 then default button should be Button2..
Default means that when i press enter key then The default button is pressed....
|
|
|
|
|
it can possible by javascript in keypress event of textbox you can check for enter key and call appropreate button as form submit button
|
|
|
|
|
I don't know the use of java script....
could u halp me how to do this
|
|
|
|
|
<br />
if(window.event.keyCode==13)<br />
{<br />
var but = document.getElementById('Your Button ID');<br />
but.click();<br />
}<br />
This is sample code you can Modify as you like
|
|
|
|
|
Hi,
Simply.. You may use Panel control for each group. It has the attribute "DefaultButton".
Regards,
Jay
|
|
|
|
|
In ASP.NET 2.0 you can define the DefaultButton per Panel.
Therefore use two Panels (Panel 1 containing TextBox 1, Panel 2 containing TextBox 2)
Define DeautlButton on Panel 1 to be Button 1 and accordingly for the second Panel.
Finished
Happy Programming
urs
-^-^-^-^-^-
no risk no funk
|
|
|
|
|
Some one Please give me an Idea ...
I have a data grid in my aspx page and i want to display only 5 record at a time. that i can do with the help of page size. but I want the gridview to move to next page after 30 seconds without any user interection. after all the data has been shown ( at last page ) i want the page to redirect to my home page.
can anyone have an idea?
thanks in advance
|
|
|
|
|
Hi,
I was automating Word9.0 from an ASP.NET application. But it was giving lots of security problems especially in basic authentication.
If i automate word from a windows service, will it resolve the security issues.
Or using a Windows service functionality from a web application is
complicated or not ?
Will it give problems in Basic authentication then too ?
O
|
|
|
|
|
Hi All,
I have a javascript function change() which returns var id. while I am calling this function like this TextBox1.Text = change(). I am getting an error can not convert void to string. Is there any way to solve this out...
Help me.
Thanks
Sapan
Hi all go for this...
|
|
|
|
|
Don't Cross Post.
Regards,
Satips.
|
|
|
|
|
please change your name font, its realy annoying
excuse me..
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
Changed.
Regards,
Satips.
|
|
|
|
|
As I said in the C# function, your code snippet is half C# and half jscript. Where is it called ? You need to use the client side Id, and you need to use document.getElementById to find the control from that id. Then you can set the text on the client side, and it will persist on the server.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i would like to develop a webpage which contains the add,edit,delete functionlities in one page, is it recommeded or not. clarify..
i didn't find any menus as like in desktop application.. should i use user control or custom control. refer me any sites..
(the same way i have to follow the whole web application)
|
|
|
|
|
Hi! in my gridview cell, there is an web control e.g. as
e.Row.Cells[0].Controls[0]. but i donn't know the type of the control. it may be Label or LinkButton or Button. how can i know the type of web control e.Row.Cells[0].Controls[0] has?
Thanks & Regards,
SAMir Nigam,
Software Engineer,
STPL, Lucknow, India.
|
|
|
|
|
use getType() function. like:
<br />
e.Row.Cells[0].Controls[0].getType();<br />
|
|
|
|
|
hi, i would want to know if my code is correct because it cannont work. below is my code. i want
to remove the duplicate in the listbox which is added from the dropdownlist. i try the code below it does not have any error but it does not work. please advice. thanks.
Dim actor As Integer
actor = Me.lstbxActor.Items.Count
Dim a As Integer
Dim ar As Integer
Dim Actorvalue As String
Actorvalue = ""
For a = 0 To actor - 1
For ar = 1 To actor
If (a = ar) Then
Me.lstbxActor.Items.Remove(a)
End If
Next
Next
|
|
|
|
|
i am doing an application in which i want to show a pop up box if the database is not having any records....
but i used ....
Response.Write("<script>alert('No Current Data')</script>");
but then it shows everytime a new event is fired....
i want it to display at page load and only for one time ...
can anyone help ....
thanks in advance...
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
|
|
|
|