Web Forms :: ID From Database To Call Specific File?

Mar 24, 2010

I have a web program that creates a url for a file, where it usually calls

item.Url=downfile+"?fileid="+reader["id"];

which save the item url. Which is called up again when trying to access the file (tho only for half a second)

websiteURL/DownFile.Aspx?fileid=8 what I want to do is to make this not so easily changeable. Now I still need the ID from the database to call that specific file. is there anyway I could do this? or is the best option making my ID field a hash and basically unreadable thus making it hard for anyone to guess the fileid. I have tried reading some Encrypt QueryString documents but they don't seem to be what I am looking for, as the url is saved to the item before any QueryString is called.

View 1 Replies


Similar Messages:

Web Forms :: How To Call Specific Code In Specific Time

Jun 7, 2010

I have function named (display)

I need to call this function (display) avery two second

View 4 Replies

Web Forms :: How To Call SQL Database Connection In .vb File

Apr 30, 2010

I have a simple upload page that will upload a file to a server and when the "upload" button is clicked, the file is uploaded to the server and then a bulk insert command is made from the .vb file. I have the database connection in the web.config file but I don't know where to add the ado connection and command structure in the .vb file. I also don't know where to put the bulk insert. I'm assuming that it goes in the .vb file as well. Here is my .vb file as it stands currently

[Code]....

View 7 Replies

DataSource Controls :: How To Write A Sql To Execute The File At Specific Time Sql Server Database

May 28, 2010

how can i write a sql to execute the file at specific time sql server database.

View 3 Replies

Server Call - Back Specific Client When Something Happens?

Jun 10, 2010

I have a VB.NET ASP.NET webserver program running. One or more VB.NET clients are making use of it. Nothing special so far. As far as I know, the server is not really aware of the clients. Clients can request data. But is it also possible to let the server call-back a specific client when something happens? So that the client doesn't need to poll?


To be more specific, this server is connected with hardware modules. Clients could be terminals that show the status of a sensor for example. When a sensor gives an "alarm" value, it would be nice if the server could pass that alarm towards the clients. Instead of letting the clients to check each X seconds if that alarm is active. Would be a waste of energy, especially because the chance this alarm goes off is almost zero...

View 15 Replies

Web Forms :: Show User Specific Data From Database After Login?

Jun 19, 2010

in my project admin will create user and insert users data into database user can just view it by his login id.only logedin iser related data will be displayed on his page.

here admin has to fill fields as below for each user and create uid and password for that user and wen user will log in only data related to him will be displayed.

id,name,address,city,salary

userview

name ,address,city,salary of his own not othr persons.

View 3 Replies

Web Forms :: Retrieve A Specific Words In A Text File?

Sep 23, 2010

i have a text file but we require some words startting from

<ul id="myMenu">
<li><a href="#edit">FileDownLoad</a></li>
Start Me aaaa[code]....

View 4 Replies

Web Forms :: How To Get Specific Column Cell Value From Excel File

Dec 5, 2013

how to get one cell value in the excel sheet (ex=D:92)

View 1 Replies

Web Forms :: Display User Specific Information From Database - Based On Login ID

Jan 7, 2011

I have a online game (written in ASP) which i have finally decided to convert to ASP.NET. However i cannot seem to link the login ID's of users to their specific details in the database. I.E when Joe Bloggs logs in, he will be shown the team information for just his club, not every club. in ASP I use code similar to this below

[Code]....

im not convinced that is the right syntax to be using, but when i execute the code in Query Builder it is showing me the correct data (that i expect to see). So im wondering if there is something else im missing? Is there something extra that i need to be adding in Web.Config file or elsewhere?

View 30 Replies

Security :: Forms Based Authentication Allow Only Specific Users From Database Table?

Oct 1, 2010

I have the following implementation and I'm sure there is an easy way to do what I want to do but I can't figure it out.

1. I use forms based authentication to authenticate to my site

2. I use active directory to authenticate the users

