guru_sarkar 0 Junior Poster in Training

Did you set breakpoints and see what code is executed exactly and values assigned to the variables. e.g.:

if (row.Cells[0].Text == "Topic")

There you are accessing first Column, so what is the text value? Is that your first column?
Can you share your DV markup?

guru_sarkar 0 Junior Poster in Training

What is the exact problem?
In the RowCommand method you can do a FindControl for the Quantity TextBox and get/set the test like:

Dim tb As TextBox = DirectCast(row.FindControl("QunantityTextBox"),TextBox)
guru_sarkar 0 Junior Poster in Training

You might want to look into Ajax ModalPopupExtender control as shown here:
http://www.aspdotnetcodes.com/Ajax_ModalPopup_PostBack_GridView.aspx
You might have to convert your ButtonField to TemplateField with normal button control.

http://dotnetslackers.com/Community/blogs/bmains/archive/2007/02/17/Modal-Popup-in-Gridview.aspx

guru_sarkar 0 Junior Poster in Training

i haven't tried but search for "setting up intranet website" or something similar.
Mainly you will have to do some iis settings on the server and then will be able to access it via browser.
But you won't be able to access it via PC outside of your intranet i.e. internet.

guru_sarkar 0 Junior Poster in Training

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:
http://www.lullabot.com/articles/use-dynamic-dns-host-website-your-laptop

guru_sarkar 0 Junior Poster in Training

Can you give an example of what you are proposing?

guru_sarkar 0 Junior Poster in Training

You can try setting the property - Display="Dynamic".
Another options you have are:
1: ValidatorCallOut control: http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/ValidatorCallout/ValidatorCallout.aspx

2: Use ValidationSummary control to popout error messages:
http://www.dotnetfunda.com/tutorials/controls/validationsummary.aspx

3: use jquery validation plugin. But this will be client-side only. You still need server-side validation.

guru_sarkar 0 Junior Poster in Training

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.

guru_sarkar 0 Junior Poster in Training

set breakpoints and see whats going on and where does the execution fails:
Modify your catch like this:

Catch ex As Exception
  MsgBox(ex.Message)
End Try
guru_sarkar 0 Junior Poster in Training

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.

guru_sarkar 0 Junior Poster in Training
guru_sarkar 0 Junior Poster in Training
guru_sarkar 0 Junior Poster in Training

ok what's the question?

guru_sarkar 0 Junior Poster in Training

1: so you mean it's erroring out on this line?

int paymentID = searchFields["PaymentId"].ToString() == "" ? -1 : Convert.ToInt32(searchFields["PaymentId"].ToString());

Set breakpoint and see what is null "searchFields" or individual item?

2: Also one other thing I noted is :

searchFields["txtCCLast4"] = txtCCLast4.Text;

searchFields["txtCCLast4"] is not what you are retrieving on destination page.

3: The keys are case-sensitive so: searchFields["FirstName"] and searchFields["firstName"] are different. You are using different cases on both pages.

guru_sarkar 0 Junior Poster in Training

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: Upon user Login button click or OnAuthenticate event of asp.net Login Control, you do something like this:

MembershipUser user = Membership.GetUser(Login1.UserName);
        if (user != null)
        {
            if (user.CreationDate > DateTime.Now.AddDays(-2))
            {
                user.IsApproved = false;
                Membership.UpdateUser(user);
            }
        }

Note: for second method, you still need to perform authentication

guru_sarkar 0 Junior Poster in Training

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.

guru_sarkar 0 Junior Poster in Training

--->first question's answer is-yes
Ok so your link is getting set properly, but when you click it something is going wrong correct? And so what is happening when you click it?

--->and i m not getting the 2nd question.
I meant set breakpoints inside of your userinformatin.aspx. See where is it breaking, i.e. is your userinformation not receiving "user" querystring or if user is not found in database or something else.

guru_sarkar 0 Junior Poster in Training

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 GV to make entire row clickable like shown here:
http://www.mostlydevelopers.com/mostlydevelopers/blog/post/2008/06/02/Row-Clickable-GridView.aspx

guru_sarkar 0 Junior Poster in Training

Set the breakpoint in your GetData method and make sure:
1: It is being actually called.
2: Some data is returned from db i.e. items in not null or empty.

guru_sarkar 0 Junior Poster in Training

Can you give me an advice?

I would set a small info or help link next to Remember Me Checkbox telling user that if they are on a public computer, it is not a good idea to select it.
And secondly ask your user to Logout and sign in as different user id ,if they want.

guru_sarkar 0 Junior Poster in Training

For the Textbox string options you might want to look into Ajax AutoComplete control like show here:
http://www.asp.net/ajax/ajaxcontroltoolkit/samples/autocomplete/autocomplete.aspx

For the DropDown values, use TextBoxChanged Event to rebind the DDL.

guru_sarkar 0 Junior Poster in Training

the problem is string userName is always taking null value.

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 is null or the asp.net membership user that is null?

guru_sarkar 0 Junior Poster in Training
guru_sarkar 0 Junior Poster in Training

I am using aspx.cs 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 i have no idea how to start. Any assistance? Thank you! :cry:
i use with the set of login controls available in ASP.NET

If the computer is going to be used by multiple users, persisting authentication cookie is not a good idea considering security. Your site will has no idea who is physically accessing the computer. It just knows if the cookie is valid or not.
So you should always warn your user about the side-effects of selecting "Remember Me" checkbox.
The only way in your scenario is your user to Logout where you clear the session cookie and then they can re-login as different user.

guru_sarkar 0 Junior Poster in Training

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.

guru_sarkar 0 Junior Poster in Training

Make sure you have reference to System.Configuration added i.e.

