|
I have a table in aspx page and I dragged a dropdownlist from toolbox. When I tried to change it's ID e.g ddlUser it gives me a messagebox saying that if you have references in markup they will not be removed.
What does it means and it is not allowing me to change the name of the control.
Thanks
hahii
|
|
|
|
|
It probably means that the toolbox sucks, you should just write your aspx page by hand.
What happens if you go into the code and change it ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi All,
I have a login status control in my aspx page and I want to encrypt
the login passward and compare with encrypted tbUsers.UserPass where
tbUsers is the name of my table and UserPass is my field name.
Really Thanks in advance.
hahii
|
|
|
|
|
And your question is???
only two letters away from being an asset
|
|
|
|
|
|
Hi,
Iam using VS 2005 for building my ASP.NET applications. I do not see the drop down where i can switch between release and debug configuration in VS 2005. Is there a short cut key to bring the build configuration window???
Thanks
Ridge
|
|
|
|
|
Try going to your menu tools then customize
The select the standard toobar. The debug / release drop down should be in that tool bar. Perhaps you have un docked that tool bar and hidden it or closed it.
Hope that helps.
Ben
|
|
|
|
|
Hi,
I am trying to make this work here, I set a form authentication on my site from a SQLDatabase. Now the membership tool did not seem to give me all I needed so I followed an example using tickets to specify user roles from the database. All in all it works well. The only problem I am having is that whenever I am authenticated with a lesser user role (let say Role 1) and I am trying to axs a page requiring Role 2 let's say, I am redirected to the login page - not the error page. I tried to find a trick to redirect to the error page all users already authenticated (meaning that most of the time it would be because they tried to axs a page to which they can't axs) but that means even if the user wants to go back to the login page he will be redirected to the error page, which doesn't make sense.
So my question is - Is there a variable or a way to know that a user tried to axs a restricted page even though he was already authenticated??
JC
PS: I hope it's clear, I seem to have difficulties putting it to words
JC
|
|
|
|
|
I don't know if there is any way of doing what you are trying to do. What you can do is if you are using a site.map file to show your links to the different pages you can to role trimming which will only show the links that the users role allows.
Hope that helps.
Ben
|
|
|
|
|
I just wanted to proof my site so if I or anyone else type in manually the URL of a restricted page, they would go to an error page instead of the login (not indicating why).
I guess I found a workaround - probably if I put the error page as my login page in the webconfig and then redirect to login if not autenticated it would work. Although I find it a bit sloppy and I cannot beleive there isn't a better way to do this ...
but thanks for the input
|
|
|
|
|
I have an ASP.Net app that creates a bitmap image and tries to save it to the images folder of that application. When I browse to the page, I get a "generic error occured in GDI+" in the Bitmap.Save method. I tried everything I knew to do to set permissions for the application, but it still doesn't work. Tha application works fine on another machine.
|
|
|
|
|
|
I have an ASP.NET page with a form that contains two user controls:
<%@ Register TagPrefix="x" TagName="c1" Src="ctl1.ascx" %>
<%@ Register TagPrefix="x" TagName="c2" Src="ctl2.ascx" %>
<body>
<form runat="Server">
<x:c1 id="con1" runat="Server">
<x:c2 id="con2" runat="Server">
<form>
</body>
In one control (con1 ) I have a dropdownlist. In the other control (con2 ), I have a set of textboxes that I would like to pre-populate with values that depend on what item is selected in the dropdownlist in the first control.
How can the code for con2 access the value of the dropdownlist in con1 ?
Thanks for any help or suggestions.
-----G
|
|
|
|
|
u must public the dropdownlist for your form and use it.
for example:
public DropDownList drop1
{
get{return yourdropdownlistid;}
}
and use con1.drop1.SelectedItem in your form code
--------------------------------------------------------
or define a dropdownlist in con2 for example:
private DropDownList DropDownList1;
public DropDownList con1dropdownList
{
get{return this.DropDownList1;}
set{DropDownList1 = value;}
}
and in form use from:
con2.con1dropdownList = con1.drop1;
We Can Do Anything, If We Want It
|
|
|
|
|
Well, that isn't right, because the crux of the problem is I'm working within the code-behind page of a user control, not the main page. As a result, I don't have direct accss to con2 or con1 as properties. So I can't use, for example "con1.drop1.SelectedItem", because it will say "con1 not defined". And if I try something like "Page.con1.drop1.SelectedItem" it will say that con1 is not a property of Page.
I actually found my answer, though, just FYI: I needed to use the Page.FindControl() method, which solved my problem.
|
|
|
|
|
Hello,
I am using an an asp.net menu control in a web site and for any top-level menu item that has children the word "expand" shows up under the menu and the user has to click on this to see the submenu. this behavior is only in Safari...any advise?
here's the link to see the problem:
http://www.gordonsestateservices.com/Gro2CMS/TestSite/GordMasterTesting.aspx
thanks for any and all help!
Pete
|
|
|
|
|
i have an application with login control.
if the user(for example: user1) is loged on, i want to deny login access for this user if that is loging from another pc
We Can Do Anything, If We Want It
|
|
|
|
|
You can use Membership.GetAllUsers() .
Mazy
"This chancy chancy chancy world."
|
|
|
|
|
MembershipUser.IsOnline would be more direct.
only two letters away from being an asset
|
|
|
|
|
Hi All,
My application has three frames---top,left and right frame. My aim is, on clicking links in the top pane i have to load the right frame with other external pages(say:- "www.codeproject.com","www.yahooo.com",etc).
I can load the first page but when i 'm trying to load the next pages i get a javascript error "Access Denied".
Can anyone help me sort it out?
Thanks & regards,
Jeeva
|
|
|
|
|
Paste that javascript here we will check it out.
Regards,
Satips.
|
|
|
|
|
|
I have stored all my files in the database as bytes. And i use response.outputstream.write to display those files. I want to disable the right click option on the particular .aspx file which displays the file. How do i achieve it.
Mak
|
|
|
|
|
You can emit document.onContextMenu=function () { return (false); };
|
|
|
|
|
very urgent
hello guys,
i iam in great problem please help me
my problem is that i want to fetch record between two date
my date feild is in varchar and i have seprated that date in three fields
dd1,mm1 and yy1 as int .
when the month is same and first date is lower than second date this works ok
but when the month is different or day1 value is greater than second day
this show unnessasary record
my code is this
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.WindowState = FormWindowState.Maximized
Me.MinimizeBox = False
Dim strd1 As String = DateTimePicker4.Value.ToShortDateString()
Dim strd2 As String = DateTimePicker3.Value.ToShortDateString()
Dim dd1 As Date = CDate(strd1)
Dim dd2 As Date = CDate(strd2)
day1 = dd1.Day
month1 = dd1.Month
year1 = dd1.Year
day2 = dd2.Day
month2 = dd2.Month
year2 = dd2.Year
If (day1 >= day2 And month1 <= month2) Then
swapday = day2
day2 = day1
day1 = swapday
swapmonth = month2
month2 = month1
month1 = swapmonth
End If
'If (day1 <= day2 And month1 <= month2) Then
str1 = "{ViewPartyOrder.pcode}='" & ComboBox2.Text & "' and {ViewPartyOrder.dd1} >= " & day1 & " and {ViewPartyOrder.dd1} <= " & day2 & " and {ViewPartyOrder.mm1} >= " & month1 & " and {ViewPartyOrder.mm1} <= " & month2 & " and {ViewPartyOrder.yy1} >= " & year1 & " and {ViewPartyOrder.yy1} <= " & year2
'ElseIf (day1 >= day2 And month1 <= month2) Then
' str1 = "{ViewPartyOrder.pcode}='" & ComboBox2.Text & "' and {ViewPartyOrder.dd1} <= " & day1 & " and {ViewPartyOrder.dd1} >= " & day2 & " and {ViewPartyOrder.mm1} <= " & month1 & " and {ViewPartyOrder.mm1} >= " & month2 & " and {ViewPartyOrder.yy1} >= " & year1 & " and {ViewPartyOrder.yy1} <= " & year2
'End If
Dim myTableLogonInfos As New TableLogOnInfos
Dim myTableLogonInfo As New TableLogOnInfo
Dim myConnectionInfo As New ConnectionInfo
With myConnectionInfo
.ServerName = ConfigurationSettings.AppSettings("servername").ToString()
.DatabaseName = ConfigurationSettings.AppSettings("databasename").ToString()
.UserID = ConfigurationSettings.AppSettings("username").ToString()
.Password = ConfigurationSettings.AppSettings("password").ToString()
End With
myTableLogonInfo.ConnectionInfo = myConnectionInfo
myTableLogonInfo.TableName = "ViewPartyOrder"
myTableLogonInfos.Add(myTableLogonInfo)
Dim ir As New Itemwisereport
Dim Help As New Mentor
Dim strorderdate As String = DateTimePicker4.Value.ToShortDateString
Dim strorderdate1 As String = DateTimePicker3.Value.ToShortDateString
If (RadioButton1.Checked) Then
ir.RecordSelectionFormula = "{ViewPartyOrder.partyname}='" & ComboBox2.Text & "' and {ViewPartyOrder.dd1} >= " & day1 & " and {ViewPartyOrder.dd1} <= " & day2 & " and {ViewPartyOrder.mm1} >= " & month1 & " and {ViewPartyOrder.mm1} <= " & month2 & " and {ViewPartyOrder.yy1} >= " & year1 & " and {ViewPartyOrder.yy1} <= " & year2
ElseIf (RadioButton2.Checked) Then
ir.RecordSelectionFormula = str1
ElseIf (RadioButton3.Checked) Then
ir.RecordSelectionFormula = "{ViewPartyOrder.pdesc}='" & ComboBox2.Text & "' and {ViewPartyOrder.dd1} >= " & day1 & " and {ViewPartyOrder.dd1} <= " & day2 & " and {ViewPartyOrder.mm1} >= " & month1 & " and {ViewPartyOrder.mm1} <= " & month2 & " and {ViewPartyOrder.yy1} >= " & year1 & " and {ViewPartyOrder.yy1} <= " & year2
End If
CrystalReportViewer1.LogOnInfo = myTableLogonInfos
CrystalReportViewer1.ReportSource = ir
CrystalReportViewer1.RefreshReport()
End Sub
urgent
|
|
|
|