|
abglorie wrote: I try the session state but not working.
I doubt that. Looks like you're storing the dataset in the session, that will work just fine. It obviously won't display anything, and is a waste of time if you don't need this data on another page.
ds.Tables(0).Rows(0)("id")
should work, assuming hte column name is id. I recommend reading a book on ADO.NET so you can do this without just stabbing blindly at it.
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 )
|
|
|
|
|
Hi,
I'm working on a project and making an Email Inbox style tree on my web page. Can anyone help me out how to get this sort of tree you how can i make it using Ajax.
Some good suggestions or links required.
Regards,
Mohsin Shahzad
|
|
|
|
|
Hi guys need help in creating a Multiple Worksheet in Excel using ASP.net in vb
Any one has info on that. I kind of dunno how to start
KaKaShi HaTaKe
|
|
|
|
|
I was hoping to use objects instead of simple types as fields in my business objects but am finding that the ObjectDataSource does not recognize the objects when generating the schema. Is there a way I can get the ObjectDataSource to recognize my objects/classes as data fields in the object?
eg:
public class IntField {... }<br />
public class BO {<br />
public readonly IntField IntValue = new IntField();<br />
private IntField _AnotherIntValue = new IntField();<br />
public IntField AnotherIntValue { get {return _AnotherIntValue; } }<br />
}
The schema generated for BO does not include the IntValue or AnotherIntValue.
I would really like to use these heavyweights so I can have advanced functionality in my fields without having to code it in each property.
I guess this boils down to: Can I use anything other that public properties with get/set as fields in business objects?
-- modified at 11:18 Friday 21st September, 2007
|
|
|
|
|
I have struct ErrorPage mapping.
is it possible to accses a struct without using new keyword?
|
|
|
|
|
No.
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 )
|
|
|
|
|
Saksida Bojan wrote: is it possible to accses a struct without using new keyword?
Static members in struct can be accessed without creating a object using new keyword.
struct Employee
{
public static string Name = "";
}
This can be accessed like Employee.Name
|
|
|
|
|
But, of course, this means there can only be one value.
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 )
|
|
|
|
|
Christian Graus wrote: But, of course, this means there can only be one value.
YES correct because it is static
|
|
|
|
|
One value, is all that i need.
I am using this struct to have a collection of the filesname for each error.
|
|
|
|
|
yes u can create struct object without using new keyword. Since struct is a value type u can create struct object as normal value type.
Raja
|
|
|
|
|
How can i find witch page is currently loaded from static class. I Prefear i woud get page file name.
|
|
|
|
|
Request.FilePath should give you what you need.
Paul
|
|
|
|
|
Thanks, Thats what i needed. Didn't thought about it.
|
|
|
|
|
People,
I'm currently analising a ASP classic system and proposing a migration to ASP 2.0 .Net. However, I was trying to scope the advantages of skiping .Net 2.0 and going 3.0 right on, but I can't find any article or comparison chart that states the advantages and disadvantages of 3.0.
Anyone can point me to such an article or give me some insight?
|
|
|
|
|
3.0 doesn't really changes anything from 2.0 for web development. If you are getting ready to begin development and still analyzing you may consider looking at 3.5 with Visual Studio 2008 since it offers things that actually affect web devs.
A few examples:
-Linq (if you don't know find out, it's amazing.)
-javascript debugging
-split code/design screen like DreamWeaver (Finally!)
-You get to pick the target framework (2.-, 3.0 or 3.5)
-design time support for nested master pages
If it's a fairly simple app though then 2.0 will more than suffice.
hth
Al
|
|
|
|
|
What about support to stuff like WCF?
|
|
|
|
|
3.0 will also give you better web services via WSE 3.0 so there are benefits of 3.0 over 2.0 that exist, just not much that is specific to web development. WSE and WCF are independent of the presentation. As your in development 3.5 / VS 2008 will be coming out and both 2.0/3.0 should be easy to upgrade so I don't think you can go wrong with either.
It's just a preference for me to try a use the newest version of whatever on new projects.
hth
Al
|
|
|
|
|
can anybody help out in doing manipulation after clicking "change password"
button in "changepassword" built-in control in ajax.
or any links to get it done.
Thanks in advance,
Priya.
|
|
|
|
|
Hi Priya,
What type of manipulations are you looking to achieve?
You may convert the said control to template and thereafter can do any manipulations.
Can you be a bit more specific about your requirements?
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
Hi,
I have seen a couple of companies web backends and they still have seperate tables for customers and user (this would be the admin users).
Would it be wise to have both admin users and customers use the same tables? Then how would one distinguish between admin users and customers?
What is the difference between the aspnet_Membership and aspnet_Users tables?
Regards
|
|
|
|
|
.NET Enthusiast wrote: Would it be wise to have both admin users and customers use the same tables?
Yes, If there are a are in common.
.NET Enthusiast wrote: Then how would one distinguish between admin users and customers?
Easy, You woud have to have another column, witch woud specificy a class. Admin or costumer.
There is a good practice to have 2 tables, The First woud have user data, other woud have permision. But this depends for what site is being developt.
.NET Enthusiast wrote: What is the difference between the aspnet_Membership and aspnet_Users tables?
http://msdn2.microsoft.com/en-us/library/Aa478948.aspx[^]
If This isnt what you expected, search google or msdn
|
|
|
|
|
First of all i am coding a web service which returns an pdf file when retrieve a word document from the port. i have a virtual printer and wanna access the printer to locate .ps file where i want. how can i reach that printer from webservice to get file.
ty for helping...
|
|
|
|
|
I have some javascript/ajax which replaces an image in a div with another image. Works great using a regulat html button.
When I try and run the javascript function using an asp:button in c#, the new image might briefly flicker before reverting back to the original image.
I'm using Button4.Attributes.Add("onclick", "ajaxFunction(....."); to run the javascript.
Any ideas? There are some compelling reasons to want to use c# to select the actual image to substitute.
Much Thanks!
John Held
|
|
|
|
|
John Held wrote: When I try and run the javascript function using an asp:button in c#, the new image might briefly flicker before reverting back to the original image.
You are most likely changing the image in the Javascript, then changing it back using AJAX.
John Held wrote: 'm using Button4.Attributes.Add("onclick", "ajaxFunction(....."); to run the javascript.
Any ideas? There are some compelling reasons to want to use c# to select the actual image to substitute.
That will not select the image that will be displayed because of the button click, that will select the image that will be displayed the next time the button is clicked.
---
single minded; short sighted; long gone;
|
|
|
|