|
Check this out:
http://www.velocityreviews.com/forums/t96495-transport-error-when.html
|
|
|
|
|
Hai all,if u r free
How can i select multiple rows from datagrid and also want to save the recodd(suppose it has a column std_code)No,like std_code .
Means i am displaying code and name,and i want to select multiple records and want to save the code ,so that i can update those selected records later.
How to do this,i am using framework 1.1.
kissy
|
|
|
|
|
simply add one more column in DataGrid with checkbox control. and check all rows which you want to update and place Edit button in footer with command name "edit" .... and write the following code
datagrid_itemcommnad
{
if(e.CommnandName == "edit")
{
int i=0;
foreach(DataGridItem dg in DataGrid1.Items)
{
CheckBox ch=(CheckBox)dg.FindControl("chkid");
if(chk.Checked)
{
DataGrid1.EditItemIndex=i;
}
i++;
}
}
databind();
}
It Might be helpful for you ....
|
|
|
|
|
Sub itemrow(ByVal s As System.Object, ByVal e As DataGridCommandEventArgs)
Dim i As Integer
Dim dg As DataGridItem
i = 0
Dim ch As CheckBox
If e.CommandName = "Select" Then
For dg 0 To DG1.Items''Error
ch = dg.FindControl("chk")
If chk.Checked Then
DG1.EditItemIndex = i
End If
i = i + 1
Next
End If
DG1.DataBind()
End Sub
Error-->'''Here it is giving error saying that dg should not be used for FOR loop.What ia have to do?
how to do this,Loop is not proper.PLease where i have to modify?
kissy
|
|
|
|
|
Kissy16 wrote: For dg 0 To DG1.Items''Error
Do you mean dg1.Items.Count ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hi all,
I am trying to sort Gridview in GridView1.Sorting(...) event using
method GridView1.Sort(e.SortExpression, SortDirection.Desceding)
But it raises an unhandled VisualDebugging Exception when i run my project. After i click on the Column header i getting 'System.StackOverflowException .
I am using LinqDataSource, but that i am binding at runtime to Gridview.
Please help me, i to use that method.
Thanks in advance.
modified on Thursday, July 24, 2008 7:36 AM
|
|
|
|
|
hi
i need help in datagrid can any one help me its urgent
i have a datagrid with thre editable dropdowns those are for hour min and AM/pM.
out of datagrid iam harcoding those listitems.<as:listitem xmlns:as="#unknown">1 and so on.....
inside the datagrid when i click edit iam able to get listitems and dropdowns,but not the item of dropdown is selected which is in datagrid before edit is clicked.
Note:these listitems are not fetched from database
i think iam clear.
Help me out
Thanks in advance.
|
|
|
|
|
csp wrote: its urgent
No, it really isn't. It may be for you, but not for the people offering to do your job for free. I just checked.
There's a drop down inside the datagrid when it's not in edit mode ? I am not sure that you can get that value, what's the point of that ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hi
I am using tables in a masterpage to set my general layout.
The problem I have is that when I set the length of the rows to 80% in IE it looks fine but in FF they are very short.
Why would this be?
Is there a problem with narrowing tables in FF?
thanks
|
|
|
|
|
IE and FF do not play the same. You need to find CSS that works with both, or detect your browser and change it accordingly.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
hai,
i am using
MailMessage mailMessage = new MailMessage();
mailMessage.From = "Magesh@Test.com";
mailMessage.To ="sugunaavthy.s@afxisi.co.in";
mailMessage.Subject = "Hi";
mailMessage.Body = "Hi This One Is For Testing";
SmtpMail.Send(mailMessage);
it work fine.but i want to know how to send mail on (ex:25/7/2008) any date.if know the
answer replay to me..
thank you.
|
|
|
|
|
This has nothing to do with ASP.NET. And, you can't, at least not using anything built in. You need to write code, such as a service, that watches the time and sends it when you want it sent.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hi suguna...,
This is Magesh,
See ur From address the same one ...,
Ya u can send mail at particular date..,
For that u have to fire the schedule task...,
In that u have to give the mail send event have to fire on which date...,
Then it will send the mail to particular id
Keep smile always
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
hai mahesh,
i am using sql server,
string date = string.Format("{0:MM/dd/yyyy}", DateTime.Now);
string senddate="27/7/2008";
if (senddate==date)
{
MailMessage mailMessage = new MailMessage();
mailMessage.From = "";
mailMessage.To = "";
mailMessage.Subject = "hai";
mailMessage.Body ="hello";
mailMessage.BodyFormat = MailFormat.Html;
mailMessage.Priority = MailPriority.High;
SmtpMail.Send(mailMessage);
}
i wrote code in page_load event.i host the project in server it will work or not.
replay...thanks .
|
|
|
|
|
I love it when I tell people something and they ignore me.
If you put the code in your page load, then it will send right away. There is no way round this, you need to find a way to queue the mail outside your page. This code will not send code on any day except the date given, it plainly won't wait to send it on that day.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Christian Graus wrote: I love it when I tell people something and they ignore me.
I can understand your feelings. I am your silent follower for the last 2 years in codeproject. Now I remember a proverb. It is something like this “a wise man will be a fool among the fools”
|
|
|
|
|
*sigh* yeah, isn't that the truth.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
I just want to give you a message that there are so many people here who consider you as a hero.
|
|
|
|
|
Are you hugging the screen?
|
|
|
|
|
"If this is a sarcastic reply then I'm smiling to myself as you know what these people are like
If this is a serious demand then I'm def not smiling!..."
|
|
|
|
|
Hi suguna,
Try like this,
String curdate = DateTime.Now.ToString();
string senddate="7/25/2008";
DateTime ld = Convert.ToDateTime(curdate);
if (ld.Date == Convert.ToDateTime(senddate))
{
Try Here ur Code
}
May be this one will help u
By the way sorry MR.Graus We know ur genious...,
But we are not that much genious, we are not getting what ur telling...,
What to do still we are in basic not that much high level like u...,
But sure later we too like u...........,
Smile curve that sets everything straight...,
Keep in touch,Dont be mood out of if they wont reply ur answers...,
Keep going on we need ur knowledge
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
I have a listbox with multiple selection of languages.
My list box contains 6 list items with "All, German, English, Seriban, Spanish, French". when I select German and English or any other language the list item "All" should not be selected (either it has to be grayed out or should not be selected, if the user tries to select). But now I could be anble to select the listitem "All" when I select other languaaes.
Could any one tell me how to do this!
Thanks
|
|
|
|
|
with javascript, handle the event of an item being selected and force the 'all' item to be unselected if necessary.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
hi every one
actually i have a usercontrol in which i have 4 testbox and one file upload control .
now i have a dropdownbox at page 1 .when a user select any value as 1, 2, 3 from dropdownbox according to this value at page 2 usercontrols created as if select 3 then 3 pairs of textboxes and fileupload ganerate.
and then user can submit his details and image .at page 2 and at page 3 all the data of page 1 page 2 i want to show at page 3.
so plz tell me how to save the image at page 2 save in a folder sothat i can retrive it at page 3.
Thanks...
Gaurav
|
|
|
|
|
I'm not sure I understand the issue. You save the file by saving it. The issue is, how do you track which user it belongs to ( perhaps use the session Id as a filename ? )
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|