|
Hi
Any one can help me solving this problem? I use Server.Url function to encode the Url but it results false. For example, the value of Server.URLEncode("http://www.w3schools.com") will be "http%3a%2f%2fwww.w3schools.com".
I know, in this case, the correct answer should be "http%3A%2F%2Fwww%2Ew3schools%2Ecom" butI don't understand the reason.
Thanks!
|
|
|
|
|
Hello
I am a beginner in (programming)asp.net(I don't know if this is possible,please help me)In my project,after the user captured the information in all text fields(Selected manager,select the date from the calender,txtWeekNo display the week number),when he chicked Add Entry Button the information will be saved in the Table,and be displayed in the GridView for that specific week in another page ,for modification.
In the GridView form,there is a Submit to Manager(Button).When the user clicks that button I want the button to submit the information in the GridView according to the selected manager in that week(in case I have more that one projeact manager for that week)by e-mail.How will I do that?(Timesheet-application)
oga m
|
|
|
|
|
please help me with this problem
|
|
|
|
|
use the namespace System.Web.Mail, get more detail from MSDN
<< >>
|
|
|
|
|
Hi all,
how to validate the range of values in a table.No duplicate entries are accept.
ex : In a table, having cards serial number from 10 to 20, but again i try to insert 11 to 19 serial number cards, it won't be accept.how to validate this type of range validation.
table fields are :
vndrCode :v001
serialFrom:10
SerialTo:20
IssueDate:23-mar-2007
pls help me.
|
|
|
|
|
Guys and gals,
This one is driving me wappy!
In our web app, we make heavy use of validators and validation summaries (cos we're good dilligent developers here hehe!)...Up until now, we've been happy with the default behaviour of the summary, in that we were able to slap it onto a page, and let the framework handle showing / hiding. everybody is happy!
Now due to some changes made to our app, we now need the validation summary to be displayed in a different way. Ideally, what I'd like to do would be to embed the VS in a floating div with some headers and styling etc...essentially, so it appears like a "dialog" box.
Now before anyone jumps in with ShowMessageBox="true" , we need something a little "prettier"
Now after much MUCH googling, it appears that the de-rigeur method under 1.x was to hack / override functions found in WebUIValidation.js...all gravy with that, but unfortunately, it's a 2.0 app. Again, after googling, it appears that the functionality has been "absorbed into the framework" (to permit browsers other than IE to use client validation).
So my question is, does ANYONE have a clue how to go about creating a custom ValidationSummary under 2.0?.....Anyone?...Any resources?
Regards,
R
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
RichardGrimmer wrote: In our web app, we make heavy use of validators and validation summaries
Do you think that it will work with all browsers ? In my point of view better go for writing javascript manually. That will work with less load.
RichardGrimmer wrote: So my question is, does ANYONE have a clue how to go about creating a custom ValidationSummary under 2.0?.....Anyone?...Any resources?
We have done that for our last project. We didn't override existing validators to make new one. We made a development from scratch. Using div and javascript. After all that ported to web user controls. I think you can also follow the same method, ?
|
|
|
|
|
DooDooo wrote: Do you think that it will work with all browsers ?
Yeah - that's kinda the point really. The original 1.x validators could only validate on the client side under IE, since they used document.all. According to the docs, the 2.0 version removes this limitation, and renders browser-compliant js to the page. Unfortunately, that can't be done using just WebUIValidation.js...
DooDooo wrote: We have done that for our last project. We didn't override existing validators to make new one. We made a development from scratch. Using div and javascript. After all that ported to web user controls. I think you can also follow the same method, ?
Thinking that may be the only way unless someone else knows any better, but I would have thought that there's a "correct" way to do it?
Thanks for your help anyway
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hello friends...
I am using doing textbox validation .After that on ok click of confirm box another cofirm is called and when ok is clicked again..user is redirected to nextpage.All this code is written in javascript..and everything is running fine .but only prob is the page is not redirected to next page. I tried redirection using window.location.href="nextpage.aspx" and location.href="nextpage.aspx"; no success..How is it possible? All controls I have used are html controls.
|
|
|
|
|
iamdking wrote: How is it possible?
What about posting some sample code ?
|
|
|
|
|
in my application in logout link i am calling session.abandon and coming to login page.But after that when i am clicking back button i can see all the webpages i have opened.i am not creating any session .what i want to do to solve this problem
|
|
|
|
|
anujose wrote: when i am clicking back button
You are getting the page that is in browsers cache. I think you can go for any of the following solution
- Disable browsers caching
- Use javascript to disable back button (Not recommended )
|
|
|
|
|
HOW CAN I DISABLE BACKBUTTON OR BROWSERS CACHE
|
|
|
|
|
anujose wrote: HOW CAN I
by not aggressing people shouting loudly for instanc
|
|
|
|
|
in my application in logout link i am calling session.abandon and coming to login page.But after that when i am clicking back button i can see all the webpages i have opened.i am not creating and session .what i want to do to solve this problem
|
|
|
|
|
Have you tried Session::Clear() ?
Before .NET 2.0 the way i did things was on page_load check the session for USER_ID or ROLES or whatever you want to call the session variable with your data in. If it was not correct I would use
Response::Redirect(string url, bool stopexecution). If the user was authorised to view this page then I would allow the page to continue loading.
It is handy to make this a class inherited from system.web.ui.form (i think it is this it is deifnately close to this) and then you can inherit the rest of your pages from it so you dont have to write the code every time.
Have a look on MSDN at ASP.NET Sessions and also how ASP.NET loads the pages.
Hope this helps
Dan
|
|
|
|
|
Hi with in two dates..., i want to display sunday dates in one datagrid....,
and other weekdays in another datagrid..........
How to do that.............
Magi
|
|
|
|
|
Hmm assuming the dates store the dates in two seperate arrays or other suitable datasource as you may have them stored in a dataset then have the datasource of one datagrid point to the weekday data and the datasource of the other point to the sunday data.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsdatagridclasstopic.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsdatagridclassdatasourcetopic.asp
Hope this helps
Dan
|
|
|
|
|
Hello All,
Want to creat a table dynamically in HTML page as
<code>
<table cellpadding="0" cellspacing="0" border="1" width="80%">
<%for(int i=0;i<8;i++){%>
<tr>
<%for (int j = 0;j<8;j++){%>
<td style="width:10%" id='<%=i%>'+'<%=j%>' >Data</td>
<%} %>
</tr>
<%} %>
</table>
</code>
But unfortunately I have been unable to set the ID value of element properly.
I want to give ID value of element as a combination of 'i' and 'j' say 1st row 1st cell as 11, 1st row 2nd cell as 12 ....
Can anyone help me out setting the ID value properly using loop control variable i and j.
Thanks,
Arindam D Tewary
|
|
|
|
|
|
Hi,
Iam creating a stored procedure, in this stored procedure i want a view to be created whenever that store procedure is being executed,
Can i have a view created inside a stored procedure?
Thanks!
Gautham
|
|
|
|
|
Hi Gautham:
I'm not expert on this...but what problem if using CREATE VIEW statement in the store procudure??
<< >>
|
|
|
|
|
Hello friends...
I am using doing textbox validation .After that on ok click of confirm box another cofirm is called and when ok is clicked again..user is redirected to nextpage.All this code is written in javascript..and everything is running fine .but only prob is the page is not redirected to next page. I tried redirection using window.location.href="nextpage.aspx" and location.href="nextpage.aspx"; no success..How is it possible? All controls I have used are html controls.
|
|
|
|
|
hi,
i have three tables like category ,course ,modules.in category the degree are there,like MCA,BE.in coursetable course like electronics computer etc.in module table chapters r there like database,it etc
if i will display the modules table in the datagrid ,above datagrid it should be displayed ,like category,course,module like BE,ECT,POWERELECTRONICS.
how i will get the courseid and categoryid to display.plz help
p.sethi
|
|
|
|
|
Use item DataBound event of datagrid, this is fired before u bind datagrid. Same want to do the same but only I want department name comma separated
eg: HR,SE,QA
|
|
|
|