Imports System.Configuration

guru_sarkar 0 Junior Poster in Training

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.

guru_sarkar 0 Junior Poster in Training

Here is a link with the required login.
Although it uses SqlConnection and SqlCommand...but you can simply replace that using OleDB..

http://www.codedigest.com/Articles/ASPNET/112_Implementing_Forms_Authentication_in_ASPNet_20.aspx

Oledb: http://www.startvbdotnet.com/ado/msaccess.aspx

guru_sarkar 0 Junior Poster in Training

It will take you to another page named Entry.aspx with querysting parameters having values in textbox1 and textbox2...eg.
if you entered - joe in textbox1 and 15 in textbox2 you will be taken to new page and the url in addressbar will look like below:

http://www.mysite.xyz/[B]Entry.aspx?myname=joe&myage=15[/B]
guru_sarkar 0 Junior Poster in Training

Not sure ...because I took your code, moved the Label within UP and it worked.
do you mind creating a test page... and trying this sample to see if your ASP.NET ajax is working.

http://www.asp.net/AJAX/Documentation/Live/ViewSample.aspx?sref=UpdatePanelWalkthrough2%23TriggersDeclarativeMarkupCS.aspx

To add to the above example ....Place a Label outside of UP and upon Page_Load set its Text to DateTime.Now

guru_sarkar 0 Junior Poster in Training

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.

Thats true. You might need more time than a professional but ideally cost should not vary much for the end product. If you take more hours being fresher your /hour rate will be low as well while professional will charge more /hour and but take less hours for development.
So in reality you will still get same amount as a professional but you have to work more hours. But you gain experience since you are a starter and that is your investment for initial years.

guru_sarkar 0 Junior Poster in Training

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.

guru_sarkar 0 Junior Poster in Training

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?

guru_sarkar 0 Junior Poster in Training

You must intialize ds
e.g. DataSet ds = new DataSet();

Check this eg:
http://msdn.microsoft.com/en-us/library/bh8kx08z(VS.80).aspx

guru_sarkar 0 Junior Poster in Training
guru_sarkar 0 Junior Poster in Training

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:

<asp:GridView ID="GridView2" runat="server" ..>
 [B]<RowStyle Height="30px" />[/B]
        <Columns>
        ...your columns
</Columns>
        </asp:GridView>
guru_sarkar 0 Junior Poster in Training
guru_sarkar 0 Junior Poster in Training

oh I see....looks Repeat Layout could be the issue. I have a cssClass for ItemStlye.
check my test DL code:

<asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" 
            Width="114px" onitemdatabound="DataList1_ItemDataBound" 
            RepeatLayout="Flow">
            <ItemStyle CssClass="dataListItemStyle" />
            <ItemTemplate>           
                UserName:
                <asp:Label ID="shoutLabel" runat="server" Text='<%# Eval("Username") %>' />
                <br />
                <br />               
            </ItemTemplate>
        </asp:DataList>
guru_sarkar 0 Junior Poster in Training

sorry what works for me is:

e.Item.Style["background-image"] = "url(images/test1.jpg)";

NOTE: I don't have ./ in front of images

guru_sarkar 0 Junior Poster in Training

ok check this:
1: when page is displayed in the browser can you view source and see if style is added to the item
2: its the path and so can you try removing '.' from your path

e.Item.Style["background-image"] = "url(/images/Liverpool.gif)";

the above works for me and displays an image

guru_sarkar 0 Junior Poster in Training

Oky all is well now but now i ran into the problem of selecting certain rows and only retrieving those rows data

what is the problem.

guru_sarkar 0 Junior Poster in Training

1: Sample path:

C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data

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: http://www.connectionstrings.com/

guru_sarkar 0 Junior Poster in Training

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

i.e. \w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*

2: You BirthDate validator had Value 1970-1999 but your error message says 1900-1999.

guru_sarkar 0 Junior Poster in Training

Looks either you are misunderstanding Sql Membership or I am still unable to get your question. So..
1: Sql Memberhship provider uses Membership tables provied by MS. Do you want to use any of those tables ?
2: Your analyst has DB schema...so does that include tables related to User login, roles management etc?

Let me explain a bit. Membership Provider and SqlMembershipProvider are although same but different. SqlMembershipProvider extends MembershipProvider class to implement functionality that use Default MembershipDB schema.
You can write your own Custom Membership provider (like SqlMP) extending MembershipProvider class. It is a bit of work.

Check here in action: http://www.asp.net/learn/videos/video-189.aspx

So hope that will help you understand more on this and you can tell us more on what exactly we are missing here in your question.

guru_sarkar 0 Junior Poster in Training

ok sorry looks you are using HtmlInputFile control.
To me it looks WebFilePath.ToString is not the proper path:

To degub try this and see the path displayed is correct:

//MyPostedMember.SaveAs(WebFilePath.ToString)
Response.Write(WebFilePath.ToString)
guru_sarkar 0 Junior Poster in Training

can you try the code below instead of css.
here the" url(...)" string you should determine dynamically per your teamname.

e.Item.Style["background-image"] = "url(/images/Liverpool.gif)";
guru_sarkar 0 Junior Poster in Training

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.

guru_sarkar 0 Junior Poster in Training

Check this: http://msdn.microsoft.com/en-us/library/6y92e1ze(VS.80).aspx

You will have to use ItemDataBound Event like shown below:

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";
            }
        }
    }
guru_sarkar 0 Junior Poster in Training

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:
http://weblogs.asp.net/scottgu/archive/2006/11/26/tip-trick-how-to-register-user-controls-and-custom-controls-in-web-config.aspx

guru_sarkar 0 Junior Poster in Training

modify your sitemap url like below:

<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>