Thameem

1

votes
1

answer
52

views

button_onclick() generating in the .aspx page itself

protected void btnlogin_Click(object sender, EventArgs e) { } I want the btnlogin_Click() function to come under .aspx.cs file. but why is this generating in the same file itself Visual studio. asp.net c# project
Thameem
1

votes
1

answer
174

views

exclude a query result in another query

Here i want to do is that ,i want to list all the person who didn't blocked me.Here in the table Blocked there is two columns name who and whose . In whose column i store the id of the person whom i blocked and in the who column i store my id. Now i want to do that, when the blocked person click on...
Thameem
1

votes
1

answer
26

views

cannot send fileupload.postedfile.inputstream as an attachment - ERROR: cannot convert system.io.stream to string

I need to send a pdf as an attachment. I am using a html template as mailbody. My problem is the error displayed while trying to send the attachment as follows. email.Attachments.Add(new Attachment(FileUpload1.PostedFile.InputStream), pdffilename); The FileUpload1.PostedFile.InputStream is the error...
Thameem
1

votes
1

answer
42

views

Pass formset as an argument to a function in Django

I want to pass a formset as an argument to a function and want to validate the formset. If the question is not correct somebody please correct the question. This is my function: def valid_check(*args): valid = True for arg in args: if not arg.is_valid(): valid = False return valid valid = valid_che...
Thameem
4

votes
5

answer
13.6k

views

Angular chart.js showing error chart is not defined

i am new to angular js. When i try to do the below code. It show some errors in console. ReferenceError: Chart is not defined .I am not able to understand the errors. So anybody please help me. And if the question is not correct , please correct the question My Html code: school my angular.js : angu...
Thameem
2

votes
1

answer
1.4k

views

JQuery Auto-complete Ajax validate special characters

i want to validate the special characters like [email protected]#$%^&*() entered in the auto complete box and possibly give an alert box message as 'Please enter a valid name'. Below is my snippet: $('#txtName').autocomplete({ source: function (request, response) { $.ajax({ type: 'POST', contentType: 'application/...
thameem ansari
1

votes
3

answer
4.7k

views

django override model save() method

I want to get request as a parameter in save() method. models.py class Profile(models.Model): uuid = UUIDField(auto=True) user = models.ForeignKey(User) name = models.CharField(max_length=128) dob = models.DateField() class Meta: db_table = 'profile' def save(self,*args,**kwargs): if not self.pk: se...
Thameem
2

votes
2

answer
56

views

search profiles between two ranges

i want to get all the profile between the given two ages. Example 'from age:20 and to age:30' In my model instead of age , i saved the date of birth of the user.Here i need to convert that date of birth to age and want to get the profiles between the given ages.If the question is not correct please...
Thameem
2

votes
0

answer
445

views

Django Inline Formset Inside Model Formset

i have two models named product and productimage .I will have multiple images for product. So in this application, i want to create multiple products and each products i want to create multiple images in a single form using modelformset_factory and inlineformset_factory. i tried, but it was not...
Thameem
7

votes
1

answer
539

views

How odoo POS Working

I want to know how odoo pos working in offline. I checked other resources but i cant found anything.I cant find anything in their official site or nothing found in any other site.
Thameem
2

votes
2

answer
2.9k

views

Countries: A list of their state/province and cities list

I want to get all the countries, their states/province and cities in the world. Where can I find this information? Somebody please help me. I have searched many times, but I couldn't find it anywhere.
Thameem
2

votes
1

answer
222

views

Django Formset Errors With Input Name

I want to get formset errors corresponding to its input name. Here I am using ajax to send the form data. models.py class Category(models.Model): category = models.CharField(max_length=128) forms.py class CategoryForm(forms.ModelForm): class Meta: model=Category field ='__all__' CategoryFormset = mo...
Thameem
1

votes
1

answer
4.9k

views

Django Model Fields Radio Button

how can i create a radio button using Django model fields #models.py GENDER_CHOICES = ( ('M', Male), ('F', 'Female') ) class Profile(models.Model): gender = models.CharField(choices=GENDER_CHOICES, max_length=128) the above field is rendering as a select field, But i want to make it as a radio butt...
Thameem
2

votes
1

answer
366

views

TypeError: Cannot read property 'value' of undefined React

App.js import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import UserInput from './learn/UserInput'; class App extends Component { state = { users : [ {id:1, name:'manu', Age:28}, {id:2,name:'john', Age:29}, {id:3,name:'clint', Age:30}, ] } changeMethod = (e...
Thameem
2

votes
0

answer
154

views

Tomcat 7.0.28 directory listing of a specific folder in bin path

I developed a project that holds all the files and folder in the tomcat bin path. I need to access a server directory for example 'home' which resides in tomcat bin folder through url. Also list all sub folders and files that resides in 'home' folder and allow download option for the user. The user...
thameem
3

votes
2

answer
53

views

Slider rewinds by default but I want it to be cyclical

Ionic slide box images only rewinding by default.But I want Slider to be cyclical. How to solve it. I tried to implement jquery slider instead of Ionic slide box . But its not worked properly. I tried this files to add a header on my index page $(document).ready(function() { $('#slider').nivoSlide...
Thameem