3. I use the Allow Users="xxx" tag to authorize the users limited to the list that can access my site. (e.g.. even though Mary is an AD user she can't access my site unless I put her credentials in the allow users tag in the web.config file)

All is working well but I want to move the users access list (e.g.. <allow users="john" />" from the web.config to a database table so that I can create a user maintenance page for my admins to add and delete user access. For the life of me I can't figure out how to do this and I can't seem to find an article on it either.

[code]....

View 1 Replies

Web Forms :: Upload Image On The Server Having Specific File Path Name?

Aug 25, 2010

how to upload image on to server having specified path name. and for each time the image path need to change.

i have some idea in my mind...

i need to use asp:fileupload control as follows

<asp:fileupload id ="fileupload1" runat ="server"/>
in codebehid

how to mention file name in vb.net like fileupload1.saveas(serverpath addwith filename addwith .jpg) serverpath is fixed filename comefrom database ... like datafield-image and i need to check the image should be jpeg

View 1 Replies

Web Forms :: How To Download Excel File On Client PC In Specific Folder

Mar 30, 2013

Code to download excel file on client pc in a specific folder using asp .net .....

View 1 Replies

Forms Data Controls :: Displaying Multiple Values From A Specific Database Field

Apr 5, 2010

What I have below is currently working on my site to display information within an article. What I am wondering is that within a lot of stories I have more than one 'SchoolID' included. All of these IDs are in our database within the 'ArticleSchool' table and linked to an 'ArticleID.' The statement below is only displaying the first 'SchoolID' listed within an article. Is there a way I would be able to display every 'SchoolID' within an article to grab information from? Will it not work in a label if there are multiple values? The 'ArticleSchool' table has rows for every article and a new instance if more than one 'SchoolID' is attached.

[Code]....

View 3 Replies

Code Versus Database - Sequence Of Steps, Call Database Or Check Session Object?

Aug 3, 2010

I have several web sequential pages which will modify a record and its child records in the database, called a "project". Such a project is currently passed between pages using its database ID in the URL parameters.

A project has some information specific to itself, and also consists of one or more Tasks, which each have information specific to itself.

Is it faster (alternatively, more maintainable or more easily understood) to hit the database each time I need to query the same project (and its tasks), or should I query the database once (either once for each page or once for all pages and save to Session) and check the saved object rather than the database?

View 2 Replies

Web Forms :: Call Ext. Js File?

Mar 15, 2010

my aspx file is include in master page.

now i can't call js function which i already include in the file when page is loaded.

page_load (cs file)
Page.ClientScript.RegisterClientScriptInclude(this.GetType(), "1", "test.js");
Page.ClientScript.RegisterStartupScript(this.GetType(), "2", "<script type="text/javascript">testing();</script>");
test.js
function testing(){
alert("test");
}

but an error msg occurs: object expect?

View 1 Replies

Jquery - JSON Can Call Method In .aspx File But Not In .asmx (web Service) File

Jul 3, 2010

I am using JQuery & JSON (POST) to call webmethod. However I can call only webmethod located at aspx file but not in asmx file Below are sample codes

CustomValidate.asmx
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.ComponentModel
Public Class CustomValidate
Inherits System.Web.Services.WebService
'ACCESS VIA JSON
<System.Web.Services.WebMethod()> _
Public Shared Function AJAX_Test(ByVal date1) As Boolean...
Return True
End Function
End Class
Javascript: JQuery JSON
function isDates(source, arguments) {
var isValidDate;
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "CustomValidate.asmx/AJAX_Test",
data: '{date1: "' + arguments.Value + '"}',
dataType: "json",
async: false,
success: function(result) {
isValidDate = result;
},
error: function(httpRequest, textStatus, errorThrown) {
alert("status=" + textStatus + ",error=" + errorThrown);
}
});
arguments.IsValid = isValidDate;
}

It always return javascript undefined error. But if I put the AJAX_Test webmethod in aspx page and replace the url: "CustomValidate.asmx/AJAX_Test" to "mypage.aspx/AJAX_Test". It works fine.

View 1 Replies

Web Forms :: Should Be Database Operations Call Asynchronously

Oct 4, 2010

I want to ask that what happens when I make a database request (using Linq-To-Sql). Active thread is blocked and waits for response, or it is used to process other requests?

