|
Hi
Can anyone please tell me the regex for URL in javascript.Actully from Googling the regex i got,doesn't solve my problem,because
if i write
http://www.google.com
or
http://www.google
both is passed
i want if user enters www the it should check at least two'.' else one will be enough.
Thanks in advance
|
|
|
|
|
Brij wrote: i want if user enters www the it should check at least two'.' else one will be enough.
try this
/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/
or Regular Express String
http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi
It doesn't solve my solve.it pass "http://www.home".My issue is,can we make "www" as optional,means
http://www.google.com and http://google.com shold pass
but
http://www.google or http://www.gooogle. should not.
|
|
|
|
|
I have 2 User Controls UserControls1.ascx and UserControls2.ascx
//serverside in Page_Load
if(cond)
{load UserControls1.ascx}
else
{load UserControls2.ascx}
How can I do this one dynamically?
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
trilokharry wrote: How can I do this one dynamically?
Try this code.
UserControl uc = new UserControl();
uc.LoadControl(Server.MapPath("UserControlPath"));
PL.Controls.Add(uc);
please don't forget to vote on the post that helped you.
|
|
|
|
|
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
i am using following code for freezing Header of Gridview
<style type="text/css>.DataGridFixedHeader { POSITION: relative;; TOP: expression(this.offsetParent.scrollTop-2); BACKGROUND-COLOR: white ></style>
Its fix the header while i scroll the div , but when i scroll browser scroll bar its postioin change.please help
modified on Friday, July 18, 2008 2:32 AM
|
|
|
|
|
I'm not clear about what you are asking,
While scrolling the div scroll bar and browser scroll bar, The grid view header should be fixed. Is this the requirement?
|
|
|
|
|
Sherin Iranimose wrote: While scrolling the div scroll bar and browser scroll bar, The grid view header should be fixed. Is this the requirement?
yes. That's i want.
but now , when i scroll div Grid header is fixed, but if i scroll Browser scroll bar first then div , Header postion is remain same , means i am getting header in between grid.
please help !!!
cheers,
Abhijit
|
|
|
|
|
Try this
css class
<br />
.gridContainer {overflow:auto;}<br />
.gridContainer table th {position:relative;}<br />
.gridContainer table tbody {overflow-x:hidden;}<br />
put your grid inside the following div
<br />
<div class="gridContainer" style="height:500px; width:600px; overflow:auto;"><br />
</div><br />
EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.
|
|
|
|
|
Try this
Click Here
Hope it will help u
Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...
|
|
|
|
|
want to create a setup for my vb.net desktop applicationt.
i will run my project on that system which dont have Visual Studio Install and any .NET framework.
.
what step i hav to follow,
thanks
kissy
|
|
|
|
|
I am Using Dev Express Aspxgrid.Int the grid bind some da6tas and enable edit button in the grid.When i click edit i want to check the vallidation of the editable data using clientside event of the grid.How is it possible.
|
|
|
|
|
create a javascript. That works client side
|
|
|
|
|
--> What is the difference between the data access code of Windows Apps and Web Apps..?
J A Nasir K
|
|
|
|
|
Jamal Abdul Nasir wrote: data access code of Windows Apps and Web Apps..?
Database access ? Nothing.
|
|
|
|
|
Jamal Abdul Nasir wrote: What is the difference between the data access code of Windows Apps and Web Apps..?
You need to be more specific. If you are asking if there are different Base Class Library Data Access classes, one for Web and another for Windows Forms, no.
If you are asking if there are differences in developing the two different application types that use Data Access then yes there are significant differences. For example your desktop application might be able to use a connected approach to data access where that is generally not a viable option for Web applications.
led mike
|
|
|
|
|
The Listbox selected items into an array onselected index change
i tryed in this way
protected void ListBox1_SelectedIndexChanged(object sender, EventArgs e)
{
_count++;
_items = new string[_count];
_items[_count - 1] = ListBox1.SelectedItem.Text.Trim();
}
this gives only the present values alone. Previously selected values are not available in the array
help me please its urgent.
Bharani
|
|
|
|
|
Can you please explain what exactly you want
i thing you need previous selection and changed selection both for some comparisation
|
|
|
|
|
Member 4463285 wrote: please its urgent
That is a very rude and impolite approach at getting help on this site.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Try this,
protected void ListBox1_SelectedIndexChanged(object sender, EventArgs e)
{
_count++;
_items = new string[_count];
if (Session["Items"]!=null)
{
_items = Session["Items"];
}
_items[_count - 1] = ListBox1.SelectedItem.Text.Trim();
Session["Items"] = _items;
}
Normal variable's values will be clear once the response is done. You can use Static variables but Static variable would share the values to other users also. But use a Session variable to maintain the items.
|
|
|
|
|
Member 4463285 wrote: _items = new string[_count];
This may be cause of the problem.
Every time you are initializing the array.So all items automatically erased.
|
|
|
|
|
Hi-
I want to create a callout/workflow so that when account "do not allow fax" is changed -
apply same change to sub-accounts and contacts attached to that account.
I am not sure how to do this using callout and how to access all subaccounts and contacts from an account using callout.
Any help would be greatly appreciated.
Thanks!
|
|
|
|
|
Hi all,
I am facing a tricky problem. My ASP.NET 1.1 Application is running perfectly in Windows XP Professional Server but it's not working well in Windows Server 2003 R2. There is some LDAP Query methods in the code and the error is coming "You don't have access to the application."
Can any body help me, I have tried all possible options but the problem has not been resolved.
With Regards,
Subhashis
|
|
|
|
|
I need to create a two level search page where each of the selection(s) of a multiselect listbox in the first level will create new multiselect listbox with different values. ie the user selects rows2, 4, and 8 in the first level listbox, supplemental listboxes 2, 4, and 8 will be made available. Then the selections from all the listboxes (both levels) will be used to run search queries.
I'm under a time crunch and learning asp.net/webdev as I go, so if there's a significant implementation time difference between options I need the faster one not the more elegant.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|