|
|
as we know json web token has 3 parts like
header
payload
signature
so is there any parts in form auth cookie or infos are divided in 3 parts before save the auth data in auth cookie ? looking for sample info which generally store in form auth cookie for visualization purpose.
thanks
tbhattacharjee
|
|
|
|
|
Google will find you all the details on cookies.
|
|
|
|
|
I am getting Error too many changes at once in directory from the filesystemwatcher.
How do I fix it?
|
|
|
|
|
|
|
I have a section on a form that requires the user to select a Date and select a time.
So I have the Bootstrap DateTime Picker and a single textbox in Razor for DateTime.
You click or touch the calendar to select the date. But not sure how to select the time.
I'm not sure how to design this.
Option 1: 1 textbox for date and time, and somehow use the textbox for both.
So some how develop a interface to select the date and time in 1 textbox.
Option 2: 2 textboxes, 1 for date and 1 for time.
But in the model, and after searching, if I declare the field as DateTime which is the only option, I have to use date and time together. So I use a single DateTime object in the model and try to work the 2 in parts Date / Time
My question is how you guys doing this? As far as the Model and interface goes?
|
|
|
|
|
I decided to just try DateTime for the Model, and created a textbox for DateTime.
Then fully implemented BootStrap.Css DateTimePicker. At the time of first writing, I wasn't getting the icons in the calendar, and didn't know about the time picker. I was using Font Awesome, and the fonts were not showing up. So I went back to the JQuery, and programmed the font awesome fonts into the calendar.
I'll see how it goes and how many complaints I get from it. I may go back and try to separate the the Date and Time, split time by hour and minute later in the future, and see if I can assemble and disassemble the values to and from DateTime.
|
|
|
|
|
Hi,
I've been all over the internet trying to resolve this issue for a few days now and nothing I do makes a difference. Even what was suggested here, at this site, doesn't work. (Being new to all this is a handicap as well.)
What I'm trying to do is reload the page after an interval.
I get the error at this line: 'function BeginTimeOut()'
Here's the code from the 'site.master' page:
<body>
<form runat="server">
<script type="text/javascript">
var sessionTimeOutValue = "<%= Session.Timeout %>";
var counter = (sessionTimeOutValue * 60) + 1;
var interval;
function BeginTimeOut() {
window.clearInterval(interval);
counter = (sessionTimeOutValue * 60) + 1;
interval = self.setInterval(function () { StartTimeOut() }, 1000);
}
function StartTimeOut() {
counter--;
if (counter == 0) {
window.clearInterval(interval);
window.location.assign("default.aspx");
}
}
</script>
|
|
|
|
|
What line of code causes the error?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
RyanDev,
At the line "Begin Timeout()"
|
|
|
|
|
No, it won't do that. That is the function declaration. It may be in that function but you have 3 lines. You need to debug this and find out what is null.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
|
Hi all.When I create a new Website project in Visual Studio. IT creat the .mdf file in the project.
I don't know where is the configuation of the the connection string to change it.
I have look at the Web.config but I can't see.
Please help me.I am the beginer.Please....
|
|
|
|
|
When I register a user i see the connectionstring in the webconfig
<add name="ApplicationServices"
="" connectionstring="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providername="System.Data.SqlClient">
But when I hit Login i don't know what table they manage.
If I want to add code to Registratrion.aspx to force user add a department how to do.
Please I am a new users
|
|
|
|
|
To know Connection String to connect Backend to frontend.
right click on your .mdf file ----> go to properties ----> a property window will open (here is a property name connection String where u get your connection String)
new copy this connection string and paste it in web.config file connection String element
|
|
|
|
|
OK, I know the connection string now.When i use login control it use default connection string.How can I Change to tell the login control "Don't connect to this database, connect to my database".
|
|
|
|
|
Hi all. I Use a Visual Studio then File -> New -> Website
(Using C# code)
In the Solution Explore I creat many folder.
MasterPage Folder to hold all MasterPage.
Images Folder to hold all Images
UserControl folder to hold all page related to User such as Login, Registration.....
And the problem is that how to display images in the masterpage,......
Please help me.
|
|
|
|
|
<asp:Image runat="server" ImageUrl="~/images/myimage.jpg" />
|
|
|
|
|
<asp:Image runat="server" ImageUrl="~/images/imagename.jpg" />
or
if you using html element then use
<img src="~/images/imagename.jpg" />
|
|
|
|
|
it is not work if I have 2 master page in the MasterPage folder,
|
|
|
|
|
you can use this:
<asp:Image ID="Image2" runat="server" ImageUrl="/Images/admin.png" />
<asp:Image ID="Image1" runat="server" ImageUrl="/Images/commentBg.png" />
|
|
|
|
|
If your master pages is in MasterPage folder than try this..
<asp:Image runat="server" ImageUrl="../images/imagename.jpg" />
|
|
|
|
|
Can anybody tell me detail about different betwwee ../imgages/myimgage1.png
and ~/images/myimgme1.png
Because now all my images is put in Images folder
At the local is ok but if someone out site access my website the image is not show.
Thanks
|
|
|
|
|
Please help me.
I Upload My Website to http://www.mediafire.com/download/201nlx1a7fuhdwb/RNOC_2016_03_24.rar
Inthis I have too masterpages, Insite for pages if you have logged in and outsite for others.These masterpage is at root.And Insite.master is the copy of outsite.master added something in menu.
The Problem is Default.aspx use outsite.master can show the picture.But Home.aspx use Insite.master can't show the pictures.
Please help me Why?
Outsite.master and Insite.master is almost the same.
Home.aspx and default.aspx is at the same folder and.
|
|
|
|