|
Do you want to make the account as expired after 1 month if they have chosen subscription for 1 month?
Is "expired" a column is database?
what all roles do you have?
Prince
Quest Solutions
www.imaginethinkact.com
|
|
|
|
|
Yes sure, I want the account to be expired base on the subscription they choose, I have Weekly, Monthly and Yearly.
"Expired" is the column in the Table Registration.
I have 3 roles:
- Admin
- User (After They're approved)
- Pending (New user not yet approved)
Thanks in advance for your help.
|
|
|
|
|
Hello, I build an ASP.NET 3.5 Website.
I have a registration form that has an email address field,
I use SQL Server 2005 to storethe Data.
I would like to know how can I validate if the email address is already in use or not instantly during the registration process.
I'm looking forward to hear from you soon.
|
|
|
|
|
execute
select * from tableOfTheTable where EmailId='EmailIdYouAreAboutToSave'
if this query result is 1 row, that means that emailID is already in use and is stored in DB.
Prince
Quest Solutions
www.imaginethinkact.com
|
|
|
|
|
|
Hw can i attach an already made database to our project tha is available in Sql management express edition-2005 ?
|
|
|
|
|
Have you tried putting the database file to the App_data folder?
|
|
|
|
|
I need ajax implementation for tab strip control in my asp.net web page. the first tab contains some input controls and only when the user enters values into the first tab then the next tab to be active and so on. the user should be able to edit fields in previous tabs but should not be able to go to next tab before completing the current tab.
|
|
|
|
|
are you using atlas tab strip control..
If so, then just place it inside one UpdatePanel... thats all.
|
|
|
|
|
You have to use JavaScript validation in order to check whether the required data is filled or not and make the next tab active.
Either you love IT or leave IT...
|
|
|
|
|
Hi, after some hours dealing with the above error message, i am afradid need help on this:
i have a DetailsView control, inside it i have some templatefields, one of them is a radiobutton list.
When, in Edit mode, the user changes the radiobutton seleccion (onselectedindexchanged = "RefreshDropDownList"), i need to recharge another templatefield wich is a DropDownList, with new values on it. The DropDownList is bounded to some ObjectDataSource and my purpose is "swap" to anthoer ObjectDataSource when the user changes the RadioButtonList selection.
The method RefreshDropDownList is:
protected void RefreshDropDownList(object sender, EventArgs e)
{
if (((RadioButtonList)sender).SelectedValue == "1")
{
if (odsAreasCU.SelectMethod != "GetAreasPubProyecto")
{
DropDownList ddl = ((DropDownList)dvCU.FindControl("DropDownList20"));
ddl.DataSourceID = odsNewObjetDataSource.ID;
ddl.DataTextField = "Name";
ddl.DataValueField = "CodObj";
ddl.DataBind();
}
}
else
{
}
}
When it passes over "ddl.DataBind();" line, a green arrow exception arises with the following message:
'DropDownList20 has a SelectedValue which is invalid because it does not exist in the list of items'
DropDownList20 is the one on this aspx page code:
<asp:TemplateField HeaderText="Area" SortExpression="Area">
<EditItemTemplate>
<asp:DropDownList ID="DropDownList20" runat="server" DataSourceID="odsAreasCU"
DataTextField="Nombre" DataValueField="CodObj" ForeColor="#006666"
SelectedValue= '<%#DataBinder.Eval(Container.DataItem,"Area")%>'
Width="200px" ondatabinding="DropDownList20_DataBinding"
ondatabound="DropDownList20_DataBound"
onselectedindexchanged="DropDownList20_SelectedIndexChanged1"
AppendDataBoundItems="True">
<asp:ListItem Value="0">(sin área específica)</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
Any help or suggestion on this would be appreciated, i am really dissapointed with this bug.
Greetings.
|
|
|
|
|
Hi,
If you are trying to use the selectedvalue proeprty and the selected value does not fall with in the available value colections in the drop-downlist then you will get this error. It is preferred to insert the value in the drop-down list if it does not exist. Just check the sample code:
if (DropDownList1.Items.FindByValue("Gurgaon") != null)
{
DropDownList1.Items.FindByValue("Gurgaon").Selected = true;
}
else
{
DropDownList1.Items.Add(new ListItem("Gurgaon"));
}
I hope it helps.
Either you love IT or leave IT...
|
|
|
|
|
Thanks saanj, i'll try that.
|
|
|
|
|
hi,
im new using asp bt i have been using c# for bout 3 years but ive neither come across this problem before and need help.
ive current got a set of public variables declared and i have a start timer button that changes a public bool to true and and data to a string, ive added break points and the data is added when the button is pressed but when press the stop button the variables have changed to null it could be something basic but i cant seem to get my head round it so would appraciate any help on the matter
thanks marc
|
|
|
|
|
Can you post your code? That will help determine the problem.
|
|
|
|
|
i want to scan photo and documents according to diff-2 id and it save in folder.plz give me advice.
thanks and regards
vivek kumar
modified on Monday, May 4, 2009 1:44 AM
|
|
|
|
|
Hi,
This is Ravi Shankar. I had some problem with Globalization and Localization.
I have created one web form with name BillPrint.aspx and it contains labels like BillNo, ConnectionId and so on. I want to globalize the label’s text. I have created resource files for this with names BillPrintResources.en-US.resx, BillPrintResources.hi-IN.resx, BillPrintResources.resx. Which contains BillNumber as Name and “BillNo.” as value and similarly for ConnectionId as Name and “Conn ID” as value.
I had specified BillPrintResources for Classkey and BillNumber for ResourceKey in Expression property of BillNo label. Similarly for BillPrintResources for Classkey and ConnectionId for ResourceKey in Expression property of ConnectionId label.
After this I am building the website which it is showing some errors like
1.The resource object with key 'BillNumber' was not found.
2.The resource object with key 'ConnectionId' was not found.
Like this how many variables I had used the errors are coming for all.
Please help me in finding the solution.
Thanks & Regards
Ravi Shankar.
|
|
|
|
|
Hi,
I have two strings. I want to have one string to be left aligned on the listbutton and the other string on the right side of the same listbutton.
-Here is an example of what I'm trying to do. Look at the linkbuttons on this page(https://www.bwin.com/soccer) with the name of the soccer club and a number ie (Chelsea F.C. 1.43)
How do they left align a part of the string and right align another part of the string? I could not think of a way of doing it in CSS
|
|
|
|
|
1. I have one Text box (say first) and add button.
2. If i click add, one text box should be added + one delete button.
3. if i click add again, second text box should be added + one delete button and so on..
4. on clicking any delete button, the corresponding text box should get deleted
5. i also need to get the values of textboxes to be stored in the DB under one column name.
Kindly help me in getting this task solved using Asp.net, C# and Javascript.
|
|
|
|
|
Is this some kind of homework, similar question back to back. See my answer two entries down
|
|
|
|
|
Hi There,
I Want to know how to write or in switch case.
For Example I Had written Like this
case "A" || "B" || "C":
Even I tried With : and also with ,
Can anybody tell me how to do this.
Thanks.
|
|
|
|
|
|
Thanks For Reply.It Works
|
|
|
|
|
Hi All.
Please help me with this....
In my page i need one "Add" button so that if i click that button a textbox should apper however if i click the "Add" button again another text box should appear..
After entering values in the textbox....
When I give submit this textbox value should be saved in database..
Thanks in Advance..Sorry if i wasted your time
modified on Saturday, May 2, 2009 6:36 AM
|
|
|
|
|
In the Add event handler
TextBox txtbox = new TextBox();
txtbox.ID = some_known_id;
Page.Controls.Add(txtbox);
In the Submit event handler
use FindControl to get to your text box
TextBox txtbox = (TextBox)FindControl(some_known_id);
To make your life easier you can enumatate your text box id in a hidden control. Then on the server read the hidden control value and split the content to get to all your text box ids
|
|
|
|