|
The web application project was introduced to address the issues while migration the previous version of web applications(VS 2003) into VS 2005.
The main differences is the Web Application Project was designed to work similar to the Web projects that shipped with VS.net and VS 2003.
The web application project will be compiled into into a single dll while publising. On the other hand, The website can be compiled into multiple dlls.
Check this link[^]
|
|
|
|
|
i have 2 tables from where the data is taken
table 1 and table 2
table1 has user, country, city
table2 has country,city
wht i need is
1) selecting user with condition of country and city dropdownlists = the output can be multiple & after exceution of he query
need to get the users
2) selecting fields from table2 from the grid depending on the id( i am getting the selected multiple id from the grid.== uid)
then inserting the user , country , city in table1 with country, city selected fom table 2
if table1 has the combination of user , country , city then update else insert
i have written the code but not getting the desired output
if i use in the below way ie line1 & line2 then i get no error but only the last record in for loop gets affected
and if i use line2 and then line1 i get
sqlstr= "SELECT user FROM table1 " _
& " WHERE country='" & drpcountry.SelectedItem.Text & "' AND city='" & drpcity.SelectedItem.Text & "'"
USERREADER = cmdMain.ExecuteReader()
If USERREADER.HasRows Then
While USERREADER.Read
dim uname= USERREADER("user").ToString.Trim
msgbox(uname)
sqlstr= "select [country],[city] FROM table2 WHERE ID in( " & UID & ") order by country"
'''''''''''''''''''' executing the query using
If ds.Tables(0).Rows.Count > 0 Then
Dim count = ds.Tables(0).Rows.Count
For i = 0 To count - 1
Dim datacountry = ds.Tables(0).Rows(i).Item("country").ToString()
Dim datacity = ds.Tables(0).Rows(i).Item("city").ToString()
sqlstr= "IF EXISTS (SELECT user, country,city FROM table1 " _
& " WHERE user='" & uname & "'" _
& " AND country='" & datacountry & "' AND city='" & datacity & "')" _
& " UPDATE table1 set user='" & uname & "' " _
& " WHERE country='" & datacountry & "' AND city='" & datacity & "' " _
& " Else " _
& " INSERT INTO table1(user,country,city) " _
& " VALUES ('" & uname & "','" & datacountry & "','" & datacity & "')"
Next ''''''' line1
'''''''''''''''''''' executing the query using dataset ''''''''line2
End If
End While
End If
End If
getting error cannnot find table(0)
|
|
|
|
|
chk whether ur dataset has any tables. may be ur query is not returning any resultset.
|
|
|
|
|
this code works fine for the first record in the loop
it gives the error from second record
if i execute the query after NEXT statement i dont get any error but only the last record frm the loop gets affected/executed not the earlier ones
any solution /alteration in the code
i have also used if DS.tables.count>o then
before the IF DS.tables(0).rows.count>0
|
|
|
|
|
Check DataSet return the Nullreferance or nt
sriram
|
|
|
|
|
Hello Friends
I have problem with accessing local host from different computer.
when i access licalhost like this(http://localhost/ImageTransfer/Admin/index.aspx or http://192.168.8.230/ImageTransfer/Admin/index.aspx) from my system then it access.
when i access this url(http://192.168.8.230/ImageTransfer/Admin/index.aspx) from different system then it create problem.
Please help me to resolved this problem
thanks
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
Eventure Technology
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
reference your application folder in IIS nad use the virtual directory in the url
|
|
|
|
|
Please explain briefly.
My application already in local host .... so no issue of making virtual directory .
and one point i am not getting:-reference your application folder in IIS
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
Eventure Technology
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
the problem ur r facing is either due to incorrect referencing of the application in IIS or due to firewall
|
|
|
|
|
Answer :- Its Problem of fire wall so please go to the fire wall and putt off.
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
Eventure Technology
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Thanks For Reply....
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
Eventure Technology
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
due to incorrect referencing of the application in IIS or due to firewall
sriram
|
|
|
|
|
Hi all,
I have problem in .MDB file. I want to take a backup of an .mdb file through vb.net. I want to use save dialog so that i can save the file where i want.
The problem i am able to use save dialog and take backup but the data is not comming and when i open the .mdb file the error is comming as Unrecognized database Foramt.
DO ANYBODY have a solution of this .It is very very urgent
Thanks
murali
Murali
|
|
|
|
|
Is this web application if not Post this on vb.net forum.
|
|
|
|
|
Dear All,
I am a new member of this site.I am having some problem when try to develop a project. ---- I am trying to add a new panel within a asp.net page using a button named "ADD Panel" .It is done very easily.Now i want that the new added panel will be displayed on that page without scrolling the scroll bar of that page.But when i pree the button "ADD Panel" , the page displayed from the beginning which i don't want. If anyone can give this solution then i will very greatful.
Thanking all
akm_nh
|
|
|
|
|
Set the MaintainScrollPositionOnPostBack property of the page attribute to true.
|
|
|
|
|
i have develop one application.In this fields are employee details like ID,name,phoneno,attendence, time and date. these fields are submited to database.In another applicaton that values are retrieved from database to gridview here edit the fields. how to retrieve radiobuttonlist values in gridview from database.
|
|
|
|
|
hi i have a workable publish feed application for facebook. however i cant seems to grab the value from my textbox. these are the coding.
<asp:TextBox ID="txtVote1" runat="server"></asp:TextBox>
<asp:TextBox ID="txtVote2" runat="server"></asp:TextBox>
<asp:TextBox ID="txtVote3" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button" onclick ="Button1_Click"></asp:Button>
function loadFeed()
{
var api_key = "74036e7825fe1ec4fc356578ba92185e";
var template_data = {"content":"txtvote1.Text, txtvote2.Text,txtvote3.Text"};
var callback ="http://apps.facebook.com/ciqingfyp";
var body_general="test";
var channel_path="xd_receiver.htm";
var user_message_prompt = "What do you think of this subject?";
var ok;
FB_RequireFeatures(["XFBML"],
function()
{
FB.Facebook.init(api_key,channel_path, null);
FB.ensureInit
(function ()
{
ok=FB.Connect.showFeedDialog(184245540715, template_data, 1074555645, body_general, null, 0, callback, user_message_prompt);
alert(ok);
}
);
});
}
how am i suspose to make my content equal to my textbox value?
|
|
|
|
|
Hai all,
Can any one tell me the regular expression to vaild the client url which only allows (HTTPS).
Thanks all..
|
|
|
|
|
|
Hi,
i am new to web programming, i've a doubt regarding the iframe in asp.net2.0;
I created a project "XX.com" and ; a page named Default.aspx in the folder "one" and another page Default1.aspx in another folder "two" and the Default.aspx page contains an "iframe"
When i tried to put the source of the iframe in the mark-up i.e two/Default1.aspx ,
but the "PickUrl" gave the path like this,
If i upload the project with the above said path,will the iframe be able to access the Default1.aspx page ?
When i tried to change the path to
It showed the mark-up error "File not found err".
Plz help to find out a solution
|
|
|
|
|
If the foloder 'two' is in the application root folder, then change src attrubute of the iframe like
|
|
|
|
|
Subin Alex wrote: regarding the iframe in asp.net2.0;
IFrame is not an ASP.NET control.
Subin Alex wrote: If i upload the project with the above said path,will the iframe be able to access the Default1.aspx page ?
Use the path starts from root directory. Something like /two/Default1.aspx and it can be accessible from anywhere within the site.
|
|
|
|
|
hello - i have three questions concerning impersonation.
(1) Not sure if I like to have password in the clear/web.config to do impersonation in ASP.NET
Example:
<br />
<authentication mode="Forms"><br />
<forms<br />
name="SomeWebApp"<br />
loginUrl="LoginForm.aspx"<br />
protection="All"<br />
timeout="30"<br />
path="/" /><br />
</authentication><br />
<br />
<identity impersonate = "true"<br />
userName = "MyBox\WEBAPPUSER"<br />
password = "pwd"/><br />
<br />
<br />
<authorization><br />
<deny users="?" /><br />
</authorization><br />
(2) Also, how can I grant right (by right click folder properties) to MyBox\WebAppUser so it can write/log to file under:
D:\Inetpub\wwwroot\SomeWebApp
Or should I just grant WRITE permission on the particular log file but then it means I'd have to pre-create the log file. tried couple things I hear perhaps I should grant permission on "Compiled directory" (or "Temporary ASP.NET files directory") of the asp.net app - I found it, it's under:
D:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
I then granted permission on the folder - didn't seem to help problem (3) below. (But the dll's aren't in the temp folder)
(3) If I impersonate a non-Admin account, I get errors such as:
<br />
[FileLoadException: Could not load file or assembly 'Castle.Core' or one of its dependencies. Access is denied.]<br />
[FileLoadException: Could not load file or assembly 'Castle.Core, Version=1.0.3.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. Access is denied.]<br />
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0<br />
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43<br />
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127<br />
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142<br />
System.Reflection.Assembly.Load(String assemblyString) +28<br />
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46<br />
These are dll sitting in the web app's bin folder under virtual directory and error goes away if I make impersonated account member of "Administrators", which is undesirable of course. Any suggestion? I tried add one dll in gacutil, that solve the problem for that one dll. Do I need to actually do this for ALL dll's? That's very troublesome. I suspect it has to do with assembly binding ... path probing ...
Thanks
dev
modified on Wednesday, May 13, 2009 11:46 PM
|
|
|
|
|
I've modified the Error.htm page for the application to include an image using the usual IMG tag. It won't display. It's a normal .jpg file, there's a copy in the /images folder, it's been officially added to the project, and the src is given as ~/images/myimage.jpg. It's inside a div with a corresponding CSS style class that specifies the size of the image and the visibility attribute as "visible." What the heck am I doing wrong here?
And while I'm on the subject, why is the Error page the only one in the project that is straight HTML with a .htm extension? Is that done to enable display when the ASP.Net app isn't responding?
[EDIT]
Okay, I've solved the first part. When a page has the extension .htm, references to outside resources are prefixed with .../foldername. When the page is suffixed with .aspx, a tilde will do.
[/EDIT]
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
modified on Wednesday, May 13, 2009 11:41 PM
|
|
|
|