|
How do i control aspx pages that will be accessible to different user of my page? Note I am using CSS Menu on my Master Page
thanks
t.aransiola
|
|
|
|
|
I have a dropdown control on an aspx page,with the first item
--Select a Customer-- Value -1
I used a compare validatore to compare the dropdown control selectedvalue with "-1",the validator did not fire
t.aransiola
|
|
|
|
|
Dropdown control on an aspx page:
--Select a Customer-- ----> Value -1
First ----> Value 1
Second ----> Value 2
Then set the following Properties for CompareValidator1:
1. Error message: U must select at least one value...
2. Test: *
3. Control to validate: ddlselect (Your Dropdown list name)
4. Operator : NotEqual
5. Type: Integer
6. Value to compare: -1
Now it will work. Try it out.
-JJ
|
|
|
|
|
How can i send mail attachment to addresses that are stored in a database table.
e.g I have Customer Table with each customer address, i want to send email and attachment to all the customers
t.aransiola
|
|
|
|
|
Hmmm...tough question. Maybe retrieve the addresses from the database and send them each an email, or add them all to the to property.
only two letters away from being an asset
|
|
|
|
|
Hi all,
I know we're all mostly developers here, and not fairy designer types, but I'm in a bit of a fix since I'm on this web project all on my todd. So, does anyone know of a good place to get royalty free/public domain/ok to use in a commercial application XP Style Icons for the web? (I can probably stretch to $50.... the budget is real tight on this project!)
Cheers,
Martin.
|
|
|
|
|
It cost you $249. XP Style Icons[^] is it ok for you.
$50 and all hope you cannot get XPstyle icons i hope.
Regards,
Satips.
|
|
|
|
|
Hi,
I have dropdownlist named ddlapplication in my web form. When I click any item it insert
that record in database with primary key and show in gridview.
If user try to add the same record next time by clicking same item from the dropdown list
which already exist in database it should show error message that this
record alredy exist or in other words before inserting it should check wheather the record is already in database or not.
How can I do that. Here is my code
string str1 = this.ddlApplication.DataTextField;
string str2 = this.ddlApplication.SelectedValue;
string str3 = this.ddlPermission.SelectedItem.Value;
String constr = System.Configuration.ConfigurationManager.ConnectionStrings["twcsanConnectionString"].ConnectionString;
SqlConnection objConn = new SqlConnection(constr);
SqlCommand objCmd = new SqlCommand("INSERT INTO tbUsersAppRights(AppId, AppRightId, UserId) " +
"VALUES (@str1,@str2,@str3)", objConn);
objCmd.Parameters.AddWithValue("@str1", int.Parse(this.ddlApplication.SelectedValue));
objCmd.Parameters.AddWithValue("@str2", int.Parse(this.ddlPermission.SelectedValue));
objCmd.Parameters.AddWithValue("@str3", int.Parse(this.lblUserid11.Text));
objConn.Open();
objCmd.ExecuteNonQuery();
objConn.Close();
this.gdAddUser.DataBind();
seema
|
|
|
|
|
You will have to validate against the database, do a Select Count(Appid) From tbUsersAppRights Where AppID = @str1" and when count is zero you can insert the row into the database.
|
|
|
|
|
I have a text file(which is in different server) to be uploaded to database table. When we browse the file, and click upload button, it should redirect to other aspx page and from where the path of the file will be sent to a procedure to insert the values in the text file to a table.
But when I select a file and click the upload button its giving "Page cannot be Displayed" error.
My code is like this:
Try
Dim inputFile As New FileInfo(txtfilePath.PostedFile.FileName)
Try
If (inputFile.Length > 1) Then
lblStatus.Text = "File is empty"
Else
Response.Redirect("Form2.aspx?file=" & HttpUtility.UrlPathEncode(txtfilePath.PostedFile.FileName))
End If
Catch ex As Exception
lblStatus.Text = ex.Message
End Try
Catch ex As Exception
lblStatus.Text = "File doesn't exist or is inaccessible"
End Try
When I click upload button its saying page cannot be displayed.
Please if anyone can help me for fixing this, I'll be thankful.
Thank you.
Vasini
|
|
|
|
|
Plz could u confirmed, is it working fine for local machine files.
If yes then you first save the file in locat system when upload the file from different server, then redirect the page with local file path.
If no then plz check before redirect first sure your Provided URL is write or wrong.
Parwej Ahamad
g_parwez@rediffmail.com
|
|
|
|
|
if u r using fileupload control in your page ..plz check n tell me if the file size is greater than 2MB.
|
|
|
|
|
by cool, I mean with AJAX Properties and dynamic things and really beautiful colors?
can anybody send me their links to me??
|
|
|
|
|
|
I am using crystal report 9.0 in asp.net(1.1) application and report deplayed in report application server.
when i tried to export report to pdf format it shows "server agent has timed out" error after 25 mins.
it is very lengthy report and around 800+ pages, also this has 2 subreports and dataset as the data source of the report. the error is getting incosistently.
Any help regarding this is greatly appreciated.
Thx
Deepthi V
|
|
|
|
|
Hi to all.
I crate a software which runs on intranet & when we login by putting say,
http://informationcenter/track_system/login.aspx
then browser should disappear so that the back button <--
should not be used by user.
can u suggest to solve my problem.
|
|
|
|
|
do u mean the standard buttons of the browser disappear?
Thx
Deepthi V
|
|
|
|
|
|
U can use below code. This will not be cach any page on loca machine. then i think it should be work as disable back button.
Parwej Ahamad
g_parwez@rediffmail.com
|
|
|
|
|
I have a table in may database and I have a column there phonenumber which is of datatype numeric(18,0). I have a text box in my web form where I type phone number 1-760-897-9879. But when I try to insert this phione number into my database it gives me error "styring is not in proper format." may be the data type of my column is not correct.
Can any body helps me.
Thanks
seema
|
|
|
|
|
You will have to remove the - from the phone number because field is numeric.
|
|
|
|
|
But I don't want to seperate - from phone number.
seema
|
|
|
|
|
Format is usually not stored with the value.
only two letters away from being an asset
|
|
|
|
|
You may also want to consider normalizing the table and seperating the areacode from the number. I have had several cases where it was valuable to search or partition data by the areacode. Best to do it early in the process and save yourself trouble later.
only two letters away from being an asset
|
|
|
|
|
I have a GridView with data. I want to export this data to an excel sheet. How can I do that.
Thanks in advance
seema
|
|
|
|