|
If you are using NET 2.0 version then create a typed dataset and add as many table adapters as you want and use the same process if you want to go for dataset also
And for the next query "Is it possible that i can bind more then one DataSet in a single datagridView"
datagrideview takes data source as either data table from a dataset not entire dataset !!
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
Hi,
I'm looking for some tutorial how to handle COM objects in C#. I've found good articles about how to create COM objects in C#, but couldn't find any about using those objects (whether created in C# or C++ , doesn't matter). Thanx (for link )
PS: I know that there is COM forum, but I didn't get any answer for 5 days there.
|
|
|
|
|
It's quite simple. Assuming that you are using Visual Studio:
- select your project in the Solution Explorer
- choose Add Reference
- in the dialog that open select the COM tab
- choose your COM object and click OK
VS automatically creates a .NET wrapper for the COM object that you can use from your code. One drawback of this method is, that this wrapper has no signature.
If you need a strong named wrapper, you can use the tool TlbImp.exe. Its use is well documented in the MSDN.
Regards,
Tim
|
|
|
|
|
Hi,
Yes I'm using VS 2005 Express...
The COM-object I created is not among all COM's in COM Tab (in diffrent project). Do you have any idea why? (When building that object I checked Register for COM interop in Properties->Build and I also created strong name object using sn.exe utility... )
thanx
|
|
|
|
|
Sorry, I've never written a COM server in C#. All my COM objects are 'older' unmanaged code that is used from within C# projects.
Generally all COM objects must be registered on the PC before they can be used. And all registered COM objects should be listed on the COM tab. Therefore I guess, that your COM server is not registered properly yet. But this is just a guess.
Have you already tried to use your COM object from some other (unmanaged) code?
Regards,
Tim
|
|
|
|
|
No haven't but I'm planing on that. First I wanted to try this all under C# and VS2005, thought that it would be easy, than go to C++ , create COM and use it in C# same way as COM created in C#...
|
|
|
|
|
I've tried TlbExp.exe and opening COM object with browse button or registring that COM dll using Regasm.exe and still no luck...
|
|
|
|
|
|
If you are checking Session["userId"] on every page to be valid, then the user may not be able to go back and use the pages by clicking on IE Back button
Mubashir
Every job is a self portrait of the person who did it.
|
|
|
|
|
I want to mask the text for identifying the corrent syntax of IP address
example
10.179.10.28 // is correct
10.567.7889.7. // is incorrect
how to identify the incorrect one.
vivek
|
|
|
|
|
Hello,
A quick validation would be to split the string (string.Split('.')) and chek if the elements of the array (return value of Split method is string[]) are not longer than 3 characters.
Additionaly you could also check the Length of the string[].
Hope it helps!
All the best,
Martin
|
|
|
|
|
Hello again!
Here I found a very nice solution with regex!
public bool IsValidIPAddress(string ipAddr) {
string pattern = @"^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}$";
Regex reg = new Regex(pattern, RegexOptions.Singleline | RegexOptions.ExplicitCapture);
return reg.IsMatch(ipAddr);
}
http://blog.devstone.com/Aaron/archive/2006/03/29/222.aspx[^]
All the best,
Martin
|
|
|
|
|
i am using C# 2003 in my project i need to convert the Doc file into html how can i convert it using C# and ASp
dinu
|
|
|
|
|
I don;t know the exact answer but this might help you ...
Create MS Word object
use the save as method of MS Word object, pass html as parameter
Hopefully this should be the approach
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
This is probably the only way, however I believe it is really a bad practice!
It relies that a correct version of MS Office with MS Word is installed by user, and depends on the interface provided by that specific version. I don't think there is another way however, since DOC format is proprietary, and theoretically only Word engine should know how to parse it.
|
|
|
|
|
I agree but thats the way you will have to tackle this problem else u might have to write some by yourself to parse a doc.
All the best !!
Let me also know if you tackle this problem
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
Does open office provide automation? I'm not sure what the OO licence says about bundling with non OSS apps though so this might not be an option.
--
CleaKO The sad part about this instance is that none of the users ever said anything [about the problem].
Pete O`Hanlon Doesn't that just tell you everything you need to know about users?
|
|
|
|
|
I really didn't get what you have mentioned above. Could you be bit clear so that I can also understand?
Thanks
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
Hi All
I am Anil working on C# Asp.net , I need to genarete Dropdownlistbox dynamically and also fill it dynamically ,and i need to accept selected value in all dropdownlistbox to server side code
for doing this i used nested repeater ---- in this parent repeater generate Dropdownlist box and child repeater is used to fill the dropdown with corresponding record's
----------in this parent repeater work finelly but child repeator not work
----- i am attach this such code below plz see
<asp:repeater id="ProductOptionsRepeater" runat="server" enableviewstate="false">
<headertemplate>
Product Options
<itemtemplate>
<%# DataBinder.Eval(Container.DataItem, "VariantName")%>
<asp:repeater id="ProductOptionsRepeater1" datasource="<%#((DataRowView)Container.DataItem).Row.GetChildRows("myrelation") %>" runat="server">
<headertemplate>
<asp:dropdownlist id=" <%# DataBinder.Eval(Container.DataItem, "VariantName")%>" runat="server">
<itemtemplate>
<asp:listitem value="<%# DataBinder.Eval (Container.DataItem, "[\"VariantSurcharge\"]")%>">
<footertemplate>
if any alternative solution then also tell me
Thanks Regard's
Anil Jagdale
|
|
|
|
|
Hi All
I am Anil working on C# Asp.net , I need to genarete Dropdownlistbox dynamically and also fill it dynamically ,and i need to accept selected value in all dropdownlistbox to server side code
for doing this i used nested repeater ---- in this parent repeater generate Dropdownlist box and child repeater is used to fill the dropdown with corresponding record's
----------in this parent repeater work finelly but child repeator not work
----- i am attach this such code below plz see
<asp:repeater id="ProductOptionsRepeater" runat="server" enableviewstate="false">
<headertemplate>
Product Options
<itemtemplate>
<%# DataBinder.Eval(Container.DataItem, "VariantName")%>
<asp:repeater id="ProductOptionsRepeater1" datasource="<%#((DataRowView)Container.DataItem).Row.GetChildRows("myrelation") %>" runat="server">
<headertemplate>
<asp:dropdownlist id=" <%# DataBinder.Eval(Container.DataItem, "VariantName")%>" runat="server">
<itemtemplate>
<asp:listitem value="<%# DataBinder.Eval (Container.DataItem, "[\"VariantSurcharge\"]")%>">
<footertemplate>
if any alternative solution then also tell me
Thanks Regard's
Anil Jagdale
|
|
|
|
|
I wanna to do my application to be automatically update.I am using below given criteria ,but i am getting DataConnection error ,but if i am executing
my project normally this is not giving any connection error..
1) Build the project
2) Right click on Solution Explorer and do to propetties.
3) Go to the Publish and then Prerequisties and choose the Prerequisties to
install
4) Click Publish Now
5) Now Brower is opened and i click on intall Button---The Error is coming--
ERROR OCCURED WHILE CONNECTING TO DATABASEAPPLICATION NOW EXIT.
Please Suggest...
Neeraj Jain
|
|
|
|
|
Hi,
I am alex working in asp.net(c#) technology.my next project will be in windows application in c# but i have no previous experience in win forms can any body tell me a good tutorial for learning this..
regards
alex.
|
|
|
|
|
|
hi ...
in browsers (such as IE) how can emulate a button click event ?
for example
suppose a dictionary webpage :
i want to make an application that automatically textBox control and the click the "translate" button.
tanks a lot
|
|
|
|
|
I don't understand the complete question, but does the "PerfomClick" method, of the System.Windows.Forms.Button class help you?
All the best,
Martin
|
|
|
|