- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
54 Posted Topics
Re: Actually your code is doing a Partial PostBack...But Your Label is outside of UpdatePanel....so upon partial postback only Contents inside of UpdatePanel will be update and not the Label Text which is outside or UP. Move your Label inside the UP and you will see the appropriate text. | |
Re: 1: not sure if you want that regularExpression for email. If you select RgexValidator in Designmode and look at ValidationExpression propertie you can select Internet Email address [CODE]i.e. \w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*[/CODE] 2: You BirthDate validator had Value 1970-1999 but your error message says 1900-1999. | |
Re: set breakpoints and see whats going on and where does the execution fails: Modify your catch like this: [CODE]Catch ex As Exception MsgBox(ex.Message) End Try[/CODE] | |
Re: Did you set breakpoints and see what code is executed exactly and values assigned to the variables. e.g.: [CODE]if (row.Cells[0].Text == "Topic")[/CODE] There you are accessing first Column, so what is the text value? Is that your first column? Can you share your DV markup? | |
Re: What is the exact problem? In the RowCommand method you can do a FindControl for the Quantity TextBox and get/set the test like: [CODE]Dim tb As TextBox = DirectCast(row.FindControl("QunantityTextBox"),TextBox)[/CODE] | |
Re: You might want to look into Ajax ModalPopupExtender control as shown here: [url]http://www.aspdotnetcodes.com/Ajax_ModalPopup_PostBack_GridView.aspx[/url] You might have to convert your ButtonField to TemplateField with normal button control. [url]http://dotnetslackers.com/Community/blogs/bmains/archive/2007/02/17/Modal-Popup-in-Gridview.aspx[/url] | |
Re: Is your second computer and server linked i.e. are they in intranet or you want to access it via internet? What is your server configuration? You might want to check to see if this is of any use: [url]http://www.lullabot.com/articles/use-dynamic-dns-host-website-your-laptop[/url] | |
Re: Can you give an example of what you are proposing? | |
Re: You can try setting the property - Display="Dynamic". Another options you have are: 1: ValidatorCallOut control: [url]http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/ValidatorCallout/ValidatorCallout.aspx[/url] 2: Use ValidationSummary control to popout error messages: [url]http://www.dotnetfunda.com/tutorials/controls/validationsummary.aspx[/url] 3: use jquery validation plugin. But this will be client-side only. You still need server-side validation. | |
Re: It seems to me the date format you are using: Try 1987/18/10. If that works then you the date format on you machine is yyyy/dd/mm. | |
Re: Ask your host the format of the connectionstring you need to use to connect to your database. You might have to create a user using their DB management feature. | |
Re: FYI: One can use EmptyDataTemplate of GV: Ref:[url]http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.emptydatatemplate.aspx[/url] | |
Re: 1: so you mean it's erroring out on this line? [CODE] int paymentID = searchFields["PaymentId"].ToString() == "" ? -1 : Convert.ToInt32(searchFields["PaymentId"].ToString()); [/CODE] Set breakpoint and see what is null "searchFields" or individual item? 2: Also one other thing I noted is : [CODE]searchFields["txtCCLast4"] = txtCCLast4.Text;[/CODE] searchFields["txtCCLast4"] is not what you … | |
Re: Two ways: 1: You can write some script in sql to run everyday, which will check all user's whose creationDate is older than 2 days and set the IsLockedOut to true. I don't have code or much idea on how it can be done but something to think about. 2: … | |
Re: [QUOTE]the problem is string userName is always taking null value. [/QUOTE] 1: do you see "user" querystring parameter in the url in the status bar at the bottom of your browser, when you hover over the Manage link? 2: Did you set breakpoint and see if it is userName that … | |
Re: Was wondering if you can use OnClinetItemSelected property of AutoCompleteExtender to execute a js function which in turn calls some page Method or causes postback. | |
Re: In that case I have to options for you: 1: Show Select Button and let user click that instead of your bookname. Then in the GV SelectedIndexChanged event, you can redirect the user to the page of your choice and pass appropriate bookid as querystring parameter. 2: You extend the … ![]() | |
Re: For the Textbox string options you might want to look into Ajax AutoComplete control like show here: [url]http://www.asp.net/ajax/ajaxcontroltoolkit/samples/autocomplete/autocomplete.aspx[/url] For the DropDown values, use TextBoxChanged Event to rebind the DDL. | |
Re: [QUOTE=yennh;1341520]I am using [COLOR="Red"][B]aspx.cs [/B][/COLOR]to create a login page. I would like to create a remember me cookie using a checkbox that will help to remember user ID but will also allow it to be destroy if a different user ID wants to log in with the same computer, but … | |
Re: [QUOTE=madheswaransuji;1339735]i need log in page code using asp.net[/QUOTE] You can start here: [url]http://www.asp.net/web-forms/security[/url] [url]http://www.codedigest.com/Articles/ASPNET/112_Implementing_Forms_Authentication_in_ASPNet_20.aspx[/url] | |
Re: So what is it exactly you are trying to do ? Do you want to pass Textbox value in SelectQuery or Insert that value of Textbox in the Database ? Not sure there is a simple toolbox option to deal with MySql database. | |
Re: Make sure you have reference to System.Configuration added i.e. Imports System.Configuration | |
Re: Here is a link with the required login. Although it uses SqlConnection and SqlCommand...but you can simply replace that using OleDB.. [url]http://www.codedigest.com/Articles/ASPNET/112_Implementing_Forms_Authentication_in_ASPNet_20.aspx[/url] Oledb: [url]http://www.startvbdotnet.com/ado/msaccess.aspx[/url] | |
Re: we need to see some code for your UC and the page referencing it. Can you check if you have any (client-side) validation that might be failing and not letting postback to occur. | |
Re: You should look for FormsAuthentication: Check this: [url]http://www.codedigest.com/Articles/ASPNET/112_Implementing_Forms_Authentication_in_ASPNet_20.aspx[/url] Although it uses SqlServer DB ...the idea remains the same except the way how CheckUser() method is implement that user System.Data.SqlClinet classes. Check this: [url]http://www.codeguru.com/csharp/csharp/cs_network/database/article.php/c8477__2/[/url] [url]http://msdn.microsoft.com/en-us/library/ms973871.aspx[/url] | |
Re: I just copy Pasted your code, added my own DataSource and it works. It shows me alert 'hey' message when i click the checkbox to check/unchek an item. How are you dataBinding your CBL? | |
Re: [I][QUOTE]Please no hour/rate equations. This wont work for me as i am a recent grad and this will take me twice as long to develop as would a seasoned professional.[/QUOTE][/I] Thats true. You might need more time than a professional but ideally cost should not vary much for the end … | |
Re: You must intialize ds e.g. DataSet ds = new DataSet(); Check this eg: [url]http://msdn.microsoft.com/en-us/library/bh8kx08z(VS.80).aspx[/url] | |
Re: check this: [url]http://oreilly.com/catalog/progaspdotnet/chapter/ch14.html[/url] | |
Re: Check this: [url]http://msdn.microsoft.com/en-us/library/6y92e1ze(VS.80).aspx[/url] You will have to use ItemDataBound Event like shown below: [CODE] protected void DataList1_ItemDataBound(object sender, DataListItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { DataRowView dv = (DataRowView)e.Item.DataItem; if (dv.Row["Team"].ToString() == "LiverPool") { //e.Item.BackColor = Color.YellowGreen; e.Item.CssClass ="liverpool"; } } } [/CODE] | |
Re: or you can do that in markup... check in GV Properties Window for RowStyle-> Set the Height your GV markup will look something like below: [CODE] <asp:GridView ID="GridView2" runat="server" ..> [B]<RowStyle Height="30px" />[/B] <Columns> ...your columns </Columns> </asp:GridView>[/CODE] | |
Re: Watch this video: [url]http://www.asp.net/learn/videos/video-8605.aspx[/url] | |
Re: [QUOTE]Oky all is well now but now i ran into the problem of selecting certain rows and only retrieving those rows data[/QUOTE] what is the problem. | |
Re: 1: Sample path: [CODE]C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data[/CODE] 2: Connection String varies depending on how your hosting provider gives you access to the Db. Contact them to get the format. Additionally check here: [url]http://www.connectionstrings.com/[/url] | |
Re: [QUOTE]Because we have to implement according to the class definitions given by our analyst.[/QUOTE] Can you explain that a bit. Do you mean you don't want to use default database used by SqlMembership Provider? | |
Re: The exception is of type DirectoryNotFoundException. So check before upload if the particular directory exist. Also are you using asp.net Upload Control or share your markup as well. You code looks more complex than it should to do a file upload. | |
Re: Do you mean custom controls or normal Web user controls? The reason to add entry to your web.config is you don't have to register them on every single page you are planning to use them on. This shows that: [url]http://weblogs.asp.net/scottgu/archive/2006/11/26/tip-trick-how-to-register-user-controls-and-custom-controls-in-web-config.aspx[/url] | |
Re: modify your sitemap url like below: [CODE]<siteMapNode url="" title="" description=""> <siteMapNode url="http://www.cnn.com" title="CNN" description="CNN News" /> <siteMapNode url="http://www.bbc.com" title="BBC" description="BBC News" /> <siteMapNode url="http://www.reuters.com" title="Reuters" description="Reuters" /> </siteMapNode>[/CODE] | |
Re: This is a nice reference: [url]http://oreilly.com/catalog/progaspdotnet/chapter/ch14.html[/url] [url]http://www.c-sharpcorner.com/UploadFile/Santhi.M/PassingValuesfrmUCtoASPX11212005050040AM/PassingValuesfrmUCtoASPX.aspx[/url] | |
Re: --->Explain me the viewstate with the coding? [url]http://www.codeproject.com/KB/aspnet/BegViewState.aspx[/url] --->Suppose in textbox1.text contains ASP.net & I set EnableViewState to False of textbox,so when i click on button, textbox will still contains the text or not. Yes..it will. Why ? Check this: [url]http://aspadvice.com/blogs/joteke/archive/2004/03/15/2273.aspx[/url] --->Where can i see the above line in ASP.net?????/ … | |
Re: Not sure if that is doable with default ValidationSummary. May be you need to write your own Custom Summary control. Sorry ..no idea about that as well. | |
Re: Check if this helps: [CODE] JS: <script type="text/javascript" language="javascript"> function validate(sender,args) { args.IsValid = false; var tb = document.getElementById('txtInput'); if (args.Value.match(/^\w{6}\d{6}$/)) { args.IsValid = true tb.style.backgroundColor = "white"; tb.style.color="green"; } else { tb.style.backgroundColor = "red"; } } </script> Markup: <asp:TextBox ID="txtInput" runat="server"></asp:TextBox> <asp:Button ID="btnSubmit" runat="server" Text="Button" /> <asp:CustomValidator ID="CustomValidator1" ControlToValidate="txtInput" … | |
Re: --> IIS and .NET Framework is what you will need First as mentioned in previous post Web PI will help you get all that. --> For IDE you can use Visual Studio 2008 Professional if you are planning to purchase one....or Visual Web Developer 2008 (which is free. It has … | |
Re: You should be using SqlConnection and SqlCommand objects to do this insert. On the button click follow the code in this link below for method Insertdata(). Your insertString will change a bit to your fields and values: [url]http://www.csharp-station.com/Tutorials/AdoDotNet/Lesson03.aspx[/url] [code]//adjust accordingly string insertString = @" insert into Categories (BikeID,BikeName,Quantity,Price) values (txtBikeId.Text, … | |
Re: Everytime you click a button upon postback your LogoWidth is reset to 150 so you won't see the effect after first click. Two options: 1: make LogoWith static i.e. public static void LogoWidth=150; 2: Modify your code like below: [CODE]protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { this.LogoWidth … | |
Re: Can you check if you have properly installed .NET FrameWork ..2.0 ,3.5. Go to Framework directory and see if you have those csc.exe: On XP path could be...:(check appropriate path on your laptop) C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 | |
Re: Did you come across this one ? [url]http://www.beansoftware.com/ASP.NET-Tutorials/FormView-Control.aspx[/url] | |
Re: Not sure if the code you provided above is exactly the same or messed up in the editor but look the foreach loop code below. Not the debugging statement: [CODE]foreach (ShoppingCartItem item in objCart.GetItem()) { Response.Write(item.Name.ToString()+ "<br//>"); if (item.Name == "Real Estate Forms 2d") { objCart.TaxRate = 0.06; } else … | |
Re: Looks authentication Mode in your web.config is set to Windows. you web.config should have Forms Authentication enable like below: <authentication mode="Forms" /> Check this: [url]http://msdn.microsoft.com/en-us/library/xdt4thhy.aspx[/url] |
The End.