Log-In Screen / Dont Validate?
Apr 9, 2010
So I am creating a log-in screen that is similar to that of Facebook's. In other words you can log-in but if you are a new user you can create yourself a profile quickly by filling in a few fields.
The problem I have is I want to put validators in to check that a user has completed all the necessary fields but the validators dont validate even if the user is not using that form. For example, if I filled in the create user form and pressed the create user button the page would not progress as the validators for the log-in section would say that there is no text in the username or password fields.
I was wondering if there is a way of fixing this. I thought that maybe you could write in the VB code something like:
IF btnCreateUser_Click = True
then
the required validators for the log-in section are set to true.
View 2 Replies
Similar Messages:
Apr 29, 2010
I have question regarding printer option page which pop up when i click on print button on crystalreportviewer and when i click okay on that pop up page it displays print preview of the report.
Is there any way to skip that pop up window(Printer Option) and just display (PDF)print preview screen instead?
(I am not exporting report to pdf, just want to display printview screen and when the user click on print button it will print out the page)
I have tried following code but i am getting error:
"Object reference not set to an instance of an object."
[code]....
View 2 Replies
Mar 24, 2011
I have upgraded web application from VS.2008 to vs 2010. I was using previously ReportViewer 2008 control in a page and replaced with 2010 ReportViewer Control.
I have installed the ReportViewer Redistributable also in my local pc as well as in the server. Also as per the new requirement I have placed the Scriptmanager in the web page where the reportviewer control located.
While running the page, the reportviewer run the report and is not showing the data on the screen. It shows the blank screen. But If I export the data to execl or world it is showing the data. Also the page numbers in the reportviewer showing the total pages available in the navigation bar. I am sure the report is running and bringing the data to the screen but not showing it.
View 1 Replies
Jan 18, 2010
The below is the exact scenario, One form will be there and when user click on "Edit" hyper link other window will open to get more details. In that new window also I have a grid or a table which has other hyperlink which lead to open other window and in that window I will enter few details and save it....
[code]....
View 3 Replies
May 19, 2010
I have created my first MVC application. I am using forms authenticataion. I have created a custom action filter MyAppAuthorizationFilter which inherits from AuthorizeFilter. Inside this filter I'm authenticating the user credentials by checking them against a database table (by overriding OnAuthorize method). If the user is not authenticated, I am redirecting the users to a login page (which is view of LoginController). I am using this filter agaginst my main controller so that all actions in this filter will execute only if the user is authenticated.
I do not have any problem when I use the asp.net development server (shipped with Visual Studio). But when I deploy the app to our IIS7 server, I can see the login screen when I access the default url, but after entering the credentials (both correct and incorrect) and posting back the Login page, it stays on the Login page (clears the pwd, but not the username). Its never getting redirected to the home screen or invalid login screen.
IIS 7 server has .net framework 3.5SP1, but no MVC. So I deployed the System.Web.Mvc dll in the bin folder.
Here's my Code (I've omitted the views and models as they are not needed here):
[MyAppAuthorizationFilter]
public class MainController : Controller
{
//
// GET: / [code]......
View 2 Replies
Oct 4, 2010
I am using the below code where I put this tag on a .aspx page:
"<a name="tips"></a>"
Now if I from another page run the code in the hyperlink to navigate to this page2 where I have the above tag. The page will scroll down to this tag automatically where this tag will be at the TOP of the screen.
My question now is if it is instead possible to scroll to the position where you have this tag at the BOTTOM of the screen instead ?
[Code]....
View 7 Replies
Mar 17, 2010
Is it possible to take a screen capture of a particular area of a web-page from the web-page's own ASP.NET code?
I need to display 6 images that are stacked on top of one another using CSS, and I'd like to offer the user the ability to right-click save-as if possible by stacking the screen capture on top top of the original image stack.
View 3 Replies
Dec 14, 2010
how i can open my asp.net program on full screen (like i press F11)
Through C# code ?
View 4 Replies
Jul 23, 2010
I have Downloaded the sample from codeplex,where in the ex. says 1.Add the RssDataSource and RssHyperLink to the Toolbox in Visual Studio How do I do it? I dont find the file to add? what file is it?
View 2 Replies
Jan 31, 2011
I'm having an issue when requesting querystring variables in a ASP.NET C# webapplication. With special characters.I dont get the special characters in the way i want(original).Here is the code I'm playing with:
string todo = Convert.ToString(Request.QueryString["todo"]) ?? ""; string str = Convert.ToString("%E6%F8%E5%3Ftest"); Response.Write("str original=" + str); Encoding enc = Encoding.GetEncoding("ISO-8859-1"); Response.Write("<br />str decoded=" + HttpUtility.UrlDecode(str, enc)); Response.Write("<br />todo querystring=" + todo); Response.Write("<br />todo querystring decoded=" + HttpUtility.UrlDecode(todo, enc)); string t = HttpContext.Current.Request.Url.AbsoluteUri; Response.Write("<br />requested url=" + t); string[] test = t.Split('?'); foreach (string
View 7 Replies
Jun 15, 2010
I want to retrieve values from a function at regular intervals and display it.I have two different fucntions 1 for getting values and 1 for display.I am using backgroundworker for that.
So when i put continous loop it goes into infinite loop without displaying data.The problem is with asp.net ..
What have i done is
public void backgroundWorker1_DoWork(object sender, System.ComponentModel.DoWorkEventArgs
e)
{
if (this.backgroundWorker1 == [code]...
Now until it doesnot come out of DoWork method if doenot display data eventhought it called Display_data() method.
I removed whilke(1=1) and checked that after exiting DoWork method it displays data.
So is there any way that after data binding in Display_Data() method i can display data and then refresh the whole process at backend ?
View 2 Replies
Apr 9, 2010
I'm trying to work with HandleError attribute in a MVC2 application and found some weird feature.When you create a new project and choose "ASP NET MVC2 Web Application" (the one that comes with Home and Account suppport) the following code works well:
[Code]....
I believe that is a configuration issue, but I don't kwon how search about.Anyone has an explanation for this?
View 7 Replies
Feb 20, 2011
her laptop has been reformated to windows xp and she install a fresh cope of VWDE 2005 express editionwhen she tried to run her project the problem occured.after clicking the button 'start debugging' it does run the form and opened open IE explorer.but right after it open the IE, the IE suddenly close.and that is what happen every time she tried to start debuging or run the program.i also cant figure out what is the problem with its VWDE 2005 express edition or in her laptop.
View 1 Replies
May 6, 2010
In the below code I have data displayed in the webform in a datagrid which has links in it.when I click the link of seperate order or property number they dont work.
<asp:Repeater ID="rptClientBooking" runat="server" OnItemDataBound="rptClientBooking_ItemBound">
<ItemTemplate>
<tr> [code]....
View 5 Replies
Mar 23, 2010
I wonder what the right way is to set write permission on a Folder.I am in the properties for the folder I want to set write permissions to. The folder is named "Folder1"Now when I click the "SecurityTab", I can see a listbox there wich grayed out checkboxes for "Allow" and all of these are Checked, then to the right I have unchecked checkboxes for "Deny".I wonder if this is correct now, that "Folder1" has write permissions because this line execute that access is denied to "Folder1" ?
Directory.Move(Server.MapPath(sourcePath), Server.MapPath(destPath));
View 8 Replies
Jun 7, 2010
In the aspx markup I would like to do the following
<%if (some_condition){%>
<asp:label ID="LabelID" runat="server" />Label 1</asp:label>
<%}else{%>
<asp:label ID="LabelID" runat="server" />Label 2</asp:label>
<%}%>
But that wont work due to the ID-clash. I hoped that it would work this way since the labels cant exist together anyway, but that werent the case. And if I use different ID:s I have to do checkups in the aspx.cs to see which one got included.
# In the real code I dont have labels, I have UserControls, but it should be the same problems, right?
# I know this is not a very pretty way of doing things but thats how things are at the moment.
View 4 Replies
Apr 14, 2010
I've been trying to add a little Remember Me in my login page and been suffering 2 days with this cookie problem.This is how I set the cookie:
HttpCookie coo = new HttpCookie("test");
View 4 Replies
Jan 22, 2010
I have the following settings. Asp.net 2.0 / Vs.net 2005 / Web.config -> customErrors mode="on"
<customErrors mode="On" defaultRedirect="~/ErrorPages/Default.aspx">
View 6 Replies
Dec 10, 2010
i designed an export to excel page that uses the following code
the data is displayed in grid view and the date format is displayed as M/d/yyyy
so i added the culture en-GB to page directive to display the date as d/M/yyyy
the date now displays correctly d/M/yyyy, and the utf-8 also display correctly in gridview.
however once i export to excel the utf-8 appears scrambled
when ever i remove the culture from page directives, names display correctly, however i face again the M/d/yyyy issue.
My question is: is there a way to display date as d/M/yyyy and at the same time reading correct utf-8
View 1 Replies
Feb 17, 2010
What are the issues that needs to be addressed while handling the post event so that array values dont become null ?
View 4 Replies
May 11, 2010
I have a panel which displays data on selected criteris with the followin columns Confirmationnumber fromdate todate propertynumber now the data which is in the confirmation number is a hyperlink which when clicked should be directed to the page with that particular confirmation number and similarly the property number is a hyperlink which should be directed to that property number page when clicked I dont know how to give the link to it
<tr>
<td>
<exact:RepeatableRadioButton ID="rbtSelector" OnCheckedChanged="rbtSelector_Changed"
[code]...
View 6 Replies
Jan 10, 2011
PLZ find below my transaction. i feel that something is wrong in those lines especially in the insert in the table BARCOD0F .the gridview dont show the new updates .i closed the page and relaunch everthing but the updates are not considered
at the first sight my code is right???
[Code]....
View 3 Replies
Jul 10, 2010
i'm trying to install MVC on my vwd 2008.i download the tool then install it succesfully i guess.but when i open my vwd2008 and go to create a new website i dont see the mvc template.am i doing something wrong? do i need to install any thing else?
i have already install the .net framework 3.5 sp 1
View 2 Replies
Aug 6, 2010
How can I make a validation if user dont select data from the combobox after selecting a button then error will be on label.text?
View 6 Replies
Oct 6, 2010
i hv a table in ms-access that have a column in datetime format.when i add data to this field it get stored in the format dd/mm/yy with time as 12.00.00 am.i m binding this data in grid view.hw can i remove the time from the date as i dont wanna show time in the that column of grid view. i m binding the data in gridview by the template field binding methods
View 6 Replies