|
You can google how to encrypt and decrypt the string in .NET.. Once you know how to do that then you can encrypt the body message and assign it to email object. then, send it to the one you want.
|
|
|
|
|
Hi all,
I am having a data gird which has number of records it also has a select button. what I want on clicking on any of the datagrid contents. It should show that respective value in a textbox. What event of datagrid will be suitable for it. If you know please reply me.
Thanking You
Rock Star
|
|
|
|
|
u go with grid view row data bound event ..it will retun the grid view index no u write the following code in this event in java script u get the index of the gridview row clicked then u can easly find the valus in the gid view
e.Row.Attributes.Add("onclick", "javascript:myFunction(" & e.Row.RowIndex & ");")
|
|
|
|
|
I want when user click on the select commnad in datagrid that respective data will be listed in my textbox.
Rock Star
|
|
|
|
|
u kept one hiden field and in javascript where we get the index assign it to the hideen field and take that field in the button and in the button u write textboxtext = gridview.row(hideen field).cells(hiden field).to string
|
|
|
|
|
hi all iam having two datatables with same number of rows now i want it to assign to the grid views two coloumns how it is possible
|
|
|
|
|
I think you need to combine those two datasets into one.. then, you will be able to bind it.
|
|
|
|
|
you can't assign two tables to the gridview. If you want to show data from two tables just make a view over them and assign that view to the GridView
Hope that helps
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
can u please tell how to make a view on them
|
|
|
|
|
I have a need to convert the string file path to HttpPostedFile format.
can any one help me
For eg:
string file ="E:\pic.gif";
I need the above to HttpPostedFile format.
Thanks
|
|
|
|
|
Premchand MR wrote: I need the above to HttpPostedFile format
AFAIK, you can't.
|
|
|
|
|
The PostedFile property is Read-Only, which means readonly access. Assigning a variable to it won't work because the HttpPostedFile object has already been created when you clicked 'Submit'.
What exactly is it that you want to do? As far as I can tell you're trying to move a server file and not upload a client file...
Daniel Minnaar
Lead Software Developer
|
|
|
|
|
Hi, I have requirement like this..
I have one windows form which contains datagrid which displays the data.
And another button is there outside of grid in winform. If i click on button, the datagrid has to be printed...
so, i need to call window.print() in button click..
Ho can i call javascript in button click.
Thanks in advance
|
|
|
|
|
Hi,
I am using a DetailsView, which hooks up to a ObjectDataSource. The ObjectDataSource defines DataObjectType, so that insert/amend operations give me this DataObject, instead of a collection of values. This is all fine.
What I want to know is if it is possible to get this same object from the DetailsView without having to trigger such an operation (i.e. insert/edit).
So, does anyone know how the ObjectDataSource gets the DataObject from the DetailsView (i know about Data Binding)?
Alternatively, is there a way to specify a non-standard method, which can take advantage of the same features that are available to insert/edit/delete?
thankyou
|
|
|
|
|
Hi ,i have to import all Outlook Contacts into my Sql table via asp.net,
Its possible ?,plz if anyone have idea abt that plz share with me,
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
|
|
|
|
|
Reading a list of contacts from an Access database which has been exported from Outlook, and importing a comma separated CSV file into the same Access database of contacts.
We’ll be using the built in OleDb data classes for database connectivity and some fairly complex DataSet and DataTable manipulations to accomplish our importing from the CSV file.
Get it here for more details.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Hi,
i am trying to use in my client application a web service that retuurns an arrylist.
this is my code
ArrayList b = new ArrayList();
b = newService.GetList();
when i try to compile it i get this message:
Cannot implicitly convert type 'object[]' to 'System.Collections.ArrayList
what is the problem? how can i get the array list from the webservice?
thanks
|
|
|
|
|
The problem is that you are returnin an object[] and you need to convert or cast it.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Your GetList() function in your web-service hasn't been defined properly. Make sure that the return type is an ArrayList
public System.ArrayList GetList()
{
}
Daniel Minnaar
Lead Software Developer
|
|
|
|
|
this is my webservice:
[WebMethod]
public ArrayList GetDevicesList()
{
Hashtable DeviceList = new Hashtable(10);
for (int i = 0; i < 10; i++)
{
DeviceList.Add("test"+i.ToString(),"test");
}
ArrayList a = new ArrayList();
a.Add(DeviceList);
return a;
}
of course my hash table will later be set with real values, but for now i am just testing my architecture.
so it does return ArrayList.
how can i use it from my client?
|
|
|
|
|
hi all
I have 3 frame in page asp.net
When i debug the frame ifmap run fist in and run to in page_load in map.aspx
How can i set frame ifmap2 run fist so dont change position iframe ???
|
|
|
|
|
This is a bit of a hack, but...
page_Init will run before page_Load. So if you do your stuff for ifmap2 in its page_init and your stuff for ifmap in its page_Load the order will be as you have requested.
|
|
|
|
|
Hi,
I'm making a website in ASP.NET (C#) that handles users. How do I store data specific to the user's connection. I got it working using static variables, but it turns out that all users have the same values for static variables (which makes sense now that I think about it).
How can I "remember" the user id of someone who logged in and not have it mix up other users? I know I could do it by using a static hashtable of userids and ipaddresses but I feel like this is probably a more complicated solution than it needs to be.
I know this is probably a pretty common question, and I'm sorry if its been asked before. Any response would be helpful though. Thanks,
|
|
|
|
|
Most people do not have static IP addresses. You would expect to have a database of usernames and passwords and then store who is logged in, in the session.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
thanks christian. the word 'session' was what i was looking for. I appreciate it...thanks a lot man,
-ken
|
|
|
|