Click here to Skip to main content
15,919,500 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to redirect on first and last page of gridview using object datasource? Pin
Ravi Mori12-Oct-09 2:54
Ravi Mori12-Oct-09 2:54 
GeneralRe: How to redirect on first and last page of gridview using object datasource? Pin
Abhijit Jana12-Oct-09 3:06
professionalAbhijit Jana12-Oct-09 3:06 
Questioniis7 Urlrewriting module Pin
Ramkumar_S12-Oct-09 1:00
Ramkumar_S12-Oct-09 1:00 
AnswerRe: iis7 Urlrewriting module Pin
Not Active12-Oct-09 1:26
mentorNot Active12-Oct-09 1:26 
QuestionHTTp post Pin
ellllllllie12-Oct-09 0:47
ellllllllie12-Oct-09 0:47 
AnswerRe: HTTp post Pin
Abhijit Jana12-Oct-09 1:51
professionalAbhijit Jana12-Oct-09 1:51 
AnswerRe: HTTp post Pin
Tiger45612-Oct-09 22:55
Tiger45612-Oct-09 22:55 
QuestionObjectDataSource not returning all input parameters Pin
Mogamboo_Khush_Hua12-Oct-09 0:28
Mogamboo_Khush_Hua12-Oct-09 0:28 
Hi,

I want to insert into the table using formview

for that here is my sample code


<asp:ObjectDataSource ID="ObjectDataSource2" runat="server"
DeleteMethod="Delete" InsertMethod="Create" DataObjectTypeName=""
OldValuesParameterFormatString="{0}" SelectMethod="GetClients"
TypeName="ClientBLL" oninserting="ObjectDataSource2_Inserting">
</asp:ObjectDataSource>

and on oninserting event


protected void ObjectDataSource2_Inserting(object sender, ObjectDataSourceMethodEventArgs e)
{
IDictionary paramsFromPage = e.InputParameters;
Client_Info oClient_Info = new Client_Info();
oClient_Info.FirstName = e.InputParameters["F_Name"].ToString();
oClient_Info.Salutation = e.InputParameters["Salutation"].ToString();
oClient_Info.Address = e.InputParameters["Address"].ToString();
oClient_Info.City = e.InputParameters["City"].ToString();
oClient_Info.ClientInfo = e.InputParameters["Client_Info"].ToString();
oClient_Info.Company = e.InputParameters["Company"].ToString();
oClient_Info.Country = e.InputParameters["Country"].ToString();//e.InputParameters["Country"] is not returned, why i cannot understand
oClient_Info.Designation = e.InputParameters["Designation"].ToString();
oClient_Info.Fax = e.InputParameters["Fax"].ToString();
oClient_Info.MiddleName = e.InputParameters["M_Name"].ToString();
oClient_Info.LastName = e.InputParameters["L_Name"].ToString();
oClient_Info.Mobile = e.InputParameters["Mobile"].ToString();
oClient_Info.Phone = e.InputParameters["Phone"].ToString();
oClient_Info.Pincode = e.InputParameters["Pincode"].ToString();
oClient_Info.PrimaryEmail = e.InputParameters["Pri_Email"].ToString();
oClient_Info.SecondaryEmail = e.InputParameters["Sec_Email"].ToString();
oClient_Info.State = e.InputParameters["State"].ToString();
oClient_Info.IsDeloitteClient = Convert.ToByte(e.InputParameters["Deloitte_Client"]);//e.InputParameters["Deloitte_Client"] is not returned, why i cannot understand
oClient_Info.IsViewableByOthers = Convert.ToByte(e.InputParameters["Viewable_By_Others"]);// this one too left out

//paramsFromPage.Clear();
paramsFromPage.Add("oClient_Info", oClient_Info);
}

but e.InputParameters returns only 17 parameters but it should return 20 parameters. The parameter Country(varchar) ,Deloitte_Client(bit), Viewable_By_Others(bit) left out by objectdatasource why it is so ?

modified on Monday, October 12, 2009 6:35 AM

QuestionHow to assign right and left arrow key functions into html buttons Pin
Parvai11-Oct-09 23:37
Parvai11-Oct-09 23:37 
AnswerRe: How to assign right and left arrow key functions into html buttons Pin
dan!sh 12-Oct-09 0:11
professional dan!sh 12-Oct-09 0:11 
AnswerRe: How to assign right and left arrow key functions into html buttons Pin
Not Active12-Oct-09 1:32
mentorNot Active12-Oct-09 1:32 
Question<img src="... not always working!&lt;/xml&gt;"></img> Pin
sigurdur einarsson11-Oct-09 23:35
sigurdur einarsson11-Oct-09 23:35 
AnswerRe: Pin
Tiger45612-Oct-09 23:00
Tiger45612-Oct-09 23:00 
Questionhow to open a pdf in explorer as readonly and with security settings Pin
raffyc_7611-Oct-09 23:08
raffyc_7611-Oct-09 23:08 
QuestionDeleting Certain bits in a text box Pin
offroaderdan11-Oct-09 23:03
offroaderdan11-Oct-09 23:03 
AnswerRe: Deleting Certain bits in a text box Pin
Sujit Mandal11-Oct-09 23:10
Sujit Mandal11-Oct-09 23:10 
GeneralRe: Deleting Certain bits in a text box Pin
offroaderdan11-Oct-09 23:27
offroaderdan11-Oct-09 23:27 
GeneralRe: Deleting Certain bits in a text box Pin
dan!sh 12-Oct-09 0:05
professional dan!sh 12-Oct-09 0:05 
GeneralRe: Deleting Certain bits in a text box Pin
sashidhar12-Oct-09 0:12
sashidhar12-Oct-09 0:12 
GeneralRe: Deleting Certain bits in a text box Pin
dan!sh 12-Oct-09 0:18
professional dan!sh 12-Oct-09 0:18 
GeneralRe: Deleting Certain bits in a text box Pin
sashidhar12-Oct-09 0:21
sashidhar12-Oct-09 0:21 
GeneralRe: Deleting Certain bits in a text box Pin
dan!sh 12-Oct-09 0:24
professional dan!sh 12-Oct-09 0:24 
GeneralRe: Deleting Certain bits in a text box Pin
sashidhar12-Oct-09 0:28
sashidhar12-Oct-09 0:28 
Questiondb log file size Pin
AndyInUK11-Oct-09 22:54
AndyInUK11-Oct-09 22:54 
AnswerRe: db log file size Pin
Sujit Mandal11-Oct-09 22:57
Sujit Mandal11-Oct-09 22:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.