|
i was trying to do like the iif in vb.net and same can be done in c# via
a == 1 ? "2" : "3"
and i want to do in the html file, not in code behind.
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
You should do this in code behind. Why would you use code in mark-up? This is Asp.Net not Classic Asp.
Do this: in Code behind (probably in the DataBound event or whatever is appropriate to what you are trying to accomplish):
string highAltitude = (HighAltitude == 0) ? "Normal" : "High";
this.lname.Text = highAltitude;
|
|
|
|
|
hi,
i want to know did i can convert from my vb application form to a web base application from, i try using ASP.NET, and vb language.
the situation is here, i have create a simple server client window application using tcp/ip, then next i want my application avaiable in web base application, did i need to make new application or i can convert my application?
Or anything that similiar can i use, i've tired in searching any help in the internet, this is my last option.
anyone can help me, please.
very thanx in advance..
|
|
|
|
|
You can make ActiveX Control and that you can use it in web page
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
I logged in to my account in codeproject. Then I took another instace of the browser. In that also I opened codeproject. Then that session is available in the newly opened browser. How is it made possible?
|
|
|
|
|
When logged in, you might have checked "Remember me" check box. It uses a cookie to persist your login details.
|
|
|
|
|
Sessions are per PC access, not per Browser access. So if you use a second instance of a browser on the same PC, sessions will ALWAYS be shared.
|
|
|
|
|
ChrisKo wrote: So if you use a second instance of a browser on the same PC, sessions will ALWAYS be shared.
I doubt. AFAIK, session will be shared if the new instance window is the child of instance who have a session, like popup windows etc. If you are taking a new instance by clicking on the browser executable file, I don't think that session will be shared.
|
|
|
|
|
yes, I will go with ChrisKo, Session will be shared between two browser window.
note:
- a new instance of IE will use a different session (from IE): good
- a new tab in IE will use same session (from IE): bad
- a new instance of firefox will use a different session (from IE): good
- a new instance of firefox will use same session state (from firefox): bad.
- a new tab in firexox will use same session state (from firefox): bad
Conclusion: It uses same session state when it is same process !!! => NOT VERY COOL
Amit Agarwal
|
|
|
|
|
Hi guys
Does anyone know how to programmatically add multiple usercontrols to a panel?
I've used LoadControl() method, but it only loads the usercontrol the first time. I wantt to continually add multiple usercontrols to the same panel.
Can anyone help me?
Thanks
|
|
|
|
|
Hi, in this case i am adding an array of LinkButtons in a Multiview control dynamically.
entries[indexIntVar] = new LinkButton();
view1.Controls.Add(entries[indexIntVar]);
Hope this helps!
|
|
|
|
|
You can add n number of user control Dynamically
But why are you adding user controls to Panel ?
There is one more simpler option you can add user controls to Repeater
Use Repeater instead of Panel if you can that will make your life simpler
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi, as i mention on the title of the post i get those errors coming from
the web.congig file of the web site. I tried removing the references and then
adding them again but still the same problem. Those are:
add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
Any ideas?
Thanks a lot!
|
|
|
|
|
What's the error ?
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 )
|
|
|
|
|
The assemblies/files i mentioned are all declared one after another in my code. At first i get
the following error:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.
As i get this error for this specific assembly mentioned above, i tried removing the assembly and add its reference again. When that happens it is generated again in my code at the end. So when i try to publish the page again i get a similar error about next assemblies in the code.
|
|
|
|
|
I faced same Problem in my last project. It happened because all the dll which project was refering got modified.
You need to take latest DLL for your project.
Let me know exact reason for this behavior
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
I already have the latest dlls i think because i also tried updating .NET framework 3.5 again.
And after that i re-added those references in my code but still the same errors...
Any ideas how to solve this?
|
|
|
|
|
No dude i don't have any answer for this question now
Just remove all dlls and try one more time
Are you providing any version to this dll in web.config
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Original Message:
The GridView in question is displaying data correctly.
However, when I pass some of them by using dynamic links on the GridView, they showup as empty strings. Here's my code: (code)
I get => "...statdetails.aspx?File=&Station=&SubmittedBy="
I checked the strings and they are empty.
You said:
You can use datarowview instead
<br />
Dim R as datarowview = e.row.dataitem<br />
fName = Convert.ToString((r.item["FILE_NAME"]));<br />
stnID = Convert.ToString((r.item["STATION_ID"]));<br />
submitBy = Convert.ToString((r.item["SUBMITTEDBY"])); <br />
I tried C# version like this: (but still does the same - empty strings)
<br />
DataRowView drv = (DataRowView)e.Row.DataItem;<br />
fName = Convert.ToString((drv.Row.ItemArray[1]));<br />
stnID = Convert.ToString((drv.Row.ItemArray[4]));<br />
submitBy = Convert.ToString((drv.Row.ItemArray[3])); <br />
|
|
|
|
|
Hi all,
Could i have two or more dropdownlist with one datalist in one page?
it means i want for example i be have a dropdownlist that when i select one of its items for example price range(dropdownlist1) or another dropdownlist that be contain from subject of book(dropdownlist2) my datalist show relation information.
if it is possible how can i do this ?
if it's impossible then what do i do?
thank you,
Hoda
|
|
|
|
|
I don't see why you should not be able to do this, you're saying the data in the list filters on both drop downlists ? Just handled the selection changed on both controls, and write SQL that gets data based on both selections. Or if you want, have a submit button, so the user can choose both before seeing the filtered list.
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 )
|
|
|
|
|
This is possible as long as you include it within your SQL statement. If you set your SQL statement to something like this: SELECT BOOK FROM BOOK_LIST WHERE PRICE_RANGE = @PRICE_RANGE AND SUBJECT = @SUBJECT. You would then have to bind your parameters to each dropdownlist. I.E. dropdownlist1 to PRICE_RANGE and dropdownlist2 to SUBJECT.
|
|
|
|
|
It works in my local machine, but we we deployed in the deployment machine it is returning empty?
We are looking for any fix that can be done at the server side.
thanks in advance.
|
|
|
|
|
Is the Server behind any improperly configured firewall?
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
Subject: Query: Start Page
Dear Sir,
I have built a website in Visual Studio 2005. It carries standard files as: Homepage.aspx, Login.aspx, CustomerProfile.aspx ViewCart.aspx and few more.
I have selected Home page, as the default start up page. When I open the website, the Home page does open. But when I run the project, although am no syntax errors or warnings, the system finally opens in browser (Local host) in different page instead of the Home Page. There is no specific page, but as observed, it is normally the last page I was working before last shut sown.
Please tell me how to organize my files , so that , the home Page opens on startup as well on RUN too , from where I may navigate to other pages .
Thanks.
Abdul Hayee.
Note: I have tried MSDN and Googles . teh guide the nicest way to build an application , but do bring you back on track , once you are down.
|
|
|
|