|
DataSet is logical database. you can use it in connection less envirment. so it does not have any direct connection with database.
if you go through the details of ADO.NET , you will see there is connection oriented and connection less mode. and Dataset comes under the connection less mode.
So i think there should not be any performance issue if you use this .
Using DataSets in ADO.NET [^]
|
|
|
|
|
Hi,
Guys anyone having idea about the Tools/ Third party Tools/ Mechanism to utilise already existing Visual Basic Forms into Asp.net Applicaiton.
Here I am explaining Completly:
Using RCW/Com Interop i am able to use the Class and methods. But if a class library contains Windows Forms as well, how can i utilise them.
Any suggestion regarding this will be a great help !
Thanks in Advance.
|
|
|
|
|
You would be much better (and it would probably be a lot easier), to simply re-write your forms in asp.net.
If your code separation has been done well, this shouldn't be a big problem.
|
|
|
|
|
Thanks for your suggestion !
That is the end solution ! Only Web Page creation is not a matter, Lots of events codes are associated with Win Form, so how to deals about that.
|
|
|
|
|
That's unfortunate, it would be handier for you if all that code was abstracted out, but anyway. You will need to rewrite these, if only for the reason that winforms is stateful and asp.net is stateless - i imagine that a lot of your event code will not work because of this.
|
|
|
|
|
Hi All,
I am using CascadingDropDown on my web page and when I click on the save button I have to save all the data into database, which works fine.
But I want to set the values of CascadingDropDown to Select again.
Ex: I have 2 combo and when I say save then these combo's must be set to Select Country and other one to Select State.
Please help me with this.
Thanks in advance....
|
|
|
|
|
I have templatefield in detailsview and I want to hide a particular templatefield on some condition. You are using DataField property of boundfield that is not possible in case of templatefield, so if you have some idea what to do with templatefield then please help me. Any suggestion is welcome. Thanks.
|
|
|
|
|
How do i use an array of HtmlGenericControl. This is how i have tried to use.
HtmlGenericControl objUl = new HtmlGenericControl("ul");
HtmlGenericControl objLi = new HtmlGenericControl[5]("li");
objUl.ID = "nav";
objLi[0].InnerHtml = "First element";
objLi[1].InnerHtml = "Second Element";
objUl.Controls.Add(objLi[0]);
objUl.Controls.Add(objLi[1]);
mainDiv.Controls.Add(objUl);
where mainDiv is a server control. It is giving following error
Cannot apply indexing with [] to an expression of type 'System.Web.UI.HtmlControls.HtmlGenericControl'
Is it correct approach to build html body with an array of HtmlGenericControl? if yes then how do i use it . If no then whjat should be the approach....?please help
|
|
|
|
|
HtmlGenericControl[] objLi = {new HtmlGenericControl(),new HtmlGenericControl(),new HtmlGenericControl(), new HtmlGenericControl(), new HtmlGenericControl()}:
objLi[0].InnerHtml = "First element";
objLi[1].InnerHtml = "Second Element";
modified on Wednesday, December 19, 2007 7:32:47 AM
|
|
|
|
|
except that will fail with Null reference exception as you have not instantiated objLi[0] or objLi[1]
HtmlGenericControl[] objLi = new HtmlGenericControl[5];<br />
objLi[0] = new HtmlGenericControl();<br />
objLi[0].InnerHtml = "First element";<br />
objLi[1] = new HtmlGenericControl();<br />
objLi[1].InnerHtml = "Second Element";
|
|
|
|
|
exactly. I was on a mobile. So became lazy to type !
|
|
|
|
|
Hi,
If the Textbox value is empty then, when i click "Ok" button an alert should display as "Please Enter the value for textbox" and simultaneously i have to display an "*"(Asteristic) only if the textbox is empty. Otherwise don't display.
Please help me..
if(document.getElementById('txtbox').value=="")
{
alert('Enter text value');
return false;
}
-------
<asp:textbox id="txtTickInfo" runat="server"></asp:textbox>
<asp:label id="Asteristic" runat="server" forecolor="Red" text="*" visible="false"></asp:label>
<div class="ForumMod">modified on Wednesday, December 19, 2007 7:04:52 AM</div>
|
|
|
|
|
So what's the problem here ? Why don't you use validation control ?
|
|
|
|
|
yes here i used validation as below you see
if(document.getElementById('txtvalue').value=="")
{
alert('Entertext value');
document.getElementById('Asteristic').style.display="inline";
return false;
}
but it says "Object required".
How can i display the "*"(label control) only if the textbox is null?
|
|
|
|
|
PeriyasamyRamachandran wrote: if(document.getElementById('txtvalue').value=="")
I guess your textbox name is txtTickInfo. Check that
|
|
|
|
|
Your textbox id is txtTickInfo, not txtbox.
|
|
|
|
|
|
How to implement the nodes and child nodes in the treeview in asp.net 2.0 version
VanithaVasu
|
|
|
|
|
Hi all
I am editing a datalist and i am trying to upload file from that editing file
my code
------------
Dim WriterID As String = DirectCast(e.Item.FindControl("WriterID"), Label).Text
Dim Writer As String = DirectCast(e.Item.FindControl("Writer"), TextBox).Text
Dim ImageFileName As String = DirectCast(e.Item.FindControl("ImageFileName"), TextBox).Text
But the upfile (HtmlInputFile) control is not finding giving error
'System.NullReferenceException: Object reference not set to an instance of an object.
'
Dim upfile As HtmlInputFile = DirectCast(e.Item.FindControl("upfile"), System.Web.UI.HtmlControls.HtmlInputFile)
How can i found HtmlInputFile in my datalist control
ThanQ
Keerthi
|
|
|
|
|
Hi Friends,
Can any one tell me the validation expression for alphabets and numbers.
Thanks & Regards
Senthil Kumar
|
|
|
|
|
<asp:RegularExpressionValidator ID="Reg" runat="server" ValidationExpression="^^[0-9/A-Z a-z]{1,20}$"
Display="Dynamic" ErrorMessage=" * Enter Proper Data" ControlToValidate="textbox1">
</asp:RegularExpressionValidator>
|
|
|
|
|
Dear Friends,
i want to provide download functionality in my website, can any one provide me any link or help for this functionality, so i will provide it in improved manner.
for reference,
I am using Visual Studio 2005 (.Net Framework 2.0)
IIS (5.0)
Thanks in advanced
Sasmi
|
|
|
|
|
What sort of control are you expecting ? Usually a website just streams the file down as a download.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
|
Sasmi wrote: i want to provide download functionality in my website
What is big there in implementing download functionality ? Provide a link to the file, and download will be managed by browser.
|
|
|
|