|
Hello all,
This might be simple issue, but I am new in this.
I have a datagrid, and I am sending datagrid's row data to the javascript function on- onclick event using itembound property.(e.item...) I need to use that row data again on server side, (I need to identify, which row was clicked) for adding that row data to the client's outlook calendar.Basically, I have a list of appointments in datagrid.This is the first question.
Second, If anybody know, how to add, appointment to the MS-Outlook from asp.net(by javascript or serverside code) please help me.
Thank you very much.
NIKI
|
|
|
|
|
Handle the datagrid events for row selection etc, no javascript needed.
|
|
|
|
|
Thank you Mark for your quick reply.
I already implemented the javascript functionality. I am using the javascript function to display the details for the selected appointment in the datagrid in some format. I need to use that javascript. Any idea, how i can add that appointment details to the ms-outlook?
Thanks
NIKI
|
|
|
|
|
Dhruvil wrote: I need to use that row data again on server side...This is the first question
Dhruvil wrote: I already implemented the javascript functionality.
Don't waste everyones time here by asking questions you don't need answered.
|
|
|
|
|
Hi Mark,
I am sorry for that.
I should wrote down complete things.
Actually, the javascript functionality I implemented is not for getting data from client side to the server side, but for sending data of datagrid row from serverside to client side using datagrid events.
If u want some more details, let me know.
I have data on client side, but for some funcionality, i need the data from client side to server side for the perticular datagrid row.
Thanks
NIKI
|
|
|
|
|
|
Hi
I have List of events in datagrid, in which i am showing only dates in the datagrid.when someone click on a row in datagrid, it will display the details for that date's event in tabular format using a javascript function on a same page.I have one hyperlink to add that details in the microsoft outlook. when some one click on that hyperlink, the displayed event will be added to the outlook.I am very confuse with this as I am implementing first time.
Thank you very much.
|
|
|
|
|
To add to outlook, you need to drive the object model. The difficulty will come if in an environment with Exchange SErver, which stores all this stuff centrally. If you're happy just to use the client's Outlook, then google for "Outlook Object Model"...there WILL be version issues as will all office object models however.
In terms of pushing data from the client to the server, the usual way to do this is with a postback (or AJAX if a postback is not desirable). Just post the form to the server, and ypu'll have access to all the bits you need.
(Though if you're feeling brave, you COULD do it all client side with some fairly heavy-duty Javascript!)
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
hi,
i am using sqlserver as backend.
how can i assure that two records are not same in the database.
|
|
|
|
|
Have a primary key.
"Today is a gift, That's why it is called the Present."
|
|
|
|
|
hi,
i appreciate ur answer.
but i does not want the text of the records to repeat.
not the number. ex:maharashtra should be there twice.
|
|
|
|
|
The answer is still, have a primary key
|
|
|
|
|
Not necessarilly - you can simply set a unique constraint on the column. That way, you don't need to f*** around with composite keys (assuming that the normal method of PKing the identifier col is being used)
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
You will need to do something like:
IF NOT EXISTS (SELECT Top 1 FROM Table Where name = 'maharashtra')
INSERT INTO Table (name) VALUES ('maharashtra')
"Half this game is ninety percent mental." - Yogi Berra
If you can read thank a teacher, if you can read in English, thank a Marine.
M y and h don't work so well due to m addiction to caffeine and m in abilit to to set a cup down uprigt.
|
|
|
|
|
hi
i am developing a web page in which i have datagrid having many coloumns now one column contain edit button after clicking that link or button the id(customer id first column) of that perticular row must be sent (append to url). how can i do this i am using VS2005
|
|
|
|
|
You just need to handle that edit event which you can do with itemcommand event of the datagrid.
Best Regards,
Apurva Kaushal
|
|
|
|
|
forit u can use CommandArgument,CommandName Property of the CommandButton.
just write pass the id of the customer into commandargument from aspx form. and the id in code file.
and pass this id as querystring into the
Response.Redirect()
i hope this may help u.
|
|
|
|
|
Hi all
I want to add dropdownlist listitem collection from the database. How can I do this databinding with the database. I am using following code, but it binds the default data to the dropdown list and listitems are static.
<asp:DropDownList ID="dropdownAuflage" runat="server" DataSourceID="DropDownDataSource" DataTextField="field_defaultvalue" >
<asp:ListItem>Item 1</asp:ListItem>
<asp:ListItem>Item 2</asp:ListItem>
<asp:ListItem>Item 3</asp:ListItem>
<asp:ListItem>Item 4</asp:ListItem>
</asp:DropDownList>
This code displays the list items, but I want to bind this listitem data with the database.
At present I have four list items and I want to give advantage to user to add more in future if he wishes to do so. So I do not want to hard code the list items in the code.
Can anyone please tell me how can I do it.
Thanks.
|
|
|
|
|
Bind the dropdownlist with the dataset(or datatable) what you are having.
Like this:
Dropdownlist1.datasourse = dataset.tables[0];<br />
dropdownlist.DataTextField = "YourcolumnName";<br />
dropdownlist.DataValueField= "YourothercolumnName";<br />
dropdownlist.databind();
Best Regards,
Apurva Kaushal
|
|
|
|
|
Thanks, but This is not helping me. I will explain my scenario more:
I have a table having columns "ID" and "DefaultValue". This table will consist of information about no of controls through column ID. And against each ID their default value will be stored.
For DropdownList, suppose ID is ddList1 and values may be "Red|Yellow|Green|Blue",
here Red is selectedText for ddlist1 and other three values will be in dropdown listitem collection.
Can anyone pls let me know how can I do it?
|
|
|
|
|
Here what you need to do is(if i understood the problem correctly) first you have to get the table from the database store it in the dataset and then assign it to the dropdownlist control.
like this:
ddList1.datasource = ds.tables[0];<br />
ddList1.DataTextField = "ID";<br />
ddList1.DataValueField = "DefaultValue";<br />
ddList1.DataBind();
Hope this will help you.
Best Regards,
Apurva Kaushal
|
|
|
|
|
hi apurva..hav u got me..
this is Aavesh..
i want to put RSS feed for my Asp.Net1.1 Application..hav u work on RSS plz if u hav code forit then send me.....i need it despritly..
thanx
Aavesh
|
|
|
|
|
Hello
I'm making a project in ASP.Net 1.1.
Basically its Site Creator Project on which i' working.
My CLient hav uploaded the 20 subdoamin for me.
but i don't how to use these subdoamin either i have to upload my whole project on these 20 subdoamins. or is there any way which i can set the path to my mail domain directly.
i hope i'm able to let u understand my problem.if any thing unclear plz let me know.
thanx
|
|
|
|
|
Yes, there are some things that are unclear.
When you say that your client have uploaded subdomains, what do you mean? Has he created subdomain names or subdomain sites, or is it something Site Creator specific?
How does your mail domain come into the picture? Is your application sending mail?
---
b { font-weight: normal; }
|
|
|
|
|
hi..
actaully he created some subdomains Folder just like a main one in which we upload our project..so,
when i try to run my project from these subdomains URL it does not work so i wanted to ask that whether i have to put my whole project in all the subdomain folders individually or is there any way by which these subdomain can directly be link with the main domain folder.so these links will work automatically
i think now it is something clear..
or yet u didn't got my problem plz tell me the basic concept of subdomain and how can we use these subdomains.
thanx
|
|
|
|