|
Hi,
I would like to know if it's safe to program a site with members where I use usernames rather than user id in the querystring to retrieve user information from a database.
I see some sites have user ids nad some usernames.
Any response is appreciated.
|
|
|
|
|
Hi,
User Id is obviously prefered and secure choice, because username is understandable to others.
But Whether its Id or Name both must be associated with Password and without the combination of both,access of applicaiton is not possible.
But if i know the username,databasename, and tablename and i have the access of Database server, i can fetch the user information from database.
Same is possible with user Id as well. But its diffcult to guess which Id belong to which User.
Hope this will bring u decide ID or Name.
|
|
|
|
|
Thanks a lot for the useful information. One thing though is that user id is just as visible as a username in the querystring when you for example click on a profile of a certain user. Also assuming that a person have logged in to a certain site how can he possibly retrieve the database name and a table name, and also have an access to a database server? is it easy possible to do or it's extremly difficult to retrieve that?
Thanks again.
|
|
|
|
|
Albert, you are correct, User id is just as visible as a username. But statement ?UserID=1234 or ?UserName='Albert' makes difference in visibility.
For a end user its impossible to retrieve information from database.
All the best for endeavour.
|
|
|
|
|
|
Hi to all,
I am using ajax calendat in my textbox...,
After that textbox one dropdown list box is there...,
Whenever my calendar control getting view the dropdowwnlist over on my calendar control...
I tried all type of css:
These are the css i got from net, those i include eventhough its getting over...,
.ajax__calendar_container { z-index : 1000 ; }
.ajax__calendar {
position: relative;
}
.ajax__calendar iframe {
left: 0px !important;
top: 0px !important;
}
But the control working cool in my ie7 but its giving probs in ie6...,
How do I get the CalendarExtender to show over a dropdown
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
This is a problem with IE. You'll need to use a different control that renders differently to achieve this.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
It mean what the final solution for this one?,
I am using ajax 3.5, for ie6 broswer how to load another control for that textbox?,
Its not correct solution to solve this
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
In my c# form i have added a Acrobat Reader ActiveX control in runtime. when I added its not appearing in the form.
when i minimize and maximize the control is appear.
How Can I solve this proble
Thanks in Advance
|
|
|
|
|
|
I am creating in run time
modified on Friday, June 20, 2008 6:01 AM
|
|
|
|
|
Hi,
Let me go straight to the point.
I am doing a something like a wizard we use to setup some programs or system. I have 5 pages which all 5 pages is link together with 'Back' and 'Next' button. It was working fine until I tried the Back button and click Next again. I find it some what difficult to detect that the user clicked back and therefore when the user click next again, I suppose to do 'Update' and not 'Add' and also sometimes what the user typed in the form is not there any more.
I'd tried a few solutions such as putting in checks whether the user already entered data by taking the primary key after inserting the data and put into a invincible label, so when the user press back, the system can check the label whether there is any value in it.
I find it a bit tedious to do so, so I decided to come here to seek some expert advice on the best practice to do this - How to Add and Update respectively and keep everything on the page no matter the user click Back and Next how many times.
This is what I did on the Back button
this.btnBack.Attributes.Add("onclick", "javascript:history.back();return false;");
|
|
|
|
|
Is this a ASP.NET question?
If so, what Framework you are using?
If the Framework you are using is 2.0, then ASP.NET is providing with a nice Wizard Control which does all you need.
history.back() will be effect if your page postbacks to the same page.
|
|
|
|
|
Make all the pages controls, and put them on one form, just change which one is visible.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello there,
I met a problem. I have a textbox, requirefiledValidator and a button on the same row.
If I don't put anything in the textbox first and hit the button. The validator is triggered. (The display of the validator is dynamic.)
Then I put something in the textbox and hit the button again. But the button's onclick event is not triggered. I figured out the reason. I think the mouse click caused the onblur event of the textbox, then the validator error message is gone, then the button position is changed. So the onclick is not on the button anymore.
The sample code is here.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="textbox1" Display="Dynamic"
ErrorMessage="RequiredFieldValidator">This field is required</asp:RequiredFieldValidator>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
</div>
<br />
</form>
</body>
</html>
Is there a way to make the button onclick event still be fired? I think I can use setTimeout to delay the validation a little bit. But I don't know how to do it.
Any suggestion will be greatly appreciated.
Bin
|
|
|
|
|
bin_bin1 wrote:
<asp:textbox id="TextBox1" runat="server" xmlns:asp="#unknown">
<asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" xmlns:asp="#unknown">
ControlToValidate="textbox1" Display="Dynamic"
ErrorMessage="RequiredFieldValidator">This field is required
<asp:button id="Button1" runat="server" onclick="Button1_Click" text="Button" xmlns:asp="#unknown">
bin_bin1 wrote: I think the mouse click caused the onblur event of the textbox, then the validator error message is gone, then the button position is changed. So the onclick is not on the button anymore.
You controls are in flow direction (one behind the others). Use BREAKS next to each controls or tables with fixed column width.
|
|
|
|
|
Thank you so much for your reply. My code is just an example. I am working on an application page in SharePoint. I cannot change the design. the button will change position when the validation messages show or hide.
I think there are two possible solutions.
1) Make the textbox's onblur event does not cause validation. I don't know how to do that.
I tried to add Textbox1.Attributes.Add["onblur", "return false;"];
But it is not working.
2) Delay the validation for 100milli second by using setTimeout method.
I really don't know how to do that.
Please help me with this.
Thank you so much.
Best regards,
Bin
|
|
|
|
|
Have anyone ever worked with visual web developer 2008 express edition? If so how do you go about publishing your site with this tool? I keep getting a Parser Error message: unrecognized attribute in my web.config file. Any suggestions?
|
|
|
|
|
jds1207 wrote: how do you go about publishing your site with this tool?
You cannot publish a website from Express Edition tools. They are just for learning purpose. If you still want to do that buy Professional or other Edition.
jds1207 wrote: keep getting a Parser Error message: unrecognized attribute in my web.config file
Post you web.config file
|
|
|
|
|
What's the recommended way to share a single menu control across all the pages in my site?
Edit: Also shared data sources if it's different from the above.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
modified on Thursday, June 19, 2008 2:33 PM
|
|
|
|
|
|
Hi all
i have accordion that dinamic create in that accordion i have LinkButton To delete That Row i used http://www.codeplex.com/AjaxControlT...rkItemId=16965 to fix the Click Event Bug and its work fine for the first click but when i click again its not work but when i click 3rd time its work
u can say its Accordion ItemCommand event fires every other time instead of every time
hope any one know whats up thats the item command code
protected void Accordion_Comments_ItemCommand(object sender, AccordionCommandEventArgs e)
{
if (e.CommandName == "LinkButtonDeleteComment")
{
art_comment.Delete_Comment(int.Parse(e.CommandArgument.ToString()));
LoadComments();
}
}
thnx
JavaScript - C# - MS Sql Server - asp.net 2
http://eazyasp.blogspot.com/
|
|
|
|
|
hi
i have listview in which i have folowing dataitem
Name
Address
CountryID
StateID
my problem is i have GetCountryName() and GetStateName() methods in my DAL layer and i want
to dislplay country name and state name insted of CountryId and StateId field
i have googled it and looked everywhere can anyone help please to solve this problem
its a bit urgent...thanx in adavance
appu
|
|
|
|
|
appu,
you didnt mention here, how you populate listview data. I guess u must have used Dataset as data source for Name,Address,CountryID and StateID, and for this you must be sending some SQL Query. So in where clause you can call the function.
Another way is u dont call the funciton, LEFT OOUTER JOIN the Seed Data table for Country and State in SQL Query and populate the list view.
Hope now you got some more Idea.
|
|
|
|
|
thanx but i used
Private Sub BindSearchByEmailGrid()
Dim ds As EmployerInfoList = [EmployerInfoManager].SearchByEmail(txtemail.Text)
searchgrid.DataSource = ds
searchgrid.DataBind()
UpdatePanel1.Update()
End Sub
and this dataset returns data with only countryid and stateid and as u said i cant modify storedprocedure to get names
because they are in different database..i saw tht i can do that using gridview but not with the listview
appu
|
|
|
|