|
SayamiSuchi wrote: how do i get selected item in grid view ?
On GridView SelectedIndexChanged event, use GridViewRow class to get the Selected Rows information !
protected void Mygrid_SelectedIndexChanged(object sender, EventArgs e)
{
GridViewRow currentRows = Mygrid.SelectedRow;
}
From the currentRows, you can get the cell value !!
Hope this will help you !
|
|
|
|
|
thanks. but how to select particular index or cell ?
suchita
|
|
|
|
|
sorry i forgot to tell you that I am using gridview rowCommand property.
suchita
|
|
|
|
|
|
Thanks you ..that worked.
suchita
|
|
|
|
|
Hi,
I've a java webservice and would like to invoke it in .Net application. For that I created a .Net console application and added the webservice in service references.
It was added successfully and created the object to invoke functions of webservice. But I'm able to access only variables, not methods of webservice. Had I missed anything? Please correct me to access the functions. Thanks in advance
|
|
|
|
|
It may be that the webservice doesn't expose any methods. Check the WSDL.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
It has several methods. when I enter the webservice url in IE, it showing the list of methods.
|
|
|
|
|
dears,
two hex strings i am pasting as follows.i have two exe files. S1.EXE and S2.EXE
when byte converting to hexstring S1.EXE result is
FFD8FFE000104A46494600010100000100010000FFDB0043000C08080A08080C0A0A0A0C0C0C0E101C121010101022181A141C28222A28262226262C303E342C2E3A2E2626364A363A40424646462A344C524C44503E444642FFDB0043010C0C0C100E1020121220422C262C4242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242FFC4001F0000010501010101010100000000000000000102030405060708090A0BFFC400B5100002010303020403050504040000017D01020300041105122131410613516107227114328191A1082342B1C11552D1F02433627282090A161718191A
when same byte converting to hexstring S2.EXE result is
FFD8FFE00104A4649460110010100FFDB0430C88A88CAAACCCE101C121010101022181A141C28222A28262226262C303E342C2E3A2E2626364A363A40424646462A344C524C44503E444642FFDB0431CCC10E1020121220422C262C4242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242FFC401F001511111100000000123456789ABFFC40B5100213324355440017D123041151221314161351617227114328191A182342B1C11552D1F024336272829A161718191A
y same byte result is different here?
actually S1.EXE hexstring is correct.but i dont know the code of that EXE.
in S2.EXE byte converting to hexstring as follows
Dim strTemp1 As New StringBuilder(Bytes.Length * 2)
For intIndex = offset To offset + count - 1
strTemp1.AppendFormat("{0:x2}", Bytes(intIndex))
Next
RaiseEvent LineReceived(Me, strTemp1.ToString)
what changes i need to do in this coding for getting same result like S1.EXE?
from my point of view i think,in S1.EXE they are adding 0 whereever hex string value is (0-F).ie.single charactr?Can anybdy help me
MEENU
|
|
|
|
|
meenu s wrote: strTemp1.AppendFormat("{0:x2}", Bytes(intIndex))
it is the x2 that is relevant here: the x indicates hexadecimal number format, the 2 requests a minimum of 2 characters (padding with leading zeroes if necessary).
without the "2", you get your second result, which is useless.
|
|
|
|
|
Hi all
I am using vb script to open save dialog box in asp.net. This works fine in xp but it is not working in vista or windows 7 . I am using following code to execute the script
Sub savedialog()
set objDialog = CreateObject("SAFRCFileDlg.FileSave")
objDialog.FileName = "C:\Scripts\Script1.vbs"
objDialog.FileType = "VBScript Script"
intReturn = objDialog.OpenFileSaveDlg
if intReturn Then
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.CreateTextFile(objDialog.FileName)
objFile.WriteLine Date
objFile.Close
else
Wscript.Quit
End if
End Sub
How i run it in windows vista or seven .
|
|
|
|
|
What are you trying to accomplish with this? This isn't necessary to save a file.
Please remember in the future to format any code snippets using the pre tags
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|
Dear Guys,
I have 3 pages in a website called UrlMapping
1. default.aspx
2. default1.aspx
3. Default2.aspx
It will open the files in IE as http://localhost/UrlMapping/Default.aspx
I want to open it if i type the url default.Urlmapping
How can i acheive this
Ahamed Azeem
software Programmer
|
|
|
|
|
hello friends,
I want to design role and user based security for my application.
Can anyone suggest me..how to design database for this? or any idea regarding this?
thanks in advance
Amit
|
|
|
|
|
For this you can use ASP.NET memebership. It will do everything for you including db etc. You just need to run aspnet_regsql command to create your database.
For details have a look to the following links
Link 1
Link 2
Let me know if you have any other requirement.
|
|
|
|
|
Brij wrote: You just need to run aspnet_regiis command to create your database.
aspnet_regiis is used to register your IIS with ASP.NET Framework version.
To create membership provider DB, you need to run aspnet_regsql command !
I guess that was your Typo !!
|
|
|
|
|
yes that is typo.. Thanks for pointing.
I'll update it
|
|
|
|
|
Thanks brij for the quick reply..
I think this article elaborates Role base authorization. I want to develop User based authorization where every user will have different access rights. for eg. suppose I have a form testform.aspx . Now some users can read, some can modify, some can delete like this.
Any suggestion for this ?
Amit
|
|
|
|
|
iamdking wrote: Any suggestion for this ?
Just what you have been told, ASP.NET membership and roles
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi All,
Hope this is right place to post this issue. If not, please let me know the right forum.
I've a webservice and I would like to access the webservice using activeX control. I'm new to activeX concept. Can you please guide me to achieve this. Thanks in advance.
|
|
|
|
|
Hi,
there is a good article about this at MSDN:
http://msdn.microsoft.com/en-us/library/bb735856.aspx#_Toc156817373[^]
To put it simple:
You have to write a COM-component (can be done with .NET) consuming the service (should be simple). Then you have to register the component at the client and invoke him using e.g. VBScript
Hope this helps.
Regards
Sebastian
|
|
|
|
|
Hi Guys,
I am new in developing web page. I have a button which after pressing refer to another page. that page include series of line which is regarding policy description. the issue is when I direct to that page I cant't scroll it to see all the content.
thanks in advance
|
|
|
|
|
future3839 wrote: the issue is when I direct to that page I cant't scroll it to see all the content.
You problem is not clear to me. What do you mean by "Direct to page" ? You want page to automatic scroll to particular policy description ?
|
|
|
|
|
HI
I am useing 2008 server and from that i am not be able to send mail ..Wchich setting i need to set?
|
|
|
|