Do frameworks like Linq-To-Sql or Linq-To-Entities handle this?

If I use Sleep() method on thread, is that thread blocked or is it used to process other requests?

View 2 Replies

Web Forms :: Call Database Function In Code Behind?

Feb 19, 2011

I want to know how can we call a database function from code side. I am developing an application in Asp.net(C#).

View 1 Replies

Migrate Existing Database From Specific Application To New Ms Access Based Application (database)?

Aug 2, 2010

how to migrate an existing database from a specific application to a new Ms Access based application(database)?

View 4 Replies

Web Forms :: How To Call Exe File With Parameters

Apr 23, 2010

i want to call an exe file from ASp.Net web application with parameter/arguments the file is running fine if we run it from the command prompt with the following C:/Interpub/wwwroot/projectName/Name.exe /order=7501 this will generate pdf But When we used it in web apps it doesn't work we also tried with the IExplorer.exe it works

View 2 Replies

Web Forms :: How To Call A Class File

May 1, 2010

I wants to create a class file which contains the information about the salary calculation and call it on my page. hra,da,medical every thing is defined in percentage in that class and on my web page when i insert the basic salary in a textbox and click the button it will show the whole salary on a label.

View 2 Replies

Web Forms :: Can't Call Method From Aspx File

Dec 2, 2010

I have a base class for all my user controls. In the base class I've got a method GetText() which returns a string.

When I do like this in the page load event it works fine:

[Code]....

View 5 Replies

Web Forms :: Call Different Database Stored Procedures Based On QueryString

Aug 9, 2012

I have 2 page

1-index.aspx

2-House.aspx

And these are my table in database

1-House_menu Table

Id Name H_name

1 Sofa Furniture
2 Table Furniture
3 Iron Electric
4 Vacuum cleaner Electric

2-House_p Table that save users product information

Id Name H_name Subset Description

1 Couch Furniture House furniture Test1
2 Armchair Furniture House furniture Test2
3 Blender Electric Kitchen Test3
4 Oven Electric Kitchen Test4

I have 1 unorderlist menu in index.aspx   

and 1 unorderlist in House.aspx page

I bind unorderlist from database

1-index.aspx

   Bind repeater from House_menu Table

<li class="current">
<a href="House.aspx?H_name=all">Furniture</a> <ul>
<asp:Repeater ID="rptMenu" runat="server">
<ItemTemplate>
<li><a href="Houseaspx?H_name=<%#Eval("H_name") %>"><%#Eval("name") %></a> </li>
</ItemTemplate> </asp:Repeater> </ul> </li>

And in House.aspx page i bind repeater from HOuse_p table subset column

<ul> <asp:Repeater ID="rptMenuE" runat="server">
<ItemTemplate>
<li><a href="House.aspx?subset=<%#Eval("subset") %>">
<%#Eval("Subset") %></a> </li>
</ItemTemplate>
</asp:Repeater> </ul>

When users click on menu item in index.aspx menu it go to house.aspx and bind datalist according to H_name column from House_p table

This is code

private void GetCustomersPageWise(int pageIndex) {
{
if (Request.QueryString["H_name"] != "all") {
using (SqlCommand cmd = new SqlCommand("GetCustomersPageWise1", _cn)) {
string BehCode = Request.QueryString["H_name"];

[Code] ....

Now I want when users click on menu item in House.aspx page it bind datalist from House_p table according to Subset column .. How I can do it ?

View 1 Replies

Crystal Reports :: How To Retrieve Specific Row From Database

Dec 1, 2010

i have done a crystal report in asp.net. i have a table called c_order it contains cust_id field, so while generating report itself i specified cust_id value but i have put a textbox and a button in the form which contains crystalreportviewer. so i need to enter a value in textbox and press the button then it should get value which match with the value in textbox with database and generate report.

View 1 Replies

Web Forms :: Upload .docx File To Server And Use .aspx To Call It?

Jan 5, 2010

i was trying to created a gridview table that you will be able to upload a .docx documents and then when the user use it , he or she can click on the ID then the words documents will show up .

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved