View Complete Post
i am using create user wizard and capturing other information within content template when a new user
registers. Some of the textboxes are binded to required field validators.
there is a validation control on the page and ShowMessage box is True.
If they dont complete some of the text boxes then the message box pops Up with the error message.
It does not however include information errors like "User already exists" or Email address already exists
from the create user wizard membership UserName and Password Textboxes
is it possilbe to hook all of these up so I get one message box with all errors including membership ones?
i have a table there is 17 columns in 17 column 3 are number and other are varchar . when i try to display all data of that column error occures.
one more intersting think is when i try to display 6 column then grid show there data an no more error occures.
when i run my project this error occures in grid view
Arithmetic operation resulted in an overflow.
I got the problem that my implementation (see source below) only shows the validation error message after server side validation an NOT
after clientside validation! My questions is, how can you extend or implement to show the validation error message also on client-side validation.
Unfortunately I have not found any other info source about this subject, so any help will be very much appreciated!
public static string ErrorMessageFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression)
string modelName = htmlHelper.ViewContext.ViewData.TemplateInfo.GetFullHtmlFieldName(ExpressionHelper.GetExpressionText(expression));
FormContext formContext = htmlHelper.ViewContext.FormContext;
if (!htmlHelper.ViewData.ModelState.ContainsKey(modelName) && formContext == null)
ModelState modelState = htmlHelper.ViewData.ModelState[modelName];
ModelErrorCollection modelErrors = (modelState == null) ? null : modelState.Errors;
ModelError modelError = ((modelErrors == null) || (modelErrors.Count == 0)) ? null : modelErrors;
if (modelError == null && formContext == null)
Under Manage this Farm's Shared Services , it showing like this
SharePoint - 24402 (Administration site host)
How to solve this issue? Any one can help?
Hi, i got this error while editing a sharepoint subsite in SharePoint Designer 2010. We are using SharePoint 2010, Office 2010, Windows 7 and SharePoint Designer 2010 x32.
When i now open my subsite in SharePoint Desinger i cant see any Lists and Libraries, no Workflows and no Site Pages. I get these messages:
"There are no items to show in this view."
"The Document Library view connot be displayed for this Web site."
All the Libraries and Files still exist and i can view the sites still in browser. I see them at "all files". But i cant edit anything or change things.
Does anybody know that issue? What can i do to fix that?
I am working on share point 2007.
I have added a XML Web service in Data source in Share Point designer 2007. This web service is custom web service which get data from 3 different type of list and creates XML and return that xml.
I have installed this web service as instructed in msdn. I checked it is working properly.
First time when I create a data source from XML web service in Share Point Designer 2007, It shows all records when I clicked on “Show Data ”. But after a few minutes it shows en error”
The server returned a non-specific error when trying to get data from the data source. Check the format and content of your query and try again. If the problem persists, contact the server administrator. ”.
my reports shows an irritating error message to the end users, they don`t understand it:
"Error while Rendering: The CommandText expression for the query ‘Header’ contains an error: Index was outside the bounds of the array."
Cause : They submitted a query for a date where no data was existing
I tried the following:
1) I dont get an Error Code Number, so I cannot work with IIS Custom Error Pages.
2) Then I tried to use this expression in the visbility tab of tablix "Header":
=IIF(Count(Fields!Date.Value, "Header")=0, True, False)
But that does not work because the date field is not emtpy, the date just does not fit to the existing records
3) I also tried to wrap this around my SELECT-statement but without success:
and not exists (select 1 from my Database where ….)
any other ideas are welcome!
I actually faced a strange problem which is that when I add events in september 2011, they don't show up in the calendar view and the view remains empty but they appear in the all events view and another strange thing is that when I change the month to be
october 2010, I get error page with the text:
An unexpected erro has occured.
web parts maintenance page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator.
and I checked in more than one calendar and in more than one site and it's the same, So I'm asking if any one faced something like this.
Thanks in advance.
i want to show sub report through data set But it has some error here is my Code
ReportDocument subreport1 = new ReportDocument();
SqlConnection cs = new SqlConnection(@"Data Source=.\SQL2005;Initial Catalog=MCQs;Integrated Security=True");
SqlDataAdapter da = new SqlDataAdapter();
DataSet ds = new DataSet();
private void Form1_Load(object sender, EventArgs e)
objRptMain = new rptMainPaper();
objRptSub1 = new rptSubReport1();
da.SelectCommand = new SqlCommand("select Question as DataColumn1, Marks as DataColumn2 from TrueFalse Where OID=18", cs);
// Get the subreport name.
subreportName1 = objRptSub1.Subreports.ToString();
// Open the subreport as a ReportDocument.
subreport1 = objRptSub1.OpenSubreport(subreportName1);
crystalReportViewer1.ReportSource = objRptMain;
and the error is
Object reference not set to an instance of an object.
I am new to c# i need some help regarding messagebox.show method.
is it possible to give color to the error message,change the font of the error message.
or customise the messagebox like provide some background image on the messagebox.