|
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
|
|
|
|
|
What do you mean "in browsers"?
I can tell you how to do that from a windows form application which has a WebBrowser control on it. That has most of the functionality of IE. Isn't this what you want?
|
|
|
|
|
thanks ...
can you guide me ...
|
|
|
|
|
An simple example of how to do an automatic search on google:
Place a WebBrowser control on your form.
Use it's navigate method to load the google page:
MyWebBrowser.Navigate("http://www.google.com");
In order to access the controls on the webpage and use the you need to know what their names are from the html source of the page. If you take a look at google's source you'll see all the controls, and among them these two:
<input maxlength=2048 name=q size=55 title="Google Search" value="">
and
<input name=btnG type=submit value="Google Search">
The first one is the text box where you type the text to search and the second is the search button.
So, all you need to do is fill the text box and after that simulate clicking the "Google Search" button. Like this:
<br />
HtmlElement searchBox = MyWebBrowser.Document.All["q"];<br />
searchBox.InnerText = "code project";<br />
HtmlElement btnSearch = MyWebBrowser.Document.All["btnG"];<br />
btnSearch.InvokeMember("click");
Hope this helps.
Have a nice day!
|
|
|
|
|
I forgot to mention. There's a very quick and easy way to find the name of the controls you need from a web page. It's called Firebug. It's a plug-in for Firefox. Just use it.
|
|
|
|
|
Hi All,
While parsing an xml document using Xpath navigator how we can check whether a node has child nodes or not. Tried using both HasChildern and IsEmptyChild but no luck.
I should be able to differentiate between
<test>
<node1>No child</node1>
<node2>
<node3> child 1 </node3>
<node4> child 2 </node4>
</node2>
</test>
How to diff between node1 (no children) and node2 (which has children)
Thanks in advance.
Regards
Mahe
-- modified at 1:57 Wednesday 11th April, 2007
|
|
|
|
|
Has child nodes should work fine!
Check your xpath correctly, for best examples with xpath refer w3schools!
Gautham
|
|
|
|