|
.NET Enthusiast wrote: Operation must use an updateable query
Google this and you'll find pages and pages and pages and whole websites devoted to this crappy Microsoft f***up. Seriously, it is nightmare - I gave up on it ytears ago.
Give up on Access for web applications - it wesn't designed for it. It is a simple, single user desktop database, and that's all. Install MySQL if you want a good, free database and use that instead. You'll save yourself hours of trouble.
Sorry can't be mor help. But your probnlem is more than one of just permissions - it's a nightmare.
Fred
|
|
|
|
|
hi,
Can somebody pls. tell me how to call the following code on button'click event in c#.net2.0
<object type="application/x-shockwave-flash" data="FlowPlayer.swf" width="320" height="263" id="FlowPlayer">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="FlowPlayer.swf" />
<param name="quality" value="high" />
<param name="scale" value="noScale" />
<param name="wmode" value="transparent" />
<param name="flashvars" value="config={videoFile: 'ad.flv'}" />
thanks
Harry
|
|
|
|
|
Hello friends,
I am developing a login & registration page for a website.
On the login page, i have provided a link for registration page. If the user don't hav username and password for authentication then he/she supposed to register to the website first.
The problem is, control is not transferring to the registration page without authenticating the user i.e i has to authenticate the user first by giving username and password, then only i am able to access Registration page. This is completely wrong logic.
I don't know where the problem is but i am sure it will be a small one. I am also attaching the code of user authentication here.
private void BtnGo_Click(object sender, System.EventArgs e)
{
if(ValidateUser(TextBox1.Text,TextBox2.Text))
{
FormsAuthenticationTicket tkt;
string cookiestr;
HttpCookie ck;
tkt=new FormsAuthenticationTicket(1,TextBox1.Text,System.DateTime.Now,System.DateTime.Now.AddMinutes(Convert.ToInt32(ConfigurationSettings.AppSettings["timeout"])),CheckBox1.Checked,"Your Custom Date");
cookiestr=FormsAuthentication.Encrypt(tkt);
ck=new HttpCookie(FormsAuthentication.FormsCookieName,cookiestr);
if(CheckBox1.Checked)
ck.Expires =tkt.Expiration;
ck.Path =FormsAuthentication.FormsCookiePath;
Response.Cookies.Add(ck);
string strredirect;
strredirect=Request["ReturnUrl"];
if(strredirect==null)
{
strredirect="login.aspx";
Response.Redirect("Test.aspx",true);
}
else
Response.Redirect("login.aspx",true);
}
This is the code for user authentication.
Please someone help me.
Thanks,
Nagendra.
|
|
|
|
|
Hi,
I have a problem uploading excel file with 5MB file size. I am only working first locally in my machine, and I already encountered this problem in uploading.
Is there something that I need to configure in order my uploading program will accept 5MB and even higher?
By the way I am using a FileUpload control
Thanks
hifiger2004
|
|
|
|
|
There is a limit placed on this - you can alter it locally, but be aware that if you want eventually to deploy this application on another web-server you will ned to make sure that they too are prepared to do the same - and most ISP's will not.
Note that as well as increasing the max upload size, you (may) also need to increase the executionTimeout as well as the Server.ScriptTimeout settings too...
This page
http://msdn2.microsoft.com/en-us/library/e1f13641(vs.71).aspx[^]
has some info on this on a webserver.
This page
http://www.chrisbunk.com/archives/2005/05/overcoming_iis.html[^]
gives a method that should work on IIS under XP (though I can't say I've tried it)
There are also plenty of 3-rd party components such as
http://www.dimplesoftwares.com/kuploadplus.htm[^]
that will allow you upload very large files - they manage to bypass the limit by some software wizardry (read their blurb if you want details...)
Are you sure you want to allow your users to upload files of that size...?
good luck
Fred
|
|
|
|
|
Hello Fred,
Yes, you're right it's not a good practice allowing unlimited size of excel file to be uploaded.
Anyway, I will just post another question if how am I going to call a Macro from Excel.
Thanks Fred
hifiger2004
|
|
|
|
|
Hi i am using textbox in datagrid ,so i need to add that textbox value in that datagrid and put in to label , so these working fine in IE 6 but if i run this in IE 7 and mozila the values are not adding ..
function TotalBudgetAmount()
{
var intCount=2;
var txtBudgetAmount= document.getElementById("dgridBudgetAllocationDetails__ctl"+intCount+"_txtCurrentBudgetAmount");//here txtBudgetAmount come as null in IE 7 but in IE6 its working so problem in this line
var TotalAmount=0;
while (txtBudgetAmount != null)
{
if (parseFloat(txtBudgetAmount.value))
TotalAmount = TotalAmount + parseFloat(txtBudgetAmount.value)
intCount += 1;
var txtBudgetAmount=document.getElementById("dgridBudgetAllocationDetails__ctl"+intCount+"_txtCurrentBudgetAmount");
}
these are that lines please c this code and reply thank u
Reg
nantha
|
|
|
|
|
Hello All,
I have developed script in which I used iframe and getting contents by following:
iframe.contentDocument.body.innerHTML = "str_name";
iframe.contentWindow.document.body.innerHTML = "str_name";
this works fine in IE and mozilla but not in Safari of Mac OS.
so is there any other way to treat with Mac OS
Thanks
|
|
|
|
|
hi,
can anybody pls help me regarding implementing your map image as c#.net 2.0 control.
Actually i've a thailand map( a map image) and i want to allow user to search for a list of hotels, lodges etc.
but the main issue is that i've to allow admin to enter a list of hotels in the database. when the user clicks on hotels link all the admin entered hotels in database should get highlighted with a marker on the map.
I know this facility is available in google map but the issue is that google presents thailand map in thai language and i need thai map in english.
So help reqd urgently.....................
Thanks,
harry.
|
|
|
|
|
|
If you cannot use any of the methods by which this is possible (cookies are best, ip address will work for the small number of people with a fixed IP ), then your only real option is prayer or magic.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
It is very hard but i am thinking two ways to try this
1- by sending my .xml file to client pc and try to identify that .xml file contain some unique id ...
2- Get mac address of the machine
plz tell me can any of these option work. Thank you
|
|
|
|
|
dream_liner_7e7 wrote: 2- Get mac address of the machine
That needs an ActiveX Client, which he says he can not right?
|
|
|
|
|
Christian Graus wrote: real option is prayer or magic
Keeping fingers crossed...
|
|
|
|
|
At least an XmlHttp with the logged on account username.
If login is also not allowed, then I would recommend that you can pass the following solution to your solution seeker:
<script><br />
self.close();<br />
</script>
|
|
|
|
|
Why does this message get deleted??
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
It should have been deleted by the message. AFAIK, otherwise a 'Spam comment' would be left by the CP Automatic Janitor.
|
|
|
|
|
i have some list boxes in my form.i have retrived the value of first list box from database.NOW i want when user select one option its corresponding value should be filled in another box and so on with other list boxes.
DETAILS:
i have two tables
paper(papername,code)
question(code,level,pno,question)
i have list boxes named
1.paper name: when we will select from this list code should be stored in hidden box
2.paper level:level for corresponding code should be shown in this list
3.paper number:after selecting level its correponding number should be shown
I WANT THIS SELECTED VALUES FOR INSERTING QUESTIONS.
PLEASE SUGGEST ME SOME IDEAS FOR SOLVING THIS PROBLEM.
|
|
|
|
|
|
i don't think so it would help me because i am using classic ASP.
please suggest me something for my form in asp.
|
|
|
|
|
First off, if at all possible I would strongly recoommend that you switch to ASP.NET - the framework is free, and if you don't want to use Notepad and can't afford Visual Studio, there are good, free tools like Web Matrix[^] available.
However, if you must... I pity you - you have some pretty gruesome coding ahead of you. Do a google search for "asp linked lists" - this is the first page that I came up with, and it has just what you're looking for:
http://www.atgconsulting.com/triplelist.asp[^]
|
|
|
|
|
i am using asp.net right now as you suggested but as i am new to this i am facing some problems like i don't know how to how to add navigational menu control and header on each page,so that user can navigate throughout website from any page should i use frames for this like in html or is there any other solution in asp.net .
another problem is i am not able to update my database through datagrid.
Is there any example for this? I am using visual basic asp.net and oracle database.
Thanks,
|
|
|
|
|
It sonuds like to you need to either buy a book or do some serious online research... I would suiggest 4guysfromrolla[^], which has loads of very good tutorials and examples, and also the DataGrid Girl[^] who, despite the the rather ghastly pink does have some useful examples and links.
prachishah wrote: should i use frames for this like in html
There are lots of reasons for avoiding frames anyway, but you can if you want. The only difference between ASP.NET and "plain" HTML is the server-side code - ASP.NET still uses HTML, and generate an HTML page in the end - that is, after all, what browsers require.
If you are using .NET 2.0 or above you can research Master Pages for your navigation issue; otherwise, or in any case, you just have to build a solution same as you would for any other website.
Good luck....
|
|
|
|
|
i am loading values of submenuitem from database at run time. now i want to store that selected submenuitem value for transferring to next page.can you suggest me how can i capture the value of selected submenuitem.
i am developing my website in visual studio2005
|
|
|
|
|
I assume then that each submenuitem has a database ID number too, so you could just append that to the URL of each item when binding it....
eg, menuitems could link to:
page1.aspx?id=123
page2.aspx?id=34
etc
You can then read this value on the next page through a simple Request("id") call. If you really want to pass the actual menuitem text you could pass that instead, but you ought to Server.URLEncode it first...
How you set about this depends on how you are doing things - if using the Menu control in VS2005 your best bet is the MenuItemDataBound Event[^]
Fred
|
|
|
|