|
I'm using the ASP.Net SiteMapProvider, and is really easy ask to ASP.Net generate one sitemap file to google use. I tell to google access http://www.mydomain.com/sitemap.aspx in order to get the sitemap.
But about the robots.txt? The asp.net cannot handle this extension... I wish really one solution what does not need to do changes in IIS because the web sites are in a hosted enviroment.
Someone has one solution? In robots.txt has some special syntax to get your info from another source? By example, in robots.txt I place one "link" what tells Google (and other crawlers) read the robots.txt contents from the robots.aspx file (then I can generate this file contents dinamically)
Regards
Jesus is Love! Tell to someone!
|
|
|
|
|
I have a gridView.
CheckBox is attached with each row.
I have a button.When i click on that button All checkbox are selected.
Problem is in delete checkbox.I want that when i click on delete checkbox button all selected checkbox rows will be deleted.
Can anybody have solution.
Thanks in advance.
kartik rathi
|
|
|
|
|
Where exactly is the prolem? In selecting all the check boxes or in deleting all the selected records? For the second problem you can send the comma separated IDs of the records which later in your storedprocedure can split and then delete using cursors.
Best Regards,
Apurva Kaushal
|
|
|
|
|
hello i have one problem..
i read so many article on usert control but not getting how to achieve this?
Upload new modules
i) Each module consist of ascx (asp/net user controls) & programming script and database script – modules can be any programming/database (PHP/mySQL or ASP/mySQL or ASP/Access or PHP/Access or Asp.net/MS SQL etc etc ) – every time a new module is added the super admin can specify the programming and or database
(1) Admin should be able:
(a) to upload ascx controls for backend administration and PHP User Modules with database script file
(b) Publish Modules to all accounts or to select accounts only
Plz Any One Can help me to do this..or give me any idea for doing this.
i'm working on CMS Project.
thanx
|
|
|
|
|
Hi Is there any way to make Address bar of browser in read only mode .....
using Asp.net 1.1 or Asp.net 2.0
Urgent ....
|
|
|
|
|
I don't think that you can make the URL readonly. But why exactly you want to make that readonly?
Best Regards,
Apurva Kaushal
|
|
|
|
|
let take example :-
i have url like
www.domainname.com/admin/Page1.aspx and
www.domainname.com/sa/Page1.aspx
and let say user is login to application having url in broswer
www.domainname.com/admin/Page1.aspx and the same user know this
other url of site i.e www.domainname.com/sa/Page1.aspx and if he made changes
in browser address bar by replacing admin word by sa still he see that page and which i want to avoid ... Is there other
way to avoid this ....
|
|
|
|
|
You can have check for the user credentials in the page load event i.e if a user is a normal user and trying to go on the admin page then you trap that in the load event and then redirect him to the login page.
One other way is to rewrite the URL but again it won't be of that much effect as user can event track the rewritten URL also.
Best Regards,
Apurva Kaushal
|
|
|
|
|
|
always welcome..
Best Regards,
Apurva Kaushal
|
|
|
|
|
hello apurva,
i need ur urgent help.sorry to interupting in any other thred.
i have one problem..
i read so many article on usert control but not getting how to achieve this?
Upload new modules
i) Each module consist of ascx (asp/net user controls) & programming script and database script – modules can be any programming/database (PHP/mySQL or ASP/mySQL or ASP/Access or PHP/Access or Asp.net/MS SQL etc etc ) – every time a new module is added the super admin can specify the programming and or database
(1) Admin should be able:
(a) to upload ascx controls for backend administration and PHP User Modules with database script file
(b) Publish Modules to all accounts or to select accounts only
Plz Any One Can help me to do this..or give me any idea for doing this.
i'm working on CMS Project.
thanx
|
|
|
|
|
check out this link
Securing Directories with Role-based Forms Authentication
http://www.codeproject.com/aspnet/formsroleauth.asp
Hope this will help u
Navin
|
|
|
|
|
Hi, good day...
I'm using asp.net 1.1 (VB) to do the project.
I got a datagrid in my page, one of the column of the datagrid is editable. My question is, i don't want the edited data to be store back in my database. I got an idea is to store the value in dataset and then rebind the datagrid with it.
But I don't know how the code looks like. Can anyone help me to solve this?
Can you plase show some sample code to guide me? Thanks.
Best Regards,
Pei Sun
|
|
|
|
|
What you can do create a dataset(table with all the columns) and then bind the datagrid with this dataset and do the update operations in that dataset. You can maintain that dataset in session.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Thanks... But can you explain it in more details because i'm not sure how to do this. Can you write a sample coding for me? Thanks...
Best Regards,
Pei Sun
|
|
|
|
|
Hi..
Im very new to VB.Net and SQL Server 2000 and would appreciate any assistance.
I have 2 tables, "Users"(UserID, Forename, Surname, UserTitleID)and "UserTitle"(UserTitleID, Description).
My current DropDownList(in the "Users" table) is populated with "Description" Field(Mr/Mrs) from the UserTitle table.
I'm having an issue with storing the info(Mr/Mrs) when selected, into the "Users" table.
I would also like to display the (Mr/Mrs) on a datagrid afterwards, instead of a number for UserTitleID
It can be one of 2 things.. the Stored Procedure for the "Save" Subroutine, OR the SQL parameter specification.
Any assistance would be helpful.
Thanks.
8,850 Miles up? Lets go!
-- modified at 6:33 Tuesday 22nd August, 2006
|
|
|
|
|
Where exactly are you getting the problem. In getting the selected value from the dropdowlist or in the sql query to insert the record?
Best Regards,
Apurva Kaushal
|
|
|
|
|
Actually I'm getting the problem at the selected Item.
It's just that if that is fixed.. then the stored procedure may or may not work.
Both areas need testing. So i need to fix the first problem first.
Normally when I store details from a textbox, I just enter something like:
objUsers.Forname = System.Convert.ToString(Me.txtForename.Text) and relevant SQL Parameter coding.
but for the DropDownList, I was guessing it would be:
objUsers.UserTitleID = System.Convert.ToString(Me.ddlUserTitleID.SelectedItem.Value)?
In anycase, IF that line is infact correct, then my problem lies in the SQL parameters for the DropDownList:
Dim pmUserTitle As SqlParameter = New SqlParameter
pmUserTitle.ParameterName = "@UserTitleID"
pmUserTitle.SqlDbType = System.Data.SqlDbType.Int
pmUserTitle.Size = 10
pmUserTitle.Direction = System.Data.ParameterDirection.Input
pmUserTitle.Value = objUsers.UserTitleID
Thanks.
|
|
|
|
|
Dayekh wrote: objUsers.UserTitleID = System.Convert.ToString(Me.ddlUserTitleID.SelectedItem.Value)?
Here you are getting the value of the selected item. If you want to get the selected item's text the you have to do something like this:
ddlUserTitleID.SelectedItem.Text
Best Regards,
Apurva Kaushal
|
|
|
|
|
I tried that before the SelectedItem.Value
This is what it throws at me..
System.FormatException: Input string was not in a correct format.
I should be able to figure this out.. but your insight on possible causes will be very appreciated.
Perhaps the method of input is clashing with how I intend to store it.
|
|
|
|
|
Dayekh wrote: objUsers.UserTitleID = System.Convert.ToString(Me.ddlUserTitleID.SelectedItem.Value)?
In anycase, IF that line is infact correct, then my problem lies in the SQL parameters for the DropDownList:
Dim pmUserTitle As SqlParameter = New SqlParameter
pmUserTitle.ParameterName = "@UserTitleID"
pmUserTitle.SqlDbType = System.Data.SqlDbType.Int
pmUserTitle.Size = 10
pmUserTitle.Direction = System.Data.ParameterDirection.Input
pmUserTitle.Value = objUsers.UserTitleID
Try it like this:
objUsers.UserTitleID = System.Convert.ToInt(Me.ddlUserTitleID.SelectedItem.Value.ToString())
"if objUsers.UserTitleID is an integer value"
and rest you keep as same.
Best Regards,
Apurva Kaushal
|
|
|
|
|
hmmm...
The same error is thrown out .. eventhough objUsers.UserTitleID is declared as Integer .. lol.
In anycase, your help is much appreciated. Do post more suggestions if you feel like it.
Thank you.
|
|
|
|
|
hahahah..
I could not stop kicking myself and laughing..
My Stored Procedure referred to a "User" table... but the table was actually called "Users"..
Please LEARN from my mistake ppl.. LOOK at the references a million times over... if nothing is fixed.. SLEEP and then look at them again!
It works fine now.. thanks for your suggestion.
|
|
|
|
|
Happens sometimes...
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
Any one suggest me, I am doing an event project, in this i am trying to store the event based on the date, when the user open's the calender to view the events based on the date, the dates in the calendar control should be Clickable only if that specified date contains any event in the database, else that date should not be an Clickable one.How to do this?? Can any one suggest me to do this??? I tried to change the IsSelectable = False, but all the dates become as simple text not as an link
Can any one suggest me how to do this???
Thanks in advance
Bye
Exelio
|
|
|
|